/* footy-site — one stylesheet. Tokens on :root (light), dark via prefers-color-scheme or [data-theme=dark]. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0c1524;
  --text-2: #334155;
  --muted: #64748b;
  --accent: #1f5eff;
  --accent-2: #1749cc;
  --accent-soft: #e7eeff;
  --accent-ink: #ffffff;
  --home: #1f5eff;
  --draw: #a3adbd;
  --away: #f26b1d;
  --win: #119a4c;
  --win-soft: #e2f6ea;
  --draw-c: #8a94a6;
  --draw-soft: #eef1f5;
  --loss: #e0393e;
  --loss-soft: #fde9e9;
  --warn: #c98300;
  --warn-soft: #fff4dc;
  --live: #e0393e;
  --z-cl: #1f5eff;
  --z-el: #f28a1d;
  --z-ecl: #12a37a;
  --z-promo: #119a4c;
  --z-po: #8b5cf6;
  --z-rel: #e0393e;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.1);
  --radius: 14px;
  --radius-sm: 9px;
  --hdr-h: 58px;
  /* where sticky bars stop: under the sticky header (phones: the header scrolls away, so the very top) */
  --sticky-top: var(--hdr-h);
  --wrap: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f19;
    --surface: #111827;
    --surface-2: #0e1521;
    --surface-3: #1a2334;
    --line: #222d40;
    --line-strong: #314058;
    --text: #e8edf6;
    --text-2: #c2cbda;
    --muted: #8796ad;
    --accent: #6b93ff;
    --accent-2: #8eadff;
    --accent-soft: #18264a;
    --accent-ink: #0a0f19;
    --home: #5f8bff;
    --draw: #5b667a;
    --away: #ff8a45;
    --win: #2ec46d;
    --win-soft: #11301f;
    --draw-c: #7d889c;
    --draw-soft: #1c2433;
    --loss: #ff5d62;
    --loss-soft: #3a171a;
    --warn: #f0b440;
    --warn-soft: #33270d;
    --live: #ff5d62;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f19;
  --surface: #111827;
  --surface-2: #0e1521;
  --surface-3: #1a2334;
  --line: #222d40;
  --line-strong: #314058;
  --text: #e8edf6;
  --text-2: #c2cbda;
  --muted: #8796ad;
  --accent: #6b93ff;
  --accent-2: #8eadff;
  --accent-soft: #18264a;
  --accent-ink: #0a0f19;
  --home: #5f8bff;
  --draw: #5b667a;
  --away: #ff8a45;
  --win: #2ec46d;
  --win-soft: #11301f;
  --draw-c: #7d889c;
  --draw-soft: #1c2433;
  --loss: #ff5d62;
  --loss-soft: #3a171a;
  --warn: #f0b440;
  --warn-soft: #33270d;
  --live: #ff5d62;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}
