/* EPT Arena V4 — vivid high-contrast but compact. No changes to media, score, news or account flows. */
:root{--arena-green:#38F5A4;--arena-cyan:#42DAFF;--arena-lime:#C7FF42;--arena-orange:#FFB946;--arena-blue:#197BFA;--arena-red:#FF5C86;--arena-night:#03152A}
html{background:#041325}
body{color:#F9FFFF!important;background:radial-gradient(ellipse 55% 25% at 2% 2%,rgba(12,199,127,.28),transparent 90%),radial-gradient(ellipse 75% 40% at 100% 18%,rgba(30,143,255,.26),transparent 88%),radial-gradient(ellipse 55% 26% at 40% 75%,rgba(255,174,39,.10),transparent 95%),linear-gradient(145deg,#031B31 0%,#052D42 48%,#071E34 100%)!important}
.masthead{background:linear-gradient(115deg,#044153,#0A305D 52%,#064E4A)!important}
.masthead:after{background:linear-gradient(90deg,#28F4A1,#36C9FF,#FFCA4A,#27F6A0)!important;height:3px!important}
.arena-headtop-v17,.arena-brand-v17{border-color:#5DFAC4!important;background:linear-gradient(120deg,#063A52,#123664,#075D57)!important}
.masthead .mast-label{border:1px solid #2EEFB8!important;background:#092F42!important;color:#F6FFFE!important}
/* Correct logo artwork: show original .png (no custom EPT badges). */
.league-tile{min-height:80px!important;padding:6px 7px!important;gap:2px!important;flex:0 0 108px!important;border:1px solid #34DCE4!important;border-bottom:3px solid #FFC04C!important;background:linear-gradient(140deg,#083F51,#0C2956 75%)!important;border-radius:13px!important;box-shadow:0 4px 14px #0008!important}
.league-tile.active{border-color:#C3FF45!important;box-shadow:0 0 0 2px #C3FF4580!important}
.league-tile:before{background:none!important;content:none!important}
.league-tile .em{width:39px!important;height:39px!important;flex-basis:39px!important;margin:0 auto 2px!important}
.league-tile .league-logo-box{width:39px!important;height:39px!important;max-width:39px!important;max-height:39px!important;padding:4px!important;background:#F1F9FF!important;border:1px solid #DAF4FF!important;box-shadow:0 3px 9px #0009!important;border-radius:11px!important}
.league-tile .league-logo{width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}
.league-tile>span:last-child{font-size:10px!important;line-height:1.3!important;font-weight:850!important;max-width:102px!important;color:#FFF!important}
.league-logo-box.logo-unavailable{background:#12334C!important;border:1px dashed #D5EFFF!important;box-shadow:none!important}
.league-logo-box.logo-unavailable:after{content:'⚽';color:#F4FFFB;font-size:15px;line-height:1.8}
/* Reduce the giant featured fixture: room for images, articles and other matches. */
#screen .v15-hometitle{margin-block:8px!important}
#screen .v15-hero{min-height:0!important;margin:8px 0 12px!important;padding:12px!important;border-radius:18px!important;box-shadow:0 6px 18px #0009,0 0 0 1px #30D9FF!important}
#screen .v15-hero .v15-hero-top{margin-bottom:7px!important}
#screen .v15-hero .v15-hero-sides{gap:6px!important;margin:6px 0!important}
#screen .v15-hero .v15-hero-sides .team img{width:48px!important;height:48px!important;object-fit:contain}
#screen .v15-hero .v15-hero-sides .team{gap:4px!important}
#screen .v15-hero .v15-hero-sides .team span{font-size:12px!important}
#screen .v15-hero .v15-mid strong{font-size:clamp(24px,5vw,35px)!important}
#screen .v15-hero .countdown{margin:8px auto!important;gap:5px!important}
#screen .v15-hero .countdown span{min-width:0!important;min-height:0!important;padding:6px 8px!important;border-radius:11px!important}
#screen .v15-hero .countdown b{font-size:17px!important}
#screen .v15-hero .countdown small{font-size:10px!important}
#screen .v15-hero .v15-hero-actions{gap:7px!important;margin-top:7px!important}
#screen .v15-hero .v15-hero-actions button{padding:9px 12px!important;font-size:13px!important;min-height:38px!important}
.section{padding:13px!important;margin-bottom:12px!important;border:1px solid #32D3EA9E!important;box-shadow:0 6px 16px #0007!important;background:linear-gradient(135deg,#092846E8,#092038EB)!important}
.section-title{margin-bottom:8px!important}
.section-title h2{font-size:clamp(15px,2.4vw,19px)!important;color:#FAFFF9!important}
.title-hero{min-height:0!important;padding:13px!important}
.match-card,.news-card{border:1px solid #48D8E5A0!important;box-shadow:0 4px 15px #0007!important;background:linear-gradient(140deg,#092B4B,#091A37)!important}
.match-teams .score{color:#D7FF6D!important}
.btn.primary{background:linear-gradient(125deg,#03AD80,#098FC3)!important;border-color:#9AFFC0!important;color:#FFF!important}
.btn.blue{background:linear-gradient(125deg,#1965C9,#09A4CF)!important;color:#FFF!important}
.btn.red{background:linear-gradient(125deg,#D72358,#F0593B)!important;color:#FFF!important}
/* League poster in its actual section; real <img> in 3:1 ratio, complete composition, no crop. */
.page-league .v15-league-head.arena-v4-has-poster{display:flex!important;flex-direction:column!important;justify-content:initial!important;align-items:stretch!important;min-height:0!important;height:auto!important;padding:0!important;overflow:hidden!important;border:2px solid #A4FB54!important;background:#031D2F!important;border-radius:17px!important;box-shadow:0 8px 19px #001626e6!important;isolation:isolate}
.page-league .v15-league-head.arena-v4-has-poster:before,.page-league .v15-league-head.arena-v4-has-poster:after{display:none!important}
.page-league .arena-v4-hero-poster{display:block;width:100%;max-width:100%;height:auto!important;min-height:0;aspect-ratio:3/1;object-fit:contain!important;background:#021A32}
.page-league .v15-league-head.arena-v4-has-poster .v15-league-head-overlay{position:relative!important;inset:auto!important;max-width:100%!important;width:auto!important;margin:0!important;padding:9px 12px!important;border:none!important;border-radius:0!important;background:linear-gradient(100deg,#063B50,#0A2F56)!important;backdrop-filter:none!important;text-align:right}
.page-league .v15-league-head .v15-league-head-overlay h1{font-size:clamp(18px,3vw,25px)!important;line-height:1.4!important;margin:2px 0!important;color:#FFF!important}
.page-league .v15-league-head .v15-league-head-overlay p{font-size:11px!important;line-height:1.4!important;color:#E0FFF2!important;margin:3px 0!important}
.page-league .v15-league-head.arena-v4-no-poster{min-height:115px!important;max-height:220px!important;padding:12px!important;background:linear-gradient(120deg,#11625F,#17397D,#4D2674)!important}
.page-league .v15-league-links{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;margin:10px 0!important}
.page-league .v15-league-links button{min-height:58px!important;padding:6px 3px!important;border:1px solid #35E8BC!important;background:linear-gradient(140deg,#064956,#112F63)!important;border-radius:11px!important}
.page-league .v15-league-links button b{font-size:18px!important}
.page-league .v15-league-links button small{font-size:10px!important;line-height:1.3!important;color:#FFF!important}
/* Poster thumbnails live in Leagues, not a huge gallery dominating Home. */
.shortcut-grid .shortcut.arena-v4-league-card{min-height:0!important;padding:6px!important;display:flex!important;flex-direction:column!important;gap:5px!important;align-items:center!important;justify-content:flex-start!important;border:1px solid #4EECC5!important;background:linear-gradient(135deg,#072A4B,#063F45)!important;border-radius:12px!important;font-size:11px!important;color:#FFF!important;line-height:1.45!important;overflow:hidden}
.arena-v4-card-poster{width:100%!important;aspect-ratio:3/1!important;height:auto!important;min-height:0!important;object-fit:contain!important;border-radius:8px!important;display:block!important;background:#08192D!important;box-shadow:0 2px 8px #0019}
.arena-v4-poster-missing .arena-v4-card-poster,.arena-v4-poster-missing .arena-v4-hero-poster{display:none!important}
.shortcut-grid .shortcut.arena-v4-league-card .emoji{font-size:12px!important;height:22px!important;min-height:22px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.shortcut-grid .shortcut.arena-v4-league-card .league-logo-box{width:22px!important;height:22px!important;padding:2px!important;border-radius:6px!important}
.arena-v4-archive{padding:12px 8px;margin:10px 0 16px;border:1px solid #5AD4FF;border-radius:15px;background:#072D45}
.arena-v4-archive h2{font-size:16px;color:#F8FFF3;margin:0 0 9px}
.arena-v4-archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.arena-v4-archive-item{padding:6px;border:1px solid #2EBDCB;border-radius:9px;text-align:center;font-size:11px;color:#ECFFFF;background:#061E37}
.arena-v4-archive-item span{display:block;margin-top:5px}
.bottom-nav{background:linear-gradient(115deg,#062A44FA,#064455FA,#08335FFA)!important;border:1px solid #47EDD3!important;box-shadow:0 -4px 17px #0AE8B544!important}
.bottom-nav .nav-btn.active{background:linear-gradient(120deg,#078F81,#0A84D2)!important;border-radius:12px!important}
button:focus-visible{outline:3px solid #D4FF54!important;outline-offset:2px!important}
@media(max-width:740px){
 .league-tile{flex-basis:99px!important;min-height:76px!important}
 .league-tile .em{width:36px!important;height:36px!important;flex-basis:36px!important}
 .league-tile .league-logo-box{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important}
 .section{padding:10px!important;margin-bottom:9px!important;border-radius:15px!important}
 #screen .v15-hero{padding:10px!important;min-height:0!important}
 #screen .v15-hero .v15-hero-sides .team img{width:42px!important;height:42px!important}
 #screen .v15-hero .countdown b{font-size:16px!important}
 #screen .v15-hero .countdown span{padding:5px 6px!important}
 .page-league .v15-league-links button{min-height:53px!important}
 .page-league .v15-league-links button small{font-size:9px!important}
 .shortcut-grid{gap:8px!important}
 .shortcut-grid .shortcut.arena-v4-league-card{padding:5px!important}
 .arena-v4-archive-grid{gap:6px}
}
@media(max-width:390px){
 .page-league .v15-league-links{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .shortcut-grid:not(.arena-shortcuts-v4){grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
