/* Football Live — design system ------------------------------------------- */
:root {
  --bg: #0b0d12; --bg-2: #0f1218;
  --surface: #131722; --surface-2: #1a1f2c; --surface-3: #222839;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --text: #f1f4f9; --text-2: #b4bccb; --muted: #7c8799;
  --accent: #4f8cff; --accent-2: #22d3ee; --live: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --home: #4f8cff; --draw: #94a3b8; --away: #f472b6;
  --grad: linear-gradient(135deg, #4f8cff 0%, #22d3ee 100%);
  --glass: rgba(19,23,34,.72);
  --shadow: 0 20px 50px rgba(0,0,0,.45); --shadow-sm: 0 4px 14px rgba(0,0,0,.25);
  --r: 14px; --r-lg: 20px; --r-sm: 10px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --sidebar: 224px;
  /* 2026-10-04, five themes: what each theme may change beyond the colours above. The
     values here are Classic dark's own (they were literals before), so Classic is unchanged */
  --good: #22c55e; --win: #22c55e;                 /* positive and W -- --live is in play only */
  --on-accent: #061020; --on-fill: #061020; --on-pip: #081018;
  --primary-shadow: 0 6px 18px rgba(79,140,255,.28);
  --pill-on-bg: var(--accent); --pill-on-fg: var(--on-accent);
  --display: var(--sans); --num-weight: 800;
  --backdrop: radial-gradient(1000px 500px at 20% -10%, rgba(79,140,255,.16), transparent 60%),
                radial-gradient(800px 400px at 100% 10%, rgba(34,211,238,.10), transparent 60%);
  --hero-glow: radial-gradient(600px 220px at 15% 0%, rgba(79,140,255,.28), transparent 60%), radial-gradient(500px 220px at 90% 100%, rgba(34,211,238,.18), transparent 60%);
}
html[data-theme="light"] {
  --bg: #f3f5f9; --bg-2: #eef1f6;
  --surface: #ffffff; --surface-2: #f5f7fb; --surface-3: #e9edf4;
  --line: rgba(15,23,42,.08); --line-2: rgba(15,23,42,.14);
  --text: #0f172a; --text-2: #334155; --muted: #64748b;
  --glass: rgba(255,255,255,.75);
  --shadow: 0 20px 50px rgba(15,23,42,.14); --shadow-sm: 0 4px 14px rgba(15,23,42,.08);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 .875rem/1.5 var(--sans); font-feature-settings: "tnum" 1, "cv11" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: var(--backdrop);
}
html[data-tone="light"] body::before { opacity: .5; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .76rem; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
h1 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 0; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
h3 { margin: 18px 0 8px; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 8px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: .78rem; } .mono { font-family: var(--mono); font-size: .76rem; }
.hidden { display: none !important; } .grow { flex: 1; min-width: 140px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* controls ----------------------------------------------------------------- */
.btn, .input { font: inherit; font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 13px; line-height: 1.2; transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease), box-shadow .15s var(--ease); }
.input { font-weight: 500; min-height: 38px; }
.input-sm { min-height: 32px; padding: 5px 9px; font-size: .78rem; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: var(--on-accent); box-shadow: var(--primary-shadow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 6px 10px; font-size: .76rem; }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap { flex-wrap: wrap; }
form.row { margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { font: inherit; font-weight: 600; font-size: .76rem; color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 5px 10px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-2); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; border: 1px solid var(--line); }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { transform: translateX(14px); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; white-space: nowrap; transition: all .15s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on { background: var(--pill-on-bg); color: var(--pill-on-fg); border-color: var(--pill-on-bg); }
.chip .flag, .tag .flag, h2 .flag, p .flag { width: 18px; height: 13px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2); font-size: .8rem; line-height: 1; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.tag.live { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); }
.tag.ft { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.pill.ok { color: var(--text-2); } .pill.ok .dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
.pill.warn .dot, .pill.ok.warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); } .pill.bad .dot { background: var(--bad); }
.dot-live, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--live) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 0%, transparent); } }

