:root {
  --red: #DA020E;
  --red-dark: #8E0010;
  --navy: #0A0A0A;
  --gold: #FFFFFF;
  --gold-2: #FFFFFF;
  --bg: #0A0A0A;
  --bg-2: #141414;
  --paper: #171717;
  --ink: #F7F7F7;
  --muted: #C4C4C4;
  --line: rgba(255, 255, 255, 0.14);
  --live: #DA020E;
  --win: #3dd68c;
  --draw: #d0d0d0;
  --lose: #ff6b6b;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font: "Anuphan", system-ui, sans-serif;
  --display: "Outfit", "Anuphan", system-ui, sans-serif;
  --pad-b: calc(76px + env(safe-area-inset-bottom));
  --topbar: rgba(10, 10, 10, 0.92);
  --mobile-nav: rgba(10, 10, 10, 0.96);
  --canvas: #111111;
  --score-soon: #FFFFFF;
  --card-hover: rgba(218, 2, 14, 0.18);
  --tab-active: #FFFFFF;
  --link: #FFFFFF;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #F6F6F6;
  --bg-2: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #111111;
  --muted: #5C5C5C;
  --line: rgba(0, 0, 0, 0.1);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  --topbar: rgba(255, 255, 255, 0.94);
  --mobile-nav: rgba(255, 255, 255, 0.96);
  --canvas: #FFFFFF;
  --score-soon: #DA020E;
  --card-hover: rgba(218, 2, 14, 0.06);
  --tab-active: #111111;
  --gold: #DA020E;
  --gold-2: #DA020E;
  --win: #0f8a54;
  --draw: #5c5c5c;
  --lose: #c0392b;
  --link: #DA020E;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.site {
  font-family: var(--font);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(218, 2, 14, 0.42), transparent 56%),
    radial-gradient(720px 380px at 100% 0%, rgba(218, 2, 14, 0.16), transparent 52%),
    var(--bg);
  color: var(--ink);
  padding-bottom: var(--pad-b);
}
html[data-theme="light"] body.site {
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(218, 2, 14, 0.12), transparent 56%),
    linear-gradient(180deg, #FFFFFF, var(--bg) 280px),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container-xl {
  max-width: 960px;
}
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px);
  background: var(--topbar);
  border-bottom: 3px solid var(--red);
}
.topbar-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; box-shadow: 0 0 0 2px var(--gold);
}
.brand-text { display: flex; align-items: baseline; gap: 2px; line-height: 1; }
.brand-text strong {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.02em;
}
.brand-text small { color: var(--gold-2); font-weight: 600; }
.nav-desk { display: none; gap: 6px; margin-left: auto; }
.nav-desk a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600;
}
.nav-desk a.active, .nav-desk a:hover {
  color: var(--ink); background: rgba(239, 1, 7, 0.16);
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--gold-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--ink); }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
.nav-toggle {
  background: transparent; border: 0; color: var(--ink); font-size: 1.6rem;
}
.menu-canvas { background: var(--canvas); color: var(--ink); }
.menu-canvas .btn-close { filter: none; }
html:not([data-theme="light"]) .menu-canvas .btn-close { filter: invert(1); }
.menu-canvas a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600;
}

.hero {
  position: relative; overflow: hidden;
  min-height: min(78vh, 620px);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.78) 55%, rgba(0,0,0,.94)),
    url("/assets/hero.jpg?v=30") center/cover no-repeat;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(239,1,7,.38), transparent 52%),
    radial-gradient(ellipse at 82% 30%, rgba(255,255,255,.32), transparent 48%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 44px 0 40px; width: 100%; }
