:root{
  --bg:#0B0E14;
  --surface:#141922;
  --surface-2:#1B212C;
  --ink:#EDEFF3;
  --muted:#8B93A1;
  --hairline:#242C38;
  --flare-hot:#FFB020;
  --flare-mid:#FF5A36;
  --flare-edge:#6FE3FF;
  --flare-gradient: linear-gradient(90deg, var(--flare-hot) 0%, var(--flare-mid) 45%, var(--flare-edge) 100%);
  --team-primary:#8B93A1;
  --team-primary-text:#8B93A1;
  --team-secondary:#000000;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{background:var(--bg); color:var(--ink); font-family:'Inter',sans-serif; -webkit-font-smoothing:antialiased;}
.display{font-family:'Anton', sans-serif; font-weight:400; letter-spacing:0.5px;}
.mono{font-family:'JetBrains Mono', monospace;}
a{color:inherit;}
.wrap{max-width:960px; margin:0 auto; padding:0 24px;}

/* Nav */
nav{border-bottom:1px solid var(--hairline); background:rgba(11,14,20,0.92); position:sticky; top:0; backdrop-filter:blur(6px); z-index:30;}
.nav-inner{display:flex; align-items:center; justify-content:space-between; min-height:76px; max-width:1240px; margin:0 auto; padding:10px 24px; gap:20px;}
.brand{display:flex; align-items:center; gap:14px; text-decoration:none; flex-shrink:0;}
.brand-mark{width:48px; height:48px; object-fit:contain; flex-shrink:0;}
.brand-name{font-family:'Anton', sans-serif; font-size:19px; letter-spacing:0.5px; color:var(--ink); line-height:1.22;}
.brand-name .brand-line1{white-space:nowrap; display:block;}
.brand-name span{color:var(--flare-mid); white-space:nowrap; display:block;}
.nav-links{display:flex; gap:2px; list-style:none; flex-wrap:wrap; justify-content:flex-end;}
.nav-item{position:relative;}
.nav-links a.nav-link{display:block; padding:9px 10px; color:var(--muted); text-decoration:none; font-size:13.5px; font-weight:500; border-radius:6px; white-space:nowrap;}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active{color:var(--ink); background:var(--surface);}
.dropdown{
  position:absolute; top:100%; left:0; min-width:210px;
  background:var(--surface); border:1px solid var(--hairline); border-radius:10px;
  padding:12px 8px 8px; display:none; flex-direction:column; gap:2px;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown{display:flex;}
.dropdown a{padding:8px 10px; font-size:13px; color:var(--muted); text-decoration:none; border-radius:6px; display:flex; align-items:center; gap:8px; border-left:3px solid transparent; transition:background .12s ease, color .12s ease, border-color .12s ease;}
.dropdown a:hover{color:var(--ink); background:rgba(var(--team-accent, 139,147,161), 0.16); border-left-color:rgb(var(--team-accent, 139,147,161));}
.dropdown-crest{width:18px; height:18px; border-radius:50%; background:var(--surface-2); flex-shrink:0; object-fit:contain;}
.flare-bar{height:3px; background:var(--flare-gradient); border:none;}

/* Breadcrumb */
.breadcrumb{padding:16px 0 0; font-size:13px; color:var(--muted);}
.breadcrumb a{text-decoration:none;}
.breadcrumb a:hover{color:var(--ink);}

/* Hero (home) */
.hero{position:relative; padding:56px 0 36px; border-bottom:1px solid var(--hairline); overflow:hidden;
  background-image: linear-gradient(180deg, rgba(11,14,20,0.88), rgba(11,14,20,0.95) 60%, var(--bg) 100%), var(--hero-banner);
  background-size:cover; background-position:center 30%;}
.hero::before{content:''; position:absolute; top:-140px; right:-160px; width:480px; height:480px;
  background: radial-gradient(circle, rgba(255,90,54,0.10), rgba(111,227,255,0.04) 60%, transparent 75%); pointer-events:none;}
.hero-inner{position:relative;}
.slide{display:none;}
.slide.active{display:block;}
.eyebrow{display:inline-flex; align-items:center; gap:8px; font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--flare-mid); margin-bottom:16px;}
.eyebrow-dot{width:7px; height:7px; border-radius:50%; background:var(--flare-mid); box-shadow:0 0 0 4px rgba(255,90,54,0.18);}
.hero h1{font-size:42px; line-height:1.08; margin-bottom:14px; max-width:640px;}
.hero p{color:var(--muted); font-size:16px; max-width:560px; line-height:1.6; margin-bottom:24px;}

.matchup{position:relative; background:var(--surface); border:1px solid var(--hairline); border-radius:14px;
  padding:26px 30px; display:flex; align-items:center; justify-content:center; gap:24px; overflow:hidden; min-height:170px;}
.bleed-icon{position:absolute; top:50%; transform:translateY(-50%); width:230px; height:230px; object-fit:contain;}
.bleed-icon.left{left:-70px;} .bleed-icon.right{right:-70px;}
.matchup-center{position:relative; z-index:3; text-align:center; background:var(--surface); padding:10px 24px; border-radius:10px;}
.mc-score{font-family:'JetBrains Mono', monospace; font-size:36px; font-weight:700; display:flex; align-items:center; gap:12px;}
.mc-dash{color:var(--muted); font-size:20px;}
.mc-names{display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-top:8px; gap:40px;}

.pod-hero{position:relative; background:var(--surface); border:1px solid var(--hairline); border-radius:14px; display:flex; align-items:stretch; min-height:180px; overflow:hidden;}
.pod-hero-art{width:42%; flex-shrink:0; position:relative; background: linear-gradient(135deg, var(--flare-hot), var(--flare-mid) 55%, var(--flare-edge));}
.pod-hero-art::after{content:'\25B6'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:40px; color:rgba(11,14,20,0.55);}
.pod-hero-text{padding:28px 32px; display:flex; flex-direction:column; justify-content:center;}
.pod-hero-text h2{font-size:22px; font-weight:600; margin-bottom:8px;}
.pod-hero-text p{color:var(--muted); font-size:14px; line-height:1.6; max-width:360px;}

.countdown{display:flex; align-items:center; gap:14px;}
.countdown-unit{background:var(--surface); border:1px solid var(--hairline); border-radius:14px;
  padding:18px 20px; display:flex; flex-direction:column; align-items:center; gap:2px; min-width:76px;}
.countdown-num{font-family:'Anton', sans-serif; font-size:40px; line-height:1; background:var(--flare-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; font-variant-numeric:tabular-nums;}
.countdown-label{font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-top:6px;}
.countdown-sep{font-family:'Anton', sans-serif; font-size:32px; color:var(--hairline);}

.hero-logo-bleed{position:absolute; right:-20px; top:50%; transform:translateY(-50%); width:300px; height:auto; max-height:340px; object-fit:contain; opacity:0.92; pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg, transparent, black 30%); mask-image:linear-gradient(90deg, transparent, black 30%);}

.hero-news{background:var(--surface); border:1px solid var(--hairline); border-radius:14px; padding:26px 30px;}
.news-title-lg{font-size:18px; font-weight:600; margin-bottom:8px;}
.news-body-lg{font-size:14px; color:var(--muted); line-height:1.6;}

.dots{display:flex; gap:8px; margin-top:22px;}
.dot{width:8px; height:8px; border-radius:50%; background:var(--hairline); cursor:pointer; border:none; padding:0;}
.dot.active{background:var(--flare-mid);}

/* Feed */
.feed{padding:44px 0 80px;}
.feed-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:12px;}
.feed-heading{font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted);}
.filters{display:flex; gap:8px; flex-wrap:wrap;}
.filter-chip{font-size:13px; font-weight:600; padding:7px 14px; border-radius:999px; cursor:pointer; transition:all .15s; border:1px solid transparent;}
.fc-all{background:var(--surface); color:var(--ink); border-color:var(--hairline);}
.fc-prem{background:rgba(111,227,255,0.1); color:var(--flare-edge);}
.fc-champ{background:rgba(255,176,32,0.12); color:var(--flare-hot);}
.fc-pod{background:rgba(184,140,255,0.12); color:#B88CFF;}
.fc-news{background:var(--surface-2); color:var(--muted); border-color:var(--hairline);}
.filter-chip.active{outline:2px solid currentColor; outline-offset:1px;}

.card{background:var(--surface); border:1px solid var(--hairline); border-radius:12px; padding:0; margin-bottom:14px; overflow:hidden;}
.card.hidden{display:none;}
.card-inner{padding:22px 24px;}
.card-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;}
.tag{font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; padding:4px 9px; border-radius:5px;}
.tag-score.premier{background:rgba(111,227,255,0.14); color:var(--flare-edge);}
.tag-score.champ{background:rgba(255,176,32,0.14); color:var(--flare-hot);}
.tag-pod{background:rgba(184,140,255,0.14); color:#B88CFF;}
.tag-news{background:var(--surface-2); color:var(--muted);}
.timestamp{font-size:12px; color:var(--muted);}

/* Gameweek preview card -- glossy, broadcast-forward, its own vibe */
.preview-card{
  position:relative; overflow:visible;
  border:1px solid color-mix(in srgb, var(--flare-mid) 35%, var(--hairline));
  background:linear-gradient(155deg, color-mix(in srgb, var(--flare-mid) 7%, var(--surface)) 0%, var(--surface) 45%);
}
.preview-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px; border-radius:12px 12px 0 0;
  background:var(--flare-gradient);
}
.preview-card-glow{
  position:absolute; inset:-30px; z-index:-1; pointer-events:none; border-radius:24px;
  background:radial-gradient(ellipse at 25% 0%, color-mix(in srgb, var(--flare-mid) 16%, transparent), transparent 65%);
  filter:blur(24px);
}
.preview-tag{background:var(--flare-gradient); color:#0b0e14; font-weight:800;}
.preview-title{font-size:19px;}

.preview-matchups{margin-top:20px; display:flex; flex-direction:column; gap:12px;}
.preview-matchup{
  border-radius:14px; overflow:hidden; border:1px solid var(--hairline);
  background:linear-gradient(90deg,
    color-mix(in srgb, var(--team-a) 26%, var(--surface-2)) 0%,
    var(--surface-2) 40%, var(--surface-2) 60%,
    color-mix(in srgb, var(--team-b) 26%, var(--surface-2)) 100%);
}
.preview-row{display:flex; align-items:stretch; justify-content:space-between; gap:14px; min-height:140px; padding-top:18px;}
.preview-side{
  position:relative; flex:1; min-width:0; display:flex; align-items:center;
  text-decoration:none; color:var(--ink);
}
.preview-side-a{justify-content:flex-end; text-align:right; padding-right:20px;}
.preview-side-b{justify-content:flex-start; text-align:left; padding-left:20px;}
.preview-crest-bg{
  position:absolute; top:0; height:100%; width:auto; object-fit:contain;
  opacity:0.38; pointer-events:none; z-index:0;
}
.preview-side-a .preview-crest-bg{left:-8px; filter:drop-shadow(0 0 20px color-mix(in srgb, var(--team-a) 65%, transparent));}
.preview-side-b .preview-crest-bg{right:-8px; filter:drop-shadow(0 0 20px color-mix(in srgb, var(--team-b) 65%, transparent));}
.preview-team-name{position:relative; z-index:1; font-weight:800; font-size:16.5px; line-height:1.25; letter-spacing:0.1px;}
.preview-side:hover .preview-team-name{color:var(--flare-mid);}
.preview-vs-col{
  display:flex; align-items:center; justify-content:center; flex-shrink:0; width:42px; height:42px;
  border-radius:50%; background:var(--surface); border:1px solid var(--hairline);
}
.preview-vs-label{font-family:'Anton', sans-serif; font-size:14px; color:var(--flare-mid);}
.preview-hype{font-size:12.5px; color:var(--ink); opacity:0.85; line-height:1.55; padding:14px 20px 18px;}
@media (max-width:560px){
  .preview-row{min-height:100px;}
  .preview-team-name{font-size:14px;}
}

.score-card-body{position:relative; display:flex; align-items:center; justify-content:center; gap:20px; padding:18px 24px 8px; overflow:hidden; min-height:110px;}
.score-bleed-img{position:absolute; top:50%; transform:translateY(-50%); width:150px; height:150px;}
.score-bleed-img.left{left:-60px;} .score-bleed-img.right{right:-60px;}
.score-bleed-img img{width:190px; height:190px; object-fit:contain;}
.score-mid{position:relative; z-index:2; display:flex; align-items:center; gap:14px; background:var(--surface); padding:6px 18px; border-radius:8px;}
.score-value{font-family:'JetBrains Mono', monospace; font-size:26px; font-weight:700;}
.score-value.dim{color:var(--muted);}
.score-names{display:flex; justify-content:space-between; font-size:12px; color:var(--muted); padding:0 24px 14px;}
.score-div{font-size:12px; color:var(--muted); padding:0 24px 16px;}

/* SuperPOD */
.pod-thumb-wrap{position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:var(--surface-2);}
.pod-thumb{width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease;}
.pod-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, rgba(11,14,20,0) 40%, rgba(11,14,20,0.55) 100%);
}
.pod-play svg{width:52px; height:52px; fill:#fff; filter:drop-shadow(0 2px 8px rgba(0,0,0,0.5)); opacity:0.92; transition:transform .18s ease, opacity .18s ease;}
.pod-ep-badge{
  position:absolute; top:10px; left:10px; background:rgba(11,14,20,0.75); color:#fff; font-family:'JetBrains Mono', monospace;
  font-size:11px; font-weight:700; letter-spacing:0.5px; padding:4px 8px; border-radius:5px;
}
.pod-featured{display:block; text-decoration:none; color:inherit;}
.pod-featured .pod-thumb-wrap.featured{max-width:640px; margin:0 auto;}
.pod-featured:hover .pod-thumb{transform:scale(1.02);}
.pod-featured:hover .pod-play svg{transform:scale(1.1);}
.pod-featured-text{max-width:640px; margin:16px auto 0; text-align:center;}
.pod-featured-title{font-family:'Anton', sans-serif; font-size:26px; letter-spacing:0.3px; margin:10px 0 4px;}
.pod-featured-sub{font-size:13px; color:var(--muted);}

.pod-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:22px;}
.pod-grid-card{display:block; text-decoration:none; color:inherit;}
.pod-grid-card:hover .pod-thumb{transform:scale(1.04);}
.pod-grid-card:hover .pod-play svg{transform:scale(1.1);}
.pod-grid-title{font-size:14px; font-weight:600; margin-top:10px;}

