/* Genius Data x designs.here (2026-11-29).
 * Pieces adapted from https://github.com/designs-here/designs.here (designs.here licence: use in your own projects allowed):
 * Dithered wave (home hero), Segmented control (filters), Badge (win rates), Progress bar, Status dot, Notice, Footer with glow.
 * Loaded last: it re-skins the dashboard layer in styles.css without touching its layout.
 * Home team stays blue, away team amber, results green / amber / red. */

:root {
  --dh-accent: #2563ff;
  --dh-accent-deep: #1e51d1; /* the wave's top colour: color-mix(#2563ff 82%, #000) */
  --dh-fg: #171717;
  --dh-bg: #ffffff;
  --dh-muted: #5c5c5c;
  --dh-faint: #8a8a8a;
  --dh-well: #ededeb;
  --dh-surface: #f7f7f6;
  --dh-raised: #ffffff;
  --dh-edge: #d6d6d2;
  --dh-line: #e8e8e5;
  --dh-ring: 0 0 0 1px rgb(23 23 23 / 0.07), 0 1px 2px rgb(23 23 23 / 0.08);
  --dh-ring-lift: 0 0 0 1px rgb(23 23 23 / 0.06), 0 2px 4px rgb(23 23 23 / 0.06), 0 12px 24px -12px rgb(23 23 23 / 0.18);
  --dh-ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* remap the site's tokens onto the designs.here palette */
  --color-paper: var(--dh-surface);
  --color-paper-2: #f1f1ef;
  --color-paper-3: var(--dh-well);
  --color-card: var(--dh-raised);
  --color-ink: var(--dh-fg);
  --color-ink-2: #262626;
  --color-muted: var(--dh-muted);
  --color-rule: var(--dh-line);
  --color-primary: #1d4ed8;
  --color-secondary: var(--dh-accent);
  --color-focus: var(--dh-accent);
  --color-home: #1d4ed8;
  --color-away: #b45309;
  --color-green: #1c7a3a;
  --color-red: #c4321f;
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "Geist Mono", ui-monospace, monospace;
  --radius: 10px;
  --shadow: var(--dh-ring);
  --tracking-display: -0.035em;
}