.hero-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  background: linear-gradient(165deg, rgba(0,0,0,.55), rgba(0,0,0,.82));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
  overflow: hidden;
}
.hero-panel::before, .hero-panel::after {
  content: "";
  position: absolute;
  width: 88px; height: 88px;
  border: 2px solid rgba(255,255,255,.45);
  pointer-events: none;
}
.hero-panel::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hero-panel::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.hero-comp {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; color: #f4f1ea; font-weight: 600;
}
.hero .kicker, .hero .hero-sub, .hero .hero-club strong { color: #f4f1ea; }
.kicker {
  display: flex; gap: 10px; align-items: center; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--gold-2); font-weight: 700; margin: 0;
}
.hero-scoreline {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: center; margin: 22px 0 6px;
}
.hero-club {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.hero-club strong { font-size: clamp(1rem, 2.4vw, 1.35rem); }
.hero-club small { color: rgba(244,241,234,.62); letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }
.hero-score {
  font-family: var(--display); font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800;
  color: var(--ink); min-width: 110px; text-align: center; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero .hero-score { color: #fff; text-shadow: 0 4px 18px rgba(0,0,0,.45); }
.hero-vs {
  font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800;
  letter-spacing: .28em; color: var(--gold-2); text-align: center;
}
.hero-sub { color: var(--muted); margin: 8px 0 0; text-align: center; }
.hero .hero-sub { color: rgba(244,241,234,.78); }
.hero-actions { display: flex; justify-content: center; margin-top: 18px; }
.countdown {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 4px;
}
.cd-unit {
  min-width: 64px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 14px;
  padding: 10px 8px 8px;
  text-align: center;
}
.cd-unit b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.cd-unit span {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 700;
}
.btn-gold {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--red);
  color: #fff; font-weight: 700; border-radius: 999px; padding: 10px 18px;
}
.btn-gold:hover { background: var(--red-dark); color: #fff; }

.section { padding: 28px 0 8px; }
.section h2 {
  font-family: var(--display); font-size: 1.35rem; margin: 0 0 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.section h2 a {
  color: var(--link); font-size: .9rem; font-family: var(--font); font-weight: 700;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.section h2 a:hover { color: var(--red); }

.match-list { display: grid; gap: 10px; }
.match-card {
  display: grid;
  grid-template-columns: minmax(92px, 150px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.match-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: transparent;
}
.match-card.res-w::before { background: var(--win); }
.match-card.res-d::before { background: var(--draw); }
.match-card.res-l::before { background: var(--lose); }
.match-card.is-live {
  border-color: rgba(239,1,7,.55);
  box-shadow: 0 0 0 1px rgba(239,1,7,.25), var(--shadow);
}
.match-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--card-hover), transparent 42%), var(--paper);
}
.match-card .comp {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0;
  font-weight: 600; font-size: .82rem; color: var(--muted);
}
.match-card .comp span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.match-card .comp time {
  flex: 1 0 100%;
  margin: 0;
  padding-left: 28px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1.2;
}
html[data-theme="light"] .match-card .comp time { color: var(--red); }
.match-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.side {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .98rem; min-width: 0;
}
.side.home { justify-content: flex-end; text-align: right; }
.side.away { justify-content: flex-start; text-align: left; }
.side span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-mid {
  min-width: 72px;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.score-mid.soon { color: var(--score-soon); font-size: 1.05rem; }
.score-mid.soon b { display: block; }
.score-mid.soon small {
  display: block;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold-2);
  margin-top: 2px;
}
.score-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  justify-items: center;
  column-gap: 6px;
  min-width: 72px;
}
.score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.15em;
}
.score-col b {
  font-weight: inherit;
  font-size: inherit;
  line-height: 1.05;
}
.score-sep { line-height: 1.05; }
.pen-score {
  display: block;
  font-family: var(--font);
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold-2);
  margin-top: 3px;
  line-height: 1;
  letter-spacing: .02em;
}
html[data-theme="light"] .pen-score { color: var(--red); }
.hero-score .score-pair {
  min-width: 128px;
  column-gap: 10px;
}
.hero-score .pen-score {
  font-size: clamp(.72rem, 2vw, .95rem);
  margin-top: 8px;
}
.match-card .when {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  flex-wrap: nowrap; white-space: nowrap;
}
.watch-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.match-card .watch-line {
  grid-column: 1 / -1;
}
.watch-kicker {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.watch-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.watch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip, var(--gold)) 42%, var(--line));
  background: color-mix(in srgb, var(--chip, var(--gold)) 12%, var(--paper));
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip, var(--gold));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip, var(--gold)) 18%, transparent);
  flex: none;
}
.hero .watch-line,
.match-stage .watch-line {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 12px;
}
.hero .watch-kicker,
.match-stage .watch-kicker {
  color: var(--gold-2);
}
.hero .watch-chip,
.match-stage .watch-chip {
  background: rgba(7, 11, 22, .45);
  border-color: color-mix(in srgb, var(--chip, var(--gold-2)) 50%, rgba(255,255,255, .28));
  color: rgba(244, 241, 234, .92);
}

