:root {
  --pitch: #c8ff3d;
  --pitch-2: #9ad12a;
  --violet: #7c5cff;
  --cyan: #c8ff3d;
  --gold: #f5c542;
  --bg: #070908;
  --bg-2: #101412;
  --paper: #121816;
  --ink: #eef6ea;
  --muted: #8fa08c;
  --line: rgba(200, 255, 61, 0.16);
  --live: #ff3b5c;
  --win: #c8ff3d;
  --draw: #f5c542;
  --lose: #ff6b81;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: "Anuphan", system-ui, sans-serif;
  --display: "Syne", "Anuphan", system-ui, sans-serif;
  --pad-b: calc(76px + env(safe-area-inset-bottom));
  --topbar: rgba(7, 9, 8, 0.86);
  --mobile-nav: rgba(7, 9, 8, 0.96);
  --canvas: #0c100e;
  --score-soon: var(--muted);
  --card-hover: rgba(200, 255, 61, 0.08);
  --link: #c8ff3d;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f2f4f0;
  --bg-2: #ffffff;
  --paper: #ffffff;
  --ink: #121612;
  --muted: #5b685c;
  --line: rgba(20, 40, 18, 0.12);
  --shadow: 0 8px 22px rgba(16, 28, 14, 0.08);
  --topbar: rgba(242, 244, 240, 0.9);
  --mobile-nav: rgba(255, 255, 255, 0.96);
  --canvas: #ffffff;
  --score-soon: #3d4a3c;
  --card-hover: rgba(80, 140, 20, 0.08);
  --win: #2a7a18;
  --draw: #9a7318;
  --lose: #c0392b;
  --link: #2f6b12;
  --pitch: #2f6b12;
  --cyan: #2f6b12;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.site {
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(200,255,61,.05), transparent 28%),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(200,255,61,.035) 48px),
    linear-gradient(180deg, #070908 0%, #0c100e 50%, #070908 100%);
  color: var(--ink);
  padding-bottom: var(--pad-b);
}
html[data-theme="light"] body.site {
  background:
    linear-gradient(180deg, rgba(47,107,18,.06), transparent 30%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container-xl { max-width: 1200px; }
.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(18px);
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 10px;
  min-height: 68px;
}
.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(--pitch);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.04em;
}
.brand-text small { color: var(--pitch); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-desk { display: none; gap: 4px; 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(200, 255, 61, 0.12);
}
.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(--cyan);
  display: inline-flex; align-items: center; justify-content: center;
}
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); }
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;
}

.league-mast {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 18px;
  background:
    linear-gradient(90deg, rgba(200,255,61,.08), transparent 55%),
    var(--bg-2);
}
.league-mast h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}
.mast-sub { color: var(--muted); margin: 0 0 14px; max-width: 62ch; }
.mast-stats {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
}
.mast-stats li {
  display: flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; color: var(--muted);
  background: var(--paper);
}
.mast-stats b { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.mast-stats li.mast-live { border-color: var(--live); color: var(--live); }
.mast-stats li.mast-live b { color: var(--live); }
.league-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 22px;
  padding-bottom: 8px;
}
.dash-side { min-width: 0; }
.side-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 12px 10px;
}
.side-panel h2 {
  font-family: var(--display); font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 10px; padding: 0 4px;
}
.side-panel h2 a {
  color: var(--link); font-size: .82rem; font-family: var(--font); font-weight: 700;
}
.club-strip {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 2px 12px; scrollbar-width: thin;
}
.club-strip a {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 76px; text-align: center;
  padding: 10px 6px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); font-size: .72rem; font-weight: 700;
}
.club-strip a span {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.club-strip a:hover { border-color: var(--pitch); }

.hero {
  position: relative; overflow: hidden;
  min-height: 0;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-bg, .match-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,8,.35), rgba(7,9,8,.88) 70%),
    url("/assets/hero.jpg") center/cover no-repeat;
}
.hero-glow, .match-hero-glow {
  position: absolute; inset: -20% -10% auto; height: 70%;
  background:
    radial-gradient(ellipse at 18% 70%, rgba(200,255,61,.18), transparent 52%),
    radial-gradient(ellipse at 82% 30%, rgba(255,59,92,.12), transparent 48%);
  pointer-events: none;
}
.hero-inner { position: relative; padding: 44px 0 40px; width: 100%; }
.hero-panel, .match-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(12, 16, 14, .72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-meta, .match-stage-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.kicker, .hero-comp, .match-comp {
  display: flex; gap: 10px; align-items: center; text-transform: uppercase;
  letter-spacing: .16em; font-size: .78rem; color: var(--pitch); font-weight: 700; margin: 0;
}
.hero .kicker, .hero .hero-sub, .hero .hero-club strong { color: #f4f1ea; }
.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); font-family: var(--display); }
.hero-score {
  font-family: var(--font); font-size: clamp(2.8rem, 10vw, 4.8rem); font-weight: 800;
  min-width: 132px; text-align: center; line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums; color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.55);
}
.hero-vs {
  font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800;
  letter-spacing: .28em; color: var(--cyan); text-align: center;
}
.hero-sub { color: rgba(244,241,234,.78); margin: 8px 0 0; text-align: center; }
.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(124,92,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(--cyan); font-weight: 700;
}
.btn-gold {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--pitch);
  color: #111; font-weight: 800; border-radius: 999px; padding: 10px 18px;
}