@media (min-width: 900px) {
  body {
    font-size: 16px;
  }
}
img {
  max-width: 100%;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.012em;
  color: var(--text);
}
h1 {
  font-size: 1.55rem;
  font-weight: 800;
}
h2 {
  font-size: 1.12rem;
  font-weight: 750;
}
h3 {
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 900px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.2rem;
  }
}
p {
  margin: 0 0 0.9em;
}
small {
  font-size: 0.82em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.num,
.tbl td,
.tbl th {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 14px;
}
@media (min-width: 700px) {
  .wrap {
    padding: 0 22px;
  }
}

/* ------------------------------------------------------------------ header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--hdr-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.02em;
  flex: none;
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 7px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--surface-3);
  text-decoration: none;
  color: var(--text);
}
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.theme-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.theme-btn:hover {
  background: var(--surface-3);
}
.theme-btn svg {
  width: 18px;
  height: 18px;
}
.theme-btn .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .i-sun {
  display: block;
}
:root[data-theme="dark"] .theme-btn .i-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-btn .i-moon {
    display: none;
  }
}
@media (max-width: 699px) {
  .hdr__in {
    flex-wrap: wrap;
    gap: 0 8px;
    padding-top: 6px;
  }
  .hdr__in .brand {
    min-height: 40px;
  }
  .hdr__in .theme-btn {
    margin-left: auto;
  }
  .nav {
    order: 3;
    width: 100%;
    margin: 0 -6px;
    padding: 2px 0 8px;
  }
  .nav a {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}
@media (max-width: 420px) {
  .nav a {
    padding: 6px 4px;
    font-size: 0.8rem;
  }
}

/* ------------------------------------------------------------------ date bar */
.datebar {
  position: sticky;
  top: var(--sticky-top);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 699px) {
  /* phones: the header scrolls away, the date strip and other sticky bars stop at the very top */
  :root {
    --sticky-top: 0px;
  }
  .hdr {
    position: relative;
  }
}
.datebar__in {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}
.dchip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  line-height: 1.15;
}
.dchip:hover {
  text-decoration: none;
  border-color: var(--line-strong);
}
.dchip__w {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.dchip__d {
  font-weight: 700;
  font-size: 0.9rem;
}
.dchip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.dchip.is-active .dchip__w {
  color: inherit;
  opacity: 0.85;
}

/* ------------------------------------------------------------------ layout */
.main {
  padding-top: 14px;
  padding-bottom: 40px;
  min-height: 60vh;
}
.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}
/* the sidebar only when the main column keeps ≥ ~700px (match rows need it); below that it goes under the list */
@media (min-width: 1100px) {
  .layout--side {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}
.stack {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-content: start;
}
/* grid items default to min-width:auto (their content's minimum, e.g. a wide table): never wider than the column */
.stack > *,
.grid2 > *,
.grid3 > *,
.layout > * {
  min-width: 0;
}
.grid2 {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.grid3 {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

/* ------------------------------------------------------------------ crumbs, page head */
.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 2px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline;
}
.crumbs li {
  display: inline;
}
.crumbs li + li::before {
  content: "›";
  margin: 0 6px;
  color: var(--line-strong);
}
.crumbs a {
  color: var(--muted);
}
.crumbs [aria-current] {
  color: var(--text-2);
}
.phead {
  margin: 4px 0 16px;
}
.phead h1 {
  margin-bottom: 6px;
}
.phead__sub {
  color: var(--text-2);
  max-width: 70ch;
  margin: 0;
}
.phead--logo {
  display: flex;
  gap: 14px;
  align-items: center;
}
.phead--logo .logo {
  width: 56px;
  height: 56px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
}
.card__hd h2,
.card__hd h3 {
  margin: 0;
}
.card__hd .more {
  font-size: 0.88rem;
  font-weight: 650;
  white-space: nowrap;
}
.card__bd {
  padding: 12px 16px 16px;
  container-type: inline-size;
}
.card__bd--flush {
  padding: 10px 0 6px;
}
.card__note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 10px 0 0;
}
.prose {
  color: var(--text-2);
  max-width: 75ch;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose h2 {
  margin-top: 1.4em;
}
.prose h3 {
  margin-top: 1.2em;
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose li {
  margin: 0.25em 0;
}
.prose strong {
  color: var(--text);
}
.callout {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 0.92rem;
}
.callout--warn {
  background: var(--warn-soft);
}
.empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--text-2);
  margin-bottom: 4px;
}
.src {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ------------------------------------------------------------------ chips, badges */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}
a.chip:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  color: var(--text);
}
.chip img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  white-space: nowrap;
}
.badge--live {
  background: var(--loss-soft);
  color: var(--live);
}
.badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge--live::before {
    animation: none;
  }
}
.badge--ft {
  background: var(--surface-3);
}
.badge--hit {
  background: var(--win-soft);
  color: var(--win);
}
.badge--miss {
  background: var(--loss-soft);
  color: var(--loss);
}
.badge--value {
  background: var(--win-soft);
  color: var(--win);
}
.badge--dead {
  background: var(--warn-soft);
  color: var(--warn);
}
.conf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 600;
}
.conf i {
  display: inline-flex;
  gap: 2px;
}
.conf i b {
  width: 6px;
  height: 12px;
  border-radius: 2px;
  background: var(--line-strong);
}
.conf--medium i b:nth-child(-n + 2),
.conf--high i b,
.conf--low i b:first-child {
  background: var(--accent);
}
.pos {
  color: var(--win);
}
.neg {
  color: var(--loss);
}

/* ------------------------------------------------------------------ logos */
.logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
  vertical-align: middle;
}
.logo--sm {
  width: 18px;
  height: 18px;
}
.logo--lg {
  width: 64px;
  height: 64px;
}
.flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
}
:root[data-theme="dark"] .logo {
  filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.55));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo {
    filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.55));
  }
}