.crest, .crest-sm, .crest-lg, .crest-xs {
  object-fit: contain; background: #fff; border-radius: 50%; flex: none;
}
.crest { width: 36px; height: 36px; }
.crest-sm { width: 20px; height: 20px; }
.crest-lg { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--gold); }
.crest-xl { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--gold); }
.crest-xs { width: 22px; height: 22px; }
.crest-ph {
  display: inline-block; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--red));
}

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 9px; font-size: .75rem; font-weight: 700;
  background: rgba(127,127,127,.12); color: var(--muted);
}
.pill.live { background: var(--red); color: #fff; animation: pulse 1.6s ease infinite; }
.pill.done { background: rgba(127,127,127,.14); color: var(--muted); }
.pill.ns { background: rgba(255,255,255,.1); color: #fff; }
html[data-theme="light"] .pill.ns { background: rgba(218,2,14,.08); color: var(--red); }
.r-w { background: rgba(61,214,140,.18); color: var(--win); }
.r-d { background: rgba(212,177,95,.18); color: var(--draw); }
.r-l { background: rgba(240,113,120,.18); color: var(--lose); }
@keyframes pulse { 50% { opacity: .7; } }

.table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.standings { width: 100%; border-collapse: collapse; background: var(--paper); }
.standings th, .standings td { padding: 10px 8px; text-align: center; font-size: .92rem; }
.standings th { color: var(--muted); font-weight: 600; }
.standings td.team-cell, .standings th:nth-child(2) { text-align: left; }
.team-cell { display: flex; align-items: center; gap: 8px; }
.standings tr.us { background: rgba(239,1,7,.16); }
.standings .pts { font-weight: 800; color: var(--gold-2); }

.league-tabs { display: flex; gap: 8px; overflow: auto; padding-bottom: 12px; }
.league-tabs a, .league-tabs button {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; white-space: nowrap; font-weight: 600;
}
.league-tabs a.active, .league-tabs button.active {
  background: var(--red); border-color: var(--red); color: #fff;
}

.timeline {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 14px;
  overflow: hidden;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52px;
  bottom: 18px;
  width: 2px;
  background: var(--line);
  transform: translateX(-1px);
}
.tl-head, .tl-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.tl-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: .92rem;
}
.tl-club {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.tl-club span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-club.home { justify-content: flex-end; text-align: right; }
.tl-club.away { justify-content: flex-start; }
.tl-mid { text-align: center; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.tl-period {
  position: relative; z-index: 1;
  width: max-content; margin: 14px auto 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .08em;
  color: var(--gold-2);
}
.tl-row { min-height: 56px; }
.tl-min {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.tl-min span {
  min-width: 44px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: .78rem;
  color: var(--gold-2);
  white-space: nowrap;
}
.tl-cell { padding: 5px 8px; display: flex; min-width: 0; }
.tl-cell.home { justify-content: flex-end; }
.tl-cell.away { justify-content: flex-start; }
.tl-ev {
  display: flex; align-items: center; gap: 8px;
  max-width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 9px;
}
.tl-text { min-width: 0; display: flex; flex-direction: column; }
.tl-text strong {
  display: block;
  font-size: .92rem;
  line-height: 1.2;
}
.tl-kind, .tl-sub {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.25;
}
.tl-row.home .tl-text { text-align: right; align-items: flex-end; }
.tl-row.away .tl-text { text-align: left; align-items: flex-start; }
.tl-ev i { flex: none; font-size: 1.05rem; }
.tl-ev.ev-card .yellow { color: #c9a227; }
.tl-ev.ev-card .red { color: var(--red); }
.tl-ev.ev-subst i { color: var(--navy); }
html[data-theme="light"] .tl-ev.ev-subst i { color: #111; }
.tl-row.is-goal { min-height: 68px; }
.tl-ev.is-goal {
  gap: 10px;
  padding: 10px 12px;
  border-color: rgba(255,255,255, .55);
  background:
    linear-gradient(120deg, rgba(239, 1, 7, .28), rgba(255,255,255, .16) 55%, rgba(255,255,255,.08));
  box-shadow: 0 8px 22px rgba(239, 1, 7, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.tl-row.away .tl-ev.is-goal {
  background:
    linear-gradient(240deg, rgba(239, 1, 7, .28), rgba(255,255,255, .16) 55%, rgba(255,255,255,.08));
}
html[data-theme="light"] .tl-ev.is-goal {
  background: linear-gradient(120deg, rgba(218, 2, 14, .12), rgba(218, 2, 14, .05));
  box-shadow: 0 8px 18px rgba(159, 11, 18, .1);
}
.tl-ev.is-goal .tl-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.tl-score {
  display: inline-block;
  margin: 5px 0 3px;
  padding: 2px 9px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 12px rgba(239, 1, 7, .45);
}
.tl-row.home .tl-score { margin-left: auto; }
.tl-ball {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}
.tl-ball i { font-size: 1.05rem; color: var(--red); }
.tl-ev.is-own {
  background: linear-gradient(120deg, rgba(240, 113, 120, .22), rgba(127, 127, 127, .12));
  border-color: rgba(240, 113, 120, .45);
}
.tl-ev.is-own .tl-ball {
  background: linear-gradient(180deg, #f07178, var(--red));
  color: #fff;
}
.tl-ev.is-own .tl-ball i { color: #fff; }
.tl-min.is-goal span {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 1, 7, .4);
}
.h2h-cap {
  margin: 4px 0 10px;
  color: var(--gold-2);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.h2h-from { margin: 0 0 10px; color: var(--muted); font-weight: 600; }
.h2h-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.h2h-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px 10px;
  text-align: center;
}
.h2h-stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.h2h-stat span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}
.h2h-stat.win b { color: var(--win); }
.h2h-stat.draw b { color: var(--draw); }
.h2h-stat.lose b { color: var(--lose); }
.h2h-goals {
  margin: 0 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}
.h2h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h2h-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
}
.h2h-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
}
.h2h-row.res-w::before { background: var(--win); }
.h2h-row.res-d::before { background: var(--draw); }
.h2h-row.res-l::before { background: var(--lose); }
.h2h-row.is-now { border-color: var(--gold); }
.h2h-row:hover { border-color: var(--gold); }
.h2h-meta { min-width: 0; padding-left: 4px; }
.h2h-meta time { display: block; font-weight: 700; font-size: .88rem; }
.h2h-meta .comp {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: .75rem; font-weight: 600;
  min-width: 0;
}
.h2h-meta .comp { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.h2h-scoreline b {
  font-family: var(--display);
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}
.h2h-scoreline b small {
  display: block;
  font-family: var(--font);
  font-size: .68rem;
  color: var(--gold-2);
  font-weight: 700;
}

.stats { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stats-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.stat-row { margin: 10px 0 14px; }
.stat-vals { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: .9rem; margin-bottom: 6px; }
.stat-vals span { color: var(--muted); text-align: center; }
.stat-vals b:last-child { text-align: right; }
.stat-bars { display: flex; height: 6px; gap: 4px; }
.stat-bars i { display: block; background: var(--red); border-radius: 99px; }
.stat-bars i.r { background: #4b5d86; margin-left: auto; }
html[data-theme="light"] .stat-bars i.r { background: #8a97b3; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.lineup header h3 { margin: 0; font-size: 1.1rem; }
.lineup header p { color: var(--muted); margin: 4px 0 10px; }
.players { list-style: none; margin: 0; padding: 0; }
.players li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.players img, .players .ph {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #1b2438;
}
html[data-theme="light"] .players img, html[data-theme="light"] .players .ph { background: #ece6da; }
.players b { width: 24px; color: var(--gold-2); }
.lineup.has-pitch { padding: 10px; }
.lineup-benches { margin-top: 12px; }
.pitch-stage {
  overflow: hidden;
  border-radius: 16px;
  background: #14532d;
}
.pitch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
}
.pitch-bar em {
  font-style: normal;
  font-weight: 500;
  opacity: .78;
  font-size: .78rem;
}
.pitch-bar .crest-sm { width: 22px; height: 22px; }
.pitch {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      90deg,
      #1f7a3a 0 12.5%,
      #186432 12.5% 25%
    );
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.pitch-mark {
  pointer-events: none;
  position: absolute; inset: 8px;
  border: 1.5px solid rgba(255,255,255,.42);
  border-radius: 4px;
}
.pitch-mark .pitch-mid {
  position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1.5px solid rgba(255,255,255,.42);
}
.pitch-mark .pitch-spot {
  position: absolute; left: 50%; top: 50%;
  width: 18%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(255,255,255,.42);
  border-radius: 50%;
}
.pitch-mark .pitch-box {
  position: absolute; left: 50%;
  width: 46%; height: 14%;
  transform: translateX(-50%);
  border: 1.5px solid rgba(255,255,255,.42);
}
.pitch-mark .pitch-box.is-top { top: 0; border-top: 0; }
.pitch-mark .pitch-box.is-bot { bottom: 0; border-bottom: 0; }
.pitch-half {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6px 2px;
}
.pitch-half.is-home { top: 0; }
.pitch-half.is-away { bottom: 0; }
.pitch-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.pitch-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 72px;
  min-width: 0;
}
.pitch-player .face {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,.28);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pitch-player.kit-us .face {
  background: var(--red);
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0,0,0,.35);
}
.pitch-player.kit-them .face {
  background: #f4f1ea;
  box-shadow: 0 0 0 2px #111, 0 2px 8px rgba(0,0,0,.35);
}
.pitch-player .face img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pitch-player .who {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
}
.pitch-player .no {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 800;
  font-size: .68rem;
  color: #ffe38a;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.pitch-player .nm {
  min-width: 0;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.news-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .news-grid { grid-template-columns: 1fr 1fr; } }
.news-card {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card div { padding: 12px 14px; }
.news-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.news-card p { margin: 0; color: var(--muted); }
.section .news-grid { margin-top: 8px; }

.empty {
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; color: var(--muted);
}
.page-head { padding: 22px 0 0; }
.page-head h1 { font-family: var(--display); font-size: 1.8rem; margin: 0 0 6px; }
.page-head p { color: var(--muted); margin: 0 0 16px; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.page-head .crumbs { margin-bottom: 10px; }
.crumbs a { color: var(--link); }
.crumbs-sep { opacity: .55; }
.match-intro {
  padding: 18px 0 4px;
}
.match-intro h1 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 8px;
}
.match-lead {
  color: var(--muted);
  margin: 0;
  max-width: 46em;
  line-height: 1.6;
  font-size: 0.95rem;
}
.site-intro h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 8px;
}
.site-intro p {
  color: var(--muted);
  margin: 0 0 10px;
  max-width: 46em;
  line-height: 1.6;
}
.site-intro p:last-child { margin-bottom: 0; }
.foot a { color: var(--link); }

.match-article {
  padding-top: 8px;
}
.match-article h2,
.page-article h2,
.faq-block h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 14px;
}
.match-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
@media (min-width: 720px) {
  .match-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.match-facts .fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
}
.match-facts dt {
  font-size: 0.72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}
.match-facts dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}
.match-copy,
.page-article {
  max-width: 46em;
}
.match-copy p,
.page-article > p {
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.page-article {
  padding: 28px 0 12px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.faq-block {
  margin: 22px 0 8px;
  max-width: 46em;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 0 0 6px;
  line-height: 1.4;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 0;
  font-size: 0.9rem;
}
.related-links a { color: var(--link); }

.match-hero {
  position: relative;
  overflow: hidden;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: center;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}
.match-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.78) 52%, rgba(0,0,0,.96)),
    repeating-linear-gradient(-18deg, rgba(239,1,7,.07) 0 14px, transparent 14px 28px),
    url("/assets/hero.jpg?v=30") center/cover no-repeat;
}
.match-hero-glow {
  position: absolute; inset: -18% -8% auto;
  height: 72%;
  background:
    radial-gradient(ellipse at 16% 78%, rgba(239,1,7,.42), transparent 54%),
    radial-gradient(ellipse at 84% 24%, rgba(255,255,255,.34), transparent 48%);
  pointer-events: none;
}
.match-hero.is-live .match-hero-glow {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(239,1,7,.5), transparent 58%),
    radial-gradient(ellipse at 84% 24%, rgba(255,255,255,.28), transparent 48%);
}
.match-stage {
  position: relative;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  background: linear-gradient(165deg, rgba(0,0,0,.58), rgba(0,0,0,.86));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
  overflow: hidden;
}
.match-stage::before, .match-stage::after {
  content: "";
  position: absolute;
  width: 88px; height: 88px;
  border: 2px solid rgba(255,255,255,.48);
  pointer-events: none;
  z-index: 1;
}
.match-stage::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.match-stage::after { right: 12px; bottom: 12px; border-left: 0; border-top: 0; }
.match-hero.is-live .match-stage {
  border-color: rgba(239,1,7,.55);
  box-shadow: 0 0 0 1px rgba(239,1,7,.28), 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1);
}
.match-hero.res-w .match-stage { box-shadow: 0 0 0 1px rgba(61,214,140,.22), 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1); }
.match-hero.res-l .match-stage { box-shadow: 0 0 0 1px rgba(240,113,120,.22), 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.1); }
.match-stage-mark {
  position: absolute;
  right: -28px; bottom: -48px;
  width: 240px; height: 240px;
  object-fit: cover;
  border-radius: 50%;
  opacity: .1;
  pointer-events: none;
  filter: grayscale(.2);
}
.match-stage-top {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 4px;
}
.match-comp {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; color: #f4f1ea; font-weight: 700;
  letter-spacing: .04em;
}
.match-stage-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.match-stage .hero-scoreline { margin: 18px 0 8px; }
.match-stage .hero-club strong { color: #f4f1ea; font-size: clamp(1.05rem, 2.6vw, 1.5rem); }
.match-stage .hero-club small {
  display: block;
  color: rgba(244,241,234,.62);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .68rem;
}
.match-stage .hero-score {
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
}
.match-stage .hero-vs {
  width: clamp(72px, 16vw, 96px);
  height: clamp(72px, 16vw, 96px);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.55);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(0,0,0,.55));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold-2);
  box-shadow: 0 0 24px rgba(255,255,255,.18);
  justify-self: center;
}
.match-stage .countdown { margin: 16px 0 6px; }
.match-stage .cd-unit {
  background: rgba(0,0,0,.38);
  border-color: rgba(255,255,255,.32);
  min-width: 70px;
}
.match-stage .cd-unit b { color: #fff; }
.match-chips {
  position: relative; z-index: 1;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.match-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.38);
  color: rgba(244,241,234,.88);
  font-size: .82rem;
  font-weight: 600;
}
.match-chips i { color: var(--gold-2); }
.match-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.match-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255, 0.1), transparent 38%),
    var(--paper);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