.pod-coming-soon{
  background:var(--surface); border:1px dashed var(--hairline);
  border-radius:14px; padding:32px 28px; text-align:center;
}
.pod-coming-soon-title{font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--muted);}

.news-with-crest{display:flex; gap:16px; align-items:flex-start;}
.news-crest{width:66px; height:66px; border-radius:50%; object-fit:contain; background:var(--surface-2); flex-shrink:0; padding:6px;}
.news-crest-group{display:flex; flex-shrink:0;}
.news-crest-group .news-crest{margin-left:-20px;}
.news-crest-group .news-crest:first-child{margin-left:0;}
.news-title{font-size:15px; font-weight:600; margin-bottom:6px;}
.news-body{font-size:13.5px; color:var(--muted); line-height:1.6;}

/* Hub pages (Premier League / Championship grids) */
.hub-header{padding:40px 0 28px; border-bottom:1px solid var(--hairline); position:relative;
  background-image: linear-gradient(180deg, rgba(11,14,20,0.86), rgba(11,14,20,0.95) 70%, var(--bg) 100%), var(--hub-banner, none);
  background-size:cover; background-position:center 35%;}
.hub-header h1{font-size:36px; margin-bottom:8px;}
.hub-header p{color:var(--muted); font-size:15px;}
.crest-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; padding:48px 0 96px;}
.crest-tile{
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; color:var(--ink); padding:20px 10px; border-radius:16px; transition:background .15s ease;
}
.crest-tile:hover{background:var(--surface-2);}
.crest-wrap{width:100%; max-width:220px; aspect-ratio:1; display:flex; align-items:center; justify-content:center;}
.crest-wrap img{width:100%; height:100%; object-fit:contain;}
.crest-tile.placeholder .crest-wrap{border:2px dashed var(--hairline); border-radius:50%; opacity:0.35;}
@media (max-width:720px){.crest-grid{grid-template-columns:repeat(2, 1fr);}}

