:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface-1: #101722;
  --surface-2: #162030;
  --surface-3: #1d2a3d;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #eef2f7;
  --text-secondary: #a7b2c3;
  --text-muted: #6d7a8e;
  --accent: #c6ff3d;
  --accent-ink: #0b1200;
  --series-1: #3987e5;
  --series-2: #d95926;
  --neutral: #4b5566;
  --win: #22c55e;
  --draw: #8391a7;
  --loss: #ef4444;
  --z-top: #3987e5;
  --z-mid: #f59e0b;
  --z-rel: #ef4444;
  --radius: 16px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font: 15px/1.5 var(--body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* Floodlit pitch backdrop */
.floodlights {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% -5%, rgba(198, 255, 61, 0.10), transparent 70%),
    radial-gradient(50% 35% at 90% 0%, rgba(57, 135, 229, 0.14), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,0.012) 120px 240px),
    var(--bg);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: 0.04em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 210deg, var(--accent), #5fd3ff, var(--accent));
  box-shadow: 0 0 18px rgba(198, 255, 61, 0.45);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }

.leagues { display: flex; gap: 4px; padding: 4px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 999px; }
.leagues a {
  padding: 6px 14px; border-radius: 999px; font: 700 15px/1 var(--display);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary);
  transition: background .2s, color .2s;
}
.leagues a:hover { color: var(--text-primary); }
.leagues a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); }

.tabs {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 8px 0 10px; font-weight: 600; font-size: 14px; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s;
}
.tabs a:hover { color: var(--text-primary); }
.tabs a[aria-current="true"] { color: var(--text-primary); border-color: var(--accent); }