html[data-theme="light"] .match-frame {
  border-color: rgba(218, 2, 14, 0.48);
  background:
    linear-gradient(180deg, rgba(218, 2, 14, 0.08), transparent 36%),
    var(--paper);
}
.match-frame::before,
.match-frame::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255, 0.55);
  pointer-events: none;
  z-index: 3;
}
.match-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.match-frame::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
html[data-theme="light"] .match-frame::before,
html[data-theme="light"] .match-frame::after { border-color: rgba(218, 2, 14, 0.45); }

.match-tabs-frame .tabs.nav-tabs {
  margin: 0;
  padding: 12px 18px 0;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255, 0.12), transparent);
}
.match-tabs-frame .tabs.nav-tabs .nav-item { margin-bottom: 0; }
.match-tabs-frame .tabs.nav-tabs .nav-link,
.match-tabs-frame .tabs.nav-tabs .nav-link:hover,
.match-tabs-frame .tabs.nav-tabs .nav-link:focus,
.match-tabs-frame .tabs.nav-tabs .nav-item.show .nav-link,
.match-tabs-frame .tabs.nav-tabs .nav-link.active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  color: var(--muted) !important;
  border-radius: 0;
  font-weight: 600;
  padding: 10px 14px;
  box-shadow: none;
}
.match-tabs-frame .tabs.nav-tabs .nav-link:hover,
.match-tabs-frame .tabs.nav-tabs .nav-link:focus {
  color: var(--ink) !important;
}
.match-tabs-frame .tabs.nav-tabs .nav-link.active {
  color: var(--tab-active) !important;
  border-bottom-color: var(--red) !important;
  font-weight: 800;
}
.match-tabs-frame .tab-content {
  position: relative;
  z-index: 1;
  padding: 14px 14px 16px;
}
.match-tabs-frame .timeline,
.match-tabs-frame .stats,
.match-tabs-frame .panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.match-tabs-frame .lineup.has-pitch { padding: 0; }