body { background: var(--dh-surface); color: var(--dh-fg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { color: var(--dh-fg); letter-spacing: var(--tracking-display); font-weight: 600; }
:focus-visible { outline: 2px solid var(--dh-accent); outline-offset: 2px; }

/* ---------- top bar: the wave's deep blue, so the home hero continues it */
.top { background: var(--dh-accent-deep); border-bottom: 0; }
.brand { color: #fff; font-weight: 600; letter-spacing: -0.04em; display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background:
  radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 2.5px) 0 0 / 6px 6px, rgb(255 255 255 / 0.22); }
nav { gap: 4px; }
nav a { color: rgb(255 255 255 / 0.72); padding: 6px 10px; border-radius: 7px; border-bottom: 0; transition: color 150ms var(--dh-ease), background-color 150ms var(--dh-ease); }
nav a:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
nav a.on { color: #fff; background: rgb(255 255 255 / 0.16); border-bottom: 0; }
.top :focus-visible { outline-color: #fff; }

/* ---------- home hero: dithered wave (designs.here "Dithered wave") */
main { position: relative; }
.dh-wave { position: absolute; top: 0; left: 50%; width: 100vw; height: 560px; transform: translateX(-50%); overflow: hidden; pointer-events: none; z-index: 0; --dh-wave-colour: var(--dh-accent); }
.dh-wave-art { position: absolute; inset: 0 0 auto; width: 100%; height: 620px; }
.dh-wave-deep, .dh-wave-top { stop-color: var(--dh-accent-deep); fill: var(--dh-accent-deep); }
.dh-wave-mid { stop-color: var(--dh-wave-colour); }
.dh-wave-pale { stop-color: color-mix(in srgb, var(--dh-wave-colour) 60%, var(--dh-surface)); }
.dh-wave-foam { fill: color-mix(in srgb, var(--dh-wave-colour) 26%, var(--dh-surface)); }
@keyframes dh-wave-tide { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 22px, 0); } }
.dh-wave-tide { animation: dh-wave-tide 7s ease-in-out infinite alternate; will-change: transform; }
.dh-wave-tide--slow { animation-duration: 9s; animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) { .dh-wave-tide { animation: none; } }

.home-hero { position: relative; z-index: 1; color: #fff; padding: 4px 0 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.home-hero h1 { color: #fff; font-size: clamp(2.1rem, 3.6vw + 0.6rem, 3.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.045em; max-width: 15ch; }
.home-hero .lead { color: rgb(255 255 255 / 0.82); font-size: 1rem; margin-top: 12px; max-width: 52ch; }
.home-hero .dh-badge { margin-bottom: 14px; }
.home-hero .btn--secondary { background: #fff; color: var(--dh-fg); border: 0; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.home-hero .btn--secondary:hover { background: #eef2ff; color: var(--dh-accent-deep); }
.home-hero ~ * { position: relative; z-index: 1; }

/* ---------- cards: white with a hairline ring instead of borders */
.kpi, .controls, .league, .fig, .tpanel, .card, .insight, .summary, .tcard, .signals, .tr-figs > div {
  border: 0; border-radius: var(--radius); box-shadow: var(--dh-ring); background: var(--dh-raised);
}
.kpis { gap: 12px; }
.kpi { padding: 16px 18px; transition: box-shadow 200ms var(--dh-ease), transform 200ms var(--dh-ease); }
.kpi:hover { box-shadow: var(--dh-ring-lift); transform: translateY(-1px); }
.kpi span { font-size: 0.8125rem; color: var(--dh-muted); }
.kpi b { font-weight: 600; letter-spacing: -0.03em; color: var(--dh-fg); font-variant-numeric: tabular-nums; }
.kpi:nth-child(2) b { color: var(--color-green); }
.kpi small { color: var(--dh-faint); }
.kpi .dh-status { margin-top: 2px; }

/* ---------- filters: segmented control look (designs.here "Segmented control") */
.controls { padding: 10px; gap: 10px 14px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 0.22em; border-radius: 0.75em; background: var(--dh-well); }
.chip { min-height: 2.2em; border: 0; background: transparent; color: var(--dh-muted); border-radius: 0.55em; padding: 0 0.9em; font-weight: 500; transition: color 200ms var(--dh-ease), background-color 200ms var(--dh-ease), box-shadow 200ms var(--dh-ease); }
.chip:hover { color: var(--dh-fg); border-color: transparent; }
.chip.on { background: var(--dh-raised); color: var(--dh-fg); border-color: transparent; box-shadow: 0 0 0 0.5px var(--dh-edge), 0 1px 2px rgb(0 0 0 / 0.12); }
.chip small { color: var(--dh-faint); opacity: 1; }
.chip.on small { color: var(--dh-accent); }
.search { border: 0; background: var(--dh-well); border-radius: 0.75em; min-height: 2.6em; }
.search:focus-within { background: var(--dh-raised); box-shadow: 0 0 0 1px var(--dh-edge), 0 0 0 4px rgb(37 99 255 / 0.12); }
.scan-ctl input, .scan-ctl select { border: 0; background: var(--dh-well); border-radius: 0.6em; }

/* ---------- notices (designs.here "Notice") */
.dh-notice { --hue: var(--dh-accent); display: flex; gap: 0.65em; margin: 12px 0 0; padding: 0.6em 0.85em; border-radius: 0.6em; background: var(--dh-well); color: var(--dh-muted); font-size: 0.875rem; line-height: 1.45; max-width: none; }
.dh-notice::before { content: ""; flex: none; width: 0.45em; height: 0.45em; margin-top: 0.5em; border-radius: 50%; background: var(--hue); }
.dh-notice b { color: var(--dh-fg); font-weight: 500; }
.dh-notice[data-kind="good"] { --hue: #1fa750; }
.dh-notice[data-kind="warn"] { --hue: #e39b0b; }

/* ---------- badges and status dots (designs.here "Badge", "Status dot") */
.dh-badge { display: inline-flex; align-items: center; gap: 0.4em; height: 1.75em; padding: 0 0.7em; border-radius: 999px; background: var(--dh-raised); color: var(--dh-muted); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; box-shadow: 0 0 0 1px rgb(23 23 23 / 0.08), 0 1px 2px rgb(23 23 23 / 0.1); }
.dh-badge--glass { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.dh-status { --dot: #8a8a8a; display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.8125rem; color: var(--dh-muted); }
.dh-status::before { content: ""; width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--dot); flex: none; }
.dh-status[data-state="live"] { --dot: #1fa750; }
.dh-status[data-state="live"]::before { animation: dh-status-pulse 2s var(--dh-ease) infinite; }
.dh-badge--glass.dh-status { color: #fff; }
.dh-badge--glass.dh-status::before { background: #6ee7a0; --dot: #6ee7a0; }
@keyframes dh-status-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dot) 45%, transparent); } to { box-shadow: 0 0 0 0.45em color-mix(in srgb, var(--dot) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .dh-status[data-state="live"]::before { animation: none; } }

/* ---------- fixtures */
.league { margin-top: 14px; }
.league h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border-bottom: 1px solid var(--dh-line); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.02em; padding: 12px 16px; }
.league h2 .dh-badge { font-size: 0.75rem; height: 1.6em; }
thead th { background: var(--dh-raised); color: var(--dh-faint); font-weight: 500; font-size: 0.75rem; border-bottom-color: var(--dh-line); }
td { border-bottom-color: #f0f0ee; }
.fixtures tbody tr { transition: background-color 150ms var(--dh-ease); }
.fixtures tbody tr:hover { background: #f5f8ff; }
.fixtures .time { font-family: var(--font-outlier); font-weight: 500; font-size: 0.875rem; color: var(--dh-muted); }
.fixtures .match a { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; color: var(--dh-faint); }
.fixtures .match .h { color: var(--color-home); } .fixtures .match .a { color: var(--color-away); }
.fixtures .clash { color: var(--dh-faint); }
.fixtures .st-name { color: var(--dh-muted); }
.fixtures .st-name i { border-radius: 3px; }

/* win rate against the opponent's style: a badge plus a thin progress bar */
.fixtures .pc, .fixtures .pc.hi, .fixtures .pc.mid, .fixtures .pc.lo, .fixtures .pc.none {
  display: inline-flex; align-items: center; height: 1.6em; margin-top: 6px; padding: 0 0.6em; border-radius: 999px;
  font: 600 0.9375rem/1 var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.fixtures .pc.hi { background: #e2f4e6; color: #1c7a3a; box-shadow: 0 0 0 1px rgb(28 122 58 / 0.14); }
.fixtures .pc.mid { background: var(--dh-raised); color: var(--dh-fg); box-shadow: 0 0 0 1px rgb(23 23 23 / 0.08), 0 1px 2px rgb(23 23 23 / 0.08); }
.fixtures .pc.lo { background: #fdecea; color: #b42318; box-shadow: 0 0 0 1px rgb(180 35 24 / 0.14); }
.fixtures .pc.none { background: var(--dh-well); color: var(--dh-faint); }
.pc-track { display: block; width: 100%; max-width: 140px; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--dh-well); }
.pc-track i { display: block; height: 100%; border-radius: inherit; background: var(--color-home); transform-origin: left; animation: pc-fill 600ms var(--dh-ease) both; }
.side.away .pc-track i { background: #d97706; }
@keyframes pc-fill { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .pc-track i { animation: none; } }
.fixtures .odd { font-family: var(--font-outlier); font-size: 0.9375rem; }
.fixtures .odd.fav { color: var(--dh-fg); font-weight: 600; text-decoration: none; }
.fixtures .odd.fav::after { content: ""; display: block; height: 2px; margin: 5px 0 0 auto; width: 2.6em; border-radius: 2px; background: var(--dh-accent); }
@media (max-width: 72rem) { .fixtures .odd.fav::after { margin-left: 0; } }

/* ---------- signal record card (from data.track) */
.signals { margin-top: 18px; padding: 18px; }
.signals-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.signals-head h2 { font-size: 1.05rem; }
.signals-head p { color: var(--dh-muted); font-size: 0.8125rem; }
.signals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.dh-progress-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 0.8125rem; color: var(--dh-fg); }
.dh-progress-head span:last-child { color: var(--dh-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dh-progress-head b { color: var(--dh-fg); font-weight: 600; }
.dh-progress-track { position: relative; height: 6px; overflow: visible; border-radius: 999px; background: var(--dh-well); }
.dh-progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--dh-accent); }
.dh-progress-track .base { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--dh-fg); opacity: 0.55; }
.dh-progress small { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--dh-faint); }
.dh-progress.better .dh-progress-track i { background: #1fa750; }
.signals .more-link { display: inline-block; margin-top: 14px; font-size: 0.8125rem; color: var(--dh-accent); text-decoration: none; font-weight: 500; }
.signals .more-link:hover { text-decoration: underline; }

/* ---------- other pages: same skin */
.back { color: var(--dh-accent); text-decoration: none; font-weight: 500; }
.m-hero h1 { letter-spacing: -0.04em; font-weight: 600; }
.fig.fav { background: #eef3ff; box-shadow: 0 0 0 1px rgb(37 99 255 / 0.25); }
.tpanel.h { box-shadow: inset 0 3px 0 var(--color-home), var(--dh-ring); border-top: 0; }
.tpanel.a { box-shadow: inset 0 3px 0 var(--color-away), var(--dh-ring); border-top: 0; }
.res { border-radius: 6px; font-family: var(--font-outlier); }
.res.V { background: #1fa750; border-color: #1fa750; }
.res.N { background: #f2b33d; border-color: #f2b33d; color: #2b1d00; }
.res.D { background: #e5484d; border-color: #e5484d; }
.wdl .pbar { border-radius: 999px; overflow: hidden; height: 6px; }
.wdl .pbar i:nth-child(1) { background: #1fa750; } .wdl .pbar i:nth-child(2) { background: #f2b33d; } .wdl .pbar i:nth-child(3) { background: #e5484d; }
.tag { border: 0; border-radius: 999px; padding: 1px 8px; background: var(--dh-well); color: var(--dh-muted); }
.sb i { border-radius: 3px; }
.btn { border-radius: 9px; }
.btn--secondary { border: 0; box-shadow: var(--dh-ring); background: var(--dh-raised); color: var(--dh-fg); }
.btn--secondary:hover { background: var(--dh-fg); color: #fff; }
.tr-bar.hit i, .scan-bar i, .bar i { background: var(--dh-accent); }
.tr-figs > div { background: var(--dh-surface); box-shadow: none; }
.matrix td { border-color: var(--dh-raised); border-radius: 4px; }
.section-title h2 { letter-spacing: -0.03em; }

/* ---------- footer with glow (designs.here "Footer with glow") */
.foot.dh-footer { border: 0; display: block; padding: 16px var(--gutter) 24px; }
.dh-footer-panel { --glow: var(--dh-accent); padding: 0 40px; overflow: hidden; border-radius: 20px; color: #fff;
  background: radial-gradient(70% 90% at 50% 135%, color-mix(in srgb, var(--glow) 80%, transparent), transparent 70%), #0c0c0e; }
.dh-footer-pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 40px 0 32px; }
.dh-footer-pitch h2 { color: #fff; font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.03em; max-width: 26ch; text-wrap: balance; }
.dh-footer-pitch .btn { background: #fff; color: #0c0c0e; border: 0; }
.dh-footer-pitch .btn:hover { background: #e6edff; }
.dh-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px 32px; padding: 28px 0; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.8125rem; }
.dh-footer-grid h3 { color: rgb(255 255 255 / 0.5); font-size: 0.75rem; font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
.dh-footer-grid a { display: block; color: rgb(255 255 255 / 0.85); text-decoration: none; padding-block: 3px; }
.dh-footer-grid a:hover { color: #fff; }
.dh-footer-grid p { color: rgb(255 255 255 / 0.6); max-width: 40ch; margin-top: 8px; }
.dh-footer-brand b { font-size: 1rem; font-weight: 600; letter-spacing: -0.03em; }
.dh-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 22px; border-top: 1px solid rgb(255 255 255 / 0.1); color: rgb(255 255 255 / 0.55); font-size: 0.75rem; }
.dh-footer-base a { color: rgb(255 255 255 / 0.8); }

@media (max-width: 60rem) {
  .dh-footer-grid { grid-template-columns: 1fr 1fr; }
  .dh-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .home-hero { padding-top: 24px; }
  .dh-wave { height: 640px; }
  .foot.dh-footer { padding-inline: 8px; }
  .dh-footer-panel { padding: 0 20px; }
  .dh-footer-grid { grid-template-columns: 1fr; }
  .controls .chips { max-width: 100%; }
}

/* ---------- match cards (home list) */
.league--cards { background: transparent; box-shadow: none; border: 0; overflow: visible; }
.league--cards h2 { border-bottom: 0; padding: 4px 2px 10px; background: transparent; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.mcard { display: flex; flex-direction: column; background: var(--dh-raised); border-radius: 14px; box-shadow: var(--dh-ring); padding: 14px 16px; color: var(--dh-fg); text-decoration: none; transition: box-shadow 200ms var(--dh-ease), transform 200ms var(--dh-ease); }
.mcard:hover { box-shadow: var(--dh-ring-lift); transform: translateY(-1px); }
.mcard:focus-visible { outline: 2px solid var(--dh-accent); outline-offset: 2px; }
.mc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.8rem; color: var(--dh-faint); }
.mc-top .time { font-family: var(--font-outlier); font-weight: 500; font-size: 0.875rem; color: var(--dh-fg); }
.mc-teams { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }
.mc-teams .h, .rec .h { color: var(--color-home); } .mc-teams .a, .rec .a { color: var(--color-away); }
.mc-teams .vs { font-size: 0.8rem; font-weight: 400; color: var(--dh-faint); letter-spacing: 0; }
.mc-teams .a { text-align: right; }
.mc-styles { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--dh-muted); margin: 2px 0 10px; }
.rec { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--dh-line); font-size: 0.82rem; }
.rec-txt { color: var(--dh-muted); min-width: 0; }
.rec-txt .h, .rec-txt .a { font-weight: 500; }
.rec-n { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.rec-dots { display: inline-flex; gap: 3px; }
.rec-dots i { width: 10px; height: 10px; border-radius: 2px; background: var(--dh-well); box-shadow: inset 0 0 0 1px var(--dh-edge); }
.rec.home .rec-dots i.v, .dh-notice .rec-dots i.v { background: var(--color-home); box-shadow: none; }
.rec.home .rec-dots i.n, .dh-notice .rec-dots i.n { background: #bfd0f6; box-shadow: none; }
.rec.away .rec-dots i.v { background: var(--color-away); box-shadow: none; }
.rec.away .rec-dots i.n { background: #f0d2ad; box-shadow: none; }
.dh-notice:has(.rec-dots)::before { content: none; }
.dh-notice .rec-dots { flex: none; margin-top: 0.3em; }
.mc-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: auto; padding-top: 10px; font-family: var(--font-outlier); font-size: 0.875rem; text-align: center; }
.mc-odds span { background: var(--dh-surface); border-radius: 8px; padding: 6px 0; box-shadow: inset 0 0 0 1px var(--dh-line); }
.mc-odds em { font-style: normal; color: var(--dh-faint); margin-right: 6px; }
.mc-odds .fav { background: #eaf0ff; color: var(--dh-accent-deep); font-weight: 600; box-shadow: inset 0 0 0 1px #c9d7ff; }
.mc-odds .fav em { color: var(--dh-accent-deep); }
@media (max-width: 40rem) { .mcard { padding: 12px 14px; } .rec { grid-template-columns: auto 1fr; gap: 4px 10px; } .rec-txt { grid-column: 1 / -1; } }

/* ---------- card details: small samples, edge, named odds, benchmarks, KPI wrap */
.kpi small { white-space: normal; overflow: visible; text-overflow: clip; }
.rec.few .rec-dots, .rec.few .rec-n { opacity: 0.45; }
.few-tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--dh-well); color: var(--dh-faint); font-size: 0.72rem; white-space: nowrap; }
.mc-edge { padding: 8px 0 2px; border-top: 1px solid var(--dh-line); }
.mc-edge span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.mc-edge span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mc-edge.home span { background: #e8eefc; color: var(--color-home); }
.mc-edge.away span { background: #fbefe2; color: var(--color-away); }
.mc-odds span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 6px; min-width: 0; }
.mc-odds em { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-body); font-size: 0.7rem; }
.bench { white-space: nowrap; }
.bench i { font-style: normal; margin-left: 2px; font-weight: 700; }
.bench.up { color: var(--dh-fg); font-weight: 500; } .bench.up i { color: var(--dh-accent-deep); }
.mc-clash .bench.down { color: var(--dh-faint); } .bench.down i { color: var(--dh-muted); }

/* ---------- result squares: green win, grey draw, red loss (overrides the team-coloured version) */
.rec.home .rec-dots i.v, .rec.away .rec-dots i.v, .dh-notice .rec-dots i.v { background: #1f9d4c; box-shadow: none; }
.rec.home .rec-dots i.n, .rec.away .rec-dots i.n, .dh-notice .rec-dots i.n { background: #c4c4bf; box-shadow: none; }
.rec.home .rec-dots i.d, .rec.away .rec-dots i.d, .dh-notice .rec-dots i.d { background: #dc3b26; box-shadow: none; }

/* ---------- team facts, market tiles, best odds and movement */
.mc-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 10px; }
.tchips { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; min-width: 0; }
.tchips span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tchips.away { justify-content: flex-end; }
.tchips span { font-size: 0.7rem; line-height: 1.5; padding: 0 7px; border-radius: 999px; background: var(--dh-surface); box-shadow: inset 0 0 0 1px var(--dh-line); color: var(--dh-muted); white-space: nowrap; }
.tchips span.warn { background: #fdf3e1; box-shadow: inset 0 0 0 1px #f3dcb0; color: #8a5a06; }
.tchips span.luck, .tchips span.unluck { background: #eef2ff; box-shadow: inset 0 0 0 1px #d5defc; color: var(--dh-accent-deep); }
.mc-mkts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--dh-line); }
.mc-mkts span { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 5px 4px; border-radius: 8px; text-align: center; }
.mc-mkts em { font-style: normal; font-size: 0.7rem; line-height: 1.25; color: var(--dh-faint); }
.mc-mkts strong { font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--dh-fg); }
.mc-mkts small { font-size: 0.66rem; color: var(--dh-faint); }
.mc-mkts .hot { background: #e9f6ee; }
.mc-mkts .hot strong { color: #1d7a40; }
.mc-odds strong { font-weight: inherit; display: inline-flex; align-items: center; gap: 3px; }
.mc-odds small { font-family: var(--font-body); font-size: 0.66rem; color: var(--dh-faint); }
.mc-odds .fav small { color: var(--dh-accent-deep); opacity: 0.75; }
.mc-odds .mv { font-style: normal; font-weight: 700; font-size: 0.8rem; }
.mc-odds .mv.in { color: #1d7a40; } .mc-odds .mv.out { color: #c4321f; }
@media (max-width: 40rem) { .mc-mkts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- match page: corners/cards boxes */
.cc-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cc-q { margin: 2px 0 8px; color: var(--dh-muted); font-size: 0.85rem; }
.cc-verdict { font-size: 0.75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--dh-well); color: var(--dh-muted); white-space: nowrap; }
.cc-verdict.hi { background: #e8eefc; color: var(--dh-accent-deep); }
.cc-verdict.lo { background: #f3f3f1; color: var(--dh-faint); }
.cc-row { padding: 8px 0; border-top: 1px solid var(--dh-line); }
.cc-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; color: var(--dh-muted); margin-bottom: 6px; }
.cc-head .h { color: var(--color-home); font-weight: 600; } .cc-head .a { color: var(--color-away); font-weight: 600; }
.cc-head b { color: var(--dh-fg); font-weight: 600; }
.cc-boxes { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.cc-boxes i { font-style: normal; text-align: center; font-family: var(--font-outlier); font-size: 0.8rem; padding: 4px 0; border-radius: 6px; background: var(--dh-surface); box-shadow: inset 0 0 0 1px var(--dh-line); color: var(--dh-muted); }
.cc-boxes i.over { background: var(--dh-accent); color: #fff; box-shadow: none; font-weight: 600; }
.cc-foot { margin: 6px 0 0; font-size: 0.82rem; color: var(--dh-muted); }
.cc-foot b { color: var(--dh-fg); }
/* ---------- match page: style map with plain quadrants */
.sm-q { stroke: none; } .sm-q.dom { fill: #eaf0ff; } .sm-q.sub { fill: #fbeeee; } .sm-q.ferme, .sm-q.ouvert { fill: #f6f6f4; }
.sm-qt { font: 600 14px var(--font-body); fill: var(--dh-fg); } .sm-qs { font: 400 12px var(--font-body); fill: var(--dh-muted); }
.sm-avg { stroke: var(--dh-edge); stroke-width: 1; stroke-dasharray: 4 4; }
.sm-tick { font: 400 11px var(--font-outlier); fill: var(--dh-faint); }
.clash-shots { margin-bottom: 14px; }
.clash-shots h3 { margin: 0 0 8px; }
.cs-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; font-size: 0.8rem; font-weight: 600; color: #fff; }
.cs-bar span { display: flex; align-items: center; padding: 0 10px; white-space: nowrap; min-width: 0; }
.cs-bar .h { background: var(--color-home); } .cs-bar .a { background: var(--color-away); justify-content: flex-end; }

/* ---------- cup and European cards */
.league--cup h2::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--dh-accent); margin-right: 8px; display: inline-block; }
.league--cup h2 { justify-content: flex-start; } .league--cup h2 .dh-badge { margin-left: auto; }
.mcard.cup { cursor: default; } .mcard.cup:hover { transform: none; box-shadow: var(--dh-ring); }
.mc-src { margin: 6px 0 0; font-size: 0.7rem; color: var(--dh-faint); text-align: right; }
.mc-out { margin: 0; padding: 9px 0; border-top: 1px solid var(--dh-line); font-size: 0.82rem; color: var(--dh-muted); }
.mc-out b { color: var(--dh-fg); font-weight: 600; }

/* ---------- market tiles as real counts: neutral "above average" marker instead of green */
.mc-mkts .hot { background: none; } .mc-mkts .hot strong { color: inherit; }
.mc-mkts .above { background: #eef2ff; }
.mc-mkts .above strong { color: var(--dh-accent-deep); }
.mc-mkts .above strong::after { content: " ↑"; font-size: 0.75em; }
.mc-mkts small { line-height: 1.3; }
.mc-mkts-note { margin: 4px 0 0; font-size: 0.68rem; color: var(--dh-faint); text-align: center; }