.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;
}
.site-intro h1 { font-family: var(--display); font-size: 1.7rem; margin: 8px 0 10px; }
.site-intro p, .page-head > p { color: var(--muted); max-width: 62ch; }
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 8px 0 8px; }

.match-list { display: grid; gap: 10px; }
.match-list.tiles { grid-template-columns: 1fr; }
.match-card {
  display: grid; gap: 6px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.match-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.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(255,59,92,.55);
  box-shadow: 0 0 0 1px rgba(255,59,92,.22);
}
.match-card:hover {
  border-color: var(--pitch);
  background: linear-gradient(180deg, var(--card-hover), transparent 42%), var(--paper);
}
.mc-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; color: var(--muted);
}
.mc-pills { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.mc-team {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; font-weight: 700; min-width: 0;
}
.mc-team span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-team.is-lose { color: var(--muted); font-weight: 600; }
.mc-team.is-win span { color: var(--ink); }
.mc-goals {
  font-family: var(--font);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  min-width: 2.4em;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.03em;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 4px;
}
html[data-theme="light"] .mc-goals {
  background: rgba(16, 24, 16, 0.08);
}
.mc-team.is-lose .mc-goals { color: var(--ink); font-weight: 800; }
.mc-team.is-win .mc-goals {
  color: var(--ink);
  background: rgba(200, 255, 61, 0.18);
}
html[data-theme="light"] .mc-team.is-win .mc-goals {
  background: rgba(47, 107, 18, 0.14);
}
.match-card.is-live .mc-goals { color: #fff; background: rgba(255, 59, 92, 0.22); }
html[data-theme="light"] .match-card.is-live .mc-goals { color: var(--live); }
.mc-goals.soon {
  color: var(--score-soon);
  font-weight: 700;
  font-size: 1.25rem;
  background: transparent;
  opacity: .55;
}
.mc-goals .pen-score {
  display: block;
  margin-top: 2px;
  font-size: .55rem;
  font-weight: 700;
  color: var(--muted);
}
.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; min-width: 0; }
.side.home { justify-content: flex-end; text-align: right; }
.side.away { justify-content: flex-start; }
.side span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-mid {
  min-width: 88px; text-align: center; font-family: var(--font);
  font-weight: 800; font-size: 1.7rem; font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.03em;
}
.score-mid.soon { color: var(--score-soon); }
.when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 700;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.pill.live { color: #fff; background: #ff4d6d; border-color: transparent; animation: pulse 1.6s ease infinite; }
.pill.done { color: var(--muted); }
.pill.result.r-w { background: rgba(62,224,197,.16); color: var(--win); }
.pill.result.r-d { background: rgba(245,197,66,.16); color: var(--draw); }
.pill.result.r-l { background: rgba(255,107,129,.16); color: var(--lose); }
@keyframes pulse { 50% { opacity: .72; } }

.watch-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.watch-kicker { font-size: .72rem; color: var(--muted); font-weight: 700; }
.watch-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.watch-chip {
  --chip: var(--pitch);
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--chip) 45%, transparent);
  background: color-mix(in srgb, var(--chip) 14%, transparent);
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chip); }

.crest, .crest-sm, .crest-xs, .crest-lg, .crest-xl {
  object-fit: contain; background: rgba(255,255,255,.06); border-radius: 50%;
}
.crest { width: 36px; height: 36px; }
.crest-sm { width: 28px; height: 28px; }
.crest-xs { width: 22px; height: 22px; }
.crest-lg { width: 56px; height: 56px; }
.crest-xl { width: 72px; height: 72px; }
.crest-ph { display: inline-block; background: var(--line); border-radius: 50%; }