/* Team page */
.team-header{position:relative; overflow:hidden; border-bottom:1px solid var(--hairline); min-height:380px; display:flex; align-items:flex-end;}
.team-header-bg{position:absolute; inset:0; z-index:0;}
.team-header-bg .bg-crest{
  position:absolute; right:-8%; top:-15%; width:65%; height:140%; object-fit:contain; object-position:center;
  opacity:0.95;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 60% 40%, black 35%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 60% at 60% 40%, black 35%, transparent 72%);
}
.team-header-bg .bg-mascot{
  position:absolute; left:-5%; top:-10%; width:75%; height:130%; object-fit:cover; object-position:50% 42%;
  opacity:0.88;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 75%, transparent), linear-gradient(180deg, black 55%, transparent 98%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 75%, transparent), linear-gradient(180deg, black 55%, transparent 98%);
  mask-composite: intersect;
}
.team-header-scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(11,14,20,0.12) 0%, rgba(11,14,20,0.45) 45%, var(--bg) 96%),
    linear-gradient(90deg, var(--bg) 0%, rgba(11,14,20,0.4) 22%, transparent 46%);
}
.team-header-inner{position:relative; z-index:2; padding:64px 0 30px; width:100%;}
.team-name-block .division-badge{display:inline-block; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  color:var(--team-primary-text); background:color-mix(in srgb, var(--team-primary) 16%, transparent); padding:5px 11px; border-radius:5px; margin-bottom:12px;}
.team-name-block h1{font-size:44px; line-height:1.05; margin-bottom:6px;}
.team-name-block .nickname{font-size:16px; color:var(--muted); margin-bottom:4px;}
.team-name-block .meta{font-size:13px; color:var(--muted);}
.team-flare{height:3px; background:linear-gradient(90deg, var(--team-primary), color-mix(in srgb, var(--team-primary) 40%, white), var(--team-primary));}