/* ------------------------------------------------------------------ segmented control / tabs */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-3);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg button,
.seg a {
  flex: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.seg a:hover {
  text-decoration: none;
}
.seg [aria-pressed="true"],
.seg [aria-selected="true"],
.seg [aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.toolbar > .mbar {
  flex: 1 1 100%;
}
.js [data-inactive] {
  display: none;
}
.tabpanel__h {
  display: none;
}
html:not(.js) .tabpanel__h {
  display: block;
  margin-top: 10px;
}
html:not(.js) [data-tabs] [role="tablist"] {
  display: none;
}

/* ------------------------------------------------------------------ probability bar */
.pbar {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
  min-width: 0;
  width: 100%;
}
.pbar__s {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.pbar__s--h {
  background: var(--home);
}
.pbar__s--d {
  background: var(--draw);
}
.pbar__s--a {
  background: var(--away);
}
.pbar__s i {
  font-style: normal;
}
.pbar--lg {
  height: 34px;
  border-radius: 9px;
}
.pbar--lg .pbar__s {
  font-size: 0.95rem;
}
.pbar__s.is-narrow i {
  display: none;
}
.pbar-legend {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--text-2);
}
.pbar-legend > :nth-child(2) {
  text-align: center;
}
.pbar-legend > :last-child {
  text-align: right;
}
.pbar-legend b {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pbar-legend .h b {
  color: var(--home);
}
.pbar-legend .d b {
  color: var(--draw-c);
}
.pbar-legend .a b {
  color: var(--away);
}

/* meter (single probability) */
.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.meter--win i {
  background: var(--win);
}

/* ------------------------------------------------------------------ match list */
.mlist {
  display: grid;
  gap: 14px;
  container-type: inline-size;
}
.mgroup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mgroup__hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.mgroup__hd a {
  color: var(--text);
  font-weight: 750;
}
.mgroup__hd .muted {
  font-size: 0.84rem;
}
.mgroup__hd .more {
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 650;
}
.mrows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mrow + .mrow {
  border-top: 1px solid var(--line);
}
/* phones: stacked — teams, then the market in words, then that market's odds, each at full width */
.mrow__a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-areas: "time teams" "time mk" "time odds";
  align-items: center;
  gap: 4px 10px;
  padding: 10px 12px;
  color: inherit;
}
a.mrow__a:hover {
  text-decoration: none;
  background: var(--surface-2);
}
/* medium list: teams left, market and odds stacked right */
@container (min-width: 480px) {
  .mrow__a {
    grid-template-columns: 46px minmax(124px, 1fr) minmax(200px, 52%);
    grid-template-areas: "time teams mk" "time teams odds";
  }
}
/* wide list: one line per match — the market in words, then that market's best odds */
@container (min-width: 700px) {
  .mrow__a {
    grid-template-columns: 52px minmax(150px, 1fr) minmax(190px, 1.15fr) minmax(150px, 196px);
    grid-template-areas: "time teams mk odds";
    gap: 4px 14px;
    padding: 10px 14px;
  }
}
.mrow__time {
  grid-area: time;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.mrow__teams {
  grid-area: teams;
  display: grid;
  gap: 5px;
  min-width: 0;
}
.tm {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}
.tm__n {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm__s {
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 1ch;
  text-align: right;
}
.tm.is-win .tm__n {
  font-weight: 800;
}
.tm.is-lose {
  color: var(--text-2);
}
.mrow__mk {
  grid-area: mk;
  min-width: 0;
}
.mrow__odds {
  grid-area: odds;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}
@container (min-width: 700px) {
  .mrow__odds {
    justify-content: flex-end;
  }
}
.op {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 7px;
  background: var(--surface-3);
  font-size: 0.82rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}
.op i {
  font-style: normal;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--muted);
}
.op sup {
  color: var(--warn);
  font-size: 0.7rem;
  margin-left: 1px;
}
.op--value {
  background: var(--win-soft);
  color: var(--win);
}
.op--value i {
  color: inherit;
}
.op--gap {
  background: var(--warn-soft);
}
.op--na {
  color: var(--muted);
  font-weight: 600;
}
.op--won {
  box-shadow: inset 0 0 0 1.5px var(--win);
}
.op--fair {
  background: transparent;
  color: var(--text-2);
  font-weight: 650;
}
.mk2 {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.mk2__main {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk2__main b {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mk2__sub {
  font-size: 0.76rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* market bar of a match list */
.mbar {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.mbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.mbar__row > .seg:first-child {
  flex-wrap: wrap;
}
.seg--sm button {
  font-size: 0.8rem;
  padding: 4px 9px;
}
.mbar__lines {
  display: none;
}
.mbar[data-m="goals"] .mbar__lines[data-for="goals"],
.mbar[data-m="corners"] .mbar__lines[data-for="corners"],
.mbar[data-m="cards"] .mbar__lines[data-for="cards"] {
  display: inline-flex;
}
.mbar__legend {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.mbar__legend [data-for] {
  display: none;
}
.mbar[data-m="1x2"] .mbar__legend [data-for="1x2"],
.mbar[data-m="goals"] .mbar__legend [data-for="lines"],
.mbar[data-m="corners"] .mbar__legend [data-for="lines"],
.mbar[data-m="cards"] .mbar__legend [data-for="lines"],
.mbar[data-m="likely"] .mbar__legend [data-for="likely"],
.mbar[data-m="best"] .mbar__legend [data-for="best"] {
  display: inline;
}
html:not(.js) .mbar .seg {
  display: none;
}
.lg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  vertical-align: -1px;
}
.lg--value {
  background: var(--win-soft);
  box-shadow: inset 0 0 0 1.5px var(--win);
}
.lg--gap {
  width: auto;
  height: auto;
  background: var(--warn-soft);
  color: var(--warn);
  font-style: normal;
  font-weight: 800;
  padding: 0 4px;
}
.mrow__res {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ form pills */
.form {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}
.fp {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
a.fp:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.fp--W {
  background: var(--win);
}
.fp--D {
  background: var(--draw-c);
}
.fp--L {
  background: var(--loss);
}
.fp--sm {
  width: 18px;
  height: 18px;
  font-size: 0.66rem;
  border-radius: 5px;
}

/* ------------------------------------------------------------------ match hero */
.mhero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}
.mhero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--home), var(--home) 50%, var(--away) 50%, var(--away));
  opacity: 0.85;
}
.mhero__h1 {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  margin: 2px 0 8px;
  color: var(--text-2);
}
@media (min-width: 900px) {
  .mhero__h1 {
    font-size: 1.2rem;
  }
}
.mhero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.86rem;
  color: var(--text-2);
  text-align: center;
}
.mhero__meta a {
  color: var(--text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mhero__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 16px 0 8px;
}
.mhero__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  min-width: 0;
}
.mhero__team:hover {
  text-decoration: none;
  color: var(--accent);
}
.mhero__team .logo {
  width: 54px;
  height: 54px;
}
@media (min-width: 700px) {
  .mhero__team {
    font-size: 1.25rem;
  }
  .mhero__team .logo {
    width: 72px;
    height: 72px;
  }
}
.mhero__mid {
  text-align: center;
  min-width: 90px;
}
.mhero__score {
  font-size: 2.3rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mhero__ko {
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.mhero__date {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
.mhero__sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.mhero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-top: 8px;
}
.mhero__facts b {
  color: var(--text-2);
  font-weight: 650;
}
.mhero__facts a {
  font-weight: 650;
}

/* in-page section nav */
.jump {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 2px 0;
  padding: 2px 0;
}
.jump::-webkit-scrollbar {
  display: none;
}
.jump a {
  flex: none;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.jump a:hover {
  text-decoration: none;
  border-color: var(--line-strong);
}
[id] {
  scroll-margin-top: calc(var(--sticky-top) + 12px);
}

/* ------------------------------------------------------------------ prediction summary */
.pred {
  display: grid;
  gap: 16px;
}
.pred__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@container (min-width: 520px) {
  .pred__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fact {
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 10px 12px;
  min-width: 0;
}
.fact__l {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}
.fact__v {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.fact__s {
  font-size: 0.82rem;
  color: var(--text-2);
}
.verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}
.verdict__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.verdict p {
  margin: 0;
  color: var(--text-2);
}
.verdict strong {
  color: var(--text);
}

/* ------------------------------------------------------------------ market cards */
.mcards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.mcard {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface);
  display: grid;
  gap: 7px;
  min-width: 0;
}
.mcard--value {
  border-color: color-mix(in srgb, var(--win) 45%, var(--line));
  background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box;
}
.mcard__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.mcard__n {
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--text-2);
  min-width: 0;
}
.mcard__p {
  font-weight: 850;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.mcard__nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  font-size: 0.8rem;
}
.mcard__nums div {
  min-width: 0;
}
.mcard__nums dt {
  color: var(--muted);
  font-weight: 600;
}
.mcard__nums dd {
  margin: 0;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcard__nums small {
  color: var(--muted);
  font-weight: 500;
}
.mcard--key {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.badge--key {
  margin-left: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  vertical-align: 1px;
}
.mcard__note {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--warn);
}
.gapflag {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
}
.mcard.is-hit {
  border-color: color-mix(in srgb, var(--win) 50%, var(--line));
}
.mcard.is-miss {
  opacity: 0.75;
}
.mgrp + .mgrp {
  margin-top: 16px;
}
.mgrp h3 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------ scores grid */
.scores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.score {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 8px 4px;
  background: var(--surface-2);
}
.score b {
  display: block;
  font-size: 1.15rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.score span {
  font-size: 0.8rem;
  color: var(--muted);
}
.score.is-top {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.score.is-hit {
  border-color: var(--win);
  background: var(--win-soft);
}

/* ------------------------------------------------------------------ compare bars */
.cmp {
  display: grid;
  gap: 12px;
}
.cmp__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-weight: 750;
  font-size: 0.9rem;
}
.cmp__head > :last-child {
  text-align: right;
}
.cmp__head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cmp__row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr) 46px;
  grid-template-areas: "lbl lbl lbl lbl" "hv hb ab av";
  align-items: center;
  gap: 4px 6px;
}
.cmp__lbl {
  grid-area: lbl;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 650;
}
.cmp__v {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.cmp__v--h {
  grid-area: hv;
}
.cmp__v--a {
  grid-area: av;
  text-align: right;
}
.cmp__bar {
  height: 8px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.cmp__bar--h {
  grid-area: hb;
  justify-content: flex-end;
}
.cmp__bar--a {
  grid-area: ab;
}
.cmp__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.cmp__bar--h i {
  background: var(--home);
}
.cmp__bar--a i {
  background: var(--away);
}
.cmp__v.is-better {
  color: var(--text);
}
.cmp__v:not(.is-better) {
  color: var(--text-2);
  font-weight: 650;
}

/* ------------------------------------------------------------------ tables */
/* a table never makes its container wider: it scrolls inside its own box. Edge-to-edge (the card's 16px padding
   used as scroll room) only where the wrapper sits directly in a padded card body. */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}
.card__bd:not(.card__bd--flush) > .tbl-wrap {
  margin: 0 -16px;
  padding: 0 16px;
  max-width: none;
}
.card__bd--flush > .tbl-wrap {
  padding: 0 16px;
}
/* sticky first column on narrow screens: the row's name stays while the numbers scroll */
@media (max-width: 699px) {
  .tbl--sticky th:first-child,
  .tbl--sticky td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
  }
  .tbl--sticky th:first-child::after,
  .tbl--sticky td:first-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 6px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), transparent);
  }
}
/* compact tables (sidebars, the table on a match page): fit ~290px without scrolling */
.tbl--compact th,
.tbl--compact td {
  padding: 7px 4px;
}
.tbl--compact .team-cell {
  min-width: 0;
  max-width: 116px;
  gap: 6px;
}
/* in a side column, secondary columns give way so the table fits without scrolling */
.layout aside .hide-side {
  display: none;
}
.layout aside .tbl th,
.layout aside .tbl td {
  padding-left: 5px;
  padding-right: 5px;
}
.layout aside .tbl .team-cell {
  min-width: 0;
  max-width: 116px;
}
.layout aside .tbl .team-cell a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tbl--compact .team-cell a,
.tbl--compact .team-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.tbl--compact .rank {
  width: 28px;
}
@media (max-width: 699px) {
  .tbl th,
  .tbl td {
    padding: 7px 6px;
  }
  .tbl .team-cell {
    min-width: 118px;
  }
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tbl th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl .r {
  text-align: right;
}
.tbl .c {
  text-align: center;
}
.tbl .b {
  font-weight: 800;
}
.tbl tbody tr:hover {
  background: var(--surface-2);
}
.tbl .team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  font-weight: 650;
}
.tbl .team-cell a {
  color: var(--text);
}
.tbl tr.is-me td {
  background: var(--accent-soft);
}
.tbl tr.is-me .team-cell a {
  color: var(--accent);
}
.tbl .rank {
  width: 34px;
  position: relative;
  font-weight: 700;
  color: var(--text-2);
}
.tbl tr[class*="z-"] .rank::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
}
.tbl tr.z-cl .rank::before {
  background: var(--z-cl);
}
.tbl tr.z-el .rank::before {
  background: var(--z-el);
}
.tbl tr.z-ecl .rank::before {
  background: var(--z-ecl);
}
.tbl tr.z-promo .rank::before {
  background: var(--z-promo);
}
.tbl tr.z-po .rank::before {
  background: var(--z-po);
}
.tbl tr.z-rel .rank::before {
  background: var(--z-rel);
}
.tbl .rank span {
  padding-left: 9px;
}
.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}
.zones span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.zones i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.hide-sm {
  display: none;
}
@media (min-width: 700px) {
  .hide-sm {
    display: table-cell;
  }
}
.res-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.res {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.res:last-child {
  border-bottom: 0;
}
.res__d {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.res__m {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.res__m {
  font-weight: 600;
}
.res__s {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ------------------------------------------------------------------ stat tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@container (min-width: 480px) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@container (min-width: 820px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 10px 12px;
  min-width: 0;
}
.tile__v {
  font-size: 1.4rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.tile__l {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 600;
}
.tile__c {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3px;
}
.tile__c .pos,
.tile__c .neg {
  font-weight: 700;
}

/* bars (rankings, accuracy) */
.bars {
  display: grid;
  gap: 8px;
}
.bar {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 58px;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.bar__n {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}
.bar__n a {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar__t {
  height: 10px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.bar__t i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.bar__v {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .bar {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 50px;
    gap: 8px;
  }
}

/* trends */
.trend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.trend:last-child {
  border-bottom: 0;
}
.trend__t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  min-width: 0;
}
.trend__t a {
  color: var(--text);
}
.trend__s {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-2);
}
.trend__s a {
  font-weight: 600;
}
.trend__r {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
}
.dots {
  display: inline-flex;
  gap: 3px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.dots i.on {
  background: var(--win);
}

/* value picks */
.picks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.vpick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: inherit;
}
a.vpick:hover {
  text-decoration: none;
  border-color: var(--line-strong);
}
.vpick__m {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vpick__s {
  font-size: 0.82rem;
  color: var(--muted);
}
.vpick__sel {
  color: var(--text);
  font-weight: 750;
  font-size: 0.95rem;
}
.vpick__r {
  grid-row: 1 / 4;
  grid-column: 2;
  text-align: right;
  align-self: center;
}
.vpick__r b {
  display: block;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

/* accuracy */
.acc-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
}
.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface-2);
}
.acc__n {
  font-weight: 700;
  font-size: 0.9rem;
}
.acc__v {
  font-size: 1.6rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin: 4px 0 6px;
}
.acc__s {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.calib {
  width: 100%;
  height: auto;
  max-width: 520px;
  display: block;
}
.calib text {
  fill: var(--muted);
  font-size: 11px;
  font-family: inherit;
}
.calib .grid-l {
  stroke: var(--line);
}
.calib .diag {
  stroke: var(--line-strong);
  stroke-dasharray: 4 4;
}
.calib .pt {
  fill: var(--accent);
}
.calib .ln {
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

/* events timeline */
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.ev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 4px 0;
}
.ev__min {
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  background: var(--surface-3);
  border-radius: 6px;
  padding: 2px 0;
  font-size: 0.8rem;
}
.ev__h {
  text-align: right;
}
.ev__x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ev__h .ev__x {
  flex-direction: row-reverse;
}
.ev small {
  color: var(--muted);
}
.ic {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 15px;
  border-radius: 2px;
}
.ic--y {
  background: #f5c400;
}
.ic--r {
  background: var(--loss);
}
.ic--g {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: inset 0 0 0 3px var(--surface);
  border: 1px solid var(--text);
}
.ic--s {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--win);
}

/* line-ups */
.xi {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  columns: 1;
}
.xi li {
  display: flex;
  gap: 8px;
  padding: 3px 0;
}
.xi b {
  width: 22px;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* FAQ */
.faq {
  display: grid;
  gap: 8px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.faq summary {
  cursor: pointer;
  padding: 11px 40px 11px 14px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details > div {
  padding: 0 14px 12px;
  color: var(--text-2);
}

/* hero (home) */
.hero {
  display: grid;
  gap: 14px;
  margin: 6px 0 18px;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}
.hero h1 {
  margin-bottom: 8px;
}
.hero p {
  color: var(--text-2);
  margin: 0;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.kpi b {
  display: block;
  font-size: 1.35rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.kpi span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* link lists */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.links a:hover {
  background: var(--surface-3);
  text-decoration: none;
}
.links .muted {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.82rem;
}
.lgrid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.lcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  min-width: 0;
}
.lcard:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.lcard span {
  min-width: 0;
}
.lcard small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
.lcard .logo {
  width: 30px;
  height: 30px;
}

/* footer */
.ftr {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0 34px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.ftr__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .ftr__grid {
    grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  }
}
.ftr h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.ftr ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}
.ftr a {
  color: var(--text-2);
}
.ftr__legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.age {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--loss);
  color: var(--loss);
  font-weight: 900;
  font-size: 0.78rem;
  flex: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
}
.btn:hover {
  text-decoration: none;
  background: var(--accent-2);
}
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--surface-3);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.err {
  text-align: center;
  padding: 60px 10px;
}
.err h1 {
  font-size: 3rem;
}
@media print {
  .hdr,
  .datebar,
  .ftr,
  .seg,
  .theme-btn {
    display: none !important;
  }
}

/* ------------------------------------------------------------------ touch targets (≥ 40px) on phones, tablets, touch */
@media (max-width: 820px), (pointer: coarse) {
  .nav a,
  .seg button,
  .seg a,
  .chip,
  .jump a,
  .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .theme-btn {
    width: 40px;
    height: 40px;
  }
  .brand {
    min-height: 40px;
  }
  .links a {
    min-height: 40px;
  }
  .skip {
    min-height: 40px;
  }
  /* small inline/flex links: a taller hit area without moving anything (padding + equal negative margin) */
  a.more,
  .mgroup__hd a,
  .mhero__meta a,
  .mhero__facts a,
  .bar__n a,
  h3 > a,
  .pred a,
  .ftr li a,
  .trend__t a,
  .card__note a {
    padding-block: 11px;
    margin-block: -11px;
  }
  .ftr ul {
    gap: 14px;
  }
  .ftr li a {
    display: inline-block;
  }
}

/* table cells that adapt on phones */
.only-sm {
  display: none;
}
.cell-main {
  min-width: 170px;
}
.cell-prob {
  min-width: 110px;
}
@media (max-width: 699px) {
  .only-sm {
    display: block;
  }
  .cell-main {
    min-width: 0;
  }
  .cell-prob {
    min-width: 0;
  }
  .cell-prob .meter {
    display: none;
  }
}

/* ------------------------------------------------------------------ all predictions by day (home, day pages) */
.allp {
  display: grid;
}
.allp__day {
  border-top: 1px solid var(--line);
}
.allp__day:first-child {
  border-top: 0;
}
.allp__day > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  min-height: 44px;
  padding: 6px 0;
  cursor: pointer;
  list-style: none;
}
.allp__day > summary::-webkit-details-marker {
  display: none;
}
.allp__day > summary::before {
  content: "▸";
  color: var(--muted);
  transition: transform 0.15s;
}
.allp__day[open] > summary::before {
  transform: rotate(90deg);
}
.allp__day > summary b {
  font-size: 0.98rem;
}
.allp__day > summary .muted {
  font-size: 0.82rem;
  font-weight: 500;
}
.allp__day[open] > .allp__list {
  margin-bottom: 10px;
}
.allp__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.allp__list li {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.allp__list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--text);
}
.allp__list a:hover {
  text-decoration: none;
}
.allp__list a:hover b {
  text-decoration: underline;
}
.allp__list b {
  font-weight: 650;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.allp__list .muted {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ team page: KPIs, period switch, stat tables */
.tkpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
}
@media (min-width: 560px) {
  .tkpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .tkpis {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}
.tkpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.tkpi__l {
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tkpi__v {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.tkpi__v small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
}
.tkpi__r {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.trange {
  position: relative;
  display: block;
  height: 6px;
  margin-top: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--loss-soft, var(--surface-3)), var(--surface-3) 50%, var(--win-soft, var(--surface-3)));
}
.trange i {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent, var(--text));
  border: 2px solid var(--surface);
  box-shadow: var(--shadow);
}
.tstats__bar {
  position: sticky;
  top: var(--sticky-top);
  z-index: 3;
  box-shadow: 0 1px 0 var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  background: var(--bg);
}
.tstats__c {
  font-weight: 700;
  font-size: 0.92rem;
}
.tstats[data-period="season"] [data-pv]:not([data-pv="season"]),
.tstats[data-period="last5"] [data-pv]:not([data-pv="last5"]),
.tstats[data-period="last10"] [data-pv]:not([data-pv="last10"]) {
  display: none;
}
.tstat th small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.tstat td:not(:first-child),
.trec td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}
.tstat th:not(:first-child),
.tstat td:not(:first-child) {
  width: 18%;
  white-space: nowrap;
  padding-left: 4px;
}
.tsq th:not(:first-child),
.tsq td:not(:first-child) {
  width: 13%;
  white-space: nowrap;
  padding-left: 4px;
}
.tsq abbr {
  text-decoration: none;
}
.tsq__p {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tnext__t {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text);
}
.tsq__h {
  margin: 0 0 6px;
  font-size: 0.95rem;
}
.tsq__n {
  flex: none;
  display: inline-block;
  min-width: 1.6em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.tnext__odds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tres td:not(:first-child),
.tres th:not(:first-child) {
  width: 1%;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ H2H trends (/h2h-trends/) */
.h2ht__nav {
  margin: 0 0 14px;
}
.h2ht__bar {
  position: sticky;
  top: var(--sticky-top);
  z-index: 3;
  padding: 8px 0;
  margin-bottom: 10px;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.h2ht[data-period="all"] .h2ht__row:not([data-in-all]),
.h2ht[data-period="venue"] .h2ht__row:not([data-in-venue]),
.h2ht[data-period="comp"] .h2ht__row:not([data-in-comp]),
.h2ht[data-period="all"] [data-pv]:not([data-pv="all"]),
.h2ht[data-period="venue"] [data-pv]:not([data-pv="venue"]),
.h2ht[data-period="comp"] [data-pv]:not([data-pv="comp"]) {
  display: none;
}
.h2ht__list {
  display: grid;
  gap: 10px;
}
.h2ht__row {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.h2ht__hub .h2ht__row {
  background: var(--surface-2);
}
.h2ht__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.h2ht__m {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.h2ht__m .muted {
  font-size: 0.8rem;
}
.h2ht__match {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.h2ht__pill {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--win-soft);
  color: var(--win);
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.h2ht__sel {
  font-size: 1rem;
  font-weight: 700;
}
.h2ht__boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 5px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hb--y {
  background: var(--win);
  color: #fff;
}
.hb--n {
  background: var(--loss);
  color: #fff;
}
.hb--out {
  background: var(--surface-3);
  color: var(--muted);
  opacity: 0.75;
}
.h2ht__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.h2ht__model--agree {
  color: var(--win);
  font-weight: 650;
}
.h2ht__model--disagree {
  color: var(--loss);
  font-weight: 650;
}
@media (max-width: 820px), (pointer: coarse) {
  a.h2ht__match {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
}
.h2ht__bar .seg button .muted {
  margin-left: 5px;
  font-weight: 600;
}

/* ------------------------------------------------------------------ wiki */
.wiki .tbl-wrap {
  margin: 12px 0;
}
.wiki-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.wiki-list li {
  display: grid;
  gap: 2px;
}
.wiki-list a {
  font-weight: 650;
}
.wiki-list span {
  color: var(--text-2);
  font-size: 0.92rem;
}
.wiki-src {
  margin-top: 1.6em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  max-width: 75ch;
}
.wiki-src h2 {
  font-size: 1.05rem;
}
.wiki-src ul {
  padding-left: 1.2em;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.wiki-src li {
  margin: 0.3em 0;
}
.wiki-photo {
  float: right;
  width: 320px;
  margin: 0 0 14px 20px;
}
.wiki-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--line);
}
.wiki-photo figcaption {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.wiki-src {
  clear: both;
}
.wiki-list li.has-img {
  grid-template-columns: 64px 1fr;
  column-gap: 12px;
}
.wiki-list li.has-img > a,
.wiki-list li.has-img > span {
  grid-column: 2;
}
.wiki-thumb {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 8px;
  background: var(--line);
}
@media (max-width: 699px) {
  .wiki-photo {
    float: none;
    width: auto;
    max-width: 480px;
    margin: 0 0 14px;
  }
  .wiki-photo img {
    max-height: 360px;
    object-fit: cover;
    object-position: 50% 25%;
  }
}