#banner:not(:empty) {
  max-width: 1180px; margin: 14px auto 0; padding: 0 16px;
}
.banner {
  display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd9a0; font-size: 13.5px;
}
.banner strong { color: #fff; }

main.wrap { padding-top: 28px; padding-bottom: 40px; min-height: 60vh; }
.foot { color: var(--text-muted); font-size: 12.5px; padding-bottom: 32px; }

/* Hero */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.eyebrow { font: 700 13px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.hero h1 {
  font: 800 clamp(38px, 7vw, 68px)/0.92 var(--display); margin: 8px 0 0; letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, #9fb0c8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--text-secondary); margin-top: 8px; font-size: 14px; }
.hero-crest { display: flex; align-items: center; gap: 20px; }

/* Cards & grids */
.card {
  background: linear-gradient(180deg, var(--surface-1), rgba(16, 23, 34, 0.85));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  position: relative;
}
.card h2, .card h3 {
  margin: 0 0 14px; font: 700 18px/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
}
.card h2 small, .card h3 small { font: 500 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--text-muted); margin-left: 6px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.section { margin-top: 16px; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.show-sm { display: none; }
.tile {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  overflow: hidden; position: relative;
}
.tile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .8;
}
.tile .v { font: 800 38px/1 var(--display); letter-spacing: 0.01em; }
.tile .v small { font-size: 20px; color: var(--text-secondary); margin-left: 2px; }
.tile .k { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Crests */
.crest { width: 24px; height: 24px; object-fit: contain; flex: none; }
.crest-lg { width: 84px; height: 84px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.crest-fb {
  display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  font: 800 9px/1 var(--display); letter-spacing: .04em; color: #fff;
  background: hsl(var(--h) 55% 38%); box-shadow: inset 0 0 0 2px hsl(var(--h) 60% 55% / .6);
}
.crest-fb.crest-lg { width: 84px; height: 84px; font-size: 28px; box-shadow: inset 0 0 0 4px hsl(var(--h) 60% 55% / .6), 0 10px 30px rgba(0,0,0,.5); }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button {
  border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text-primary); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* League table */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.lt { width: 100%; border-collapse: collapse; font-size: 14px; }
.lt th {
  text-align: right; font-weight: 600; font-size: 11.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; padding: 8px 8px; border-bottom: 1px solid var(--line);
}
.lt td { text-align: right; padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lt th.l, .lt td.l { text-align: left; }
.lt tbody tr { transition: background .15s; }
.lt tbody tr:hover { background: rgba(255,255,255,.03); }
.lt td.pos { width: 34px; text-align: center; font-weight: 700; color: var(--text-secondary); position: relative; }
.lt tr[data-zone] td.pos::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--zc);
}
.lt td.pts { font: 800 18px/1 var(--display); color: var(--text-primary); }
.lt td.dim { color: var(--text-secondary); }
.team-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.team-cell:hover span { color: var(--accent); }
.lt .gd-pos { color: #86efac; }
.lt .gd-neg { color: #fca5a5; }
.zones { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.zones span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; background: var(--zc); margin-right: 6px; vertical-align: middle; }

/* Form pills */
.form { display: inline-flex; gap: 3px; }
.pill {
  width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center;
  font: 800 11px/1 var(--display); color: #06110a;
}
.pill.W { background: var(--win); }
.pill.D { background: var(--draw); color: #0c1220; }
.pill.L { background: var(--loss); color: #1a0505; }
.pill-lg { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }

/* Matches */
.md-nav { display: flex; align-items: center; gap: 10px; }
.md-nav button {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; font-size: 18px; color: var(--text-secondary);
}
.md-nav button:disabled { opacity: .35; cursor: default; }
.md-nav button:not(:disabled):hover { color: var(--text-primary); border-color: var(--line-strong); }
.md-label { font: 800 26px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; min-width: 150px; text-align: center; }
.day { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin: 20px 0 10px; }
.matches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.match {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--line);
  transition: transform .15s, border-color .15s;
}
.match:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.match .side { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.match .side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .side.away { flex-direction: row-reverse; text-align: right; }
.match .side.won span { color: var(--text-primary); }
.match .side.lost span { color: var(--text-secondary); font-weight: 500; }
.score { text-align: center; }
.score b {
  display: inline-block; min-width: 66px; padding: 6px 10px; border-radius: 10px; background: var(--surface-3);
  font: 800 24px/1 var(--display); letter-spacing: .06em;
}
.score .ht { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.score .ko { font: 700 18px/1 var(--display); color: var(--accent); letter-spacing: .04em; }
.live b { background: rgba(198,255,61,.15); color: var(--accent); }

/* Leaderboards */
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; }
.lb li + li { border-top: 1px solid var(--line); }
.lb .rank { color: var(--text-muted); font-weight: 700; font-size: 12px; }
.lb .who { min-width: 0; }
.lb .who .team-cell { font-size: 14px; }
.lb .bar { height: 4px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.lb .bar i { display: block; height: 100%; background: var(--series-1); border-radius: 4px; transform-origin: left; animation: grow .8s cubic-bezier(.2,.8,.2,1) both; }
.lb .val { font: 800 22px/1 var(--display); }
.lb .val small { font-size: 14px; color: var(--text-secondary); }
.lb li:first-child .val { color: var(--accent); }
@keyframes grow { from { transform: scaleX(0); } }

/* Results split bar */
.split { display: flex; gap: 2px; height: 44px; border-radius: 10px; overflow: hidden; margin: 6px 0 10px; }
.split div {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  font: 800 17px/1 var(--display); color: #fff; cursor: default; transition: filter .15s;
}
.split div:hover, .split div:focus { filter: brightness(1.15); outline: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-secondary); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.legend .legend-note { color: var(--text-muted); }
.legend i.box { height: 10px; width: 10px; border-radius: 3px; }

/* Charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); }
.chart .axis-text { fill: var(--text-muted); font-size: 11px; font-family: var(--body); }
.chart .end-label { font-size: 12px; font-weight: 600; fill: var(--text-primary); }
.chart .crosshair { stroke: var(--line-strong); }
.tooltip {
  position: fixed; z-index: 50; pointer-events: none; min-width: 140px;
  background: rgba(22, 32, 48, 0.96); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 10px; font-size: 12.5px; box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.tooltip .tt-title { color: var(--text-muted); font-size: 11.5px; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 8px; }
.tooltip .tt-row b { font-variant-numeric: tabular-nums; color: var(--text-primary); }
.tooltip .tt-row span { color: var(--text-secondary); }
.tooltip .tt-key { width: 12px; height: 2px; border-radius: 1px; background: var(--c); }

/* Team page bits */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-secondary);
}
.chip b { color: var(--text-primary); font-family: var(--display); font-size: 16px; margin-right: 4px; }
.chip.hot { border-color: rgba(198,255,61,.4); background: rgba(198,255,61,.08); }
.chip.hot b { color: var(--accent); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.compare td:first-child { color: var(--text-secondary); }
.compare td.n { text-align: right; font: 700 17px var(--display); width: 70px; }
.compare th { text-align: right; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding-bottom: 6px; }
.result-row { display: grid; grid-template-columns: 26px 54px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.result-row .opp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result-row .ha { font-size: 11px; color: var(--text-muted); font-weight: 600; letter-spacing: .06em; }
.result-row .sc { font: 800 17px var(--display); letter-spacing: .05em; }
.result-row .date { color: var(--text-muted); font-size: 12px; }
.extreme { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.extreme span:first-child { color: var(--text-muted); }

.empty { color: var(--text-muted); padding: 24px 0; text-align: center; }
.loading { display: grid; place-items: center; min-height: 40vh; }
.loading i { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.fade-in > *:nth-child(2) { animation-delay: .05s; }
.fade-in > *:nth-child(3) { animation-delay: .1s; }
.fade-in > *:nth-child(4) { animation-delay: .15s; }
.fade-in > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }


/* Form controls */
select, input[type="search"] {
  font: 500 13.5px var(--body); color: var(--text-primary);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; outline: none; min-height: 36px;
}
select { padding-right: 30px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
select:focus, input[type="search"]:focus { border-color: rgba(198,255,61,.5); box-shadow: 0 0 0 3px rgba(198,255,61,.12); }
input[type="search"] { flex: 1; min-width: 160px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.btn { border: 1px solid var(--line-strong); background: var(--surface-2); padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.btn-link:hover { text-decoration: underline; }
.note { color: var(--text-muted); font-size: 13px; margin-top: 16px; }
.eyebrow a:hover { text-decoration: underline; }
.meta { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }

/* Players */
.avatar {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line-strong);
  display: inline-grid; place-items: center; font: 700 11px/1 var(--display); color: var(--text-secondary); letter-spacing: .04em;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar-lg { width: 96px; height: 96px; font-size: 30px; border-width: 2px; border-color: rgba(198,255,61,.35); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-cell > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.player-cell b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-cell small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.player-cell small .crest, .player-cell small .crest-fb { width: 14px; height: 14px; font-size: 6px; }
.player-cell:hover b { color: var(--accent); }
.pos-tag { font: 700 11px/1 var(--display); letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-secondary); }
.pos-tag.GK { color: #fcd34d; } .pos-tag.DEF { color: #7dd3fc; } .pos-tag.MID { color: #86efac; } .pos-tag.FWD { color: #fca5a5; }
.lt .sort { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; }
.lt .sort:hover, .lt .sort[aria-sort="descending"], .lt .sort[aria-sort="ascending"] { color: var(--accent); }
.lt td.sorted { font-weight: 700; color: var(--text-primary); }
.lt td.hi { color: var(--accent); font-weight: 700; }
.lt.pt td { padding-top: 7px; padding-bottom: 7px; }
.pct-row { display: grid; grid-template-columns: 1fr 48px 1.4fr 42px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pct-row > span:first-child { color: var(--text-secondary); }
.pct-row > span.num { text-align: right; font-weight: 600; }
.pct-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; cursor: default; }
.pct-bar i { display: block; height: 100%; border-radius: 4px; background: var(--series-1); animation: grow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.pct-row b { font: 800 18px var(--display); text-align: right; }
.pct-row b small { font-size: 11px; color: var(--text-muted); }
.chip.warn { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.1); color: #fcd9a0; }
.chip.warn b { color: #fbbf24; }

/* Head-to-head */
.h2h-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 24px 18px; overflow: hidden; }
.h2h-head::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(57,135,229,.16), transparent 40%, transparent 60%, rgba(217,89,38,.16)); }
.h2h-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; }
.h2h-name { font: 800 clamp(24px, 4vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.h2h-name:hover { color: var(--accent); }
.h2h-meta { color: var(--text-secondary); font-size: 13px; }
.h2h-side select { margin-top: 6px; max-width: 100%; }
.vs { font: 800 clamp(30px, 5vw, 54px)/1 var(--display); color: var(--accent); text-shadow: 0 0 30px rgba(198,255,61,.35); position: relative; }
.tug { display: grid; grid-template-columns: 70px 1fr 70px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tug:last-child { border-bottom: 0; }
.tug > b { font: 700 20px/1 var(--display); color: var(--text-secondary); }
.tug > b:last-child { text-align: right; }
.tug > b.win { color: var(--text-primary); }
.tug > b.win::after { content: " ●"; font-size: 9px; color: var(--accent); vertical-align: middle; }
.tug > b:last-child.win::after { content: ""; }
.tug > b:last-child.win::before { content: "● "; font-size: 9px; color: var(--accent); vertical-align: middle; }
.tug-mid { text-align: center; font-size: 12.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tug-bar { display: flex; gap: 2px; height: 6px; margin-top: 6px; border-radius: 4px; overflow: hidden; }
.tug-bar i { display: block; min-width: 4px; }
.matches.one { grid-template-columns: 1fr; }
.grid.tight { gap: 20px; }
.mini-head { font: 700 14px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }


/* Analysis charts */
.chart .axis-title { fill: var(--text-muted); font-size: 11.5px; font-weight: 600; font-family: var(--body); }
.chart .ref-line { stroke: rgba(255,255,255,.28); stroke-width: 1; }
.chart .corner-text { fill: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-family: var(--body); }
.chart .point-label { fill: var(--text-secondary); font-size: 11px; font-weight: 600; font-family: var(--body); }
.chart .band-label { fill: var(--text-muted); font-size: 11px; font-family: var(--body); }

/* Season grid */
.sgrid { display: grid; grid-template-columns: 130px repeat(var(--cols), 24px); gap: 3px; align-items: center; min-width: max-content; }
.sg-md { font-size: 10.5px; color: var(--text-muted); text-align: center; font-weight: 600; }
.sg-team { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.sg-team:hover span { color: var(--accent); }
.sg-team .crest, .sg-team .crest-fb { width: 18px; height: 18px; font-size: 7px; }
.sg-cell { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 800 11px/1 var(--display); cursor: default; }
.sg-cell.W { background: var(--win); color: #06110a; }
.sg-cell.D { background: var(--draw); color: #0c1220; }
.sg-cell.L { background: var(--loss); color: #1a0505; }
.sg-cell.none { background: var(--surface-2); }
.sg-cell:hover { outline: 2px solid var(--text-primary); outline-offset: 1px; }

/* Most-used XI pitch */
.pitch {
  position: relative; border-radius: 14px; padding: 30px 8px 22px; display: flex; flex-direction: column; gap: 18px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #11402a 0 44px, #0f3a26 44px 88px);
  border: 1px solid rgba(255,255,255,.12);
}
.pitch-lines i { position: absolute; z-index: 0; background: none; border: 1.5px solid rgba(255,255,255,.18); pointer-events: none; }
.pitch-lines .half { left: 0; right: 0; top: 50%; border-width: 1.5px 0 0; }
.pitch-lines .circle { width: 90px; height: 90px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.xi-row { display: flex; justify-content: space-evenly; gap: 4px; position: relative; z-index: 1; }
.xi-player { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; text-align: center; }
.xi-player .avatar { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.5); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.xi-player b { font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.xi-player small { font-size: 10.5px; color: rgba(255,255,255,.7); }
.xi-player:hover b { color: var(--accent); }


/* Ground card */
.ground { padding: 0; overflow: hidden; }
.ground-banner { position: relative; height: 240px; background: #0c1a2b; }
.ground-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ground-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,18,.05) 20%, rgba(7,11,18,.92)); }
.ground-banner.no-photo { height: 170px; background:
  radial-gradient(60% 90% at 80% 0%, rgba(198,255,61,.16), transparent 70%),
  repeating-linear-gradient(90deg, #11402a 0 60px, #0f3a26 60px 120px); }
.ground-title { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; }
.ground-title h2 { margin: 6px 0 0; font: 800 clamp(30px, 5vw, 46px)/0.95 var(--display); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.ground-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ground-facts b { font: 800 22px/1 var(--display); color: var(--text-primary); margin-right: 6px; letter-spacing: .02em; }
.photo-credit { position: absolute; top: 10px; right: 12px; z-index: 1; font-size: 11px; color: rgba(255,255,255,.75); background: rgba(7,11,18,.55); padding: 3px 8px; border-radius: 6px; }
.photo-credit:hover { color: #fff; }
.ground-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; padding: 18px; }
.ground-info .extreme span:last-child, .ground-info .extreme a { text-align: right; }
.ground-info .extreme a { color: var(--accent); }
.colours { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: inline-block; }
.ground-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ground-links a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; background: var(--surface-2); }
.ground-links a:hover { border-color: var(--accent); color: var(--accent); }
.ground-map { width: 100%; height: 100%; min-height: 260px; border: 0; border-radius: 12px; background: var(--surface-2);
  filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.9); }
.ground-map.empty { filter: none; display: grid; place-items: center; color: var(--text-muted); font-size: 13px; }
#distance-slot { grid-column: 1 / -1; }
.h2h-distance { text-align: center; font-size: 13.5px; color: var(--text-secondary); position: relative; margin-top: 4px; }
.h2h-distance b { color: var(--text-primary); }


/* Match stats and forecasts */
.match-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); }
.match-extra b { color: var(--text-secondary); font-weight: 700; }
.match-extra .ref { color: var(--text-muted); font-style: italic; }
.match-extra.fc { display: block; }
.fc-bar { display: flex; gap: 2px; height: 6px; border-radius: 4px; overflow: hidden; }
.fc-bar i { display: block; min-width: 3px; cursor: default; }
.fc-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11.5px; color: var(--text-secondary); font-weight: 600; }
.fc-labels span:nth-child(2) { color: var(--text-muted); font-weight: 500; }
.win-chance { font-weight: 700; color: var(--text-secondary); }

/* Ratings */
.up { color: #4ade80; font-weight: 700; }
.down { color: #f87171; font-weight: 700; }
.tag { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag.good { background: rgba(74,222,128,.1); color: #86efac; }
.tag.bad { background: rgba(248,113,113,.1); color: #fca5a5; }
.compare td.rank { color: var(--text-muted); font: 600 13px var(--body); width: 56px; }
.section-head { margin: 28px 0 12px; font: 800 26px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.section-head small { font: 500 13px var(--body); letter-spacing: 0; text-transform: none; color: var(--text-muted); margin-left: 8px; }
.upset { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.upset > span:nth-child(2) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upset .chance { font: 800 20px var(--display); color: var(--accent); }
.upset .date { color: var(--text-muted); font-size: 12px; }

/* Club history */
.story p { margin: 0 0 12px; color: var(--text-secondary); line-height: 1.65; }
.story p:first-child::first-letter { font: 800 40px/0.9 var(--display); float: left; margin: 4px 8px 0 0; color: var(--accent); }
.story .note a { color: var(--accent); }



/* Predictions */
.lt.sim td.prob { min-width: 96px; }
.lt.sim td.prob > span { display: inline-block; vertical-align: middle; }
.lt.sim .ptrack { width: 44px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-right: 8px; }
.lt.sim .ptrack i { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }
.lt.sim td.prob .num { min-width: 34px; text-align: right; font-weight: 600; }
.lt.sim th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
.heat { display: grid; grid-template-columns: 120px repeat(var(--cols), minmax(26px, 1fr)); gap: 2px; align-items: center; min-width: max-content; }
.heat-pos { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-muted); padding-bottom: 4px; border-bottom: 2px solid var(--zc, transparent); }
.heat-team { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; padding-right: 6px; }
.heat-team .crest, .heat-team .crest-fb { width: 18px; height: 18px; font-size: 7px; }
.heat-team:hover span { color: var(--accent); }
.heat-cell { height: 24px; border-radius: 4px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; cursor: default;
  background: rgba(57,135,229, var(--p)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.03); }
.heat-cell:hover { outline: 2px solid var(--text-primary); outline-offset: 1px; }
.pred { display: flex; flex-direction: column; gap: 12px; }
.pred-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.pred-head a { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 16px; }
.pred-head a b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred-head a.away { justify-content: flex-end; }
.pred-head a:hover b { color: var(--accent); }
.pred-ko { text-align: center; }
.pred-ko span { display: block; font: 700 18px/1 var(--display); color: var(--accent); }
.pred-ko small { display: block; color: var(--text-muted); font-size: 11.5px; }
.pred-ko .pred-day { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 10.5px; margin-bottom: 3px; }
.pred-row { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: start; }
.pred-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; padding-top: 1px; }
.fc-bar.tall { height: 10px; }
.disagree { font-size: 12.5px; color: #fcd9a0; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); border-radius: 8px; padding: 6px 10px; }
.pred-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: 10px; }
.pred-facts b { color: var(--text-primary); }
.pred-facts small { color: var(--text-muted); }
.pred-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scorer { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.scorer .avatar { width: 26px; height: 26px; font-size: 9px; }
.scorer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorer b { font: 700 15px var(--display); color: var(--accent); }
.scorer:hover span { color: var(--accent); }


/* Player profiles */
.profile-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.profile-facts > div { display: flex; flex-direction: column; }
.profile-facts b { font: 700 19px/1.2 var(--display); letter-spacing: .02em; }
.profile-facts span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.intl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin: 6px 0 10px; }
.intl-flag { font-size: 30px; line-height: 1; }
.intl b { display: block; font: 800 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.intl small { color: var(--text-secondary); font-size: 12.5px; }
.youth { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.youth .chip { font-size: 12px; padding: 4px 10px; }
.bio { color: var(--text-secondary); line-height: 1.6; margin: 8px 0 0; }
.career { list-style: none; margin: 6px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--surface-3); }
.career li { position: relative; display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; padding: 7px 0; font-size: 14px; }
.career li::before { content: ""; position: absolute; left: -20px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface-1); }
.career li.now::before { background: var(--accent); box-shadow: 0 0 10px rgba(198,255,61,.5); }
.career .yrs { color: var(--text-muted); font-size: 12.5px; }
.career .club { font-weight: 600; }
.career .rec { color: var(--text-muted); font-size: 12.5px; }
.loan { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fcd9a0; background: rgba(245,158,11,.12); padding: 2px 6px; border-radius: 5px; margin-left: 4px; }
.profile .note a { color: var(--accent); }
.sq-name { font-weight: 600; }
.sq-name:hover { color: var(--accent); }
td.nat { white-space: nowrap; font-size: 13px; }


/* Prediction game */
.game-setup { max-width: 640px; }
.game-setup form { display: flex; flex-direction: column; gap: 8px; }
.game-setup label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-top: 8px; }
.game-setup label small { font-weight: 500; color: var(--text-muted); margin-left: 6px; }
.name-inputs { display: flex; gap: 8px; flex-wrap: wrap; }
.name-inputs input { flex: 1; min-width: 140px; font: 500 15px var(--body); color: var(--text-primary); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.name-inputs input:focus { outline: none; border-color: rgba(198,255,61,.5); box-shadow: 0 0 0 3px rgba(198,255,61,.12); }
.check-group { margin-bottom: 10px; min-width: 0; }
.check-group > span { display: block; margin-bottom: 6px; font: 700 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.checks label {
  margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--line); color: var(--text-primary); font-weight: 500; font-size: 14px;
}
.checks label:has(input:checked) { border-color: var(--accent); background: rgba(198,255,61,.08); }
.checks input { accent-color: var(--accent); margin: 0; flex: none; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } .checks label { padding: 8px 10px; font-size: 13.5px; } }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; margin-top: 10px; align-self: flex-start; }
.btn.primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.form-error { color: #fca5a5; font-size: 13.5px; margin: 4px 0 0; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.who-btn { font-size: 16px; padding: 12px 20px; }
.board { display: flex; flex-direction: column; gap: 6px; }
.board-row { display: grid; grid-template-columns: 28px 1fr 64px 64px 84px 60px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.board-row:first-child { border-color: rgba(198,255,61,.45); background: linear-gradient(90deg, rgba(198,255,61,.09), var(--surface-2)); }
.board-row.me .board-name { color: var(--accent); }
.board-pos { font: 800 20px var(--display); color: var(--text-muted); text-align: center; }
.board-row:first-child .board-pos { color: var(--accent); }
.board-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.you { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; border-radius: 5px; }
.board-stat { display: flex; flex-direction: column; align-items: center; font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.board-stat b { font: 700 17px var(--display); color: var(--text-secondary); letter-spacing: 0; }
.board-pts { font: 800 30px/1 var(--display); text-align: right; }
.g-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.g-row { padding: 14px 16px; border-radius: 14px; background: var(--surface-1); border: 1px solid var(--line); }
.g-row:not(.locked):focus-within { border-color: rgba(198,255,61,.5); }
.g-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.g-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.g-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-team.away { justify-content: flex-end; text-align: right; }
.g-inputs { display: grid; grid-template-columns: 48px auto 48px; gap: 6px; align-items: center; justify-items: center; }
.g-inputs input { width: 48px; height: 44px; text-align: center; font: 800 24px var(--display); color: var(--text-primary); background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 10px; -moz-appearance: textfield; }
.g-inputs input::-webkit-outer-spin-button, .g-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.g-inputs input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198,255,61,.15); }
.g-inputs small { grid-column: 1 / -1; font-size: 11.5px; color: var(--accent); font-weight: 700; }
.g-score { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 88px; }
.g-score > b { font: 800 26px/1 var(--display); padding: 4px 12px; border-radius: 10px; background: var(--surface-3); }
.g-score small { font-size: 11px; color: var(--text-muted); }
.my-pick { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.my-pick b { font: 700 14px var(--display); color: var(--text-primary); }
.my-pick em, .pick em { font-style: normal; font-weight: 800; }
.pt3 { color: var(--accent); } .pt1 { color: #86efac; } .pt0 { color: var(--text-muted); }
.g-picks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.g-picks:empty { display: none; }
.pick { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-secondary); }
.pick.p3 { border-color: rgba(198,255,61,.5); color: var(--text-primary); } .pick.p3 em { color: var(--accent); }
.pick.p1 em { color: #86efac; } .pick.p0 em { color: var(--text-muted); }
.pick.none { opacity: .55; }
.save-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px; background: rgba(22,32,48,.94); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.save-bar span { font-size: 13.5px; color: var(--text-secondary); }
.save-bar .btn.primary { margin: 0; }
.game-foot { display: flex; gap: 18px; justify-content: center; margin-top: 22px; }
.as-button { background: none; border: 0; cursor: pointer; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); }


/* Fixture ticker */
.ticker { display: grid; grid-template-columns: 130px repeat(var(--cols), minmax(58px, 1fr)) 48px; gap: 3px; align-items: center; min-width: max-content; }
.ticker.one { grid-template-columns: repeat(var(--cols), minmax(58px, 1fr)); min-width: 0; }
.tick-head { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.tick { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; border-radius: 7px; transition: transform .12s; }
.tick:hover { transform: translateY(-1px); outline: 2px solid var(--text-primary); outline-offset: 1px; }
.tick b { font: 800 14px/1 var(--display); letter-spacing: .04em; color: #fff; }
.tick small { font-size: 10px; color: rgba(255,255,255,.78); margin-top: 3px; font-weight: 600; }
.tick.empty { background: var(--surface-2); }
.tick-run { text-align: center; font: 800 17px var(--display); }


/* Pizza charts */
.pct-card[data-view="pizza"] .pv-bars, .pct-card[data-view="bars"] .pv-pizza { display: none; }
.pizza-wrap { display: flex; justify-content: center; }
.pizza { width: 100%; max-width: 400px; height: auto; overflow: visible; }
.pizza-ring { fill: none; stroke: var(--line); }
.pizza-track { fill: var(--surface-2); }
.pizza-slice { stroke: var(--surface-1); stroke-width: 1; cursor: default; transition: filter .15s; }
.pizza-slice:hover { filter: brightness(1.2); }
.pizza-val { font: 800 13px var(--display); fill: #fff; pointer-events: none; }
.pizza-label { font: 600 10.5px var(--body); fill: var(--text-secondary); }


/* Record against every opponent */
.wdl { display: flex; gap: 2px; width: 110px; height: 8px; border-radius: 4px; overflow: hidden; cursor: default; }
.wdl i { display: block; min-width: 0; }
.lt.rec td.pts { font-size: 16px; }


/* Form momentum small multiples */
.momentum { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mom { display: block; padding: 10px 12px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.mom:hover { border-color: var(--line-strong); }
.mom-head { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.mom-head .crest, .mom-head .crest-fb { width: 18px; height: 18px; font-size: 7px; }
.mom-head .mom-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mom-head b { font: 800 17px var(--display); }
.mom-head small { font-size: 11px; width: 12px; text-align: center; color: var(--text-muted); }
.mom-head small.up { color: #4ade80; }
.mom-head small.down { color: #f87171; }
.spark { display: block; width: 100%; height: 40px; margin-top: 4px; }

/* Luck table */
.dbar { display: inline-block; position: relative; width: 90px; height: 8px; vertical-align: middle; background: var(--surface-2); border-radius: 4px; }
.dbar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line-strong); }
.dbar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.dbar i.pos { left: 50%; background: var(--series-1); }
.dbar i.neg { right: 50%; background: #e66767; }
.lt.luck td .num { margin-left: 6px; font-size: 13px; }

/* Results grid */
.rgrid { display: grid; grid-template-columns: 120px repeat(var(--cols), 34px); gap: 2px; align-items: center; min-width: max-content; }
.rg-corner { font-size: 10px; color: var(--text-muted); }
.rg-col { display: grid; place-items: center; height: 26px; }
.rg-col .crest, .rg-col .crest-fb, .rg-team .crest, .rg-team .crest-fb { width: 18px; height: 18px; font-size: 7px; }
.rg-team { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.rg-team:hover span { color: var(--accent); }
.rg-cell { height: 26px; border-radius: 5px; display: grid; place-items: center; font: 700 11.5px var(--display); letter-spacing: .02em; cursor: default; }
.rg-cell.W { background: rgba(34,197,94,.75); color: #06110a; }
.rg-cell.D { background: rgba(131,145,167,.7); color: #0c1220; }
.rg-cell.L { background: rgba(239,68,68,.75); color: #1a0505; }
.rg-cell.todo { background: var(--surface-2); }
.rg-cell.self { background: repeating-linear-gradient(45deg, var(--surface-2) 0 3px, transparent 3px 6px); }
.rg-cell:not(.self):hover { outline: 2px solid var(--text-primary); outline-offset: 1px; }


/* Radar */
.radar-wrap { display: flex; justify-content: center; }
.radar { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); }
.radar-ring.mid { stroke: var(--line-strong); stroke-dasharray: none; }
.radar-axis { stroke: var(--line); }
.radar-label { font: 600 11px var(--body); fill: var(--text-secondary); }
.radar circle { cursor: default; }


/* Model accuracy */
.acc-grid { display: grid; grid-template-columns: 1fr 120px 120px; gap: 0; align-items: center; }
.acc-grid > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-head { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: right; }
.acc-label { font-size: 14px; }
.acc-label small { display: block; color: var(--text-muted); font-size: 12px; }
.acc-val { text-align: right; font: 800 24px var(--display); color: var(--text-secondary); }
.acc-val.win { color: var(--accent); }


/* UK TV */
.tv-badge { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px/1 var(--body); letter-spacing: .02em; padding: 4px 7px; border-radius: 6px; white-space: nowrap; cursor: default; vertical-align: middle; }
.tv-badge.confirmed { background: var(--tv); color: #fff; }
.tv-badge.likely { border: 1px dashed var(--tv); color: var(--text-primary); background: color-mix(in srgb, var(--tv) 14%, transparent); }
.tv-badge.off { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface-2) 4px 8px); color: var(--text-muted); }
.tv-badge.tbc { background: var(--surface-2); color: var(--text-muted); }
.score .ht .tv-badge { margin-top: 4px; }
.pred-ko .tv-badge { margin-top: 5px; }
.legend i.off-swatch { width: 10px; height: 10px; border-radius: 3px; background: repeating-linear-gradient(135deg, #3a4658 0 3px, #1d2a3d 3px 6px); }
.lg-tag { font: 700 9.5px var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.16); margin-right: 2px; }
.tv-filters { gap: 8px; }
.tv-day + .tv-day { margin-top: 6px; }
.tv-line { position: relative; height: calc(var(--lanes) * 46px + 26px); margin: 4px 0 8px; border-radius: 10px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px), var(--line) calc(100% / 12)); }
.tv-hour { position: absolute; left: var(--x); top: 0; font-size: 10px; color: var(--text-muted); transform: translateX(-50%); }
.tv-hour:first-child { transform: none; }
.tv-block { position: absolute; left: var(--x); width: calc(var(--w) - 0.4%); top: calc(18px + var(--lane) * 46px); height: 42px; border-radius: 8px; padding: 5px 8px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; transition: transform .12s; }
.tv-block:hover { transform: translateY(-1px); outline: 2px solid var(--text-primary); }
.tv-block b { font: 800 13px/1.1 var(--display); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-block small { font-size: 10.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-block.confirmed { background: var(--tv); color: #fff; }
.tv-block.likely { background: color-mix(in srgb, var(--tv) 18%, var(--surface-2)); border: 1.5px dashed var(--tv); color: var(--text-primary); }
.tv-block.off { background: repeating-linear-gradient(135deg, var(--surface-3) 0 5px, var(--surface-2) 5px 10px); color: var(--text-muted); }
.tv-block.tbc { background: var(--surface-2); color: var(--text-muted); }
.tv-list { display: none; }
.tv-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tv-time { font: 700 15px var(--display); color: var(--accent); }
.tv-teams { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.tv-teams .crest, .tv-teams .crest-fb { width: 16px; height: 16px; font-size: 6px; }
.picks { display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: grid; grid-template-columns: 150px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; }
.pick-bar { display: flex; gap: 2px; height: 12px; cursor: default; }
.pick-bar i { display: block; height: 100%; border-radius: 3px; }
.pick-row b { font: 800 16px var(--display); text-align: right; }


/* Layout helpers used everywhere */
.tl { display: none; }
.opp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.momentum > *, .matches > *, .g-list > * { min-width: 0; }
.extreme { flex-wrap: wrap; gap: 2px 12px; }
.extreme > :last-child { margin-left: auto; text-align: right; }
.acc-grid.solo { grid-template-columns: 1fr 120px; }
.tv-meta { display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.pizza-label, .radar-label { font-size: 13px; }
.pizza-val { font-size: 15px; }

@media (max-width: 640px) {
  .top-inner { padding-top: 10px; }
  .brand { font-size: 19px; }
  .leagues a { padding: 6px 10px; font-size: 14px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .matches { grid-template-columns: 1fr; }
  .crest-lg, .crest-fb.crest-lg { width: 60px; height: 60px; font-size: 20px; }
  .tile .v { font-size: 32px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .h2h-head { gap: 8px; padding: 18px 10px; }
  .h2h-side select { width: 100%; }
  .tug { grid-template-columns: 52px 1fr 52px; gap: 8px; }
  .pct-row { grid-template-columns: 1fr 42px 1fr 36px; gap: 8px; }
  .avatar-lg { width: 72px; height: 72px; font-size: 22px; }
  .filters select { flex: 1; }
  .sgrid { grid-template-columns: 96px repeat(var(--cols), 22px); }
  .ground-body { grid-template-columns: 1fr; }
  .heat { grid-template-columns: 92px repeat(var(--cols), 24px); }
  .ticker { grid-template-columns: 92px repeat(var(--cols), 54px) 40px; }
  .ticker.one { grid-template-columns: repeat(3, 1fr); }
  .wdl { width: 64px; }
  .momentum { grid-template-columns: repeat(2, 1fr); }
  .acc-grid { grid-template-columns: 1fr 70px 80px; }
  .tv-line { display: none; }
  .tv-list { display: block; }
  .pick-row { grid-template-columns: 110px 1fr 26px; }
  /* Tables: tighter, and names truncate instead of pushing columns off-screen */
  .lt { font-size: 13px; }
  .lt th, .lt td { padding: 8px 5px; }
  .lt th { font-size: 10.5px; letter-spacing: .04em; }
  .lt td.pos { width: 26px; }
  .lt td.pts { font-size: 16px; }
  .lt .team-cell { gap: 7px; }
  .lt .team-cell > span:last-child { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lt .team-cell .crest, .lt .team-cell .crest-fb { width: 20px; height: 20px; }
  .table-wrap { margin: 0 -12px; padding: 0 12px; }
  .card { padding: 16px 14px; }
  /* Player tables keep the player in view while the stats scroll */
  .lt.pt td:first-child, .lt.pt th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface-1); box-shadow: 6px 0 8px -6px rgba(0,0,0,.6); }
  .lt.pt .player-cell b { max-width: 104px; }
  /* Predicted table: numbers only */
  .lt.sim td.prob > .ptrack { display: none; }
  .lt.sim td.prob { min-width: 0; padding-left: 3px; padding-right: 3px; }
  .lt.sim th:first-child, .lt.sim td:first-child { display: none; }
  .lt.sim .team-cell > span:last-child { max-width: 74px; }
  .lt.sim th { font-size: 9px; letter-spacing: .02em; padding-left: 3px; padding-right: 3px; }
  .lt.luck .dbar { display: none; }
  .lt.sim td.prob .num { min-width: 0; }
  .lt.sim th { font-size: 9.5px; }
  /* Name grids: club codes and a pinned name column */
  .nm { display: none; }
  .tl { display: inline; }
  .heat, .sgrid, .rgrid { grid-template-columns: 62px repeat(var(--cols), minmax(24px, 1fr)); }
  .ticker { grid-template-columns: 62px repeat(var(--cols), 54px) 38px; }
  .heat-team, .sg-team, .rg-team { position: sticky; left: 0; z-index: 2; background: var(--surface-1); height: 100%; padding-right: 4px; font-size: 12px; }
  .heat > span:first-child, .ticker > span:first-child, .sgrid > span:first-child, .rgrid > span:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface-1); align-self: stretch; }
  .rgrid { grid-template-columns: 62px repeat(var(--cols), 32px); }
  .sgrid { grid-template-columns: 62px repeat(var(--cols), 22px); }
  .rg-corner { font-size: 0; }
  /* Cards with two teams: badge above the name so full names fit */
  .match { gap: 8px; padding: 12px; }
  .match .side, .match .side.away { flex-direction: column; text-align: center; gap: 5px; }
  .match .side span { white-space: normal; overflow: visible; font-size: 13.5px; line-height: 1.2; }
  .pred-head a, .pred-head a.away { flex-direction: column; text-align: center; gap: 5px; font-size: 14px; }
  .pred-head a.away b { order: 2; }
  .pred-head a b { white-space: normal; overflow: visible; line-height: 1.2; }
  .g-team, .g-team.away { flex-direction: column; text-align: center; gap: 4px; font-size: 13px; }
  .g-team.away b { order: 2; }
  .g-team b { white-space: normal; overflow: visible; line-height: 1.2; }
  .g-inputs { grid-template-columns: 42px auto 42px; }
  .g-inputs input { width: 42px; height: 42px; font-size: 22px; }
  .g-row { padding: 12px; }
  /* TV list: time, teams, then broadcaster */
  .tv-row { grid-template-columns: 44px 1fr; row-gap: 4px; }
  .tv-row .tv-teams { grid-column: 2; }
  .tv-row .tv-meta { grid-column: 2; justify-self: start; }
  .tv-teams span { white-space: normal; }
  /* Rows with a label and a value */
  .result-row { grid-template-columns: 22px 44px 1fr auto; gap: 8px; font-size: 13.5px; }
  .acc-grid, .acc-grid.solo { grid-template-columns: 1fr 72px 72px; }
  .acc-grid.solo { grid-template-columns: 1fr 84px; }
  .acc-label { font-size: 13px; }
  .acc-label small { font-size: 11px; }
  .acc-head { font-size: 10px; }
  .pick-row { grid-template-columns: 112px 1fr 24px; }
  .pick-row .team-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tiles-4 .tile .k, .tiles .tile .k { font-size: 10.5px; }
  .result-row.tv-r { grid-template-columns: 18px 70px 1fr auto; }
  .acc-val { font-size: 20px; }
  .rgrid { grid-template-columns: 92px repeat(var(--cols), 32px); }
  .pred-row { grid-template-columns: 1fr; gap: 4px; }
  .career li { grid-template-columns: 70px 1fr; }
  .board-row { grid-template-columns: 22px 1fr 46px 52px; gap: 6px; padding: 9px 10px; }
  .board-stat.results { display: none; }
  .board-pts { font-size: 24px; }
  .g-list { grid-template-columns: 1fr; }
  .career .rec { grid-column: 2; }
  .ground-banner { height: 190px; }
  .sg-cell { width: 22px; height: 22px; }
  .xi-player { width: 58px; }
  .xi-player .avatar { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* League picker */
.leagues { position: relative; padding: 0; background: none; border: 0; }
.lg-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--text-primary);
  font: 700 15px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; transition: border-color .2s;
}
.lg-btn:hover, .lg-btn[aria-expanded="true"] { border-color: var(--accent); }
.lg-flag { font-size: 16px; }
.lg-chev { color: var(--accent); transition: transform .2s; }
.lg-btn[aria-expanded="true"] .lg-chev { transform: rotate(180deg); }
.lg-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(560px, calc(100vw - 32px));
  display: grid; gap: 14px; padding: 16px; border-radius: 16px;
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.lg-panel[hidden] { display: none; }
.lg-group h4 { margin: 0 0 8px; font: 700 12px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.lg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.lg-list a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 14px;
  background: var(--surface-1); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.lg-list a:hover { border-color: var(--accent); }
.lg-list a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 640px) {
  .lg-btn { padding: 7px 12px; font-size: 14px; }
  .lg-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lg-panel { position: fixed; left: 16px; right: 16px; top: 58px; width: auto; max-height: calc(100vh - 80px); overflow-y: auto; }
  .lg-list { grid-template-columns: 1fr 1fr; }
}
.seg:empty { display: none; }

/* Team news */
.tn-teams { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.tn-team h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tn-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.tn-team h3 + .tn-row { border-top: 0; }
.tn-who { min-width: 0; font-size: 14px; }
.tn-who small { display: block; color: var(--text-secondary); font-size: 12.5px; margin-top: 2px; }
.tn-chip { padding: 4px 9px; border-radius: 999px; font: 700 13px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); white-space: nowrap; }
.tn-bars { display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.tn-bar-row { all: unset; box-sizing: border-box; cursor: pointer; padding: 3px 6px; border-radius: 8px; }
.tn-bar-row:hover { background: rgba(255,255,255,.04); }
.tn-bar-row[aria-pressed="true"] { background: rgba(198,255,61,.1); outline: 1px solid rgba(198,255,61,.4); }
.tn-bar-row:focus-visible { outline: 2px solid var(--accent); }
.tn-bar-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.tn-bar-team > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-bar-row { display: grid; grid-template-columns: 120px 1fr 24px; gap: 8px; align-items: center; font-size: 13.5px; }
.tn-bar-row .team-cell, .tn-bar-team a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-bar { display: flex; gap: 2px; height: 14px; min-width: 4px; }
.tn-bar i { display: block; height: 100%; border-radius: 3px; }
.tn-bar-row b { text-align: right; font-family: var(--display); font-size: 16px; }
.tn-meter { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.tn-meter i { display: block; height: 100%; background: #c98500; border-radius: 4px; }
.th-sort { all: unset; cursor: pointer; }
.th-sort[aria-pressed="true"] { color: var(--accent); }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .tn-bar-row { grid-template-columns: 104px 1fr 22px; } .tn-teams, .tn-bars { grid-template-columns: 1fr; } }

/* Career timeline */
.ctl-scroll { overflow-x: auto; margin: 6px -4px 0; padding: 4px 4px 2px; scrollbar-width: thin; }
.ctl { position: relative; }
.ctl-lanes, .ctl-intl { position: relative; }
.ctl-intl { height: 30px; margin-top: 6px; }
.ctl-bar {
  position: absolute; min-width: 26px; height: 28px; border-radius: 8px; overflow: hidden; display: flex; align-items: center;
  background: color-mix(in srgb, var(--c) 30%, var(--surface-2)); border: 1px solid var(--c); border-left-width: 4px;
  box-sizing: border-box; cursor: default; transition: filter .15s;
}
.ctl-bar span { padding: 0 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-bar:hover, .ctl-bar:focus-visible { filter: brightness(1.25); outline: none; }
.ctl-bar.ctl-loan { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, transparent) 0 6px, transparent 6px 12px); border-style: dashed; border-left-style: solid; }
.ctl-bar.now { box-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent); }
.ctl-bar.now::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, transparent, var(--c)); opacity: .5; }
.ctl-bar.intl { --c: var(--accent); top: 0; background: rgba(198,255,61,.1); }
.ctl-axis { position: relative; height: 22px; margin-top: 8px; border-top: 1px solid var(--line); }
.ctl-axis span { position: absolute; top: 5px; transform: translateX(-50%); font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ctl-axis span:first-child { transform: none; }
.ctl-axis span:last-child { transform: translateX(-100%); }
.ctl-legend { margin-top: 8px; font-size: 12px; }
.ctl-loan-swatch { background: repeating-linear-gradient(135deg, #8391a7 0 3px, transparent 3px 6px) !important; border: 1px dashed #8391a7; }
@media (prefers-reduced-motion: no-preference) {
  .ctl-bar { animation: ctl-grow .5s ease-out both; transform-origin: left; }
  @keyframes ctl-grow { from { transform: scaleX(0); opacity: 0; } }
}
.ctl-out { position: absolute; height: 28px; display: flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; pointer-events: none; }

/* Origins */
.og-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.og-map { display: block; width: 100%; height: auto; }
.og-map-card .og-map:not(.og-world) { max-height: 720px; }
.og-land path { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: .6; }
.og-hex path { fill: #c6ff3d; fill-opacity: var(--t); stroke: var(--bg); stroke-width: .6; cursor: default; transition: fill-opacity .15s; }
.og-hex path.hot { filter: drop-shadow(0 0 4px rgba(198,255,61,.65)); }
.og-hex path:hover { fill: #fff; fill-opacity: 1; }
.og-lines path { fill: none; stroke: #5fd3ff; stroke-opacity: .35; stroke-width: .8; pointer-events: none; }
.og-world .og-lines path { stroke-width: 1.1; }
.og-ground { fill: var(--bg); stroke: #fff; stroke-width: 1.2; }
.og-ground.sel { fill: #5fd3ff; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 6px #5fd3ff); }
.og-countries path { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: .4; }
.og-countries path.has { fill: #c6ff3d; fill-opacity: var(--t); stroke: var(--bg); }
.og-countries path.has:hover { fill: #fff; fill-opacity: .9; }
.og-dots circle { fill: #fff; fill-opacity: .7; pointer-events: none; }
.og-scale { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.og-scale i { flex: 0 0 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(198,255,61,.28), #c6ff3d); }
.og-side .lb .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-far { display: grid; gap: 4px; }
.og-far-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 10px; align-items: center; min-height: 22px; }
.og-far-team { min-width: 0; overflow: hidden; font-size: 13.5px; }
.og-strip { position: relative; height: 20px; }
.og-strip .og-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.og-strip b { position: absolute; top: 5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--c); opacity: .78; border: 1px solid var(--bg); }
.og-strip b:hover { opacity: 1; transform: scale(1.4); z-index: 2; }
.og-strip em { position: absolute; top: 1px; bottom: 1px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: #fff; z-index: 1; }
.og-far-axis .og-strip span { position: absolute; top: 2px; transform: translateX(-50%); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.og-far-axis .og-strip span:first-child { transform: none; }
.og-pct, .og-pct-h { text-align: right; font-size: 13px; }
.og-pct-h { color: var(--text-muted); font-size: 11px; }
.og-median-swatch { width: 3px !important; height: 12px !important; background: #fff !important; border-radius: 2px; }
.og-years { display: flex; align-items: flex-end; gap: 2px; height: 150px; }
.og-year { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 1px; min-width: 0; }
.og-year span { display: block; border-radius: 2px 2px 0 0; min-height: 0; }
.og-year:hover span { filter: brightness(1.3); }
.og-years-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 900px) { .og-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .og-far-row { grid-template-columns: 84px 1fr 34px; gap: 6px; } .og-far-team .team-cell { font-size: 12.5px; } }
.trend-line { stroke: var(--accent); stroke-opacity: .55; stroke-dasharray: 6 5; }

/* Visuals */
.vis-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vis-nav .chip { cursor: pointer; font-weight: 600; }
.vis-nav .chip:hover { border-color: var(--accent); }
.race-stage { position: relative; margin-top: 12px; }
.race { position: relative; --race-ms: 640ms; }
.race-row { position: absolute; left: 0; right: 0; top: 0; height: 26px; display: grid; grid-template-columns: 28px 150px 1fr 40px; gap: 8px; align-items: center; transition: transform var(--race-ms) ease-in-out; }
.race-pos { color: var(--text-muted); font-size: 13px; text-align: right; }
.race-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 13.5px; }
.race-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-team img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.race-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.race-track { height: 20px; }
.race-bar { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 75%, transparent), var(--c1)); box-shadow: inset -5px 0 0 var(--c2); transition: width var(--race-ms) ease-in-out; }
.race-pts { font: 800 17px/1 var(--display); }
.race.still .race-row, .race.still .race-bar { transition: none; }
.race-date { position: absolute; right: 50px; bottom: 6px; text-align: right; pointer-events: none; z-index: 1; }
.race-date b { display: block; font: 800 46px/1 var(--display); color: var(--text-primary); opacity: .22; letter-spacing: .02em; }
.race-date span { font: 700 16px/1 var(--display); color: var(--text-secondary); opacity: .6; }
.race-controls { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.race-play { width: 46px; height: 40px; padding: 0; font-size: 16px; }
.race-scrub { flex: 1; min-width: 160px; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .race-row, .race-bar { transition: none !important; } }
.sankey { display: block; margin-top: 12px; }
.sk-link { fill: var(--c); fill-opacity: .32; transition: fill-opacity .15s; }
.sk-link:hover { fill-opacity: .7; }
.sk-label { fill: var(--text-primary); font-weight: 600; }
.sk-n { fill: var(--text-muted); font-weight: 500; }
.hg-list, .vm-list, .cb-list { display: grid; gap: 5px; }
.hg-row, .vm-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; font-size: 13.5px; }
.hg-row b, .vm-row b, .cb-row b { text-align: right; font-family: var(--display); font-size: 15px; }
.hg-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.hg-bar i { display: block; height: 100%; background: #c6ff3d; border-radius: 5px; }
.vm-bar { position: relative; height: 12px; }
.vm-bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-strong); }
.vm-bar i { position: absolute; top: 0; height: 100%; border-radius: 3px; }
.vm-bar i.pos { left: 50%; background: #199e70; }
.vm-bar i.neg { right: 50%; background: #d95926; }
.htft { width: 100%; border-collapse: separate; border-spacing: 4px; }
.htft th { font-size: 12px; color: var(--text-secondary); font-weight: 600; text-align: center; }
.htft tbody th { text-align: left; font-size: 13px; color: var(--text-primary); }
.htft th small { display: block; color: var(--text-muted); font-weight: 500; font-size: 11px; }
.htft td { text-align: center; padding: 12px 4px; border-radius: 8px; background: rgba(57,135,229, calc(.08 + var(--t) * .85)); }
.htft td b { display: block; font: 800 20px/1 var(--display); }
.htft td small { font-size: 11px; color: var(--text-secondary); }
.cb-row { display: grid; grid-template-columns: 120px 1fr 1fr 36px; gap: 0; align-items: center; font-size: 13.5px; }
.cb-l, .cb-r { height: 12px; display: flex; }
.cb-l { justify-content: flex-end; border-right: 1px solid var(--line-strong); }
.cb-l i { background: #d95926; border-radius: 3px 0 0 3px; }
.cb-r i { background: #199e70; border-radius: 0 3px 3px 0; }
.cb-team { padding-right: 8px; min-width: 0; overflow: hidden; }
.halves { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.half-row { display: grid; grid-template-columns: 1fr 36px 18px 36px; align-items: center; gap: 4px; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.half-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; }
.half-row b { text-align: right; font-family: var(--display); font-size: 16px; }
.half-row .arrow { color: var(--text-muted); font-style: normal; text-align: center; }
@media (max-width: 640px) {
  .race-row { grid-template-columns: 22px 96px 1fr 30px; gap: 6px; }
  .race-team { font-size: 12.5px; gap: 6px; }
  .race-team img { width: 16px; height: 16px; }
  .race-date { right: 36px; } .race-date b { font-size: 32px; }
  .hg-row, .vm-row { grid-template-columns: 96px 1fr 40px; }
  .cb-row { grid-template-columns: 92px 1fr 1fr 30px; }
  .halves { grid-template-columns: repeat(2, 1fr); }
  .half-row { grid-template-columns: 1fr 30px 14px 30px; padding: 6px 8px; }
}
.hg-row > span:first-child, .vm-row > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; }
.vis-alumni .lb .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-date span { opacity: .45; }
.hg-row .team-cell, .vm-row .team-cell, .cb-team .team-cell, .og-far-team .team-cell { min-width: 0; max-width: 100%; }
.hg-row .team-cell > span, .vm-row .team-cell > span, .cb-team .team-cell > span, .og-far-team .team-cell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .hg-row, .vm-row { grid-template-columns: 118px 1fr 40px; } .cb-row { grid-template-columns: 108px 1fr 1fr 30px; } }