/* Team kits */
.kit-grid{display:grid; grid-template-columns:1fr 1fr; gap:32px; max-width:900px; margin:0 auto;}
.kit-card{background:var(--surface); border:1px solid var(--hairline); border-radius:14px; padding:0; overflow:hidden; display:flex; flex-direction:column;}
.kit-card-img-wrap{position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; overflow:hidden; background:radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--team-primary) 12%, transparent), transparent 70%);}
.kit-card-img-wrap img{width:96%; height:96%; object-fit:contain;}
.kit-card-info{padding:18px 20px 22px; text-align:center; border-top:1px solid var(--hairline);}
.kit-card-year{font-family:'JetBrains Mono', monospace; font-size:13px; font-weight:700; color:var(--team-primary-text); margin-bottom:4px;}
.kit-card-label{font-size:16px; font-weight:600; color:var(--ink);}
.kit-placeholder{color:var(--muted); font-size:14px; padding:20px 0; text-align:center;}
.kit-coming-soon{color:var(--muted); font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:1px; text-align:center; line-height:1.6; opacity:0.55; border:2px dashed var(--hairline); border-radius:50%; width:70%; height:70%; display:flex; align-items:center; justify-content:center;}
/* Trophy case - big, full-bleed image, plain text, no design */
.trophy-case{display:flex; flex-direction:column; gap:36px;}
.trophy-title-card{
  display:flex; flex-direction:column; align-items:center; text-align:center; width:100%;
}
.trophy-title-card .trophy-img{width:100%; max-height:420px; object-fit:contain; margin-bottom:16px;}
.trophy-title-card .trophy-title{font-size:17px; font-weight:600; color:var(--ink);}
.no-trophies{color:var(--muted); font-size:14px; text-align:center;}

/* Roster - broadcast style, combined single panel */
.roster-section{padding-bottom:0;}
.roster-panel{
  position:relative; width:100%; overflow:hidden; margin:20px 0 0;
  min-height:560px; padding:36px 5% 36px calc(32% + 48px);
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--team-primary) 88%, var(--team-secondary) 12%) 0%,
      color-mix(in srgb, var(--team-primary) 45%, transparent) 30%,
      color-mix(in srgb, var(--team-primary) 12%, transparent) 48%,
      transparent 62%);
}
.roster-panel-img{position:absolute; left:0; top:0; bottom:0; width:32%; overflow:hidden;}
.roster-panel-img img{width:100%; height:100%; object-fit:cover; object-position:50% 0%; display:block;}

