/* EPT ARENA V5 / user-approved palette: saturated football neon + readable contrast.
   UI-only overrides loaded after approved CSS; original official league logos preserved. */
:root{--eptv5-blue:#148aff;--eptv5-cyan:#00e7ff;--eptv5-green:#37ff64;--eptv5-magenta:#ff32cb;--eptv5-gold:#ffd64c;--eptv5-ink:#030c23;--eptv5-paper:#fbffff}
html{background:#020819!important;color-scheme:dark}
body{color:var(--eptv5-paper)!important;background:
 radial-gradient(ellipse 55% 22% at 0% 7%,#0853ab42,transparent 85%),
 radial-gradient(ellipse 57% 35% at 100% 28%,#a100cf2e,transparent 79%),
 radial-gradient(ellipse 70% 25% at 49% 82%,#00db6b20,transparent 82%),
 linear-gradient(155deg,#01091e 0%,#041d43 43%,#010b25 100%)!important}
.masthead{background:radial-gradient(ellipse 50% 120% at 55% 0%,#053cb5aa,transparent),linear-gradient(120deg,#03153b,#070e39 55%,#1a0642)!important;border-bottom:2px solid #04ebee!important;box-shadow:inset 0 1px #a1ecff55,0 6px 20px #0009!important}
.masthead::after{height:3px!important;background:linear-gradient(90deg,#00eaff,#00fa84,#b83dff,#ff31ce,#00dcff)!important;box-shadow:0 0 12px #00ecffb8!important}
.arena-headtop-v17,.arena-brand-v17{background:linear-gradient(115deg,#072b64e8,#061735e8 49%,#19094feb)!important;border-color:#39bfffab!important;box-shadow:0 5px 15px #0007,inset 0 1px #e6fdff38!important}
.arena-brand-v17 .arena-brand-title{color:#fff!important;text-shadow:0 0 12px #398aff88!important}
.masthead .mast-label{color:#f8ffff!important;background:#04122fe8!important;border:1px solid #00e9f6ac!important;box-shadow:inset 0 0 8px #00a5e62c}
#screen .section{background:linear-gradient(145deg,#071b42f5,#061531f5)!important;border:1px solid #179affb8!important;border-radius:17px!important;box-shadow:0 6px 17px #0009,0 0 0 1px #002df824!important}
#screen .section.magenta{border-color:#fa48ddbe!important}
#screen .section.red{border-color:#ff3b6ac4!important}
#screen .section-title h2,#screen h1,#screen h2{color:#fff!important;text-shadow:0 1px 3px #0008}
#screen .mini-btn,#screen .btn{color:#fff!important;border-color:#63d5ffcc!important;text-shadow:0 1px 3px #0013!important}
#screen .btn.primary{background:linear-gradient(115deg,#0089dc,#06be73)!important;border:1px solid #74ffaf!important}
#screen .btn.red{background:linear-gradient(130deg,#ff194b,#c70045)!important;border:1px solid #ff889b!important}
#screen .btn.blue{background:linear-gradient(120deg,#004dd4,#007fdf)!important;border:1px solid #55cfff!important}
#screen .news-hero,#screen .news-card,#screen .match-card{border:1px solid #44caffce!important;box-shadow:0 5px 17px #000a!important;background-color:#061c43!important}
#screen .v15-hometitle{color:#fff!important;font-size:clamp(16px,2.4vw,21px)!important;margin:9px 0 7px!important}
#screen .v15-hero{border:1px solid #43f5b7!important;box-shadow:0 0 0 1px #00eefe81,0 7px 20px #0009!important}
#screen .v15-hero-editorial.eptv5-video-host{padding:0!important;min-height:0!important;background:#03173b!important;overflow:hidden!important}
#screen .v15-hero-editorial.eptv5-video-host .eptv5-highlight-card{width:100%;min-height:0}
#leagueStrip .league-tile{background:linear-gradient(152deg,#061d45,#101342 68%,#0f2555)!important;border:1px solid #00bcfa!important;border-bottom:3px solid #d446ff!important;border-radius:13px!important;box-shadow:0 3px 10px #0009,0 0 0 1px #18c3ff26!important}
#leagueStrip .league-tile.active{border:1px solid #5dff7d!important;border-bottom:3px solid #5dff7d!important;box-shadow:0 0 0 1px #3aff8099,0 0 17px #00fd6366!important}
#leagueStrip .league-tile .league-logo{object-fit:contain!important;filter:none!important}
#bottomNav{border:1px solid #00d8ffb8!important;background:linear-gradient(115deg,#041633f8,#07163df8 45%,#051a42f8)!important;box-shadow:0 0 14px #007bffd8,inset 0 1px #96ecff59!important}
#bottomNav .nav-btn{color:#fff!important;text-shadow:0 1px 3px #000b}
#bottomNav .nav-btn.active{background:linear-gradient(145deg,#0769df,#08a755)!important;border:1px solid #5eff79!important;box-shadow:0 0 12px #25f76c8a!important}
#screen .arena-shortcut-v4{background:linear-gradient(130deg,#09265a,#070e31)!important;border-color:#12c9ff!important}
#screen .arena-feature-label{color:#fff!important}
#screen .v15-league-links button{border:1px solid #31d1ffb0!important;background:linear-gradient(135deg,#092e60,#071841)!important;color:#fff!important}
/* EPT official highlights: real-source video art, NOT news images. */
.eptv5-highlights-section{margin:9px 0 13px!important}
.eptv5-video-host{position:relative;isolation:isolate;overflow:hidden;border-radius:17px!important}
.eptv5-highlight-card{display:block;position:relative;isolation:isolate;text-align:right;width:100%;min-width:0;overflow:hidden;border:1px solid #3bfc75;border-radius:16px;color:#fff;background:#030b26;padding:0;cursor:pointer;font:inherit;box-shadow:0 0 17px #1cff5766}
.eptv5-highlight-card:focus-visible,.eptv5-dots button:focus-visible{outline:3px solid #faff42;outline-offset:2px}
.eptv5-highlight-thumb{position:absolute;inset:0;z-index:-1;display:block;background-color:#093263;background-size:cover;background-position:center;filter:saturate(1.18) contrast(1.08)}
.eptv5-highlight-card .eptv5-highlight-text{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px;min-height:180px;padding:15px;background:linear-gradient(0deg,#02081ff2 0%,#031636a5 55%,transparent 100%)}
.eptv5-highlight-text strong{font-size:clamp(14px,2.5vw,21px);font-weight:850;line-height:1.45;max-width:65ch;color:#fff;overflow-wrap:anywhere;text-shadow:0 2px 6px #000}
.eptv5-highlight-text small{font-size:11px;color:#ccf8ff;text-shadow:0 1px 4px #000}
.eptv5-video-badge{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border:1px solid #92ff90;border-radius:999px;background:#043a39e8;color:#faffeb;font-size:11px;font-weight:900}
.eptv5-play{position:absolute;left:50%;top:34%;transform:translate(-50%,-50%);display:grid;place-items:center;width:48px;height:48px;border:2px solid #d6ffdd;border-radius:50%;background:linear-gradient(125deg,#06c73b,#008fd0);box-shadow:0 0 18px #00ff7eaa;font-size:20px;color:#fff}
.eptv5-dots{position:absolute;bottom:6px;inset-inline-end:14px;display:flex;gap:7px;z-index:2;direction:ltr}
.eptv5-dots button{padding:0!important;border-radius:50%;width:8px;height:8px;min-height:8px;background:#b9cdff;border:0;cursor:pointer}
.eptv5-dots button.active{background:#4cfa5e;box-shadow:0 0 8px #32ff60}
.eptv5-video-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.eptv5-video-row .eptv5-highlight-card .eptv5-highlight-text{min-height:150px;padding:10px;gap:5px}
.eptv5-video-row .eptv5-highlight-text strong{font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.eptv5-video-row .eptv5-play{width:35px;height:35px;font-size:16px}
.eptv5-video-placeholder{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:140px;padding:18px;color:#fff;background:linear-gradient(135deg,#082859,#03142f);border:1px solid #17baff;border-radius:14px}
.eptv5-video-placeholder p,.eptv5-muted{font-size:12px;line-height:1.7;color:#dcf7ff;margin:7px 0}
.eptv5-source-link{color:#8bffad!important;text-decoration:underline;font-size:12px}
.eptv5-dialog{width:min(92vw,850px);max-height:90dvh;padding:13px;border:1px solid #39f68d;border-radius:18px;background:#041631;color:#fff;box-shadow:0 0 20px #05d9ea7a}
.eptv5-dialog::backdrop{background:#000c}
.eptv5-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:14px;line-height:1.5}
.eptv5-close{flex:0 0 40px;width:40px;height:40px;border:1px solid #5ff99f;background:#122f50;border-radius:50%;color:#fff;font-size:28px;cursor:pointer}
.eptv5-player{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:10px;background:#000}
.eptv5-dialog-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:11px;font-size:12px;color:#d6ecf2}
.eptv5-dialog-footer a{color:#9dffae;text-decoration:underline}
@media (max-width:1000px){.eptv5-video-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 :root{--ept12-gutter:9px}
 #app{padding-bottom:calc(89px + env(safe-area-inset-bottom,0px))!important}
 .masthead{padding-top:calc(6px + env(safe-area-inset-top,0px))!important;padding-bottom:5px!important}
 .arena-headtop-v17{min-height:54px!important;gap:3px!important;padding:4px 5px!important;border-radius:12px!important;grid-template-columns:minmax(0,1fr) minmax(125px,170px) minmax(0,1fr)!important}
 .arena-brand-v17{min-height:44px!important;height:44px!important;padding:3px 5px!important;max-width:170px!important;gap:4px!important;border-radius:10px!important}
 .arena-brand-v17 .arena-official-mark{width:34px!important;height:34px!important;flex-basis:34px!important;padding:2px!important}
 .arena-brand-v17 .arena-brand-title{font-size:clamp(11px,3.1vw,15px)!important;letter-spacing:-.02em!important}
 .arena-brand-v17 .arena-brand-bottom{font-size:7px!important;gap:3px!important}
 .arena-brand-v17 .arena-brand-bottom [lang=fa]{font-size:7px!important}
 .arena-header-side-title{display:none!important}
 .arena-menu-set,.arena-head-tools-v17{gap:3px!important}
 .arena-headtop-v17 .circle-btn,.head-tools .circle-btn{width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important;font-size:17px!important;border-radius:10px!important}
 .masthead .mast-label{font-size:10px!important;min-height:24px!important;padding:4px 9px!important;margin:6px 0!important}
 #leagueStrip{margin:4px 0!important;gap:6px!important;padding-bottom:4px!important}
 #leagueStrip .league-tile{flex:0 0 76px!important;width:76px!important;min-height:80px!important;padding:5px 4px!important;gap:2px!important;border-radius:12px!important}
 #leagueStrip .league-tile .em{width:33px!important;height:33px!important;flex-basis:33px!important;margin:0 auto 2px!important}
 #leagueStrip .league-tile .league-logo-box{height:33px!important;width:33px!important;min-width:33px!important;max-height:33px!important;max-width:33px!important;padding:2px!important;background:#f6fbff!important;border-radius:8px!important}
 #leagueStrip .league-tile>span:last-child{font-size:9px!important;line-height:1.17!important;max-width:72px!important}
 #screen .section{padding:9px!important;margin-bottom:9px!important;border-radius:13px!important}
 #screen .section-title h2{font-size:14px!important;line-height:1.5!important}
 #screen .section-title{gap:6px!important;margin-bottom:7px!important}
 #screen .v15-hometitle{font-size:15px!important;gap:5px!important}
 #screen .v15-hero:not(.eptv5-video-host){padding:9px!important;border-radius:13px!important;min-height:0!important}
 #screen .v15-hero-editorial.eptv5-video-host{min-height:0!important}
 #screen .v15-hero-editorial.eptv5-video-host .eptv5-highlight-text{min-height:170px!important;padding:11px!important}
 #screen .v15-hero-editorial.eptv5-video-host .eptv5-highlight-text strong{font-size:14px!important}
 #screen .v15-hero .countdown span{padding:5px!important;min-width:0!important}
 #screen .shortcut-grid.arena-shortcuts-v4{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 #screen .arena-shortcuts-v4 .arena-shortcut-v4{min-height:76px!important;height:auto!important;padding:5px 4px!important;gap:2px!important;border-radius:12px!important}
 #screen .arena-feature-icon{height:41px!important;min-height:0!important}
 #screen .arena-feature-icon img{height:40px!important;width:40px!important;filter:drop-shadow(0 2px 3px #0008)!important}
 #screen .arena-feature-label{font-size:10px!important;line-height:1.3!important}
 #screen .v15-league-links{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:6px 0!important}
 #screen .v15-league-links button{padding:7px 5px!important;min-height:60px!important;border-radius:12px!important}
 #screen .v15-league-links button b{font-size:20px!important;line-height:1!important}
 #screen .v15-league-links button small{font-size:10px!important}
 #screen .v15-league-head{min-height:0!important;border-radius:14px!important}
 #screen .arena-v4-hero-poster{width:100%!important;max-height:none!important;aspect-ratio:3/1!important;object-fit:contain!important}
 #bottomNav{width:calc(100% - 12px)!important;max-width:calc(100% - 12px)!important;bottom:0!important;gap:1px!important;padding:4px 2px calc(4px + env(safe-area-inset-bottom,0px))!important;border-radius:13px 13px 0 0!important}
 #bottomNav .nav-btn{min-width:0!important;min-height:48px!important;padding:2px 0!important;gap:1px!important;border-radius:9px!important}
 #bottomNav .nav-btn .ept-nav-icon-step06{width:23px!important;height:23px!important;flex-basis:23px!important;transform:none!important}
 #bottomNav .nav-btn.active .ept-nav-icon-step06{transform:none!important}
 #bottomNav .nav-btn>span:last-child{font-size:8px!important;line-height:1.15!important;letter-spacing:-.4px!important;margin:0!important}
 #screen .news-hero{min-height:180px!important;padding:13px!important;border-radius:13px!important}
 #screen .news-hero h2{font-size:16px!important;line-height:1.6!important}
 #screen .news-card img{height:95px!important;object-fit:cover}
 #screen .news-grid{gap:7px!important}
 #screen .news-card{border-radius:12px!important}
 #screen .news-copy strong{font-size:11px!important;line-height:1.5!important}
 .eptv5-video-row{gap:6px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .eptv5-video-row .eptv5-highlight-card .eptv5-highlight-text{min-height:125px!important;padding:8px!important}
 .eptv5-video-row .eptv5-highlight-text strong{font-size:11px!important;line-height:1.35!important}
 .eptv5-video-row .eptv5-video-badge{font-size:9px!important;padding:2px 5px!important}
 .eptv5-video-row .eptv5-highlight-text small{font-size:9px!important}
 .eptv5-dialog{width:96vw!important;padding:8px!important}
}
@media (max-width:360px){#bottomNav .nav-btn>span:last-child{font-size:7px!important}#leagueStrip .league-tile{flex-basis:69px!important;width:69px!important}#screen .shortcut-grid.arena-shortcuts-v4{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){.eptv5-highlight-card,.eptv5-dots button{transition:none!important}}

/* V5.3 link cards: no iframe or YouTube dependency. */
.eptv5-highlight-card{touch-action:manipulation}
.eptv5-highlight-card .eptv5-play{font-size:18px}
.eptv5-video-placeholder .eptv5-source-link{display:inline-block;margin:7px 9px 0 0}
@media(max-width:650px){#leagueStrip .league-tile{min-height:75px!important}#bottomNav .nav-btn{min-height:43px!important}}