/* shell -------------------------------------------------------------------- */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar); z-index: 20; display: flex; flex-direction: column; padding: 18px 14px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-right: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; letter-spacing: -.03em; font-size: 1.05rem; padding: 4px 6px 18px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; color: var(--on-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.logo-mark svg { width: 18px; height: 18px; stroke-width: 2; }
.logo-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin-left: auto; }
.logo-pulse.on { background: var(--live); animation: pulse 2s infinite; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; font: inherit; font-weight: 600; font-size: .86rem; color: var(--muted); background: transparent; border: 0; border-radius: 11px; padding: 10px 12px; cursor: pointer; text-align: left; transition: all .15s var(--ease); }
.nav button svg { width: 18px; height: 18px; }
.nav button:hover { color: var(--text); background: var(--surface-2); }
.nav button[aria-selected="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav button[aria-selected="true"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.nav-badge { margin-left: auto; font-size: .66rem; font-weight: 800; color: var(--on-fill); background: var(--live); border-radius: 999px; padding: 1px 7px; display: none; }
.nav-badge.on { display: inline-block; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.conn { display: flex; gap: 6px; align-items: center; }
html[data-tone="light"] .ico-sun, html:not([data-tone="light"]) .ico-moon { display: none; }

.app { margin-left: var(--sidebar); position: relative; z-index: 1; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 18px 28px 6px; flex-wrap: wrap; }
.topbar-title { display: flex; flex-direction: column; }
.search { display: inline-flex; align-items: center; gap: 10px; min-width: 260px; font: inherit; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: text; }
.search:hover { border-color: var(--line-2); }
.search span { flex: 1; text-align: left; }
.search kbd { font: 600 .66rem var(--sans); color: var(--muted); background: var(--surface-3); border-radius: 6px; padding: 2px 6px; }
.stats { display: flex; gap: 6px; margin-left: auto; }
.stat { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 76px; }
.stat b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat b.live { color: var(--live); }
.stat span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.keybar { margin: 10px 28px 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--warn) 16%, transparent), color-mix(in srgb, var(--warn) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.keybar-form { display: flex; gap: 8px; } .keybar-form input { width: min(360px, 60vw); }
main { padding: 14px 28px 48px; display: flex; flex-direction: column; gap: 18px; }
.tab { display: none; flex-direction: column; gap: 18px; animation: fade .3s var(--ease); }
.tab.active { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grid-main { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; container-type: inline-size; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.empty { color: var(--muted); padding: 26px 12px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* the Fixtures tab (2026-10-13): a strip of days, each with its count, and each competition under its heading */
.fx-strip { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 2px 2px 8px; margin: 10px 0 2px; scrollbar-width: thin; }
.fx-day { flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 66px; padding: 6px 10px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.fx-day b { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.fx-day span { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fx-day.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.fx-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.comp-head { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; }
.comp-head:first-child { margin-top: 0; }
/* a price over the bookmakers' chance it carries, lined up with the model's chances under the bar */
/* the fixture card (2026-10-13): the model's bar and the market's, same colours and scale, each figure under its segment */
.bar-line { display: flex; align-items: flex-start; gap: 8px; }
.bar-line + .bar-line { margin-top: 4px; }
.mrow-lab { flex: none; width: 48px; padding-top: 1px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bar-in { flex: 1; min-width: 0; }
.mrow .bar-in .segbar, .ft-market .bar-in .segbar { height: 10px; }
.bar-pcts { position: relative; height: 15px; margin-top: 2px; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-pcts span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.bar-pcts .h { color: var(--home); } .bar-pcts .d { color: var(--text-2); } .bar-pcts .a { color: var(--away); }
.mrow-head { display: none; }
.mh-legend { display: flex; align-items: center; gap: 5px; padding-left: 56px; }
.mh-legend i { width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; } .mh-legend i:first-child { margin-left: 0; }
.mh-legend i.h { background: var(--home); } .mh-legend i.d { background: var(--draw); } .mh-legend i.a { background: var(--away); }
.mh-odds { display: flex; gap: 4px; justify-content: flex-end; } .mh-odds b { width: 40px; text-align: center; }
@container (max-width: 760px) { .mrow-lab { width: 40px; font-size: .55rem; } .mh-legend { padding-left: 48px; } }
.mrow-odds .px small { font-size: .7rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* the Live page's day board (2026-10-13): in play, still to come, finished, each under a small heading */
.board-part { margin-top: 10px; }
.board-part[hidden] { display: none; }
.board-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.board-head #live-updated { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.day { margin: 10px 0 2px; font-size: .78rem; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* crests ------------------------------------------------------------------- */
.crest { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); flex: none; overflow: hidden; position: relative; }
.crest img { width: 100%; height: 100%; object-fit: contain; padding: 2px; display: block; }
.crest i { display: none; font: 800 .62rem var(--sans); color: var(--text-2); letter-spacing: .02em; font-style: normal; }
.crest.fallback img { display: none; } .crest.fallback i { display: inline; }
.crest.lg { width: 64px; height: 64px; } .crest.lg i { font-size: 1rem; }
.crest.md { width: 40px; height: 40px; } .crest.md i { font-size: .78rem; }

/* hero --------------------------------------------------------------------- */
.hero { position: relative; border-radius: 24px; padding: 22px 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero > * { position: relative; }
.hero-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.hero-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero-team.right { flex-direction: row-reverse; text-align: right; }
.hero-team b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero-team .form-string { margin-top: 6px; }
.hero-center { text-align: center; min-width: 150px; }
.hero-score { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-kick { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.hero-center .sub { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.hero-bottom { display: flex; align-items: center; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.sheet-probs { display: contents; }   /* a redraw target only; lays out as if absent */
.hero-probs { flex: 1; min-width: 220px; }
.hero-probs .segbar { height: 10px; margin-top: 8px; }
.trio { display: flex; gap: 18px; }
.trio div { display: flex; flex-direction: column; }
.trio b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.trio span { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trio .h b { color: var(--home); } .trio .d b { color: var(--draw); } .trio .a b { color: var(--away); }
.ring { width: 84px; height: 84px; position: relative; flex: none; }
.ring svg { width: 84px; height: 84px; transform: rotate(-90deg); stroke-width: 9; fill: none; }
.ring .track { stroke: var(--surface-3); }
.ring .arc-h { stroke: var(--home); } .ring .arc-d { stroke: var(--draw); } .ring .arc-a { stroke: var(--away); }
.ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .95rem; font-weight: 800; line-height: 1; }
.ring .lbl small { font-size: .6rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.hero-odds { display: flex; gap: 6px; }
.odd { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.odd b { font-size: .95rem; } .odd span { font-size: .62rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }

/* match rows --------------------------------------------------------------- */
.mrow { display: grid; grid-template-columns: 68px minmax(150px, 1fr) 40px 140px 128px 96px 18px; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); }
.mrow:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.mrow.selected { border-color: var(--accent); }
.mrow.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0% { background: color-mix(in srgb, var(--live) 22%, transparent); border-color: var(--live); } 100% { background: var(--surface); border-color: var(--line); } }
.mrow-time { display: flex; flex-direction: column; font-weight: 700; font-size: .84rem; line-height: 1.2; }
.mrow-time span { font-size: .68rem; font-weight: 600; color: var(--muted); }
.mrow-time .lv { color: var(--live); }
.mrow-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tm { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 700; }
.tm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm .crest { width: 22px; height: 22px; }
.tm.win { color: var(--text); } .tm.lose { color: var(--muted); }
.mrow-score { display: flex; flex-direction: column; gap: 5px; align-items: center; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.mrow-score span { height: 22px; line-height: 22px; }
/* Rows adapt to the column they sit in, not the viewport. */
@container (max-width: 760px) { .mrow { grid-template-columns: 64px minmax(140px, 1fr) 40px 120px 18px; } .mrow-odds { display: none; } }
@container (max-width: 480px) { .mrow { grid-template-columns: 56px minmax(0, 1fr) 36px 18px; } .mrow-prob { display: none; } }
.mrow-odds { display: flex; gap: 4px; justify-content: flex-end; }
.mrow-odds .muted { font-size: .7rem; }
.mrow-odds b { font-size: .76rem; font-weight: 700; padding: 3px 0; width: 40px; text-align: center; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.mrow .chev { color: var(--muted); }
.segbar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.segbar span { display: block; height: 100%; transition: width .5s var(--ease); }
.segbar .h { background: var(--home); } .segbar .d { background: var(--draw); } .segbar .a { background: var(--away); }
.segbar.lbl { height: 16px; font-size: .64rem; font-weight: 800; }
.segbar.lbl span { display: flex; align-items: center; justify-content: center; color: var(--on-fill); overflow: hidden; }
.probs-mini { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; color: var(--muted); margin-top: 3px; }
.probs-mini .h { color: var(--home); } .probs-mini .a { color: var(--away); }
.signal { font-size: .64rem; padding: 3px 8px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.signal.strong_value { background: color-mix(in srgb, var(--good) 20%, transparent); color: #4ade80; }
.signal.moderate_value { background: color-mix(in srgb, var(--good) 12%, transparent); color: #86efac; }
.signal.slight_value { background: var(--surface-3); color: var(--text-2); }
.signal.no_value { background: color-mix(in srgb, var(--bad) 12%, transparent); color: #fca5a5; }
.signal.no_market { background: var(--surface-3); color: var(--muted); }
html[data-tone="light"] .signal.strong_value { color: #15803d; } html[data-tone="light"] .signal.moderate_value { color: #166534; } html[data-tone="light"] .signal.no_value { color: #b91c1c; }
.edge-pos { color: var(--good); font-weight: 700; } .edge-neg { color: var(--bad); }
.form-string { display: inline-flex; gap: 3px; }
.form-string span { width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 5px; font-size: .66rem; font-weight: 800; color: var(--on-fill); }
.form-string .W { background: var(--win); } .form-string .D { background: var(--draw); } .form-string .L { background: var(--bad); }

/* feed --------------------------------------------------------------------- */
.feed-card { padding: 6px 8px; }
.feed { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
.feed li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line); animation: slide .25s var(--ease); }
.feed li:last-child { border-bottom: 0; }
.feed li.feed-empty { display: block; padding: 22px 12px; color: var(--muted); text-align: center; }
@keyframes slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.feed .ts { color: var(--muted); font-family: var(--mono); font-size: .68rem; padding-top: 3px; }
.feed .ev { min-width: 0; }
.feed .ev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed .ev-body { color: var(--text-2); font-size: .8rem; margin-top: 2px; }
.kind { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; }
.kind-score { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); }
.kind-status { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.kind-odds { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.kind-prediction { background: color-mix(in srgb, var(--away) 16%, transparent); color: var(--away); }
.kind-fixture, .kind-clock { background: var(--surface-3); color: var(--muted); }
.score-big { font-size: 1rem; font-weight: 800; }

/* tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .82rem; }
th, td { padding: 9px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
thead th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.team { font-weight: 700; color: var(--text); }
.team-cell { display: flex; align-items: center; gap: 9px; }
.pos { display: inline-block; width: 26px; height: 22px; line-height: 22px; text-align: center; border-radius: 6px; font-weight: 800; font-size: .74rem; background: var(--surface-3); color: var(--text-2); }
.pos.top { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); } .pos.euro { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); } .pos.bottom { background: color-mix(in srgb, var(--bad) 18%, transparent); color: #fca5a5; }
html[data-tone="light"] .pos.bottom { color: #b91c1c; }
.bar { display: grid; grid-template-columns: 84px minmax(70px, 1fr) 54px; align-items: center; gap: 3px 10px; margin: 7px 0; font-size: .82rem; }
.bar label { color: var(--text-2); font-weight: 600; }
.bar .track { height: 8px; background: var(--surface-3); border-radius: 5px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--grad); border-radius: 5px; transition: width .5s var(--ease); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
.bar .side { grid-column: 2 / -1; font-family: var(--mono); font-size: .68rem; color: var(--muted); line-height: 1.1; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.scores div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; }
.scores div:first-child { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.scores b { display: block; font-size: 1rem; font-weight: 800; } .scores small { color: var(--muted); font-size: .66rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: .8rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-family: var(--mono); font-size: .74rem; color: var(--text-2); }
.form-strip { display: inline-flex; gap: 4px; align-items: flex-end; flex-wrap: wrap; }
.pip { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 1px 1px; border: 0; background: transparent; cursor: pointer; border-radius: 6px; }
.pip:hover { background: var(--surface-3); }
.pip b { width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 5px; font-size: .66rem; font-weight: 800; color: var(--on-pip); }
.pip.W b { background: var(--win); } .pip.D b { background: var(--draw); } .pip.L b { background: var(--bad); }
.pip.latest b { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--text-2); }
.crest.xs { width: 16px; height: 16px; } .crest.xs i { font-size: .5rem; }
.hero-team .form-strip { margin-top: 6px; }
.hero-team.right .form-strip { justify-content: flex-end; }
.stat-row > b.lead { color: var(--text); } .stat-row > b:not(.lead) { color: var(--muted); }
.ins-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ins-head > div { display: flex; flex-direction: column; gap: 3px; }
.ins-head b { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; }
/* the Insights card (2026-10-12): sections by what helps a decision, each line its record against the odds */
.insight { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.insight.compact { padding: 8px 12px; }
.insight.side-home { box-shadow: inset 3px 0 0 var(--home); }
.insight.side-away { box-shadow: inset 3px 0 0 var(--away); }
.ins-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.ins-ico svg { width: 18px; height: 18px; }
.ins-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ins-detail { color: var(--text-2); font-size: .8rem; margin-top: 2px; }
.ins-basis { margin: 10px 0 0; }
.ins-block { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.ins-block h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ins-missing { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.ins-odds { display: inline-flex; gap: 6px; align-items: baseline; font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-2); }
.ins-odds b { font-family: var(--mono); color: var(--text); }
.ins-rest h4, .tc-team h4 { margin: 8px 0 0; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tc-team { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.tc-team h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tc-team .tc-list { margin-top: 6px; }
.ins-caution { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 14px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.ins-caution > svg { color: var(--warn); width: 18px; height: 18px; margin-top: 2px; }
.ev { display: inline-block; margin-top: 6px; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.ev-beat { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }
.ev-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.trend-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; margin: 12px 0; }
.trend-kpis div { display: flex; flex-direction: column; }
.trend-kpis b { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; }
.trend-kpis span { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trend { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.trend.s3 { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--text); } .trend.s2 { border-color: var(--line-2); color: var(--text); }
.gchart { width: 100%; height: 64px; display: block; }
.gchart .gf { fill: var(--home); } .gchart .ga { fill: var(--away); opacity: .85; } .gchart .axis { stroke: var(--line-2); stroke-width: 1; }
.gchart .xg { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 2; opacity: .8; }
html[data-tone="light"] .gchart .xg { stroke: #0f172a; }
.sheet-tabs { overflow-x: auto; scrollbar-width: none; }
.sheet-tabs button { white-space: nowrap; min-width: 0; }
/* a strip wider than its box fades at the end that hides tabs (app.js tabFades) */
.sheet-tabs.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.sheet-tabs.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.sheet-tabs.more-l.more-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
@media (max-width: 720px) { .ins-head { grid-template-columns: 1fr; } .trend-kpis { grid-template-columns: repeat(2, 1fr); } }
.stats-mini { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-mini b { color: var(--text-2); font-weight: 700; }
.stat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.stat-row { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.stat-row > b { font-variant-numeric: tabular-nums; font-size: .9rem; }
.stat-row > b:last-child { text-align: right; }
.stat-label { display: block; text-align: center; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.stat-bars { display: grid; grid-template-columns: 1fr 1fr; height: 7px; gap: 3px; }
.stat-bars span { display: block; height: 100%; border-radius: 4px; transition: width .5s var(--ease); }
.stat-bars .h { background: var(--home); justify-self: end; } .stat-bars .a { background: var(--away); }
.group-chip { border-style: dashed; }
.tr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-head .segbar { width: 120px; }
.tr-headline { margin: 10px 0 2px; font-weight: 700; color: var(--text); padding: 8px 12px; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent); border-left: 3px solid var(--accent); }
.tr-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.tr-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tr-side.away { border-left: 1px solid var(--line); padding-left: 14px; }
.tr-insights { display: grid; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.tr-insight { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .82rem; }
.tr-insight .ins-ico { width: 26px; height: 26px; font-size: .8rem; }
.tr-insight.s3 b { color: var(--accent); } .tr-insight.kind-data b { color: var(--warn); }
.tr-team { display: flex; align-items: center; gap: 10px; } .tr-team b { display: block; font-weight: 800; }
.tr-rates { display: flex; gap: 12px; font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tr-rates b { display: block; font-size: .9rem; color: var(--text); letter-spacing: 0; }
@media (max-width: 720px) { .tr-body { grid-template-columns: 1fr; } .tr-side.away { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; } }
.chip-group { align-self: center; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 0 4px 0 10px; }
.chip-group:first-child { padding-left: 0; }
.flag.badge { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 26px; height: 15px; padding: 0 4px; border-radius: 3px; background: var(--surface-3); color: var(--text-2); font-size: .58rem; font-weight: 800; letter-spacing: .04em; }
.sty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.sty-side { min-width: 0; }
.sty-side .tc-head { margin-bottom: 4px; }
.sys { font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); }
.sys-control { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--home); }
.sys-transition { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: var(--accent-2); }
.sys-low_block { background: color-mix(in srgb, var(--draw) 18%, transparent); color: var(--text-2); }
.sys-open { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.sys-attrition { background: color-mix(in srgb, var(--draw) 18%, transparent); color: var(--text-2); }
.sys-stretched { background: color-mix(in srgb, var(--away) 16%, transparent); color: var(--away); }
.sys-balanced { background: var(--surface-2); color: var(--muted); }
.tc-list.compact { margin-top: 10px; gap: 4px; }
.tc-list.compact li { padding: 5px 8px 5px 20px; font-size: .78rem; line-height: 1.3; background: transparent; border: 1px solid var(--line); }
.tc-list.compact .tc-dot { top: 10px; }
@media (max-width: 640px) { .sty-grid { grid-template-columns: 1fr; } }

/* ── lineups ── */
.lu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lu-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lu-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-form { font-family: var(--mono); font-size: .72rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.lu-sec { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 2px; }
.lu-p { display: grid; grid-template-columns: 22px 14px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 0; font-size: .8rem; border-bottom: 1px solid var(--line); }
.lu-p:last-child { border-bottom: 0; }
.lu-p.unused { opacity: .5; }
.lu-no { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-align: right; }
.lu-pos { font-size: .6rem; font-weight: 800; color: var(--muted); }
.lu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-name small { color: var(--muted); margin-left: 6px; }
.lu-rt { font-family: var(--mono); font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.lu-rt.hi { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.lu-rt.lo { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.lu-out { font-size: .78rem; padding: 3px 0; }
.lu-out span { color: var(--muted); }
@media (max-width: 640px) { .lu-grid { grid-template-columns: 1fr; } }
.tc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-weight: 700; }
.tc-head .small { font-weight: 500; }
.tc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tc-list li { position: relative; padding: 7px 10px 7px 22px; background: var(--surface-2); border-radius: 8px; font-size: .82rem; line-height: 1.35; }
.tc-list li b { font-weight: 700; }
.tc-dot { position: absolute; left: 9px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tc-list li.kind-form .tc-dot { background: var(--accent); }
.tc-list li.kind-attack .tc-dot { background: var(--home); }
.tc-list li.kind-defence .tc-dot { background: var(--away); }
.tc-list li.kind-venue .tc-dot { background: var(--warn, #f59e0b); }
.tc-list li.kind-volume .tc-dot { background: var(--good); }
/* form and analysis */
.fa-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fa-missing { color: var(--warn); }
ul.plain { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.fa-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.fa-detail h4 { margin: 6px 0 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.fa-detail h5 { margin: 8px 0 4px; font-size: .78rem; font-weight: 700; }
.fa-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fa-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fa-block > .table-wrap + .fa-pair { margin-top: 22px; }   /* the lists' heads clear the averages' last row */
/* Form & Trends (2026-10-12): one row a fixture, the same five figures for every one, marked against the league */
.ft-patterns { margin: 2px 0 8px; }
.chip.pat-beat { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.chip.pat-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ft-headrow, .ft-main { display: grid; grid-template-columns: 116px minmax(190px, 1.25fr) minmax(290px, 1.5fr) minmax(210px, 1fr); gap: 16px; align-items: center; }
.ft-headrow { padding: 0 17px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ft-headrow .ft-metrics span { text-align: right; }
.ft-row { padding: 0; overflow: hidden; }
.ft-main { padding: 12px 16px; cursor: pointer; }
.ft-main:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.ft-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ft-when { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ft-teams, .ft-figures { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ft-team { display: flex; align-items: center; gap: 8px; min-width: 0; height: 24px; }
.ft-team b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.ft-team .form-strip { margin-left: auto; flex: none; }
.ft-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: center; height: 24px; }
.ft-cell { text-align: right; font-family: var(--mono); font-size: .8rem; font-weight: 600; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ft-cell i { font-style: normal; font-size: .6rem; margin-left: 3px; }
.ft-cell.mk-g { color: var(--good); } .ft-cell.mk-b { color: var(--bad); } .ft-cell.mk-n { color: var(--accent); }
.ft-market { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* room between the Over 2.5 figures and the bars (the user, 2026-10-13: "very close"), the heading moved with them */
.ft-main > .ft-market, .ft-headrow > span:last-child { margin-left: 22px; }
.ft-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 16px 10px; border-top: 1px solid var(--line); }
.ft-foot > .btn { margin-left: auto; }
.ft-headline { font-size: .8rem; color: var(--text-2); flex: 1 1 280px; min-width: 0; }
.ft-pat { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.ft-pat.pat-beat { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }
.ft-pat.pat-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.ft-row > .fa-detail { margin: 0; padding: 12px 16px 16px; }
@media (max-width: 900px) {
  .ft-headrow { display: none; }
  .ft-main { grid-template-columns: 1fr; gap: 10px; }
  .ft-main > .ft-market { margin-left: 0; }
  .ft-metrics { height: auto; }
  .ft-cell { display: flex; flex-direction: column; align-items: flex-end; }
  .ft-cell::before { content: attr(data-l); font-family: var(--sans); font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
}
.fa-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fa-pair > .fa-side.away, .fa-pair > .fa-side + .fa-side { border-left: 1px solid var(--line); padding-left: 16px; }
.fa-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-3); color: var(--text-2); }
.fa-facts li.fa-home .tc-dot { background: var(--home); } .fa-facts li.fa-away .tc-dot { background: var(--away); } .fa-facts li.fa-h2h .tc-dot { background: var(--draw); }
.fa-para { margin: 0; font-size: .84rem; line-height: 1.45; }
.fa-strip { flex-wrap: wrap; }
.fa-vs { font-style: normal; font-size: .7rem; font-weight: 800; } .fa-vs.up { color: var(--good); } .fa-vs.down { color: var(--bad); }
.fa-trend ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; line-height: 1.35; }
.fa-trend .fa-lbl { font-size: .66rem; letter-spacing: .05em; margin-right: 4px; }
.fa-trend.fa-up h5 { color: var(--good); } .fa-trend.fa-down h5 { color: var(--bad); } .fa-trend.fa-poi h5 { color: var(--warn); }
table.fa-avg td:first-child { color: var(--text-2); }
table.fa-res tr[data-open] { cursor: pointer; }
table.fa-res tr[data-open]:hover td { background: var(--surface-2); }
table.fa-res .fa-comp { display: block; margin-top: 1px; line-height: 1.2; }
/* on a phone the long heads and names wrap, so every column stays in the box */
table.fa-avg th { white-space: normal; }
table.fa-res td:nth-child(2) { white-space: normal; width: 100%; }
@media (max-width: 480px) {
  table.fa-avg th, table.fa-avg td { padding: 8px 6px; }
  table.fa-avg td:first-child { white-space: normal; }
}
table.fa-avg tr.fa-split td { border-top: 1px solid var(--line-2); }
@media (max-width: 720px) { .fa-pair { grid-template-columns: 1fr; } .fa-pair > .fa-side + .fa-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }
table.books td.num { vertical-align: top; }
table.books td.num .imp, table td.num .imp, .stat-row b .imp { display: block; font-size: .62rem; color: var(--muted); font-weight: 600; }
.stat-row b .imp { margin-top: 1px; }
table.books td.best { color: var(--good); font-weight: 800; }
/* Players: WhoScored's player statistics, one card a table */
table.pl-table td { vertical-align: middle; }
table.pl-table td:nth-child(2) { white-space: normal; width: 100%; }   /* the figure stays on screen on a phone */
.mrow.ext { cursor: default; }                               /* a meeting from API-Sports: no match sheet */
.pl-name { font-weight: 600; }
.pl-team { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pl-team > span:not(.crest) { flex: 1 1 0; min-width: 0; }            /* wraps beside its crest */
/* a player's name opens his sheet */
.pl-open { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.pl-open:hover, .pl-open:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* the player sheet: photo and facts, tiles, duels, WhoScored's verdict */
.pl-sheet { display: grid; gap: 14px; }
.pl-head, .pl-wait { display: flex; gap: 16px; align-items: center; }
.pl-head h2, .pl-wait h2 { margin: 0 0 4px; }
.pl-photo { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--surface-3); flex: none;
  display: inline-flex; align-items: center; justify-content: center; }
.pl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-photo i { display: none; font: 800 1.2rem var(--sans); color: var(--text-2); font-style: normal; }
.pl-photo.fallback img { display: none; } .pl-photo.fallback i { display: inline; }
.pl-wait .pl-photo.skeleton { border-radius: 50%; }        /* round while his page is read, too */
.pl-sheet .card > p.muted { margin: 10px 0 0; }
.pl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.pl-tile { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-tile b { font-size: 1.3rem; font-variant-numeric: tabular-nums; } .pl-tile b small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.pl-tile span { font-size: .74rem; color: var(--muted); }
.pl-tile em { font-style: normal; font-size: .7rem; color: var(--text-2); }
.pl-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.2em; gap: 4px 12px; align-items: baseline; padding: 6px 0; }
.pl-duel-pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-duel-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.pl-duel-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.sw-axis { padding: 0 0 2px; }
.sw-axis-labels { display: flex; justify-content: space-between; gap: 4px; font-size: .68rem; color: var(--muted); }
.sw-axis-labels span { white-space: nowrap; }       /* wrapped on a phone, they read "Strong / Weak" */
.sw-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 6.4em; gap: 10px; align-items: center; padding: 5px 0; }
.sw-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); }
.sw-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.sw-bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.sw-bar.sw-good { background: var(--good); } .sw-bar.sw-bad { background: var(--bad); }   /* not .pos: the table's position badge */
.sw-level { font-size: .74rem; font-weight: 600; white-space: nowrap; } .sw-level.sw-good { color: var(--good); } .sw-level.sw-bad { color: var(--bad); }
.sw-style { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
/* the Player sheet's parts (app.js openPlayer): traits, shot map, season, heat map, match log; and the search */
.pl-sheet [data-ps-part]:empty { display: none; }
.ps-back { justify-self: start; margin-bottom: 8px; }
.ps-status { margin-top: 4px; }
/* the global svg rule sizes icons (1.1em, outlined): the radar sets its own height and strokes */
.ps-radar { display: block; width: 100%; max-width: 420px; height: auto; aspect-ratio: 340 / 262; margin: 4px auto 0; overflow: visible; stroke: none; }
.ps-ring { fill: none; stroke: color-mix(in srgb, var(--text) 18%, transparent); stroke-width: 1; }
.ps-spoke { fill: none; stroke: color-mix(in srgb, var(--text) 14%, transparent); stroke-width: 1; }
.ps-shape { fill: color-mix(in srgb, var(--accent) 34%, transparent); stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.ps-axis { font: 600 12px var(--sans); fill: var(--text-2); stroke: none; }
.ps-axis-v { font: 800 13px var(--sans); fill: var(--text); stroke: none; }
.ps-shotmap { gap: 10px; }
.ps-shotmap .mcx-shot { --c: var(--accent); }
.ps-shotmap .mcx-shot.sel i { box-shadow: 0 0 0 3px rgba(250,204,21,.9); }
.ps-half { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 68 / 54.5; border-radius: 12px; overflow: hidden;
  background: radial-gradient(ellipse at top, rgba(255,255,255,.06), transparent 70%), repeating-linear-gradient(0deg, #2f7e50 0 10%, #2a7349 10% 20%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), inset 0 0 40px rgba(0,0,0,.25); }
.ps-tot { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ps-tot div { background: var(--surface-2); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-tot b { font-size: 1.1rem; font-variant-numeric: tabular-nums; } .ps-tot span { font-size: .7rem; color: var(--muted); }
.ps-shotcard { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.ps-shotcard > div { flex: 1 1 220px; min-width: 0; }
.ps-sec h3 { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; font-weight: 700; }
.ps-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.6em minmax(60px, 34%) 2.2em; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ps-row b { text-align: right; font-variant-numeric: tabular-nums; }
.ps-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 3px; }
.ps-bar i.lo { background: var(--bad); } .ps-bar i.mid { background: var(--warn); } .ps-bar i.hi { background: var(--good); }
.ps-pct { text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ps-row .ps-none { grid-column: 3 / -1; }
.ps-log { width: 100%; }
.ps-log td, .ps-log th { padding: 7px 6px; }
.ps-match { cursor: pointer; }
.ps-match:hover, .ps-match:focus-visible { background: var(--surface-2); outline: none; }
.ps-res { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-size: 10.5px; font-weight: 800; color: #fff; vertical-align: 1px; }
.ps-res.W { background: var(--win); } .ps-res.D { background: var(--draw); } .ps-res.L { background: var(--bad); }
.ps-card { display: inline-block; width: 8px; height: 11px; border-radius: 2px; margin-left: 2px; vertical-align: -1px; background: #facc15; }
.ps-card.r { background: #ef4444; }
.ps-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; }
.pl-find { position: relative; }
.pl-find .input { width: min(280px, 100%); }
.pl-results { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; width: min(360px, 92vw); max-height: 360px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 4px; }
.pl-hit { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; background: none; border: 0; border-radius: 8px; padding: 8px 10px; text-align: left; color: var(--text); font: inherit; cursor: pointer; }
.pl-hit:hover, .pl-hit:focus-visible { background: var(--surface-2); outline: none; }
.pl-hit-none { padding: 10px; }
.mcx-sheetbtn { margin-left: 6px; }
@media (max-width: 560px) {
  .ps-tot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-row { grid-template-columns: minmax(0, 1fr) 4.2em minmax(48px, 30%) 2em; }
  .pl-find, .pl-find .input { width: 100%; }
}
.mkt-consensus { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.moves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.moves div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.moves b { font-size: .95rem; }
.notice { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: .82rem; }
.notice.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); color: var(--text); }
.notice.info { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); margin: 12px 0 0; }
.spark { width: 100%; height: 44px; }
.spark path { fill: none; stroke-width: 2; }

/* predict form ------------------------------------------------------------- */
.pred-form { display: grid; grid-template-columns: 1fr auto 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 14px; }
.vs { color: var(--muted); font-weight: 800; font-size: .76rem; text-transform: uppercase; }
.odds-in { display: flex; gap: 6px; } .odds-in .input { width: 68px; text-align: center; padding-left: 6px; padding-right: 6px; appearance: textfield; -moz-appearance: textfield; }
.odds-in .input::-webkit-inner-spin-button, .odds-in .input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }   /* room for a price such as 11.00 */
.pred-odds { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.odds-lbl { align-self: center; min-width: 30px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pred-auto { margin: -4px 4px 14px; }
/* Predict starts from a real match; the power table (2026-10-12) */
.pred-pick { margin-bottom: 12px; }
.pred-pick.pl-find .input { width: min(520px, 100%); }
.pred-pick .pl-results { left: 0; right: auto; width: min(520px, 100%); }
.pred-form select:disabled { opacity: .5; cursor: not-allowed; }
.pred-form > * { min-width: 0; }   /* the team boxes and the price row shrink to a phone's width */
#pred-book { max-width: 100%; }
.rt-power th button.rt-sort, .xg-table th button.rt-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.rt-power th button.rt-sort:hover, .rt-power th button.rt-sort.on, .xg-table th button.rt-sort:hover, .xg-table th button.rt-sort.on { color: var(--text); }
.rt-power td.sub { color: var(--muted); font-size: .76rem; }
.rt-power th, .rt-power td, .xg-table th, .xg-table td { padding-left: 7px; padding-right: 7px; }
.rt-power td.rt-str { min-width: 84px; }
.rt-power .form-strip { flex-wrap: nowrap; }
.rt-bar { display: block; position: relative; height: 4px; margin-top: 4px; background: var(--surface-3); border-radius: 2px; }
.rt-bar i { position: absolute; top: 0; height: 100%; border-radius: 2px; }
.rt-bar i.pos { left: 50%; background: var(--good); }
.rt-bar i.neg { right: 50%; background: var(--bad); }
.rt-power .mk-g, .xg-table .mk-g { color: var(--good); font-style: normal; }
.rt-power .mk-b, .xg-table .mk-b { color: var(--bad); font-style: normal; }

/* team page (2026-10-12): one team, reading down ------------------------------------------- */
.tp-find { margin-bottom: 14px; }
.tp-find .input { max-width: 420px; }
.tp-head { display: flex; align-items: center; gap: 14px; }
.tp-head h2 { font-size: 1.35rem; margin: 0 0 6px; }
.tp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tp-chip { display: inline-block; font-size: .74rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.tp-chip b { color: var(--text); }
.tp-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tp-sec > h3 { margin: 0 0 10px; }
.tp-sec > h3 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tp-sec > .tc-team { margin-top: 0; padding-top: 0; border-top: 0; }
.tp-next { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.tp-next-when, .tp-next-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-next-teams { font-size: 1rem; }
.tp-next-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tp-more { margin-top: 10px; }
.tp-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tp-fig { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.tp-fig .ft-cell { display: block; text-align: left; font-size: .95rem; }
.tp-fig .ft-cell::before { content: none; }   /* the tile names its figure: no second label from the Form & Trends phone rows */
.tp-venues { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.tp-venue h4 { margin: 0 0 6px; }
.tp-venue h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
.tp-compare { margin-top: 12px; }
.tp-xg td:first-child { font-weight: 600; }
.tp-sec .xg-tiles + .table-wrap { margin-bottom: 12px; }
table.tp-xg th { white-space: normal; }
/* a phone: every figure in the box -- tighter, and "A game" (the totals over the games) left out */
@media (max-width: 480px) {
  table.tp-xg th, table.tp-xg td { padding: 8px 5px; }
  table.tp-xg th:last-child, table.tp-xg td:last-child { display: none; }
  table.tp-xg .hl { display: none; }
}
table.tp-xg .hs { display: none; }
@media (max-width: 480px) { table.tp-xg .hs { display: inline; } }
/* the xG tracker (2026-10-16): the team's chart and its three figures; the league's table */
.xg-chart { display: block; width: 100%; max-width: 900px; height: auto; margin: 4px 0 10px; stroke: none; stroke-width: 0; }   /* the global svg rule outlines what it holds */
.xg-chart .xg-grid { stroke: var(--line); stroke-width: 1; }
.xg-chart .xg-season { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.xg-chart .xg-tl { fill: var(--muted); font-size: 11px; }
.xg-chart .xg-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.xg-chart .xg-line.for, .xg-key.for { stroke: var(--home); background: var(--home); }
.xg-chart .xg-line.against, .xg-key.against { stroke: var(--away); background: var(--away); }
.xg-chart .xg-dot { opacity: .38; }
.xg-chart .xg-dot.for { fill: var(--home); }
.xg-chart .xg-dot.against { fill: var(--away); }
.xg-chart .xg-hit { fill: transparent; }
.xg-chart .xg-match:hover .xg-dot { opacity: 1; }
.xg-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.xg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.xg-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
/* the team's tiles, the graphic's Arsenal examples: expected points, xG difference, xG against */
.xg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2px 0 16px; }
.xg-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 14px 12px; border-radius: 12px; background: var(--surface-2); }
.xg-tile h4 { margin: 0; text-align: center; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.xg-tile > p.muted { margin: -4px 0 2px; text-align: center; }
.xg-circles { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 0; }
.xg-circle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; font-weight: 700; font-size: 1.05rem; line-height: 1; }
.xg-circle i { margin-top: 3px; font-style: normal; font-size: .6rem; font-weight: 600; opacity: .8; }
.xg-circle.exp { border: 2px solid var(--bad); background: color-mix(in srgb, var(--bad) 20%, transparent); }
.xg-circle.act { border: 2px solid var(--good); background: color-mix(in srgb, var(--good) 20%, transparent); }
.xg-sign { font-size: 1.3rem; color: var(--text-2); }
.xg-leg { display: flex; justify-content: center; gap: 16px; }
.xg-leg .dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; }
.xg-leg .dot.exp { background: var(--bad); }
.xg-leg .dot.act { background: var(--good); }
.xg-cap { margin: auto 0 0; padding-top: 4px; text-align: center; color: var(--text-2); }
.xg-cap .mk-g { color: var(--good); }
.xg-cap .mk-b { color: var(--bad); }
.xg-rows { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.xg-row { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); align-items: center; gap: 8px; }
.xg-who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .76rem; color: var(--text-2); }
.xg-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xg-row.me .xg-who { color: var(--text); font-weight: 700; }
.xg-row.me .xg-who .crest { box-shadow: 0 0 0 2px var(--accent); border-radius: 50%; }
.xg-dtrack, .xg-atrack { position: relative; height: 20px; }
.xg-dtrack::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line-2); }
.xg-dbar, .xg-abar { position: absolute; top: 4px; height: 12px; border-radius: 3px; }
.xg-abar { left: 0; }
.xg-dbar.xg-up, .xg-abar.best { background: var(--good); }
.xg-dbar.xg-down, .xg-abar.worst { background: var(--bad); }
.xg-abar.mid { background: var(--text); }
.xg-val { position: absolute; top: 2px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.xg-val.xg-up { color: var(--good); }
.xg-val.xg-down { color: var(--bad); }
.xg-axis { position: relative; height: 14px; border-top: 1px solid var(--line); font-size: .64rem; color: var(--muted); }
.xg-axis span { position: absolute; top: 2px; transform: translateX(-50%); }
@media (max-width: 1000px) { .xg-tiles { grid-template-columns: 1fr; } }
/* a phone: crests only in the bar rows, as the graphic draws them -- the team's own ringed -- so the values keep their room */
@media (max-width: 480px) { .xg-row { grid-template-columns: 26px minmax(0, 1fr); } .xg-who > span:last-child { display: none; } }
table.xg-table tbody tr[data-team] { cursor: pointer; }
table.xg-table .xg-part { color: var(--muted); font-size: .7rem; font-weight: 500; }
table.xg-table sup { color: var(--muted); margin-left: 1px; }
table.xg-table tbody tr[data-team]:hover td { background: var(--surface-2); }
@media (max-width: 640px) {
  .tp-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-venues { grid-template-columns: 1fr; }
  .tp-head h2 { font-size: 1.15rem; }
}

/* sheet -------------------------------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(2,6,12,.55); z-index: 30; backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100vw); z-index: 31; background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateX(100%); transition: transform .32s var(--ease); overflow-y: auto; }
.sheet.open { transform: none; }
.sheet-inner { padding: 20px 24px 48px; }
.sheet-hero { position: relative; border-radius: 20px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 14px; }
.sheet-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 10% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%); pointer-events: none; }
.sheet-hero > * { position: relative; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.sheet-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.sheet-tabs button { flex: 1 0 auto; font: inherit; font-weight: 700; font-size: .8rem; color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.sheet-tabs button.on { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-sm); }
.sheet-pane { display: none; } .sheet-pane.on { display: block; animation: fade .2s var(--ease); }
/* five tabs, each a page of open sections (2026-10-12): one gap between whatever a tab stacks */
.sheet-pane > * + *, .sheet-sub > * + * { margin-top: 12px; }
.sheet-sub:empty { display: none; }
/* the sheet grows with the screen (the user's pick, 2026-10-12): up to 1240px, a strip of the page left
   to click away; sections that belong together sit side by side (app.js pair), the pitches keep their size.
   A screen query, not a container one: a container would trap the live pitch's fixed bottom sheet */
.sheet-cols { display: grid; gap: 12px; align-items: start; }
.sheet-col { min-width: 0; }
.sheet-col > * + * { margin-top: 12px; }
.sheet-col > :first-child { margin-top: 0; }
@media (min-width: 1100px) {
  .sheet { width: min(1240px, calc(100vw - 72px)); }
  .sheet-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* the width given outright: in a flex column (.mcx) auto margins stop an item stretching, and a pitch whose
   players are all placed absolutely then had no width, and so no height (2026-10-12: the pitches vanished) */
.sheet .mcx-pitch { width: 100%; max-width: 900px; margin-inline: auto; }
.sheet .mcx-pitch.v { max-width: 560px; }
.sheet .ch-board { width: 100%; max-width: 900px; margin-inline: auto; }
.sheet .pl-sheet { max-width: 940px; margin-inline: auto; }

/* live card (GET /fixtures/{id}/live): status in words, the measured feed age, sticky */
.lc-head { position: sticky; top: 0; z-index: 3; margin: -20px -24px 14px; padding: 12px 60px 12px 24px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.lc-head-in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 28px; }
.lc-status { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.lc-status.s-live { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); }
.lc-status.s-review { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.lc-score { display: none; align-items: baseline; gap: 6px; min-width: 0; font-weight: 700; }
.lc-head.compact .lc-score { display: inline-flex; }
.lc-score b { font-size: 1rem; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-t { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-clock { font-size: .8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-clock b { color: var(--text); }
.lc-clock:empty { display: none; }
.lc-age { margin-left: auto; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-age.fresh { color: var(--good); } .lc-age.late { color: var(--warn); } .lc-age.stale { color: var(--bad); }
html[data-tone="light"] .lc-status.s-live, html[data-tone="light"] .lc-age.fresh { color: #15803d; }
html[data-tone="light"] .lc-status.s-review, html[data-tone="light"] .lc-age.late, html[data-tone="light"] .lc-rev-word { color: #b45309; }
html[data-tone="light"] .lc-age.stale { color: #b91c1c; }
.lc-rev-word { color: var(--warn); }
.lc-unk { color: var(--muted); }
.lc-review { margin: 14px 0 0; }
.lc-vals { margin: 6px 0 0; padding-left: 18px; font-size: .78rem; color: var(--text-2); }
.lc-blocks { flex: 1 1 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; }
.lc-block { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-width: 0; }
.lc-block-h { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.lc-block-h span { color: var(--muted); }
.lc-block .trio { gap: 12px; } .lc-block .trio b { font-size: 1.05rem; }
.lc-block .segbar { margin-top: 8px; }
.lc-kv { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.lc-kv div { display: flex; flex-direction: column; }
.lc-kv b { font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lc-kv span { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.lc-foot { margin-top: 8px; font-size: .72rem; color: var(--muted); }
.lc-final { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.lc-pitchcard .mcx { gap: 10px; }
/* the live page (2026-10-12): momentum, the last ten minutes, just now, the pitch, the events, the statistics */
.lc-mom .fm-head { margin-top: 0; }
.lc-mom .mcx-empty { padding: 18px 12px; }
.lc-recent { margin-top: 10px; font-size: .8rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lc-recent b { color: var(--text); }
.lc-now-slot:empty { display: none; }
.lc-now { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.lc-now::-webkit-scrollbar { display: none; }
.lc-now-h { flex: none; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--live); }
.lc-now-ev { flex: none; white-space: nowrap; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.lc-now-ev.h { border-left: 3px solid var(--home); } .lc-now-ev.a { border-left: 3px solid var(--away); }
.lc-evl { display: flex; flex-direction: column; gap: 4px; }
.lc-ev { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 8px; border: 0; border-left: 3px solid var(--home); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: .82rem; line-height: 1.35; cursor: pointer; font-variant-numeric: tabular-nums; }
.lc-ev.a { border-left-color: var(--away); }
.lc-ev.k-shot { color: var(--text-2); font-size: .78rem; }
.lc-ev.k-goal { font-weight: 700; }
.lc-ev:hover, .lc-ev:focus-visible, .lc-now-ev:hover, .lc-now-ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lc-ev-src { margin-top: 8px; }
.sheet .lc-momc, .hero-mom > * { max-width: 900px; margin-inline: auto; }
.hero-mom { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
/* the Match view (2026-10-12): the ball replayed through WhoScored's events at their own pace */
.mv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: .85rem; }
.mv-when { color: var(--text-2); font-variant-numeric: tabular-nums; }
.mv-pitch [hidden] { display: none !important; }
.mv-ball { position: absolute; z-index: 5; width: 13px; height: 13px; border-radius: 50%; pointer-events: none; will-change: left, top, transform;
  background: radial-gradient(circle at 35% 35%, #fff 0 45%, #d4d4d8 100%); border: 1.5px solid #18181b; box-shadow: 0 2px 5px rgba(0,0,0,.55); }
.mv-trail { position: absolute; z-index: 4; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #fff; opacity: 0; pointer-events: none; }
.mv-actor { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none;
  transition: left .35s var(--ease), top .35s var(--ease); }
.mv-actor b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff;
  background: var(--home); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.mv-actor.a b { background: var(--away); }
.mv-actor span { font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.85); white-space: nowrap; }
.mv-zone { position: absolute; z-index: 1; pointer-events: none; display: flex; align-items: flex-start; justify-content: center;
  background: color-mix(in srgb, var(--home) 14%, transparent); transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.mv-zone.a { background: color-mix(in srgb, var(--away) 14%, transparent); }
.mv-zone.t2 { background: color-mix(in srgb, var(--home) 28%, transparent); } .mv-zone.a.t2 { background: color-mix(in srgb, var(--away) 28%, transparent); }
.mv-zone span { margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mv-flash { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 16px; border-radius: 12px; pointer-events: none;
  background: rgba(0,0,0,.72); color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; animation: mv-pop .35s var(--ease); }
.mv-flash.k-goal { font-size: 26px; letter-spacing: .04em; background: color-mix(in srgb, var(--live) 80%, #000); }
@keyframes mv-pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }
.mv-msg { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; text-align: center; color: #fff; font-weight: 700; background: rgba(0,0,0,.35); }
.mv-cap { margin-top: 10px; min-height: 1.4em; font-size: .85rem; font-weight: 600; }
.mv-goals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.mv-goal { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.mv-goal.h { border-left: 3px solid var(--home); } .mv-goal.a { border-left: 3px solid var(--away); }
.mv-goal.on, .mv-goal:hover, .mv-goal:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mv-note { margin-top: 8px; } .mv-none { margin: 0; }
@media (prefers-reduced-motion: reduce) { .mv-actor, .mv-zone { transition: none; } .mv-flash { animation: none; } }
.mcx-chip.sent { opacity: .45; }
.mcx .ev.var { font-size: 8.5px; font-weight: 900; letter-spacing: .02em; padding: 0 3px; border-radius: 3px; background: rgba(0,0,0,.6); color: #fde68a; }
/* a new event's players light up a while, in the event's colour (and its words stay in the banner) */
.mcx-chip.hl .mcx-num, .lp-offp.hl { animation: lp-flash 1.1s ease-in-out 0s 8; }
.hl-goal { --hl: color-mix(in srgb, var(--live) 90%, transparent); } .hl-yellow { --hl: color-mix(in srgb, var(--warn) 90%, transparent); } .hl-red { --hl: color-mix(in srgb, var(--bad) 90%, transparent); } .hl-sub, .hl-var { --hl: color-mix(in srgb, var(--accent) 90%, transparent); }
@keyframes lp-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px var(--hl, rgba(250,204,21,.85)); } }
/* the selected player: a bright halo that holds through each refresh */
.lp .mcx-chip.sel { z-index: 4; } .lp .mcx-chip.sel .mcx-num { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent); }
.lp-pill.fresh { animation: lp-pill .9s ease-in-out 0s 3; }
@keyframes lp-pill { 50% { transform: translateX(-50%) scale(1.06); } }
.lp-mode { font-size: .72rem; color: var(--muted); }
.lp-dir { font-weight: 700; opacity: .85; white-space: nowrap; }
.mcx .ev.y2 { display: inline-flex; } .mcx .ev.y2 .ev.rc { margin-left: -4px; transform: rotate(10deg); }
.lp-off { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lp-offp { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.lp-offp.h { border-left: 3px solid var(--home); } .lp-offp.a { border-left: 3px solid var(--away); }
.lp-offp.sel { outline: 2px solid var(--accent); outline-offset: 1px; } .lp-offp small { color: var(--muted); font-weight: 600; }
/* the player's card: beside him on a wide pitch, a bottom sheet on a phone */
.lp-card { width: min(290px, calc(100% - 12px)); }
.lp-card .tip-h { margin-bottom: 6px; } .lp-card .lp-tiles { grid-template-columns: repeat(3, 1fr); }
.lp-card .lp-cards { font-size: 13px; } .lp-card-st { font-weight: 700; margin-bottom: 8px; } .lp-card-last { margin-top: 8px; font-size: .82rem; } .lp-card-note { margin-top: 8px; }
.lp-card.sheetmode { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; max-height: 55vh; border-radius: 16px 16px 0 0; z-index: 45;
  box-shadow: 0 -10px 30px rgba(0,0,0,.35); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
/* a glance on hover (a mouse only); the card is a click away */
@media (hover: hover) {
  .lp .mcx-chip[data-peek]:hover::after { content: attr(data-peek); position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 6; pointer-events: none;
    white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.82); color: #fff; font-size: 11px; font-weight: 600; }
}
.lu-sent { margin-left: 6px; color: var(--bad); font-weight: 700; }
.lp-pill { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 4; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 700; }
.lp-read { margin-top: 10px; min-height: 1.4em; font-size: .8rem; color: var(--text-2); }
/* the action zone: where the last reported action was, under the players (never in the way of a tap) */
.lp-zone { position: absolute; z-index: 0; pointer-events: none; display: grid; place-items: center; border-radius: 10px;
  background: color-mix(in srgb, var(--home) 32%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--home) 75%, transparent);
  transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease); }
.lp-zone.a { background: color-mix(in srgb, var(--away) 32%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--away) 75%, transparent); }
.lp-zone.k-possession { background: color-mix(in srgb, var(--home) 13%, transparent); box-shadow: none; }
.lp-zone.a.k-possession { background: color-mix(in srgb, var(--away) 13%, transparent); }
.lp-zone.fresh { animation: lp-zone 1.2s ease-in-out 0s 8; }
@keyframes lp-zone { 50% { opacity: .4; } }
.lp-ball { font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.lp-cap { font-size: .78rem; color: var(--text-2); }
/* the ball: WhoScored's last events on the live pitch (app.js lcBall) */
.lb-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.lb-svg line { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.lb-link { stroke: rgba(255,255,255,.55); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lb-move { stroke-width: 2.5; } .lb-move.h { stroke: var(--home); } .lb-move.a { stroke: var(--away); } .lb-move.shot { stroke-width: 3.5; }
.lb-dot, .lb-shot { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 0; border-radius: 50%; cursor: pointer; }
.lb-dot { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.85); }
.lb-dot.h { background: var(--home); } .lb-dot.a { background: var(--away); }
.lb-dot::before, .lb-shot::before { content: ""; position: absolute; inset: -9px; }   /* a finger-sized target */
.lb-shot { width: 12px; height: 12px; background: transparent; border: 2px solid var(--home); opacity: .9; }
.lb-shot.a { border-color: var(--away); } .lb-shot.goal { background: #fff; border-color: #fff; box-shadow: 0 0 0 2px var(--home); }
.lb-shot.a.goal { box-shadow: 0 0 0 2px var(--away); }
.lb-ball { position: absolute; z-index: 3; transform: translate(-50%, -50%); font-size: 16px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); transition: left .6s ease, top .6s ease; }
@media (prefers-reduced-motion: reduce) { .lb-ball { transition: none; } }
/* WhoScored's match centre: the chalkboard and heat maps (app.js chRender) */
.ch-head, .ch-teams, .ch-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ch-teams .h { color: var(--home); font-weight: 600; } .ch-teams .a { color: var(--away); font-weight: 600; }
.ch-player { max-width: 100%; min-width: 0; flex: 1 1 180px; }
.ch-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 10px; }
.ch-chip { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line-2);
  border-radius: 8px; background: transparent; color: var(--text-2); font-size: .8rem; text-align: left; cursor: pointer; }
.ch-chip.on { border-color: var(--home); color: var(--text); background: color-mix(in srgb, var(--home) 10%, transparent); }
.ch-chip b.h, .ch-box b.h, .ch-shots-row b.h { color: var(--home); } .ch-chip b.a, .ch-box b.a, .ch-shots-row b.a { color: var(--away); }
.ch-board { border-radius: 10px; overflow: hidden; background: #1f5d34; }
.ch-pitch { display: block; width: 100%; height: auto; }
.ch-lines rect, .ch-lines line, .ch-lines circle { fill: none; stroke: rgba(255,255,255,.55); stroke-width: .25; }
.ch-arrow { stroke-width: .45; } .ch-arrow.h { stroke: var(--home); } .ch-arrow.a { stroke: var(--away); }
.ch-arrow.miss { stroke-dasharray: 1 .8; opacity: .55; }
.ch-dot { stroke: rgba(255,255,255,.9); stroke-width: .2; cursor: pointer; } .ch-dot.h { fill: var(--home); } .ch-dot.a { fill: var(--away); }
.ch-dot.miss { opacity: .55; } .ch-dot.goal { fill: #fff; stroke-width: .5; } .ch-dot.goal.h { stroke: var(--home); } .ch-dot.goal.a { stroke: var(--away); }
.ch-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 10px; }
.ch-box { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .8rem; }
.ch-shots { margin-top: 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; }
.ch-shots-h { display: flex; justify-content: space-between; margin-bottom: 8px; } .ch-shots-h .h { color: var(--home); } .ch-shots-h .a { color: var(--away); }
.ch-shots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; }
.ch-shots-col h4 { margin: 0 0 4px; font-size: .78rem; color: var(--text-2); text-align: center; }
.ch-shots-row { display: grid; grid-template-columns: 2.2em 1fr 2.2em; font-size: .8rem; padding: 2px 0; text-align: center; }
.ch-shots-row.zero { opacity: .45; }
.ch-heats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
/* WhoScored's league statistics under the Standings table (app.js tsRender) */
#st-teamstats:empty { display: none; }
.ts-tabs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.ts-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ts-tab { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); font-size: .8rem; cursor: pointer; }
.ts-tab.on { border-color: var(--home); color: var(--text); background: color-mix(in srgb, var(--home) 12%, transparent); }
.ts-tab:disabled { opacity: .4; cursor: default; }
.ts-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ch-heat-h { display: flex; justify-content: space-between; margin-bottom: 4px; } .ch-heat-h.h b { color: var(--home); } .ch-heat-h.a b { color: var(--away); }
@media (max-width: 720px) {
  .lc-head { padding: 10px 56px 10px 16px; }
  .lc-blocks { gap: 8px; } .lc-block { padding: 10px; } .lc-block .trio { gap: 8px; } .lc-block .trio b { font-size: .95rem; }
  .lc-why { display: none; }
  #hero .hero-center .lc-age { max-width: 170px; margin: 2px auto 0; }
}

/* palette ------------------------------------------------------------------ */
.palette { position: fixed; inset: 0; z-index: 40; background: rgba(2,6,12,.5); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; animation: fade .15s var(--ease); }
.palette-box { width: min(560px, 92vw); background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.palette-box input { width: 100%; font: 500 1rem var(--sans); color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; outline: none; }
.palette-box ul { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.palette-box li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.palette-box li.on, .palette-box li:hover { background: var(--surface-2); }
.palette-box li .muted { margin-left: auto; font-size: .72rem; }
.palette-foot { padding: 8px 14px; border-top: 1px solid var(--line); }

/* misc --------------------------------------------------------------------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50; background: var(--surface); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: slide .2s var(--ease); }
.toast.bad { border-color: var(--bad); }
.bottombar { display: none; }

/* responsive --------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --sidebar: 76px; }
  .logo-text, .logo-pulse, .nav button span, .sidebar-foot .pill { display: none; }
  .nav button { justify-content: center; padding: 12px; } .nav-badge { position: absolute; top: 6px; right: 8px; margin: 0; }
  .conn { justify-content: center; }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pred-form { grid-template-columns: 1fr 1fr; } .pred-form .vs { display: none; } .pred-form .btn { grid-column: 1 / -1; order: 1; }
  .hero-main { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .hero-team b { font-size: 1rem; } .hero-team .crest.lg { width: 44px; height: 44px; }
  .hero-score { font-size: 2.2rem; }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .app { margin-left: 0; }
  .topbar { padding: 14px 16px 4px; gap: 10px; } .stats { display: none; } .search { min-width: 0; flex: 1; }
  main { padding: 10px 14px 90px; }
  .hero { padding: 16px; border-radius: 18px; } .hero-bottom { gap: 12px; } .ring { display: none; }
  .mrow { padding: 10px 12px; }
  .sheet { width: 100vw; }
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--glass); backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottombar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font: 600 .62rem var(--sans); color: var(--muted); background: transparent; border: 0; padding: 6px 2px; border-radius: 10px; }
  .bottombar button svg { width: 20px; height: 20px; }
  .bottombar button.on { color: var(--accent); }
}

/* container-query overrides live last so they win the cascade ------------- */
@container (max-width: 760px) {
  .mrow { grid-template-columns: 64px minmax(140px, 1fr) 40px 120px 18px; }
  .mrow-odds { display: none; }
}
@container (max-width: 480px) {
  .mrow { grid-template-columns: 56px minmax(0, 1fr) 36px 18px; }
  .mrow-prob, .mrow-odds { display: none; }
}
@media (max-width: 720px) {
  .hero-main { grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
  .hero-team, .hero-team.right { flex-direction: column; text-align: center; gap: 8px; }
  .hero-team b { font-size: .95rem; } .hero-team .muted { display: none; }
  .hero-center { min-width: 0; padding-top: 10px; }
  .hero-kick { font-size: 1.3rem; } .hero-score { font-size: 2rem; }
  .hero-center .sub { white-space: normal; font-size: .7rem; }
  .trio { gap: 12px; } .trio b { font-size: 1rem; }
  .sheet-hero .hero-team .form-string { justify-content: center; }
}

/* ── match card: the picture of a match (lineups, shot map, heat map, statistics) ── */
.mc-wrap { display: flex; flex-direction: column; gap: 10px; }
.mc-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mc-svg svg { display: block; width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.mc-svg .mc-p { cursor: pointer; }
.mc-svg .mc-p:hover circle { stroke: #facc15; stroke-width: 4; }

/* ── the interactive match card ─────────────────────────────────────────── */
.mcx { position: relative; display: flex; flex-direction: column; gap: 14px; }
.mcx svg.mcx-lines, .mv svg.mcx-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.4; pointer-events: none; }
.mcx-lines * { vector-effect: non-scaling-stroke; }
.mcx-lines .dot { fill: rgba(255,255,255,.75); stroke: none; }
.mcx-top { position: relative; }
.mcx-save { position: absolute; top: 12px; right: 12px; }
.mcx-head { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px 16px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--home) 20%, var(--surface)) 0%, var(--surface) 42%, var(--surface) 58%, color-mix(in srgb, var(--away) 20%, var(--surface)) 100%); }
.mcx-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-right: 130px; }
.mcx-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 12px; }
.mcx-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 15px; }
.mcx-score { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 10px; row-gap: 4px; max-width: 170px; }
.mcx-score > b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mcx-score > span { font-size: 30px; color: var(--muted); line-height: 1; }
.mcx-score .ko { font-size: 28px; }
.mcx-score > .mcx-status { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--text-2); font-weight: 600; display: inline-flex; justify-content: center; gap: 6px; align-items: center; }
.mcx-status.live { color: var(--live); }
.mcx-scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; font-size: 12.5px; line-height: 1.6; }
.mcx-scorers .r { text-align: right; }
.mcx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 16px; }
.mcx-seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.mcx-seg button { border: 0; background: transparent; color: var(--text-2); padding: 6px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.mcx-seg button.on { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.mcx-seg button:disabled { opacity: .4; cursor: not-allowed; }
.mcx-forms { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; font-weight: 700; }
.mcx-forms .h { color: var(--home); } .mcx-forms .a { color: var(--away); text-align: right; }
.mcx-pitch { position: relative; aspect-ratio: 105 / 68; margin-top: 8px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 70%), repeating-linear-gradient(90deg, #2f7e50 0 9.0909%, #2a7349 9.0909% 18.1818%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), inset 0 0 40px rgba(0,0,0,.25); }
.mcx-pitch.v { aspect-ratio: 68 / 105; background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 70%), repeating-linear-gradient(0deg, #2f7e50 0 9.0909%, #2a7349 9.0909% 18.1818%); }
.mcx-chip { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; font: inherit; z-index: 1; }
.mcx-chip:hover, .mcx-chip:focus-visible { z-index: 3; outline: none; }
.mcx-num { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: var(--home); border: 2px solid rgba(255,255,255,.92); box-shadow: 0 3px 8px rgba(0,0,0,.35); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.mcx-chip.a .mcx-num { background: var(--away); }
.mcx-chip:hover .mcx-num, .mcx-chip:focus-visible .mcx-num { transform: scale(1.14); box-shadow: 0 0 0 3px rgba(250,204,21,.85), 0 3px 10px rgba(0,0,0,.4); }
.mcx-num .cap { position: absolute; left: -6px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 800; background: #fde047; color: #111; }
.mcx-rt { position: absolute; top: -9px; left: calc(50% + 9px); font-size: 10.5px; font-weight: 800; padding: 1px 5px; border-radius: 6px; color: #fff; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.mcx-rt.inline { position: static; margin-left: auto; }
.mcx-rt.big { position: static; font-size: 16px; padding: 4px 9px; border-radius: 9px; }
.r-top { background: #2563eb; } .r-good { background: #16a34a; } .r-ok { background: #ca8a04; } .r-meh { background: #ea580c; } .r-bad { background: #dc2626; }
.mcx-evs { position: absolute; top: -8px; right: calc(50% + 11px); display: flex; gap: 1px; align-items: center; }
.mcx .ev { font-style: normal; font-size: 11px; line-height: 1; }
.mcx .ev.yc, .mcx .ev.rc { display: inline-block; width: 8px; height: 11px; border-radius: 2px; background: #facc15; box-shadow: 0 0 0 1px rgba(0,0,0,.25); vertical-align: -1px; }
.mcx .ev.rc { background: #ef4444; }
.mcx .ev.og { filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(6); }
.mcx .ev.sub, .mcx .ev.on { font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 3px; background: rgba(0,0,0,.5); color: #fecaca; }
.mcx .ev.on { background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live); }
.mcx-name { margin-top: 4px; font-size: 11.5px; font-weight: 600; white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.mcx-sub-h { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 16px 0 6px; }
.mcx-sub-h.h { color: var(--home); } .mcx-sub-h.a { color: var(--away); }
.mcx-bench { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mcx-benchrow { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 7px 4px; color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: 13px; border-radius: 8px; }
.mcx-benchrow:hover, .mcx-benchrow:focus-visible { background: var(--surface-2); outline: none; }
.mcx-benchrow.unused { opacity: .5; }
.mcx-bn { flex: none; min-width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--home); }
.mcx-bn.a { background: var(--away); }
.mcx-bname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcx-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.mcx-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.mcx-filters .sep { width: 10px; }
.mcx-fchip { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.mcx-fchip:hover { color: var(--text); }
.mcx-fchip.on { background: var(--accent); border-color: transparent; color: #fff; }
.mcx-shot { position: absolute; transform: translate(-50%, -50%); width: var(--s); height: var(--s); background: none; border: 0; padding: 0; cursor: pointer; z-index: 1; }
.mcx-shot.goal { z-index: 2; }
.mcx-shot:hover, .mcx-shot:focus-visible { z-index: 4; outline: none; }
.mcx-shot i, .mcx-shape i { display: block; width: 100%; height: 100%; box-sizing: border-box; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) var(--fill, 10%), transparent); transition: transform .15s var(--ease); }
.mcx-shot:hover i, .mcx-shot:focus-visible i { transform: scale(1.25); }
.mcx .h { --c: var(--home); } .mcx .a { --c: var(--away); } .mcx .n { --c: var(--text-2); }
.mcx-shot.goal i, .mcx-shape.goal i { --fill: 100%; border-color: #fff; }
.mcx-shot.on i { --fill: 45%; } .mcx-shot.off i { --fill: 6%; }
.mcx .right-foot i { border-radius: 50%; }
.mcx .left-foot i { border-radius: 3px; }
.mcx .head i { border: 0; clip-path: polygon(50% 2%, 98% 96%, 2% 96%); background: color-mix(in srgb, var(--c) 55%, transparent); }
.mcx-shot.goal.head i { background: var(--c); }
.mcx .other i { transform: rotate(45deg) scale(.8); border-radius: 2px; }
.mcx-shape { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; }
.mcx-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.mcx-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mcx-part { display: grid; grid-template-columns: 22px 72px 1fr 24px; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 0; }
.mcx-part > .muted { grid-column: 2 / -1; margin-top: -4px; }
.mcx-part .bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.mcx-part .bar i { display: block; height: 100%; border-radius: 99px; background: var(--home); }
.mcx-part .bar i.a { background: var(--away); }
.mcx-part b { text-align: right; font-variant-numeric: tabular-nums; }
canvas.mcx-heat { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(1.5px); }
.mcx-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; background: rgba(0,0,0,.25); }
.mcx-heat-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; }
.mcx-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.mcx-pick { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; }
.mcx-pick .mcx-sub-h { flex-basis: 100%; margin-top: 0; }
.mcx-group h4 { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; font-weight: 700; }
.mcx-group:first-of-type h4 { margin-top: 2px; }
.mcx-row { display: grid; grid-template-columns: minmax(64px, auto) 1fr minmax(64px, auto); align-items: center; column-gap: 10px; row-gap: 6px; padding: 7px 0; }
.mcx-row .lbl { text-align: center; font-size: 13px; color: var(--text-2); }
.mcx .mcx-val { justify-self: start; min-width: 38px; text-align: center; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mcx-row .mcx-val:nth-of-type(2) { justify-self: end; }
.mcx .mcx-val.lead.h { background: var(--home); color: #fff; } .mcx .mcx-val.lead.a { background: var(--away); color: #fff; }
.mcx-split { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 6px;
  background: linear-gradient(var(--surface-3), var(--surface-3)) left / calc(50% - 2px) 100% no-repeat, linear-gradient(var(--surface-3), var(--surface-3)) right / calc(50% - 2px) 100% no-repeat; border-radius: 99px; }
.mcx-split i { display: block; height: 100%; border-radius: 99px; background: var(--home); justify-self: end; }
.mcx-split i.a { background: var(--away); justify-self: start; }
.mcx-note { background: color-mix(in srgb, var(--warn) 16%, transparent); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 6px; }
.mcx-empty { padding: 28px 12px; text-align: center; color: var(--muted); }
/* momentum: the chart's frame and the readout under the pointer */
.mm-wrap { position: relative; margin-top: 10px; touch-action: pan-y; }
.mcx-mom { width: 100%; height: auto; display: block; overflow: visible; stroke: none; stroke-width: 1; }  /* not the icons' stroke (svg, above) */
.mcx-mom .mm-xh { stroke: var(--text); stroke-width: 1; opacity: .45; pointer-events: none; }
.mcx-mom .mm-hit { fill: transparent; cursor: crosshair; }
.mm-read { position: absolute; z-index: 4; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-sm); padding: 7px 10px; font-size: 12px; line-height: 1.45; min-width: 120px; max-width: 220px; }
.mm-read .mm-rp .h { color: var(--home); font-weight: 700; } .mm-read .mm-rp .d { color: var(--text-2); font-weight: 700; } .mm-read .mm-rp .a { color: var(--away); font-weight: 700; }
.mm-read .mm-rev { margin-top: 3px; color: var(--text-2); }
/* the FotMob-style momentum: a wave in the teams' shirt colours */
.fm-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-2); }
.fm-head .fm-team { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); min-width: 0; }
.fm-head .fm-team.r { justify-self: end; }
.fm-head .fm-team i { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.fm-head .fm-title { font-weight: 700; letter-spacing: .02em; color: var(--text); text-align: center; }
.fm-head .fm-title em { font-style: normal; font-weight: 600; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.mcx-mom.fm .fm-wave { opacity: .95; }
.mcx-mom.fm .fm-axis { stroke: var(--text-2); stroke-width: 1; opacity: .5; }
.mcx-mom.fm .fm-ht { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 2 3; opacity: .45; }
.mcx-mom.fm .fm-tick { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 1 2.5; opacity: .5; }
.mcx-mom.fm .fm-goal circle { fill: #f8fafc; stroke-width: 2; } .mcx-mom.fm .fm-goal path { fill: #111827; }
.mcx-mom.fm .fm-red { fill: #ef4444; stroke: var(--surface); stroke-width: 1; }
.mcx-mom.fm .fm-now { stroke: var(--accent); stroke-width: 1.5; } .mcx-mom.fm .fm-now-dot { fill: var(--accent); }
.mcx-mom.fm .fm-tl { fill: var(--muted); font-size: 10.5px; text-anchor: middle; font-weight: 600; }
.fm-none { padding: 18px 12px; }
.fm-wp { margin-top: 12px; }
.fm-wp-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; font-weight: 600; margin-bottom: 5px; }
.fm-wp-now { display: inline-flex; gap: 12px; font-variant-numeric: tabular-nums; } .fm-wp-now .d { color: var(--draw); }
.mcx-mom.fm-band { height: 14px; border-radius: 7px; overflow: hidden; }

/* team news before the XI */
.tn { margin: 4px 0 10px; } .tn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .tn-none { margin: 4px 0 10px; }
@media (max-width: 560px) { .tn-grid { grid-template-columns: 1fr; } }
.mcx-tip { position: absolute; z-index: 20; width: min(310px, calc(100% - 12px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 13px; }
.mcx-tip .tip-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.mcx-tip .tip-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mcx-tip .tip-h .mcx-shape { width: 22px; height: 22px; margin: 0; }
.mcx-tip .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; }
.mcx-tip .tiles div { background: var(--surface-2); border-radius: 10px; padding: 7px 4px; text-align: center; }
.mcx-tip .tiles b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.mcx-tip .tiles span { font-size: 11px; color: var(--muted); }
.mcx-tip .tt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 10px 0 3px; }
.mcx-tip .tr { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.mcx-tip .tr b { font-variant-numeric: tabular-nums; }
.mcx-tip .tip-none { padding: 4px 0; }
.mcx-heatbtn { margin-top: 12px; width: 100%; }
@media (max-width: 560px) {
  .mcx-meta { padding-right: 0; }
  .mcx-save { position: static; margin-top: 8px; align-self: flex-end; }
  .mcx-top { display: flex; flex-direction: column; }
  .mcx-score > b { font-size: 32px; }
  .mcx-num { width: 28px; height: 28px; font-size: 12px; }
  .mcx-name { font-size: 10px; max-width: 70px; }
  .mcx-parts, .mcx-picker { grid-template-columns: 1fr; }
}

/* the tall pitch on a phone: smaller chips, so five lines of a half fit without touching */
.mcx-pitch.v .mcx-num { width: 26px; height: 26px; font-size: 11px; border-width: 1.5px; }
.mcx-pitch.v .mcx-rt { top: -5px; left: calc(50% + 8px); font-size: 9px; padding: 0 4px; }
.mcx-pitch.v .mcx-evs { top: -5px; right: calc(50% + 9px); }
.mcx-pitch.v .mcx-evs .ev.sub, .mcx-pitch.v .mcx-evs .ev.on { font-size: 8.5px; padding: 0 2px; }
.mcx-pitch.v .mcx-name { font-size: 9.5px; max-width: 62px; margin-top: 2px; }
.mcx-pitch.v .mcx-num .cap { width: 12px; height: 12px; font-size: 8px; left: -5px; bottom: -3px; }

/* ── the pulsing dots, on the compositor (2026-09-25) ──────────────────────
   The live dots and the sidebar's feed light pulsed by animating box-shadow,
   which the browser repaints every frame, forever; the feed light sits in
   the sidebar, whose full-height backdrop blur then had to be redrawn with
   it. The board tab held Firefox at 1.5-3 cores. The pulse is now a ring
   that scales and fades -- transform and opacity only, which the compositor
   animates without repainting -- and the sidebar, which overlaps nothing so
   its blur was never visible, drops it. */
.dot-live, .live-dot, .logo-pulse.on { animation: none; position: relative; }
.dot-live::after, .live-dot::after, .logo-pulse.on::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live);
  animation: pulse-ring 2s infinite; will-change: transform, opacity; pointer-events: none;
}
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }
.sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-2); }
@media (prefers-reduced-motion: reduce) {
  .dot-live::after, .live-dot::after, .logo-pulse.on::after, .skeleton { animation: none; }
}

/* ── track record (operator): charts drawn like the others, from the theme's tokens ── */
.tr-chart { width: 100%; max-width: 440px; height: auto; display: block; overflow: visible; stroke: none; stroke-width: 1; }  /* not the icons' stroke (svg, above) */
.tr-chart.wide { max-width: 560px; }
.tr-chart text { fill: var(--muted); font-size: 10px; font-family: var(--sans); stroke: none; }
.tr-chart text.lbl { fill: var(--text-2); font-weight: 600; }
.tr-chart .grid { stroke: var(--line); stroke-width: 1; }
.tr-chart .diag { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.tr-chart .m { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.tr-chart .k { fill: var(--surface); stroke: var(--muted); stroke-width: 2; }
.tr-chart .wm { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.tr-chart .wk { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.tr-chart .hit { fill: transparent; }
.tr-chart .pt:hover .m, .tr-chart .pt:hover .k { stroke: var(--text); }
.tr-chart .low { opacity: .3; }
.tr-chart .ln-m { fill: none; stroke: var(--accent); stroke-width: 2; }
.tr-chart .ln-b1 { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 4; }
.tr-chart .ln-b2 { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2 3; }
.tr-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .76rem; color: var(--text-2); margin: 2px 0 8px; }
.tr-key { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--accent); vertical-align: middle; margin-right: 6px; }
.tr-key.b1 { border-top: 2px dashed var(--muted); } .tr-key.b2 { border-top: 2px dotted var(--muted); }
.tr-key.dot { width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; background: var(--accent); }
.tr-key.dot.k { border-color: var(--muted); background: transparent; }
.tr-details { margin-top: 8px; } .tr-details summary { cursor: pointer; }
.tr-pre { white-space: pre-wrap; font-family: var(--mono); font-size: .72rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; max-height: 520px; overflow: auto; }

/* ── data quality (operator) ── */
.dq-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.dq-panels h3 { margin: 0 0 6px; font-size: .78rem; }
.dq-filters { gap: 8px; margin-bottom: 12px; }
.dq-table td { white-space: normal; vertical-align: top; }
.dq-standing { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
.dq-table .dq-fx { cursor: pointer; }
.dq-val { display: flex; flex-direction: column; margin-bottom: 4px; font-family: var(--mono); font-size: .74rem; }
.dq-hist { margin-top: 6px; } .dq-hist summary { cursor: pointer; color: var(--text-2); }
.dq-hist > div { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.dq-form { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.dq-opts { display: flex; flex-direction: column; gap: 6px; }
.dq-opt { display: flex; gap: 8px; align-items: baseline; font-size: .82rem; cursor: pointer; }
.dq-form textarea { width: 100%; max-width: 620px; font-weight: 500; resize: vertical; }
.dq-panels th, .dq-panels td { white-space: normal; padding: 7px 6px; }
.dq-panels .table-wrap { overflow-x: visible; }

/* ── nav groups: the operator pages under their own label (admin key only) ── */
.nav-group-label { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 12px 4px; }
@media (max-width: 1180px) { .nav-group-label { font-size: 0; padding: 0; margin: 8px 10px; border-top: 1px solid var(--line); } }
@media (max-width: 720px) {
  .bottombar { overflow-x: auto; scrollbar-width: none; }
  .bottombar button { min-width: 58px; }
  .bb-sep { flex: none; width: 1px; margin: 8px 2px; background: var(--line-2); }
}

/* ── developer (operator) ── */
.btn-danger { border-color: var(--bad); color: var(--bad); }
.dev-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr auto; gap: 8px; margin-bottom: 12px; }
@media (max-width: 900px) { .dev-form { grid-template-columns: 1fr 1fr; } .dev-form .btn { grid-column: 1 / -1; } }
.dev-steps { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.dev-key .input { flex: 1; min-width: 0; font-family: var(--mono); font-size: .78rem; }
#tab-developer h3 { margin: 14px 0 6px; }
#tab-developer code { font-family: var(--mono); font-size: .74rem; color: var(--text-2); background: var(--surface-2); border-radius: 5px; padding: 1px 5px; }
.dev-form .btn { white-space: nowrap; }

/* the sidebar's foot (API and Feed status, the theme switch, the key) stays on
   screen: on a short window the page list scrolls instead of pushing it off */
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; margin: 0 -14px; padding: 0 14px; }  /* the padding keeps the active marker (left: -14px) inside the scroll box */
.sidebar-foot { flex: none; padding-top: 10px; }


/* -- themes (2026-10-04) -------------------------------------------------------
   Five: Classic dark and light as they were, and one for each Dribbble shot the
   user chose -- Football (the DIGI.CO football app), Smart (the lime "Smart
   money" app) and Archive (the warm "Archive" dashboard). Each new one is its
   token block below and a few rules of its own; the ones shared by the three
   new themes carry the html:is([data-theme="football"],[data-theme="smart"],[data-theme="archive"]) prefix. data-tone (light / dark) is set beside
   data-theme, so the light- or dark-only rules above apply to every theme of
   that tone. Series colours checked with the dataviz validator: the draw grey
   is the neutral midpoint by design, and W / D / L always carry their letter. */

/* the picker */
.theme-menu { position: fixed; z-index: 60; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; animation: fade .15s var(--ease); }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-weight: 600; font-size: .82rem; color: var(--text-2); background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--surface-2); color: var(--text); outline: none; }
.theme-menu button[aria-checked="true"] { color: var(--text); }
.theme-menu button[aria-checked="true"]::after { content: "\2713"; margin-left: auto; color: var(--accent); font-weight: 800; }
.tm-sw { display: inline-flex; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); flex: none; }
.tm-sw i { width: 10px; height: 18px; display: block; }
.theme-btn-m { display: none; flex: none; }
@media (max-width: 720px) { .theme-btn-m { display: inline-flex; } }

/* Football */
html[data-theme="football"] {
  --bg: #0b0b0b; --bg-2: #101010;
  --surface: #151515; --surface-2: #1c1c1c; --surface-3: #262626;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --text: #f5f5f2; --text-2: #c4c4bd; --muted: #8d8d86;
  --accent: #cfe08a; --accent-2: #a9c255; --grad: linear-gradient(135deg, #dceba0 0%, #c3d873 100%);
  --live: #e5484d; --good: #5cc47a; --win: #2f9a55; --warn: #f2b84b; --bad: #e5484d;
  --home: #6f8f22; --draw: #a3a39c; --away: #4f8fe0;
  --glass: rgba(15,15,15,.88);
  --shadow: 0 20px 50px rgba(0,0,0,.55); --shadow-sm: 0 0 0 transparent;
  --r: 16px; --r-lg: 20px; --r-sm: 12px;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --on-accent: #10130a; --on-fill: #0b0b0b; --on-pip: #0b0b0b;
  --primary-shadow: none;
  --pill-on-bg: #cfe08a; --pill-on-fg: #10130a;
  --display: var(--sans); --num-weight: 800;
  --backdrop: radial-gradient(1100px 520px at 50% -12%, rgba(95,140,70,.16), transparent 62%),
              radial-gradient(900px 600px at 50% 120%, rgba(60,110,50,.10), transparent 60%);
  --hero-glow: radial-gradient(640px 240px at 15% 0%, rgba(207,224,138,.14), transparent 60%);
}

/* Smart */
html[data-theme="smart"] {
  --bg: #070806; --bg-2: #0a0c08;
  --surface: #0f110d; --surface-2: #151912; --surface-3: #1d2219;
  --line: rgba(198,244,50,.08); --line-2: rgba(198,244,50,.16);
  --text: #f4f7ee; --text-2: #b9c0ad; --muted: #848c79;
  --accent: #c6f432; --accent-2: #8fd62a; --grad: linear-gradient(135deg, #d8ff52 0%, #9be22d 100%);
  --live: #c6f432; --good: #8fd62a; --win: #4a9e2c; --warn: #f5b83d; --bad: #f2555a;
  --home: #6f9a12; --draw: #aab09f; --away: #8f6cf0;
  --glass: rgba(10,12,8,.8);
  --shadow: 0 24px 60px rgba(0,0,0,.6); --shadow-sm: 0 2px 12px rgba(0,0,0,.45);
  --r: 18px; --r-lg: 24px; --r-sm: 14px;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --on-accent: #0b1200; --on-fill: #070806; --on-pip: #070806;
  --primary-shadow: 0 0 0 1px rgba(198,244,50,.4), 0 8px 30px rgba(198,244,50,.32);
  --pill-on-bg: #c6f432; --pill-on-fg: #0b1200;
  --display: var(--sans); --num-weight: 800;
  --backdrop: repeating-linear-gradient(90deg, rgba(198,244,50,.045) 0 1px, transparent 1px 26px),
              radial-gradient(900px 480px at 78% -12%, rgba(198,244,50,.20), transparent 62%),
              radial-gradient(700px 420px at 0% 0%, rgba(90,160,40,.12), transparent 60%);
  --hero-glow: radial-gradient(620px 260px at 88% 0%, rgba(198,244,50,.24), transparent 60%),
               radial-gradient(420px 200px at 0% 100%, rgba(143,214,42,.10), transparent 60%);
}
html[data-theme="smart"] body::before { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
html[data-theme="smart"] :is(.card, .tr-card, .hero, .stat) { background: linear-gradient(180deg, rgba(198,244,50,.04), transparent 45%), var(--surface); }

/* Archive */
html[data-theme="archive"] {
  --bg: #d6d2c6; --bg-2: #cdc8bb;
  --surface: #f4efe2; --surface-2: #ece6d6; --surface-3: #e2dbc9;
  --line: rgba(30,27,22,.12); --line-2: rgba(30,27,22,.22);
  --text: #1e1b16; --text-2: #4a453c; --muted: #6b6457;
  --accent: #c2410c; --accent-2: #9a3412; --grad: linear-gradient(135deg, #c2410c 0%, #e0601f 100%);
  --live: #b42318; --good: #2f7d43; --win: #2f8f4e; --warn: #a16207; --bad: #b42318;
  --home: #c2410c; --draw: #b9b09d; --away: #2a64a8;
  --glass: rgba(240,235,222,.9);
  --shadow: 0 18px 40px rgba(30,27,22,.12); --shadow-sm: 0 0 0 transparent;
  --r: 6px; --r-lg: 6px; --r-sm: 4px;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --on-accent: #fdf8ec; --on-fill: #1e1b16; --on-pip: #1e1b16;
  --primary-shadow: none;
  --pill-on-bg: #1e1b16; --pill-on-fg: #f4efe2;
  --display: var(--sans); --num-weight: 300;
  --backdrop: radial-gradient(760px 460px at 72% 34%, rgba(194,65,12,.10), transparent 66%);
  --hero-glow: radial-gradient(360px 280px at 18% 70%, rgba(194,65,12,.30), transparent 70%);
}
html[data-theme="archive"] body::before { opacity: 1; }
html[data-theme="archive"] :is(.pip.L b, .form-string .L) { color: #fdf8ec; }
html[data-theme="archive"] .icon-btn { border-radius: 50%; }
html[data-theme="archive"] .hero { border-radius: var(--r-lg); }
html[data-theme="archive"] :is(.trio .d b, .probs-mini .d) { color: var(--muted); }   /* the pale draw grey is a mark colour, too faint as text on cream */
html[data-theme="archive"] h1 { font-weight: 400; letter-spacing: -.02em; }
/* the shot's corner brackets, on the hero cards */
html[data-theme="archive"] .hero::after { content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: .7;
  background: linear-gradient(var(--text), var(--text)) top left / 11px 1px no-repeat, linear-gradient(var(--text), var(--text)) top left / 1px 11px no-repeat,
              linear-gradient(var(--text), var(--text)) top right / 11px 1px no-repeat, linear-gradient(var(--text), var(--text)) top right / 1px 11px no-repeat,
              linear-gradient(var(--text), var(--text)) bottom left / 11px 1px no-repeat, linear-gradient(var(--text), var(--text)) bottom left / 1px 11px no-repeat,
              linear-gradient(var(--text), var(--text)) bottom right / 11px 1px no-repeat, linear-gradient(var(--text), var(--text)) bottom right / 1px 11px no-repeat; }

/* shared by all five themes (2026-10-05: Classic polished like the others, the user's word) */
html h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; font-size: 1.55rem; }
html[data-theme="archive"] h1 { font-weight: 400; letter-spacing: -.02em; }
html :is(.btn, .input, .search, .seg, .seg button, .sheet-tabs button) { border-radius: 999px; }
html .btn-primary { font-weight: 700; }
html .btn-ghost { border-color: var(--line-2); }
html .chip { background: transparent; border-color: var(--line-2); }
html .chip.on { background: var(--pill-on-bg); color: var(--pill-on-fg); border-color: var(--pill-on-bg); }
html .logo-pulse.on { background: var(--good); animation: none; box-shadow: 0 0 8px var(--good); }   /* connected, not in play */
html :is(.seg button.on, .sheet-tabs button.on) { background: var(--pill-on-bg); color: var(--pill-on-fg); box-shadow: none; }
html .nav button { border-radius: 999px; }
html .nav button[aria-selected="true"] { background: var(--pill-on-bg); color: var(--pill-on-fg); box-shadow: var(--primary-shadow); }
html .nav button[aria-selected="true"]::before { display: none; }
html .bottombar button.on { color: var(--pill-on-fg); background: var(--pill-on-bg); }
html :is(.tag.live, .lc-status.s-live) { background: var(--live); color: var(--on-fill); }
html .mrow.live .mrow-time .lv:last-child { align-self: center; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--live); color: var(--on-fill); font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
html :is(.stat b, .hero-score, .hero-kick, .trio b, .ins-head b, .trend-kpis b, .tr-rates b, .odd b, .scores b) { font-family: var(--display); font-weight: var(--num-weight); }
html .stat { padding: 8px 14px; }
html .stat b { font-size: 1.4rem; letter-spacing: -.03em; }
html[data-theme="archive"] .stat b { font-size: 1.75rem; letter-spacing: -.02em; }
html .hero-score { font-size: 3.4rem; }
html .tr-headline { background: var(--surface-2); border-left-color: var(--accent); }

/* the fixture row, as the football shot's schedule: home + crest . time (score) . crest + away */
html .mrow { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) minmax(230px, 1.3fr) 132px 14px;
  grid-template-areas: "home time away prob odds chev" "home score away prob odds chev"; row-gap: 2px; padding: 12px 16px; }
/* the bars' legend and the prices' 1 X 2, once under each competition's heading, on the cards' own columns */
html .mrow-head { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) minmax(230px, 1.3fr) 132px 14px; column-gap: 12px;
  grid-template-areas: "home time away prob odds chev"; padding: 0 17px; font-size: .66rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
html .mh-legend { grid-area: prob; } html .mh-odds { grid-area: odds; }
html .mrow-teams { display: contents; }
html .mrow-teams .tm { font-size: .92rem; }
html .mrow-teams .tm .crest { width: 30px; height: 30px; }
html .mrow-teams .tm:first-child { grid-area: home; flex-direction: row-reverse; text-align: right; }
html .mrow-teams .tm:last-child { grid-area: away; }
html .mrow-time { grid-area: time; align-items: center; text-align: center; }
html .mrow-score { grid-area: score; flex-direction: row; justify-content: center; gap: 0; font-family: var(--display); font-weight: var(--num-weight); font-size: 1.15rem; }
html .mrow-score span { height: auto; line-height: 1.2; }
html .mrow-score span + span::before { content: "\2013"; margin: 0 6px; color: var(--muted); }
html .mrow-score span.muted { display: none; }
html .mrow-prob { grid-area: prob; }
html .mrow-odds { grid-area: odds; }
html .mrow .chev { grid-area: chev; }
@container (max-width: 760px) {
  html .mrow { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 170px 14px; grid-template-areas: "home time away prob chev" "home score away prob chev"; }
  html .mrow-head { grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 170px 14px; grid-template-areas: "home time away prob chev"; }
  html .mh-odds { display: none; }
}
@container (max-width: 480px) {
  html .mrow { grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 12px; grid-template-areas: "home time away chev" "home score away chev"; padding: 10px 12px; column-gap: 8px; }
  html .mrow-head { display: none; }
  html .mrow-teams .tm { font-size: .82rem; gap: 6px; }
  html .mrow-teams .tm .crest { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { html[data-theme="smart"] body::before { -webkit-mask-image: none; mask-image: none; } }


/* -- closer to the shots (2026-10-05, the user's word) ----------------------------
   Side by side with the shots: Smart's light curtain was barely there, its cards
   flat, its figures modest; Football's headings standard-size and its tiles
   tight. Style only, those two themes. */

/* Smart: the lime light curtain, upper right, fading out -- as behind "Smart money." */
html[data-theme="smart"] {
  --backdrop: repeating-linear-gradient(90deg, rgba(198,244,50,.13) 0 2px, transparent 2px 11px),
              repeating-linear-gradient(90deg, rgba(150,215,40,.10) 0 6px, transparent 6px 29px),
              radial-gradient(ellipse 46% 60% at 74% 4%, rgba(198,244,50,.30), transparent 70%),
              radial-gradient(700px 420px at 0% 0%, rgba(90,160,40,.12), transparent 60%);
  --hero-glow: repeating-linear-gradient(90deg, rgba(198,244,50,.10) 0 2px, transparent 2px 12px),
               radial-gradient(ellipse 50% 90% at 86% 0%, rgba(198,244,50,.28), transparent 72%);
}
html[data-theme="smart"] body::before { -webkit-mask-image: radial-gradient(ellipse 62% 78% at 76% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%); mask-image: radial-gradient(ellipse 62% 78% at 76% 0%, #000 0%, rgba(0,0,0,.55) 45%, transparent 78%); }
html[data-theme="smart"] .hero::before { -webkit-mask-image: radial-gradient(ellipse 60% 100% at 88% 0%, #000, transparent 80%); mask-image: radial-gradient(ellipse 60% 100% at 88% 0%, #000, transparent 80%); }
/* cards lit from above in lime, as the shot's balance card */
html[data-theme="smart"] :is(.card, .tr-card, .stat, .insight, .lc-block) {
  background: linear-gradient(160deg, rgba(198,244,50,.09), rgba(198,244,50,0) 55%), var(--surface);
  border-color: rgba(198,244,50,.14); box-shadow: inset 0 1px 0 rgba(198,244,50,.10), var(--shadow-sm); }
html[data-theme="smart"] .hero { background: linear-gradient(165deg, rgba(198,244,50,.12), rgba(198,244,50,0) 50%), var(--surface); border-color: rgba(198,244,50,.18); box-shadow: inset 0 1px 0 rgba(198,244,50,.14), var(--shadow); }
html[data-theme="smart"] .mrow { background: linear-gradient(160deg, rgba(198,244,50,.05), rgba(198,244,50,0) 50%), var(--surface); }
/* the figures as heroes, as "$12,480.52" */
html[data-theme="smart"] h1 { font-size: 2rem; letter-spacing: -.045em; }
html[data-theme="smart"] .hero-score { font-size: 4.4rem; letter-spacing: -.055em; }
html[data-theme="smart"] .hero-kick { font-size: 2.6rem; letter-spacing: -.045em; }
html[data-theme="smart"] .stat b { font-size: 1.7rem; letter-spacing: -.045em; }
html[data-theme="smart"] .trio b { font-size: 1.45rem; letter-spacing: -.035em; }
html[data-theme="smart"] .mrow-score { font-size: 1.35rem; letter-spacing: -.03em; }

/* Football: the shot's big, tight headings -- "Match Schedule", "English Premier League 2025" */
html[data-theme="football"] h1 { font-size: 2.1rem; letter-spacing: -.05em; line-height: 1.05; }
html[data-theme="football"] .section-head h2, html[data-theme="football"] #tab-live h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.045em; }
html[data-theme="football"] .day { font-size: 1.15rem; font-weight: 800; letter-spacing: -.035em; color: var(--text); margin-top: 18px; }
html[data-theme="football"] .day::after { opacity: .6; }
/* the shot's score and kick-off, large */
html[data-theme="football"] .hero-score { font-size: 4.2rem; letter-spacing: -.055em; }
html[data-theme="football"] .hero-kick { font-size: 2.4rem; letter-spacing: -.045em; }
html[data-theme="football"] .stat b { font-size: 1.6rem; letter-spacing: -.045em; }
html[data-theme="football"] .trio b { font-size: 1.35rem; letter-spacing: -.035em; }
/* roomier schedule tiles */
html[data-theme="football"] .mrow { padding: 16px 18px; border-radius: 18px; }
html[data-theme="football"] .mrow-teams .tm { font-size: 1rem; }
html[data-theme="football"] .mrow-teams .tm .crest { width: 30px; height: 30px; }
html[data-theme="football"] .mrow-score { font-size: 1.4rem; letter-spacing: -.03em; }
html[data-theme="football"] .stack { gap: 10px; }
/* PLAY / WATCH NOW: the primary button's capitals */
html[data-theme="football"] .btn-primary { text-transform: uppercase; letter-spacing: .02em; font-weight: 700; padding-left: 18px; padding-right: 18px; }
@container (max-width: 480px) {
  html[data-theme="football"] .mrow { padding: 12px 12px; }
  html[data-theme="football"] .mrow-teams .tm { font-size: .86rem; }
  html[data-theme="football"] .mrow-teams .tm .crest { width: 24px; height: 24px; }
}
@media (max-width: 720px) {
  html[data-theme="football"] h1, html[data-theme="smart"] h1 { font-size: 1.7rem; }
  html:is([data-theme="football"],[data-theme="smart"]) .hero-score { font-size: 2.8rem; }
  html:is([data-theme="football"],[data-theme="smart"]) .hero-kick { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) { html[data-theme="smart"] :is(body, .hero)::before { -webkit-mask-image: none; mask-image: none; } }


/* -- Archive closer to its shot (2026-10-05, the user's word) ----------------------
   The shot: rows divided by hairlines in one cream panel, each ending in a thin
   arrow; regular-weight titles and names; outlined pills, never a filled
   button; thin terracotta lines and outline circles for data; hairline-outlined
   tags in normal case; big light figures parted by hairlines. Archive only. */
html[data-theme="archive"] h2 { font-weight: 400; letter-spacing: -.02em; }
html[data-theme="archive"] .section-head h2, html[data-theme="archive"] #tab-live h2 { font-size: 1.5rem; font-weight: 400; letter-spacing: -.025em; }
html[data-theme="archive"] .day { font-size: 1.05rem; font-weight: 400; letter-spacing: -.01em; color: var(--text); margin-top: 16px; }
html[data-theme="archive"] :is(.tm, .hero-team b, .tr-team b, .team) { font-weight: 500; }
html[data-theme="archive"] .hero-team b { font-size: 1.45rem; letter-spacing: -.02em; }
html[data-theme="archive"] .tm.lose { color: var(--muted); }
/* rows: one cream panel, hairlines between, a thin arrow at the end */
html[data-theme="archive"] .stack:has(> .mrow) { gap: 0; background: var(--surface); border-radius: var(--r-lg); padding: 2px 18px; }
html[data-theme="archive"] .stack > .mrow { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
html[data-theme="archive"] .stack > .mrow:last-child { border-bottom: 0; }
html[data-theme="archive"] .stack > .mrow:hover { transform: none; background: transparent; }
html[data-theme="archive"] .stack > .mrow:hover .mrow-teams .tm span { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
html[data-theme="archive"] .stack > .day { margin: 18px 0 2px; }
html[data-theme="archive"] .mrow .chev { display: none; }
html[data-theme="archive"] .mrow::after { content: "\2192"; grid-area: chev; justify-self: end; font-size: 1.25rem; font-weight: 300; color: var(--text); }
/* outlined pills, as "Explore": no filled button */
html[data-theme="archive"] .btn-primary { background: transparent; color: var(--text); border: 1px solid var(--text); box-shadow: none; font-weight: 500; }
html[data-theme="archive"] .btn-primary:hover { background: var(--text); color: var(--surface); filter: none; }
html[data-theme="archive"] :is(.btn, .chip, .input) { font-weight: 500; }
/* thin data marks: a hairline bar, an outline ring */
html[data-theme="archive"] .segbar { height: 4px; border-radius: 2px; }
html[data-theme="archive"] .hero-probs .segbar { height: 5px; }
html[data-theme="archive"] .ring svg { stroke-width: 3.5; }
html[data-theme="archive"] .ring .lbl { font-weight: 400; }
html[data-theme="archive"] .trio b { font-weight: 300; font-size: 1.5rem; }
html[data-theme="archive"] .trio span { font-weight: 500; letter-spacing: .04em; }
/* tags: hairline outline, normal case, as "192 kHz" */
html[data-theme="archive"] .tag { background: transparent; border: 1px solid var(--line-2); border-radius: 2px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .74rem; color: var(--text-2); }
html[data-theme="archive"] .tag.live { background: transparent; border-color: var(--live); color: var(--live); }
/* the figures: light, parted by hairlines, no boxes */
html[data-theme="archive"] .stats { gap: 0; }
html[data-theme="archive"] .stat { background: transparent; border: 0; border-radius: 0; border-left: 1px solid var(--line-2); padding: 2px 16px; min-width: 0; }
html[data-theme="archive"] .stat:first-child { border-left: 0; }
html[data-theme="archive"] .stat b { font-size: 2rem; }
html[data-theme="archive"] .stat span { font-weight: 500; letter-spacing: .04em; text-transform: none; font-size: .74rem; }
@media (max-width: 720px) { html[data-theme="archive"] .stack:has(> .mrow) { padding: 2px 12px; } html[data-theme="archive"] .hero-team b { font-size: 1.05rem; } }