.roster-positions{display:grid; grid-template-columns:repeat(2, 1fr); gap:26px 40px; position:relative; z-index:1;}
.roster-pos-label{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--flare-mid); margin-bottom:10px; padding-bottom:8px; border-bottom:1px solid var(--hairline);}
.roster-player-row{display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:7px 0; font-size:14px;}
.roster-player-name{font-weight:600;}
.roster-player-row.featured .roster-player-name{color:#fff; font-weight:700;}
.roster-player-meta{font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--muted); white-space:nowrap; display:flex; gap:8px; flex-shrink:0;}
.roster-meta-club{width:2.4em; text-align:left;}
.roster-meta-pick{width:4.2em; text-align:right;}
@media (max-width:800px){
  .roster-panel{padding:32px 5% 32px calc(40% + 32px); min-height:480px;}
  .roster-panel-img{width:40%;}
  .roster-positions{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .roster-panel{padding:220px 5% 28px; min-height:0;}
  .roster-panel-img{width:100%; height:220px;}
  .roster-panel{
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--team-primary) 80%, var(--team-secondary) 12%) 0%,
        color-mix(in srgb, var(--team-primary) 35%, transparent) 55%,
        transparent 78%);
  }
}

.stats{padding:28px 0 8px; border-bottom:1px solid var(--hairline);}
.stats-division-block{padding:20px 0;}
.stats-division-block + .stats-division-block{border-top:1px solid var(--hairline);}
.stats-division-heading{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--flare-mid);
  margin-bottom:14px;
}
.stats-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:16px;}
.stat-card{background:var(--surface); border:1px solid var(--hairline); border-radius:10px; padding:16px; text-align:center;
  text-decoration:none; color:inherit; display:block; transition:border-color .15s;}
.stat-card:hover{border-color:var(--team-primary);}
.stat-value{font-family:'JetBrains Mono', monospace; font-size:22px; font-weight:700; color:var(--team-primary-text); margin-bottom:4px;}
.stat-label{font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:6px;}
.stat-rank{font-size:11px; color:var(--muted); border-top:1px solid var(--hairline); padding-top:6px; margin-top:2px;}
.stat-rank strong{color:var(--ink);}

.section{padding:36px 0; border-bottom:1px solid var(--hairline);}
.section-heading{font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); margin-bottom:20px;}

.season{margin-bottom:32px;}
.season:last-child{margin-bottom:0;}
.season-eyebrow{display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap;}
.season-year{font-family:'JetBrains Mono', monospace; font-size:13px; font-weight:700; color:var(--team-primary-text);
  background:color-mix(in srgb, var(--team-primary) 14%, transparent); padding:4px 10px; border-radius:5px;}
.season-context{font-size:12px; color:var(--muted); font-family:'JetBrains Mono', monospace;}
.season h3{font-size:19px; font-weight:600;}
.season p{font-size:14.5px; color:var(--muted); line-height:1.75; max-width:720px;}

/* History / trophy room */
.history-table{width:100%; border-collapse:collapse; margin-top:8px;}
.history-table th{font-size:11px; text-transform:uppercase; letter-spacing:0.5px; color:var(--muted); text-align:left; padding:10px 14px; border-bottom:1px solid var(--hairline);}
.history-table td{font-size:13.5px; padding:12px 14px; border-bottom:1px solid var(--hairline);}
.history-table tr:hover td{background:var(--surface);}
.history-table .club-cell{display:flex; align-items:center; gap:10px;}
.club-cell{display:flex; align-items:center; gap:10px;}
.club-crest{width:26px; height:26px; border-radius:50%; object-fit:contain; background:var(--surface-2); flex-shrink:0;}
.relegation-row td{background:rgba(255,90,54,0.08);}
.relegation-row:hover td{background:rgba(255,90,54,0.14);}
.table-key{display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); margin-top:14px;}
.key-swatch{width:14px; height:14px; border-radius:3px; display:inline-block;}
.relegation-swatch{background:rgba(255,90,54,0.25); border:1px solid rgba(255,90,54,0.4);}
.history-table th.sortable{cursor:pointer; user-select:none; position:relative;}
.history-table th.sortable:hover{color:var(--ink);}
.history-table th.sortable::after{content:'\2195'; margin-left:5px; opacity:0.4; font-size:10px;}
.history-table th.sort-asc::after{content:'\2191'; opacity:1; color:var(--flare-mid);}
.history-table th.sort-desc::after{content:'\2193'; opacity:1; color:var(--flare-mid);}
.division-tag{font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--muted);
  background:var(--surface-2); padding:3px 8px; border-radius:4px; margin-left:8px;}

.h2h-scroll{overflow-x:auto;}
.h2h-table{white-space:nowrap;}
.h2h-table th{text-align:center; padding:8px 10px; font-size:11px;}
.h2h-table td{text-align:center; padding:8px 10px; font-size:12.5px;}
.h2h-name{text-align:left !important; font-weight:600;}
.h2h-sub{display:block; font-size:10.5px; color:var(--muted); font-weight:400;}
.h2h-diag{color:var(--muted); background:var(--surface);}
.h2h-win{background:rgba(111,227,255,0.14); color:var(--flare-edge); font-weight:700;}
.h2h-loss{background:rgba(255,90,54,0.10); color:var(--muted);}
.h2h-tie{color:var(--muted);}