.day-block { margin: 22px 0; }
.day-block h3 { font-family: var(--display); font-size: 1.05rem; color: var(--cyan); margin: 0 0 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th, .standings td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.standings th { font-size: .75rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.standings td:nth-child(2), .standings th:nth-child(2) { text-align: left; }
.standings .team-cell a { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.standings tr.zone-ucl td:first-child { box-shadow: inset 3px 0 0 #c8ff3d; }
.standings tr.zone-uel td:first-child { box-shadow: inset 3px 0 0 #7c5cff; }
.standings tr.zone-rel td:first-child { box-shadow: inset 3px 0 0 #ff6b81; }
.standings tr.us { background: rgba(200,255,61,.1); }
.standings .pts { font-weight: 800; font-family: var(--display); }
.standings.is-compact th, .standings.is-compact td { padding: 7px 8px; font-size: .88rem; }
.table-wrap.compact { border: 0; background: transparent; }
.table-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .82rem; margin-top: 12px; }
.table-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.table-legend .ucl { background: #c8ff3d; }
.table-legend .uel { background: #7c5cff; }
.table-legend .rel { background: #ff6b81; }

.club-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.club-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 12px;
  transition: transform .18s ease, border-color .18s ease;
}
.club-tile:hover { transform: translateY(-3px); border-color: var(--pitch); }
.club-tile strong { font-size: .95rem; }
.club-tile small { color: var(--muted); font-size: .75rem; }
.club-hero-row { display: flex; align-items: center; gap: 16px; margin: 12px 0 8px; }
.club-hero-row h1 { margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .85rem; }
.crumbs a { color: var(--link); }
.crumbs-sep { opacity: .5; }

.empty {
  padding: 28px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 16px;
}

.match-page { padding-bottom: 12px; }
.match-hero { position: relative; overflow: visible; padding: 18px 0 0; }
.match-hero .crumbs { margin: 0 0 12px; }
.match-sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: var(--shadow);
}
.match-hero .match-comp {
  text-transform: none;
  letter-spacing: 0;
  font-size: .9rem;
  color: var(--muted);
}
.match-hero .hero-club strong { color: var(--ink); }
.match-hero .hero-score {
  color: var(--ink);
  text-shadow: none;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
}
.match-hero .hero-vs { color: var(--pitch); }
.match-hero .hero-scoreline { margin: 10px 0 4px; }
.match-when {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  margin: 6px 0 0;
}
.goal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.goal-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.goal-col.home { text-align: right; }
.goal-col li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .88rem; font-weight: 700;
}
.goal-col.home li { justify-content: flex-end; }
.goal-col .g-clock {
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; min-width: 2.6em;
}
.goal-col .g-name small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.match-intro h1 { font-family: var(--display); margin: 8px 0; }
.match-lead { color: var(--muted); max-width: 70ch; }
.match-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; color: var(--muted); }
.match-chips span { display: inline-flex; gap: 6px; align-items: center; }
.match-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.match-facts .fact { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.match-facts dt { color: var(--muted); font-size: .78rem; }
.match-facts dd { margin: 4px 0 0; font-weight: 700; }
.match-copy p { color: var(--muted); max-width: 70ch; }

.match-frame {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px 18px;
  margin-top: 4px;
}
.tabs.nav-tabs {
  border-bottom: 1px solid var(--line);
  gap: 6px;
  display: flex;
  flex-wrap: wrap;
  padding: 4px 0 10px;
}
.tabs .nav-link {
  color: var(--muted); font-weight: 700; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; background: transparent;
}
.tabs .nav-link:hover { border-color: var(--pitch); color: var(--ink); }
.tabs .nav-link.active {
  background: var(--pitch); color: #111; border-color: var(--pitch);
}
html[data-theme="light"] .tabs .nav-link.active { color: #fff; }

.timeline { display: grid; gap: 4px; padding: 4px 0 8px; }
.tl-head, .tl-row {
  display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 8px;
}
.tl-head { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tl-club { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; }
.tl-club.away { justify-content: flex-end; }
.tl-mid, .tl-min { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 800; }
.tl-min span {
  display: inline-flex; min-width: 44px; justify-content: center;
  font-size: .82rem;
}
.tl-period {
  text-align: center; color: var(--muted); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 6px; font-weight: 800;
}
.tl-cell.home { display: flex; justify-content: flex-end; }
.tl-row { padding: 3px 0; }
.tl-row.is-goal {
  background: rgba(200,255,61,.08);
  border-radius: 12px;
  padding: 6px 4px;
}
html[data-theme="light"] .tl-row.is-goal { background: rgba(47,107,18,.08); }
.tl-ev {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--bg-2); border-radius: 12px; padding: 6px 10px;
}
.tl-text { display: flex; flex-direction: column; min-width: 0; }
.tl-text strong { font-size: .9rem; }
.tl-kind, .tl-sub { font-size: .72rem; color: var(--muted); }
.tl-score {
  font-weight: 800; font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--ink);
}
.tl-row.is-goal .tl-min span { color: var(--ink); }
.bi-square-fill.yellow { color: #f5c542; }
.bi-square-fill.red { color: #ff4d6d; }

.stats { display: grid; gap: 10px; padding: 8px; }
.stats-head { display: flex; justify-content: space-between; font-weight: 700; }
.stat-vals { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-size: .85rem; }
.stat-vals span { text-align: center; color: var(--muted); }
.stat-vals b:last-child { text-align: right; }
.stat-bars { display: flex; gap: 4px; height: 6px; }
.stat-bars i { display: block; background: var(--pitch); border-radius: 99px; height: 100%; }
.stat-bars i.r { background: #6ea8ff; margin-left: auto; }

.lineup { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.lineup header h3 { font-family: var(--display); margin: 0; }
.lineup header p { color: var(--muted); margin: 4px 0 10px; }
.lineup-lists {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 768px) {
  .lineup-lists { grid-template-columns: 1fr 1fr; }
}
.players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.players li { display: grid; grid-template-columns: 36px 28px 1fr; align-items: center; gap: 8px; }
.players img, .players .ph { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); }
.players b { color: var(--muted); font-variant-numeric: tabular-nums; }
.pitch-wrap {
  min-width: 0;
  max-width: 400px;
  margin-inline: auto;
}
.pitch-head {
  display: flex; align-items: center; gap: 10px;
}
.pitch-head.is-home { margin: 0 0 8px; }
.pitch-head.is-away { margin: 8px 0 0; }
.pitch-head h3 { font-family: var(--display); margin: 0; font-size: 1rem; }
.pitch-head p { margin: 2px 0 0; color: var(--muted); font-weight: 700; font-size: .8rem; }
.pitch-full {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.75;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(255,255,255,.28);
  background:
    linear-gradient(180deg, rgba(0,0,0,.16), transparent 14%, transparent 86%, rgba(0,0,0,.16)),
    repeating-linear-gradient(90deg, #1f7a36 0 12.5%, #17662c 12.5% 25%);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.08);
}
.pitch-half {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 8px 2px 6px;
  min-height: 0;
}
.pitch-half.is-away { padding: 6px 2px 10px; }
.pitch-mark { position: absolute; pointer-events: none; border: 1.5px solid rgba(255,255,255,.28); }
.pitch-mark.mid { left: 8%; right: 8%; top: 50%; height: 0; border-width: 1px 0 0; }
.pitch-mark.circle {
  width: 18%; aspect-ratio: 1;
  border-radius: 50%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.pitch-mark.box-d, .pitch-mark.box-u {
  left: 22%; right: 22%; height: 12%;
}
.pitch-mark.box-d { bottom: 0; border-bottom: 0; }
.pitch-mark.box-u { top: 0; border-top: 0; }
.pitch-row {
  position: relative; z-index: 1;
  display: flex; justify-content: space-evenly; align-items: center;
}
.on-pitch {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 72px; min-width: 0;
}
.kit {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  background: #f4f1ea; color: #111;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  overflow: hidden;
}
.pitch-half.is-away .kit { background: var(--pitch); border-color: #e8ff9a; }
.kit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pname {
  color: #fff; font-size: .58rem; font-weight: 800;
  text-align: center; line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lineup-benches {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .lineup-benches { grid-template-columns: 1fr 1fr; }
}
.lineup-bench {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
}
.lineup-bench h4 { margin: 0 0 10px; font-size: .92rem; }

.h2h { display: grid; gap: 14px; padding: 6px 0 4px; }
.h2h-board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 18px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% -20%, rgba(200,255,61,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%),
    var(--bg-2);
}
.h2h-club {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.h2h-club strong {
  font-size: .92rem;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.h2h-club b, .h2h-split b {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.h2h-club.is-home b { color: var(--pitch); }
.h2h-club.is-away b { color: #6ea8ff; }
.h2h-split {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--gold);
  min-width: 4.5rem;
}
.h2h-split span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.h2h-bar {
  grid-column: 1 / -1;
  display: flex;
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  gap: 2px;
}
.h2h-bar i { display: block; min-width: 0; }
.h2h-bar i.h { background: var(--pitch); flex-basis: 0; }
.h2h-bar i.d { background: var(--gold); flex-basis: 0; }
.h2h-bar i.a { background: #6ea8ff; flex-basis: 0; }
.h2h-from {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.h2h-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h2h-row {
  display: grid; grid-template-columns: 6.8rem minmax(0, 1fr);
  align-items: center; gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  transition: border-color .15s ease, background .15s ease;
}
.h2h-row:hover {
  border-color: var(--pitch);
  background: linear-gradient(180deg, var(--card-hover), transparent 50%), var(--bg-2);
}
.h2h-row.is-now {
  border-color: rgba(200,255,61,.45);
  box-shadow: inset 3px 0 0 var(--pitch);
}
.h2h-meta {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  display: grid;
  gap: 2px;
}
.h2h-now { color: var(--pitch); font-size: .7rem; letter-spacing: .04em; }
.h2h-scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-width: 0; }
.h2h-scoreline b {
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.03em;
  min-width: 3.2em;
  text-align: center;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 6px 8px;
}
html[data-theme="light"] .h2h-scoreline b { background: rgba(16,24,16,.08); }
.h2h-scoreline .side.is-lose { color: var(--muted); font-weight: 600; }
.h2h-scoreline .side.is-win span { color: var(--ink); }

.seo-block, .page-article {
  margin: 28px 0 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 14px;
}
.seo-block h2, .page-article h2, .faq-block h2 {
  font-family: var(--display);
  font-size: 1.22rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.seo-block > p, .page-article > p, .match-copy p {
  color: var(--muted);
  max-width: 72ch;
  margin: 0 0 10px;
  line-height: 1.65;
}
.seo-block .match-facts { margin: 4px 0 14px; }
.seo-block .match-facts .fact { background: rgba(200,255,61,.05); }
.faq-block { margin-top: 16px; }
.faq-block h2 { font-size: 1.05rem; color: var(--ink); }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 28px 12px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--pitch);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.related-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(200,255,61,.06);
}
.related-links a:hover { border-color: var(--pitch); color: var(--pitch); }

.foot {
  margin-top: 40px; padding: 28px 0 24px; border-top: 1px solid var(--line); color: var(--muted);
}
.foot a { color: var(--link); font-weight: 700; }

.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-bottom: env(safe-area-inset-bottom);
}
.nav-mobile a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; font-size: .68rem; color: var(--muted); font-weight: 700;
}
.nav-mobile a.active { color: var(--pitch); }
.nav-mobile i { font-size: 1.15rem; }

.score-pair { display: inline-flex; align-items: center; gap: 4px; }
.score-col { display: inline-flex; flex-direction: column; align-items: center; }
.pen-score { font-size: .45em; color: var(--muted); }

@media (min-width: 900px) {
  .match-list.tiles { grid-template-columns: 1fr 1fr; }
  .match-list { grid-template-columns: 1fr 1fr; }
  .day-block .match-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .nav-desk { display: flex; }
  .nav-mobile { display: none; }
  body.site { padding-bottom: 0; }
  .topbar-actions { margin-left: 8px; }
}
@media (min-width: 1080px) {
  .league-dash {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
  }
  .dash-side {
    position: sticky;
    top: 84px;
  }
}
@media (max-width: 720px) {
  .when { flex-direction: row; justify-content: space-between; }
  .hero-scoreline { gap: 6px; }
  .side-panel { padding: 12px 8px 8px; }
  .h2h-row { grid-template-columns: 1fr; }
  .h2h-club b, .h2h-split b { font-size: 1.85rem; }
  .h2h-board { padding: 14px 10px 12px; }
  .pitch-wrap { max-width: 340px; }
  .on-pitch { width: 64px; }
  .kit { width: 30px; height: 30px; }
  .pname { font-size: .52rem; max-width: 64px; }
  .match-hero .crest-xl { width: 56px; height: 56px; }
}