.match-more-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.match-more-col h2 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px 20px 12px;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255, 0.12), transparent);
}
.match-more-col h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 10px rgba(255,255,255, 0.7);
  flex: none;
}
.match-more-col .match-list {
  position: relative;
  z-index: 1;
  padding: 12px 12px 14px;
  flex: 1;
}
.match-more-col .match-card {
  box-shadow: none;
}

.foot {
  margin-top: 32px; padding: 24px 0 12px; color: var(--muted); font-size: .9rem;
  border-top: 1px solid var(--line);
}
.family {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin: 0 0 1rem;
}
.family a {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}
.family a:hover { border-color: var(--red, #DA020E); color: var(--red, #DA020E); }
.family a.is-on {
  background: #DA020E;
  border-color: #DA020E;
  color: #fff;
}
.nav-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--mobile-nav); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.nav-mobile a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .7rem; color: var(--muted);
}
.nav-mobile a.active, .nav-mobile a:hover { color: var(--ink); }
.nav-mobile i { font-size: 1.15rem; }

@media (max-width: 767px) {
  .match-card {
    grid-template-columns: 1fr auto;
  }
  .match-card .comp { grid-column: 1; }
  .match-card .when { grid-column: 2; }
  .match-sides { grid-column: 1 / -1; }
  .match-card .watch-line { grid-column: 1 / -1; }
  .hero .hero-club small { display: none; }
  .match-stage .hero-club small { display: block; }
  .match-hero { min-height: 0; padding: 18px 0 22px; }
  .match-stage { padding: 18px 14px 16px; border-radius: 22px; }
  .match-stage::before, .match-stage::after { width: 52px; height: 52px; }
  .match-frame { border-radius: 18px; }
  .match-frame::before, .match-frame::after { width: 26px; height: 26px; }
  .match-tabs-frame .tabs.nav-tabs { padding: 10px 12px 0; }
  .match-tabs-frame .tab-content { padding: 10px 10px 12px; }
  .match-more-col h2 { padding: 14px 16px 10px; font-size: .82rem; }
  .match-stage-mark { width: 160px; height: 160px; right: -36px; bottom: -50px; }
  .match-chips span { font-size: .75rem; padding: 6px 10px; }
  .crest-xl { width: 72px; height: 72px; }
  .tl-head, .tl-row { grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); }
  .tl-head { font-size: .82rem; }
  .tl-ev { padding: 6px 7px; gap: 6px; }
  .tl-text strong { font-size: .84rem; }
  .h2h-row {
    grid-template-columns: 1fr auto;
  }
  .h2h-meta { grid-column: 1; }
  .h2h-row .pill { grid-column: 2; justify-self: end; }
  .h2h-scoreline { grid-column: 1 / -1; }
  .pitch { min-height: 520px; }
  .pitch-player { width: 58px; }
  .pitch-player .face { width: 30px; height: 30px; }
  .pitch-player .nm, .pitch-player .no { font-size: .58rem; }
  .pitch-bar { font-size: .78rem; padding: 6px 8px; }
}
@media (min-width: 992px) {
  .nav-desk { display: flex; margin-left: auto; }
  .topbar-actions { margin-left: 8px; }
  .nav-mobile { display: none; }
  body.site { padding-bottom: 0; }
}