/* Season tabs */
.season-tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px;}
.season-tab{
  font-size:13px; font-weight:600; padding:8px 16px; border-radius:999px;
  background:var(--surface); border:1px solid var(--hairline); color:var(--muted);
  text-decoration:none; transition:all .15s;
}
.season-tab:hover{color:var(--ink); border-color:var(--muted);}
.season-tab.active{background:var(--ink); color:var(--bg); border-color:var(--ink);}

/* Premier League Champions banner */
.pl-champions-banner{
  display:flex; align-items:stretch; gap:0; background:var(--surface); border:1px solid var(--hairline);
  border-radius:16px; overflow:hidden; margin-bottom:44px;
}
.pl-champions-img{width:300px; object-fit:cover; flex-shrink:0;
  -webkit-mask-image:linear-gradient(90deg, black 75%, transparent 100%);
  mask-image:linear-gradient(90deg, black 75%, transparent 100%);}
.pl-champions-img.contain-trophy{
  object-fit:contain; padding:24px;
  background:radial-gradient(circle, rgba(255,176,32,0.16), transparent 72%);
  -webkit-mask-image:none; mask-image:none;
}
.pl-champions-list{flex:1; padding:20px 28px; display:flex; flex-direction:column; gap:14px; justify-content:center;}
.pl-champion-row{display:flex; align-items:center; gap:16px; font-size:14px;}
.pl-champion-season{font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--flare-mid); font-weight:700; width:48px; flex-shrink:0;}
@media (max-width:640px){
  .pl-champions-banner{flex-direction:column;}
  .pl-champions-img{width:100%; height:200px;}
}

/* Versus / Head-to-Head */
.versus-section{padding-bottom:0;}
.h2h-picker{display:flex; align-items:center; justify-content:center; gap:24px; margin-bottom:32px;}
.h2h-picker select{
  appearance:none; -webkit-appearance:none;
  background:var(--surface); border:1px solid var(--hairline); color:var(--ink); font-size:16px; font-weight:700;
  padding:14px 40px 14px 20px; border-radius:12px; min-width:230px; font-family:inherit; cursor:pointer;
  text-align:center; text-align-last:center;
  background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:calc(100% - 20px) center, calc(100% - 14px) center;
  background-size:6px 6px, 6px 6px; background-repeat:no-repeat;
  transition:border-color .15s ease;
}
.h2h-picker select:hover, .h2h-picker select:focus{border-color:var(--flare-mid); outline:none;}
.h2h-vs{font-family:'Anton', sans-serif; font-size:20px; color:var(--flare-mid);}

/* Broadcast matchup card -- full-bleed, edge to edge */
.h2h-broadcast{position:relative; overflow:hidden; background:#0b0e14; min-height:600px; width:100%;}
.h2h-bc-bg{position:absolute; inset:0; z-index:0;}
.h2h-bc-hero{position:absolute; top:0; height:100%; width:52%; object-fit:cover; opacity:0.18; filter:saturate(0.6);}
.h2h-bc-hero-a{left:0;}
.h2h-bc-hero-b{right:0;}
.h2h-broadcast::before{
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg,
    color-mix(in srgb, var(--team-a) 65%, transparent) 0%,
    transparent 46%, transparent 54%,
    color-mix(in srgb, var(--team-b) 65%, transparent) 100%);
}
.h2h-broadcast::after{
  content:''; position:absolute; inset:0; z-index:1;
  background:radial-gradient(ellipse at center, transparent 30%, rgba(6,8,12,0.55) 100%);
}
.h2h-bc-main{
  position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between;
  padding:64px 6%; gap:24px; min-height:480px;
}
.h2h-bc-side{display:flex; flex-direction:column; align-items:center; gap:22px; width:300px; text-decoration:none; flex-shrink:0;}
.h2h-bc-crest{width:225px; height:225px; object-fit:contain; filter:drop-shadow(0 8px 30px rgba(0,0,0,0.45));}
.h2h-bc-name{
  font-size:19px; font-weight:700; color:#fff; text-align:center; line-height:1.3;
  display:flex; align-items:flex-start; justify-content:center; min-height:2.6em; width:100%;
}
.h2h-bc-side:hover .h2h-bc-name{color:var(--flare-mid);}
.h2h-bc-record{display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px;}
.h2h-record-big{font-family:'Anton', sans-serif; font-size:clamp(52px, 8vw, 96px); line-height:1; color:#fff; text-shadow:0 4px 24px rgba(0,0,0,0.45);}
.h2h-record-sub{font-size:14px; color:rgba(255,255,255,0.65);}
.h2h-bc-footer{
  position:relative; z-index:2; display:flex; justify-content:center; gap:clamp(28px, 7vw, 72px);
  padding:22px 24px 30px; border-top:1px solid rgba(255,255,255,0.08); flex-wrap:wrap;
}
.h2h-foot-stat{display:flex; flex-direction:column; align-items:center; text-align:center;}
.h2h-foot-dash{font-family:'Anton', sans-serif; font-size:30px; color:#fff; line-height:1.2;}
.h2h-foot-label{font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:rgba(255,255,255,0.55); margin-top:3px;}
@media (max-width:700px){
  .h2h-broadcast{min-height:0;}
  .h2h-bc-main{flex-direction:column; padding:40px 24px; min-height:0;}
  .h2h-bc-crest{width:150px; height:150px;}
  .h2h-bc-hero{width:100%; height:50%;}
  .h2h-bc-hero-a{top:0; left:0;}
  .h2h-bc-hero-b{top:auto; bottom:0; right:0;}
  .h2h-broadcast::before{background:linear-gradient(180deg,
    color-mix(in srgb, var(--team-a) 65%, transparent) 0%,
    transparent 46%, transparent 54%,
    color-mix(in srgb, var(--team-b) 65%, transparent) 100%);}
}

/* Compact all-club grid */
.h2h-scroll{overflow-x:auto;}
.h2h-grid-table{border-collapse:collapse; font-size:11.5px;}
.h2h-grid-table th, .h2h-grid-table td{padding:6px 5px; text-align:center; border-bottom:1px solid var(--hairline); white-space:nowrap;}
.h2h-grid-table thead th{vertical-align:bottom; padding-bottom:8px;}
.h2h-grid-headcrest{width:22px; height:22px; object-fit:contain;}
.h2h-grid-rowhead{
  text-align:left !important; font-weight:700; font-size:12px; padding-right:14px !important;
  position:sticky; left:0; background:var(--bg); z-index:1;
}
.h2h-grid-rowhead .club-cell{gap:7px;}
.h2h-grid-rowhead .club-crest{width:18px; height:18px;}
.h2h-grid-self{color:var(--muted); background:var(--surface-2);}
.h2h-grid-none{color:var(--hairline); background:transparent;}
.h2h-grid-win{color:#3DDC84; font-family:'JetBrains Mono', monospace; font-weight:700;}
.h2h-grid-loss{color:#FF5A36; font-family:'JetBrains Mono', monospace; font-weight:700;}
.h2h-grid-even{color:var(--muted); font-family:'JetBrains Mono', monospace;}

@media (max-width:640px){
  .h2h-picker{flex-direction:column; gap:12px;}
  .h2h-card{gap:20px;}
}

/* Draft page */
.draft-year{background:var(--surface); border:1px solid var(--hairline); border-radius:14px; padding:0; margin-bottom:20px; overflow:hidden;}
.draft-year summary{
  list-style:none; cursor:pointer; padding:20px 24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap;
  transition:background .12s ease;
}
.draft-year summary::-webkit-details-marker{display:none;}
.draft-year summary::before{content:'\25B8'; display:inline-block; color:var(--muted); transition:transform .15s ease; font-size:14px;}
.draft-year[open] summary::before{transform:rotate(90deg);}
.draft-year summary:hover{background:var(--surface-2);}
.draft-year-label{font-family:'Anton', sans-serif; font-size:20px; letter-spacing:0.3px;}
.draft-year-sub{color:var(--muted); font-size:13px;}
.draft-year-body{padding:0 24px 28px;}

.draft-pick-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:18px;}
.draft-pick-card{display:block; text-decoration:none; color:inherit; background:var(--surface-2); border-radius:12px; overflow:hidden; border:1px solid var(--hairline); transition:border-color .12s ease;}
.draft-pick-card:hover{border-color:var(--flare-mid);}
.draft-pick-card img{width:100%; aspect-ratio:2/3; object-fit:cover; display:block;}
.draft-pick-info{padding:10px 12px;}
.draft-pick-player{font-size:13px; font-weight:700;}
.draft-pick-team{font-size:11.5px; color:var(--muted); margin-top:2px;}

/* Power Rankings */
.power-section{padding-bottom:0;}
.power-list{display:flex; flex-direction:column; gap:6px; width:100%;}
.power-row{
  position:relative; display:flex; align-items:stretch; gap:0; overflow:hidden;
  background:var(--surface); text-decoration:none; color:inherit; cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}
.power-row:hover{
  transform:scale(1.006);
  box-shadow:0 10px 32px -8px color-mix(in srgb, var(--grade-color, var(--muted)) 60%, transparent);
}
.power-row::before{
  content:''; position:absolute; inset:0; z-index:0;
  background:linear-gradient(90deg,
    color-mix(in srgb, var(--grade-color, var(--muted)) 55%, transparent) 0%,
    color-mix(in srgb, var(--grade-color, var(--muted)) 22%, transparent) 34%,
    transparent 62%);
  transition:opacity .18s ease;
}
.power-row:hover::before{opacity:1.35;}
.power-crest-wrap{
  width:280px; flex-shrink:0; position:relative; overflow:hidden; background:var(--surface-2); z-index:1;
  -webkit-mask-image:linear-gradient(90deg, black 82%, transparent 100%);
  mask-image:linear-gradient(90deg, black 82%, transparent 100%);
}
.power-crest{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform:scale(1.35); display:block; transition:transform .35s ease;
}
.power-row:hover .power-crest{transform:scale(1.45);}
.power-rank{
  position:relative; z-index:1; font-family:'Anton', sans-serif; font-size:44px; color:#fff;
  width:76px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  text-shadow:0 2px 12px rgba(0,0,0,0.4);
}
.power-grade{
  position:relative; z-index:1; font-family:'Anton', sans-serif; font-size:56px; line-height:1; color:#fff;
  width:110px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  text-shadow:0 2px 16px rgba(0,0,0,0.4);
}
.power-info{position:relative; z-index:1; flex:1; min-width:0; padding:22px 28px 22px 0; display:flex; flex-direction:column; justify-content:center;}
.power-team{font-size:19px; font-weight:700; color:var(--ink); transition:color .15s ease;}
.power-row:hover .power-team{color:var(--flare-mid);}
.power-overall{font-size:13.5px; color:var(--ink); opacity:0.88; margin-top:8px; line-height:1.6;}
@media (max-width:700px){
  .power-row{flex-wrap:wrap;}
  .power-row::before{background:linear-gradient(180deg,
    color-mix(in srgb, var(--grade-color, var(--muted)) 75%, transparent) 0%,
    color-mix(in srgb, var(--grade-color, var(--muted)) 30%, transparent) 45%,
    transparent 70%);}
  .power-crest-wrap{
    width:100%; height:150px;
    -webkit-mask-image:linear-gradient(180deg, black 78%, transparent 100%);
    mask-image:linear-gradient(180deg, black 78%, transparent 100%);
  }
  .power-rank{width:56px; font-size:34px;}
  .power-grade{width:auto; font-size:40px; padding:0 12px;}
  .power-info{padding:16px 16px 20px;}
}

/* MEML Cup */
.cup-champion-banner{
  display:flex; align-items:center; gap:28px; background:var(--surface); border:1px solid var(--hairline);
  border-radius:16px; padding:28px 32px; margin-bottom:44px;
}
.cup-trophy-img{width:110px; height:110px; object-fit:contain; flex-shrink:0;}
.cup-champion-eyebrow{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:var(--flare-hot); margin-bottom:8px;}
.cup-champion-name{display:flex; align-items:center; gap:10px; font-family:'Anton', sans-serif; font-size:32px; letter-spacing:0.5px;}
.cup-champion-name img{width:40px; height:40px; object-fit:contain;}
.cup-champion-sub{color:var(--muted); font-size:14px; margin-top:8px;}

.cup-bracket{display:flex; gap:28px; overflow-x:auto; padding-bottom:8px;}
.cup-round{display:flex; flex-direction:column; gap:20px; min-width:240px; flex:1;}
.cup-round-label{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:4px;}
.cup-match{
  display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--hairline);
  border-radius:10px; overflow:hidden;
}
.cup-round:nth-child(2) .cup-match{margin-top:52px; margin-bottom:52px;}
.cup-round:nth-child(3) .cup-match{margin-top:136px;}
.cup-team{
  display:flex; align-items:center; gap:8px; padding:10px 12px; text-decoration:none; color:var(--muted);
  border-bottom:1px solid var(--hairline); font-size:13px; font-weight:600; transition:background .12s ease;
}
.cup-team:last-child{border-bottom:none;}
.cup-team:hover{background:var(--surface-2);}
.cup-team.winner{color:var(--ink); background:rgba(255,176,32,0.08);}
.cup-seed{font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--muted); width:16px; flex-shrink:0;}
.cup-team img{width:22px; height:22px; object-fit:contain; flex-shrink:0;}
.cup-team-name{flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.cup-score{font-family:'JetBrains Mono', monospace; font-size:13px; font-weight:700;}
.cup-team.winner .cup-score{color:var(--flare-hot);}
@media (max-width:900px){
  .cup-bracket{flex-direction:column;}
  .cup-round:nth-child(2) .cup-match, .cup-round:nth-child(3) .cup-match{margin:0;}
  .cup-champion-banner{flex-direction:column; text-align:center;}
}

/* Record book */
.record-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:20px;}
.record-card{background:var(--surface); border:1px solid var(--hairline); border-radius:12px; padding:18px 20px;}
.record-title{font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--flare-mid); margin-bottom:12px;}
.record-row{display:flex; align-items:center; gap:10px; padding:6px 0; font-size:13px; border-bottom:1px solid var(--hairline);}
.record-row:last-child{border-bottom:none;}
.record-rank{font-family:'JetBrains Mono', monospace; color:var(--muted); width:16px; flex-shrink:0;}
.record-name{flex:1; color:var(--ink);}
.record-sub{font-family:'JetBrains Mono', monospace; color:var(--muted); font-size:12px;}
.record-value{font-family:'JetBrains Mono', monospace; font-weight:700; color:var(--ink); min-width:44px; text-align:right;}
.history-table .club-crest{width:26px; height:26px; border-radius:50%; object-fit:contain; background:var(--surface-2); flex-shrink:0;}
.record-row .club-crest{width:22px; height:22px; border-radius:50%; object-fit:contain; background:var(--surface-2); flex-shrink:0;}
.mono-cell{font-family:'JetBrains Mono', monospace;}

footer{border-top:1px solid var(--hairline); padding:28px 0; text-align:center; color:var(--muted); font-size:12px;}

@media (max-width: 640px){
  .stats-grid{grid-template-columns:repeat(2, 1fr);}
  .nav-links{display:none;}
}