.muted { color: var(--muted); }
.group-h { margin: 16px 0 8px; font-size: 1rem; color: var(--gold-2); }
.form-check-label { color: var(--muted); }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body p { margin: 0 0 1em; }

.scorers { margin: 8px 0 18px; }
.scorer-team {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 600;
}
.scorer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scorer-row {
  display: grid;
  grid-template-columns: 36px 48px minmax(0,1fr) auto;
  grid-template-areas: "rank face who nums" "bar bar bar bar";
  gap: 8px 10px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px 8px;
}
.scorer-rank {
  grid-area: rank; font-family: var(--display); font-weight: 800;
  text-align: center; color: var(--muted);
}
.scorer-row .face { grid-area: face; width: 48px; height: 48px; }
.scorer-who { grid-area: who; min-width: 0; }
.scorer-who strong {
  display: block; font-size: 1rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.scorer-who .scorer-team { justify-content: flex-start; }
.scorer-nums {
  grid-area: nums; display: flex; gap: 10px;
  font-variant-numeric: tabular-nums; text-align: center;
}
.scorer-nums span { display: flex; flex-direction: column; min-width: 42px; }
.scorer-nums b { font-family: var(--display); font-size: 1.05rem; line-height: 1.1; }
.scorer-nums small { color: var(--muted); font-size: .65rem; letter-spacing: .04em; }
.scorer-nums .stat-g b { color: var(--gold-2); }
.scorer-bar {
  grid-area: bar; display: block; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.16); overflow: hidden;
}
.scorer-bar i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold-2));
}
.scorer-row.is-us {
  border-color: var(--red);
  background: linear-gradient(90deg, rgba(239,1,7,.14), var(--paper) 46%);
}
.face {
  display: block; border-radius: 50%; object-fit: cover; background: var(--bg-2);
}
.face-ph {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--display); font-size: .72rem; font-weight: 800; color: var(--muted);
}
.scorer-row .face-ph { width: 48px; height: 48px; }
.scorers.is-compact .scorer-row {
  grid-template-columns: 28px 36px minmax(0,1fr) auto;
  padding: 7px 8px 6px;
}
.scorers.is-compact .face, .scorers.is-compact .face-ph { width: 36px; height: 36px; }
.scorers.is-compact .scorer-who strong { font-size: .9rem; }
.scorers.is-compact .scorer-nums span { min-width: 36px; }
.scorers.is-compact .scorer-bar { height: 3px; }
h2.scorers-sub { font-family: var(--display); font-size: 1.15rem; margin: 18px 0 10px; }
.squad-strip {
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
  margin: 0 0 18px;
}
.squad-chip {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 12px; background: var(--paper);
}
.squad-chip .face, .squad-chip .face-ph { width: 44px; height: 44px; }
.squad-chip strong { display: block; }
.squad-chip small { color: var(--muted); }
.squad-chip b { margin-left: auto; font-family: var(--display); font-size: 1.4rem; color: var(--gold-2); }
@media (min-width: 800px) {
  .squad-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .scorer-nums span:nth-child(n+3) { display: none; }
  .scorer-row { grid-template-columns: 28px 40px minmax(0,1fr) auto; }
}
