/* ── font self-hosted ───────────────────────────────────────────── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/space-grotesk-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }

/* ── tokens ─────────────────────────────────────────────────────── */
:root {
  /* light */
  --bg:           oklch(0.985 0.003 100);
  --bg-elev:      oklch(1 0 0);
  --bg-sunk:      oklch(0.96 0.004 100);
  --line:         oklch(0.9 0.005 100);
  --line-strong:  oklch(0.82 0.006 100);
  --ink:          oklch(0.22 0.01 180);
  --ink-2:        oklch(0.42 0.01 180);
  --ink-3:        oklch(0.6 0.01 180);
  --ink-mute:     oklch(0.72 0.008 180);

  --primary:      oklch(0.34 0.045 175);
  --primary-ink:  oklch(0.96 0.02 175);
  --primary-soft: oklch(0.94 0.025 175);

  --gold:         oklch(0.78 0.13 85);
  --gold-deep:    oklch(0.62 0.13 75);
  --gold-soft:    oklch(0.96 0.04 90);

  --pos:          oklch(0.58 0.13 150);
  --pos-soft:     oklch(0.94 0.05 150);
  --neg:          oklch(0.56 0.18 27);
  --neg-soft:     oklch(0.95 0.04 27);
  --neu:          oklch(0.62 0.008 180);
  --neu-soft:     oklch(0.93 0.005 180);

  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 0 rgba(15,30,40,.04), 0 1px 2px rgba(15,30,40,.04);
  --shadow:       0 1px 0 rgba(15,30,40,.05), 0 6px 18px -8px rgba(15,30,40,.12);

  --font-sans:    "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg:           oklch(0.16 0.012 200);
  --bg-elev:      oklch(0.21 0.014 200);
  --bg-sunk:      oklch(0.13 0.012 200);
  --line:         oklch(0.28 0.012 200);
  --line-strong:  oklch(0.36 0.013 200);
  --ink:          oklch(0.96 0.01 180);
  --ink-2:        oklch(0.78 0.01 180);
  --ink-3:        oklch(0.62 0.012 180);
  --ink-mute:     oklch(0.5 0.012 180);

  --primary:      oklch(0.7 0.1 175);
  --primary-ink:  oklch(0.15 0.02 175);
  --primary-soft: oklch(0.26 0.04 175);

  --gold:         oklch(0.82 0.14 85);
  --gold-deep:    oklch(0.72 0.13 80);
  --gold-soft:    oklch(0.28 0.06 85);

  --pos:          oklch(0.72 0.16 150);
  --pos-soft:     oklch(0.28 0.06 150);
  --neg:          oklch(0.72 0.18 27);
  --neg-soft:     oklch(0.28 0.07 27);
  --neu:          oklch(0.62 0.008 180);
  --neu-soft:     oklch(0.26 0.008 180);

  --shadow-sm:    0 1px 0 rgba(0,0,0,.4);
  --shadow:       0 1px 0 rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.6);
}

/* ── base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
.num, .mono, table td.num, .stat-val {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; border-radius: 4px; }

/* ── layout shell ───────────────────────────────────────────────── */
.shell { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 720px) { .shell { padding: 0 14px; } }

/* ── top bar ────────────────────────────────────────────────────── */
.alert-bar {
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 12px;
  padding: 8px 20px;
  text-align: center;
  letter-spacing: 0.01em;
}
.alert-bar strong { color: var(--gold); font-weight: 600; }
.alert-bar .live-dot, .status-banner .live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: 6px; vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
  flex: 0 0 auto;
}
.status-banner .live-dot { background: var(--pos); margin-right: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(8px);
}
.site-row {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.brand {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand .one { color: var(--primary); }
.brand .x   { color: var(--gold-deep); }
.brand .two { color: var(--primary); }
.brand .dot { color: var(--ink-mute); font-weight: 400; }
.brand .ext { color: var(--ink-2); font-weight: 500; }

nav.main {
  display: flex; gap: 4px; flex: 1;
  font-size: 13px;
}
nav.main a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
}
nav.main a:hover { background: var(--bg-sunk); color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--ink); background: var(--bg-sunk); }
nav.main a .badge { font-size: 10px; padding: 1px 6px; background: var(--gold); color: oklch(0.25 0.05 80); border-radius: 999px; font-weight: 700; }

.site-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--bg-sunk); color: var(--ink); border-color: var(--line-strong); }
.lang-pill {
  height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font: 600 12px/1 var(--font-mono); color: var(--ink-2);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn {
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font: 600 13px/1 var(--font-sans); color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary {
  background: var(--primary); color: var(--primary-ink); border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; }

@media (max-width: 920px) {
  nav.main { display: none; }
  .hide-mob { display: none !important; }
}

/* ── filter bar ─────────────────────────────────────────────────── */
.filter-bar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}
.filter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev);
  font: 500 12px/1 var(--font-sans); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink); color: var(--bg-elev); border-color: var(--ink);
}
[data-theme="dark"] .chip[aria-pressed="true"] {
  background: var(--ink); color: var(--bg-sunk);
}
.chip .league-mark {
  width: 14px; height: 14px; border-radius: 3px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--gold-deep));
}
.chip-sep { width: 1px; height: 18px; background: var(--line); flex: 0 0 auto; margin: 0 4px; }
.date-pill {
  flex: 0 0 auto;
  display: inline-flex; flex-direction: column; align-items: center;
  width: 50px; height: 50px; padding: 4px 0; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--ink-2);
  font-family: var(--font-display);
}
.date-pill .dow { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--ink-3); letter-spacing: 0.06em; }
.date-pill .d   { font-size: 18px; font-weight: 600; line-height: 1.1; }
.date-pill[aria-pressed="true"] { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }
.date-pill[aria-pressed="true"] .dow { color: var(--gold); }
[data-theme="dark"] .date-pill[aria-pressed="true"] { background: var(--ink); color: var(--bg-sunk); }

/* ── page grid ──────────────────────────────────────────────────── */
main { padding: 24px 0 64px; }
.page {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}
@media (max-width: 1080px) { .page { grid-template-columns: 1fr; } }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 0 14px;
}
.section-head h2 {
  font-size: 18px; font-weight: 600;
  display: flex; align-items: baseline; gap: 10px;
}
.section-head h2 .count {
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.section-head .more {
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.section-head .more:hover { color: var(--ink); }

/* ── featured match hero ────────────────────────────────────────── */
.featured {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.featured-top {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--primary-soft) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, var(--gold-soft) 0%, transparent 55%),
    var(--bg-elev);
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.featured-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
}
.featured-meta .league {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.featured-meta .kick {
  font-size: 12px; color: var(--ink-3);
}
.featured-tag {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-deep);
  font: 600 11px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid color-mix(in oklch, var(--gold-deep) 30%, transparent);
}
.featured-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); }

.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 24px 22px;
}
.team {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.team.right { flex-direction: row-reverse; text-align: right; }
.crest {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font: 700 18px/1 var(--font-display);
  letter-spacing: -0.02em; flex: 0 0 auto;
  color: white;
  position: relative;
}
.crest::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), inset 0 -8px 16px rgba(0,0,0,.25);
  pointer-events: none;
}
.team-info { min-width: 0; }
.team-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.15; }
.team-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; font-family: var(--font-mono); }
.vs {
  width: 56px; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink-3);
}
.vs .kick-time {
  display: block; font: 700 22px/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em;
}
.vs .kick-tz { display: block; font: 500 10px/1 var(--font-mono); color: var(--ink-mute); margin-top: 4px; letter-spacing: 0.04em; }

/* probability bar */
.prob {
  padding: 0 24px 18px;
}
.prob-bar {
  display: grid;
  grid-template-columns: var(--w1, 38%) var(--wx, 28%) var(--w2, 34%);
  height: 44px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.prob-cell {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600;
  color: var(--ink); position: relative;
  font-size: 13px;
  background: var(--bg-sunk);
}
.prob-cell .lbl { position: absolute; left: 10px; top: 4px; font-size: 10px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.06em; }
.prob-cell.c-1 { background: color-mix(in oklch, var(--primary) 16%, var(--bg-sunk)); }
.prob-cell.c-x { background: var(--bg-sunk); }
.prob-cell.c-2 { background: color-mix(in oklch, var(--gold-deep) 22%, var(--bg-sunk)); }
.prob-cell .v { font-size: 15px; }
.prob-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 12px; color: var(--ink-3);
  font-family: var(--font-mono);
}
.prob-foot .modelbadge {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 4px 8px; border-radius: 6px;
  background: var(--bg-sunk); border: 1px solid var(--line);
}
.prob-foot .modelbadge b { color: var(--ink); font-weight: 600; }
.value-bet {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--pos-soft); color: var(--pos);
  font: 600 11px/1 var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase;
}
.value-bet::before { content: "↑"; font-weight: 800; }

/* featured stats strip */
.featured-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.fstat {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.fstat:last-child { border-right: 0; }
.fstat .lbl { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.fstat .val { font: 700 22px/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.fstat .sub { font-size: 11px; color: var(--ink-mute); font-family: var(--font-mono); }
.fstat .val .delta { font-size: 12px; font-family: var(--font-mono); font-weight: 500; margin-left: 4px; }
.fstat .val .delta.pos { color: var(--pos); }
.fstat .val .delta.neg { color: var(--neg); }

/* xG mini comparison */
.xg-row { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; }
.xg-row .name { width: 60px; color: var(--ink-3); }
.xg-row .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--bg-sunk); position: relative; overflow: hidden; }
.xg-row .bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--primary); border-radius: 3px; display: block; }
.xg-row .bar.away > i { background: var(--gold-deep); }
.xg-row .v { width: 38px; text-align: right; color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .featured-top { grid-template-columns: 1fr auto; }
  .featured-tag { grid-column: 1 / -1; justify-self: start; }
  .matchup { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .team, .team.right { flex-direction: row; text-align: left; justify-content: flex-start; }
  .vs { width: auto; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .vs .kick-tz { margin-top: 0; }
  .featured-stats { grid-template-columns: repeat(2, 1fr); }
  .fstat:nth-child(2) { border-right: 0; }
  .fstat:nth-child(1), .fstat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── match card list ────────────────────────────────────────────── */
.match-list {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.match-group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  font: 600 11px/1 var(--font-sans); color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.match-group-head .league {
  display: inline-flex; align-items: center; gap: 8px;
}
.match-group-head .league .mark {
  width: 16px; height: 16px; border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--gold-deep));
}
.match-group-head .count {
  font-family: var(--font-mono); color: var(--ink-3); letter-spacing: 0.04em;
  text-transform: none; font-weight: 500;
}

.match-card {
  display: grid;
  grid-template-columns: 64px 1fr minmax(220px, 280px) 100px 28px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
  position: relative;
}
.match-card:hover { background: var(--bg-sunk); }
.match-card:last-child { border-bottom: 0; }

.mc-time {
  font-family: var(--font-mono);
  display: flex; flex-direction: column; gap: 2px;
}
.mc-time .t { font: 600 14px/1 var(--font-mono); color: var(--ink); letter-spacing: 0.02em; }
.mc-time .s { font-size: 11px; color: var(--ink-3); }

.mc-teams { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mc-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-team .crest-sm {
  width: 22px; height: 22px; border-radius: 6px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font: 700 10px/1 var(--font-display); color: white;
  position: relative;
}
.mc-team .crest-sm::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.mc-team .nm {
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-team .form {
  display: inline-flex; gap: 3px; margin-left: auto; flex: 0 0 auto;
}
.form-dot {
  width: 14px; height: 14px; border-radius: 4px;
  font: 700 9px/14px var(--font-mono); text-align: center; color: white;
  letter-spacing: 0;
}
.form-dot.w { background: var(--pos); }
.form-dot.d { background: var(--neu); color: var(--ink); }
.form-dot.l { background: var(--neg); }
[data-theme="dark"] .form-dot.d { color: var(--bg-elev); }

.mc-prob {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 28px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-sunk);
}
.mc-prob .cell {
  display: flex; align-items: center; justify-content: center;
  font: 600 11px/1 var(--font-mono); color: var(--ink-2);
  position: relative;
}
.mc-prob .cell.win {
  color: var(--ink); font-weight: 700;
}
.mc-prob .cell.win.c1 { background: color-mix(in oklch, var(--primary) 22%, transparent); }
.mc-prob .cell.win.cx { background: color-mix(in oklch, var(--neu) 22%, transparent); }
.mc-prob .cell.win.c2 { background: color-mix(in oklch, var(--gold-deep) 28%, transparent); }
.mc-prob .lbl { position: absolute; top: -1px; left: 4px; font-size: 8px; color: var(--ink-mute); letter-spacing: 0.05em; font-weight: 700; }

.mc-pick {
  font-family: var(--font-mono); font-size: 11px;
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
}
.mc-pick .pick-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 5px;
  background: var(--pos-soft); color: var(--pos);
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 10px;
}
.mc-pick .pick-tag.neu {
  background: var(--neu-soft); color: var(--ink-2);
}
.mc-pick .pick-detail { color: var(--ink-3); }
.mc-pick .pick-detail b { color: var(--ink); font-weight: 600; }

.mc-fav {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
}
.mc-fav:hover { color: var(--gold-deep); background: var(--bg-sunk); }

@media (max-width: 880px) {
  .match-card {
    grid-template-columns: 56px 1fr 28px;
    grid-template-areas:
      "time teams fav"
      "prob prob prob"
      "pick pick pick";
    gap: 10px;
  }
  .mc-time   { grid-area: time; }
  .mc-teams  { grid-area: teams; }
  .mc-prob   { grid-area: prob; height: 30px; }
  .mc-pick   { grid-area: pick; flex-direction: row; gap: 8px; align-items: center; }
  .mc-fav    { grid-area: fav; }
}

/* ── sidebar widgets ────────────────────────────────────────────── */
aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.widget {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
}
.widget-head h3 {
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-2);
}
.widget-head .more {
  font: 500 11px/1 var(--font-mono); color: var(--ink-3);
  letter-spacing: 0.04em;
}
.widget-head .live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 7px; border-radius: 4px;
  background: var(--neg-soft); color: var(--neg);
  font: 700 10px/1 var(--font-sans); letter-spacing: 0.08em;
}
.widget-head .live-tag .d {
  width: 5px; height: 5px; border-radius: 50%; background: var(--neg);
  animation: pulse 1.6s ease-in-out infinite;
}

/* standings table */
table.standings { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.standings th, table.standings td {
  text-align: left; padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
table.standings thead th {
  font: 600 10px/1 var(--font-sans);
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 12px; background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
}
table.standings td.pos {
  width: 26px; font: 600 12px/1 var(--font-mono); color: var(--ink-3);
}
table.standings tr.cl { border-left: 3px solid var(--primary); }
table.standings tr.cl td.pos { color: var(--primary); font-weight: 700; }
table.standings tr.el { border-left: 3px solid var(--gold-deep); }
table.standings td.team-cell { color: var(--ink); font-weight: 500; }
table.standings td.team-cell .crest-xs {
  width: 16px; height: 16px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 8px/1 var(--font-display); color: white;
  margin-right: 8px; vertical-align: -3px;
}
table.standings th.num, table.standings td.num { text-align: center; font-variant-numeric: tabular-nums; }
table.standings td.num { font: 500 12px/1.4 var(--font-mono); color: var(--ink-2); }
table.standings td.pts { color: var(--ink); font-weight: 600; }
table.standings tbody tr:last-child td { border-bottom: 0; }
table.standings tr:hover td { background: var(--bg-sunk); }

/* league switcher */
.tabs {
  display: flex; gap: 4px; padding: 8px 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tabs button, .tabs a {
  padding: 4px 8px; border-radius: 5px; border: 0; background: transparent;
  font: 600 11px/1 var(--font-sans); color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
}
.tabs button[aria-pressed="true"], .tabs a[aria-pressed="true"] { background: var(--ink); color: var(--bg-elev); }
[data-theme="dark"] .tabs button[aria-pressed="true"], [data-theme="dark"] .tabs a[aria-pressed="true"] { background: var(--ink); color: var(--bg-sunk); }

/* model card */
.model-card { padding: 16px; }
.model-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 10px;
}
.mcell {
  display: flex; flex-direction: column; gap: 4px;
  padding-right: 8px;
}
.mcell + .mcell { border-left: 1px solid var(--line); padding-left: 12px; }
.mcell .lbl { font: 600 10px/1 var(--font-sans); color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.mcell .val { font: 700 20px/1 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.mcell .sub { font: 500 11px/1 var(--font-mono); color: var(--pos); }
.mcell .sub.neg { color: var(--neg); }

/* trends widget */
.trend-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.trend-row:last-child { border-bottom: 0; }
.trend-row .label { color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.trend-row .label .ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg-sunk); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 11px/1 var(--font-mono);
}
.trend-row .val { font: 600 13px/1 var(--font-mono); color: var(--ink); }
.trend-row .spark {
  width: 60px; height: 18px;
}

/* editorial cards */
.editorial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .editorial { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .editorial { grid-template-columns: 1fr; } }
.article {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.article-img {
  aspect-ratio: 16 / 9; position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklch, var(--primary) 20%, var(--bg-sunk)) 0 12px,
      color-mix(in oklch, var(--primary) 12%, var(--bg-sunk)) 12px 24px);
}
.article:nth-child(2) .article-img {
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklch, var(--gold-deep) 30%, var(--bg-sunk)) 0 12px,
      color-mix(in oklch, var(--gold-deep) 18%, var(--bg-sunk)) 12px 24px);
}
.article:nth-child(3) .article-img {
  background:
    repeating-linear-gradient(45deg,
      color-mix(in oklch, var(--ink-3) 25%, var(--bg-sunk)) 0 12px,
      color-mix(in oklch, var(--ink-3) 15%, var(--bg-sunk)) 12px 24px);
}
.article-img .ph {
  position: absolute; left: 12px; bottom: 12px;
  font: 500 10px/1 var(--font-mono); color: var(--ink-mute);
  background: var(--bg-elev); padding: 4px 7px; border-radius: 4px;
  border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.article-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-cat {
  font: 600 10px/1 var(--font-mono); color: var(--gold-deep);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.article-title {
  font: 600 16px/1.25 var(--font-display);
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.article-meta {
  margin-top: auto; padding-top: 8px;
  font: 500 11px/1 var(--font-mono); color: var(--ink-3);
  display: flex; gap: 10px; align-items: center;
}
.article-meta .by { color: var(--ink-2); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }

/* ── footer ─────────────────────────────────────────────────────── */
.responsible {
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-sunk);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.responsible .age {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--neg);
  font: 700 14px/1 var(--font-display); color: var(--neg);
  display: flex; align-items: center; justify-content: center;
}
.responsible .copy { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.responsible .copy b { color: var(--ink); font-weight: 600; }
.responsible .link {
  font: 600 12px/1 var(--font-sans); color: var(--primary);
  text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 720px) {
  .responsible { grid-template-columns: auto 1fr; }
  .responsible .link { grid-column: 1 / -1; }
}

footer.site {
  margin-top: 40px; padding: 32px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12.5px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
}
.footer-grid h4 { font: 600 11px/1 var(--font-sans); color: var(--ink); margin-bottom: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid .brand { font-size: 16px; margin-bottom: 12px; }
.footer-grid p { margin: 0 0 16px; max-width: 30ch; }
.footer-foot {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 500 11px/1.5 var(--font-mono); color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.footer-foot a { color: var(--ink-3); text-decoration: none; }
.footer-foot a:hover { color: var(--ink); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* utility */
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.h-spacer { width: 12px; }

/* svg icon defaults */
.ico-svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .ico-svg { width: 16px; height: 16px; }

/* ── pagine interne ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--font-mono); color: var(--ink-3);
  margin: 18px 0 14px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--ink-mute); }

.page-hero {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.page-hero-top {
  background:
    radial-gradient(120% 140% at 0% 0%, var(--primary-soft) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, var(--gold-soft) 0%, transparent 55%),
    var(--bg-elev);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--line);
}
.page-hero-top .league-mark-lg {
  width: 52px; height: 52px; border-radius: 14px; flex: 0 0 auto;
}
.page-hero-top h1 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.page-hero-top .sub {
  font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); margin-top: 4px;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stats .fstat { padding: 14px 18px; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .fstat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* classifica completa */
table.standings.full td, table.standings.full th { padding: 9px 10px; }
table.standings.full td.num.sm { color: var(--ink-3); }
table.standings tr.rel { border-left: 3px solid var(--neg); }
table.standings tr.rel td.pos { color: var(--neg); }
.zone-legend {
  display: flex; gap: 16px; padding: 10px 16px;
  font: 500 10.5px/1 var(--font-mono); color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.zone-legend .z { display: inline-flex; align-items: center; gap: 6px; }
.zone-legend .z::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.zone-legend .z.cl::before { background: var(--primary); }
.zone-legend .z.el::before { background: var(--gold-deep); }
.zone-legend .z.rel::before { background: var(--neg); }

/* righe risultato */
.result-row {
  display: grid;
  grid-template-columns: 76px 1fr auto 1fr;
  align-items: center; gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: var(--bg-sunk); }
.result-row .when { font: 500 11px/1.4 var(--font-mono); color: var(--ink-3); }
.result-row .side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result-row .side.away { justify-content: flex-end; text-align: right; }
.result-row .side .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.result-row .score {
  font: 700 13px/1 var(--font-mono);
  padding: 5px 9px; border-radius: 6px;
  background: var(--bg-sunk); border: 1px solid var(--line);
  white-space: nowrap;
}
.result-row .score .ht { font-weight: 400; color: var(--ink-mute); font-size: 10px; }

/* matrice risultati esatti */
.matrix-wrap { padding: 16px; overflow-x: auto; }
table.matrix { border-collapse: collapse; font: 500 11.5px/1 var(--font-mono); margin: 0 auto; }
table.matrix th {
  font: 600 10px/1 var(--font-sans); color: var(--ink-3);
  padding: 6px 8px; text-transform: uppercase; letter-spacing: 0.04em;
}
table.matrix td {
  width: 52px; height: 38px; text-align: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: color-mix(in oklch, var(--primary) calc(var(--p) * 3%), var(--bg-elev));
}
table.matrix td.top {
  outline: 2px solid var(--gold-deep); outline-offset: -2px;
  font-weight: 700;
}
.matrix-note { padding: 0 16px 14px; font: 500 11px/1.5 var(--font-mono); color: var(--ink-3); }

/* box forma squadra */
.form-box { border-bottom: 1px solid var(--line); }
.form-box:last-child { border-bottom: 0; }
.form-box-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 8px;
  font-weight: 600; font-size: 13px;
}
.form-game {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 16px;
  font-size: 12px; color: var(--ink-2);
}
.form-game .r { font: 700 11px/18px var(--font-mono); width: 18px; height: 18px; border-radius: 5px; text-align: center; color: white; flex: 0 0 auto; }
.form-game .r.w { background: var(--pos); }
.form-game .r.d { background: var(--neu); color: var(--ink); }
.form-game .r.l { background: var(--neg); }
[data-theme="dark"] .form-game .r.d { color: var(--bg-elev); }
.form-game .opp { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-game .sc { font: 600 12px/1 var(--font-mono); color: var(--ink); }

/* tabella confronto quote */
table.odds-compare { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.odds-compare th, table.odds-compare td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: right; }
table.odds-compare th:first-child, table.odds-compare td:first-child { text-align: left; }
table.odds-compare thead th {
  font: 600 10px/1 var(--font-sans); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-sunk);
}
table.odds-compare td { font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-2); }
table.odds-compare td.mk { color: var(--ink); font-weight: 600; font-family: var(--font-sans); }
table.odds-compare td .edge-pos { color: var(--pos); font-weight: 600; }
table.odds-compare td .edge-neg { color: var(--ink-mute); }
table.odds-compare tbody tr:last-child td { border-bottom: 0; }

/* link-card overlay */
.match-card { cursor: pointer; }
.match-card .mc-link { position: absolute; inset: 0; z-index: 1; }
.match-card .mc-fav, .match-card a.inner { position: relative; z-index: 2; }
.match-group-head a:hover { text-decoration: underline; }

/* ── indice campionati ──────────────────────────────────────────── */
.country-block { margin-bottom: 26px; }
.country-block h2 {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.country-block h2 .cc {
  font: 600 10px/1 var(--font-mono); color: var(--ink-mute);
  padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px;
}
.league-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.league-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.league-card:hover { border-color: var(--line-strong); background: var(--bg-sunk); }
.league-card .mark {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
}
.league-card .info { min-width: 0; flex: 1; }
.league-card .nm { font: 600 14px/1.2 var(--font-display); color: var(--ink); }
.league-card .meta { font: 500 11px/1.5 var(--font-mono); color: var(--ink-3); margin-top: 3px; }
.league-card .lvl {
  font: 700 10px/1 var(--font-mono); color: var(--ink-mute);
  border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px;
  flex: 0 0 auto;
}

/* riga evidenziata in classifica (pagina squadra) */
table.standings tr.hl td { background: color-mix(in oklch, var(--gold) 12%, transparent); }
table.standings tr.hl td.pos { color: var(--gold-deep); font-weight: 700; }

/* campionati in evidenza */
.featured-leagues .league-card {
  border-color: color-mix(in oklch, var(--gold-deep) 35%, var(--line));
  background:
    radial-gradient(120% 160% at 100% 0%, var(--gold-soft) 0%, transparent 55%),
    var(--bg-elev);
}
.featured-leagues .league-card:hover {
  border-color: var(--gold-deep);
}
.featured-leagues h2 .cc { color: var(--gold-deep); border-color: color-mix(in oklch, var(--gold-deep) 40%, var(--line)); }

/* ── testo editoriale generato ──────────────────────────────────── */
.prose-body { padding: 18px 20px; }
.prose-body p {
  margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2);
}
.prose-body p:last-child { margin-bottom: 0; }
.prose-body .faq-q {
  font: 600 14px/1.3 var(--font-display); color: var(--ink);
  margin: 16px 0 6px;
}
.prose-body .faq-q:first-child { margin-top: 0; }

/* risultato reale nella matrice (partite concluse) */
table.matrix td.real {
  outline: 2px solid var(--pos); outline-offset: -2px;
  font-weight: 700;
}
table.matrix td.top.real { outline-color: var(--pos); }

/* ── analisi quote di mercato (calendario mercati) ─────────────── */
.cm-filter { padding: 16px 18px; margin-bottom: 20px; }
.cm-filter-title {
  font: 600 14px/1.3 var(--font-display); color: var(--ink);
  margin-bottom: 12px;
}
.cm-filter-count { font: 400 12px/1 var(--font-sans); color: var(--ink-3); margin-left: 6px; }

.cm-date-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cm-date-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 20px;
  background: var(--bg-elev); color: var(--ink-2);
  font: 500 12.5px/1 var(--font-sans); cursor: pointer; transition: all .15s;
}
.cm-date-chip:hover { border-color: var(--gold-deep); color: var(--ink); }
.cm-date-chip.active {
  background: var(--gold); border-color: var(--gold);
  color: oklch(0.22 0.02 85); font-weight: 600;
}
.cm-date-chip.is-past { opacity: .75; }
.cm-date-chip.is-past.active { opacity: 1; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.cm-chip-count {
  background: rgba(0,0,0,.12); padding: 2px 7px; border-radius: 10px;
  font-size: 10.5px; font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .cm-date-chip .cm-chip-count { background: rgba(255,255,255,.1); }
[data-theme="dark"] .cm-date-chip.active .cm-chip-count { background: rgba(0,0,0,.18); color: oklch(0.22 0.02 85); }

.cm-date-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-action-btn {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-sunk); color: var(--ink-2);
  font: 500 12px/1 var(--font-sans); cursor: pointer; transition: all .15s;
}
.cm-action-btn:hover { border-color: var(--line-strong); color: var(--ink); }

.cm-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.cm-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.cm-legend-color { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--mkt-bg, var(--bg-sunk)); border-color: var(--mkt-line, var(--line)); }
.cm-legend-won {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pos); color: white; font-size: 9px; font-weight: 700;
}

.cm-date-header {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--primary), color-mix(in oklch, var(--primary) 70%, black));
  color: var(--primary-ink); border-radius: var(--radius);
  padding: 12px 16px; margin: 22px 0 14px;
}
.cm-date-header h2 { margin: 0; font: 600 15px/1.2 var(--font-display); color: inherit; }
.cm-date-header.is-past {
  background: linear-gradient(135deg, oklch(0.32 0.015 200), oklch(0.42 0.018 200));
  color: oklch(0.96 0.008 200);
}
.cm-date-badge {
  background: var(--pos); color: white; padding: 4px 10px;
  border-radius: 12px; font: 600 11px/1 var(--font-sans);
}

.cm-league-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 18px 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid color-mix(in oklch, var(--gold-deep) 55%, var(--line));
}
.cm-league-header a {
  font: 700 13px/1.2 var(--font-display); color: var(--ink);
  text-decoration: none; text-transform: uppercase; letter-spacing: .3px;
}
.cm-league-header a:hover { color: var(--gold-deep); }
.cm-league-count { font-size: 11.5px; color: var(--ink-3); }

.cm-match {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.cm-match.finished { background: color-mix(in oklch, var(--bg-elev) 88%, var(--bg-sunk)); }
.cm-match-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 6px;
}
.cm-match-teams a {
  font: 600 14.5px/1.3 var(--font-display); color: var(--ink); text-decoration: none;
}
.cm-match-teams a:hover { color: var(--gold-deep); }
.cm-vs { color: var(--ink-mute); font-weight: 400; margin: 0 4px; }
.cm-badge {
  font: 600 10px/1 var(--font-sans); padding: 3px 7px; border-radius: 4px;
  margin-left: 8px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .3px;
}
.cm-badge.verified { background: var(--pos-soft); color: var(--pos); }
.cm-badge.estimated { background: var(--gold-soft); color: var(--gold-deep); }
[data-theme="dark"] .cm-badge.verified { background: color-mix(in oklch, var(--pos) 22%, transparent); }
[data-theme="dark"] .cm-badge.estimated { background: color-mix(in oklch, var(--gold-deep) 25%, transparent); color: var(--gold); }

.cm-match-xg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.cm-match-xg strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-best-list { color: var(--gold-deep); font-weight: 600; }
[data-theme="dark"] .cm-best-list { color: var(--gold); }

.cm-match-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cm-time { font: 500 12px/1 var(--font-mono); color: var(--ink-3); }
.cm-score {
  background: var(--ink); color: var(--bg-elev); padding: 4px 10px;
  border-radius: var(--radius-sm); font: 700 13px/1 var(--font-mono);
}

.cm-cat-title {
  font: 600 10.5px/1 var(--font-sans); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .6px; margin: 12px 0 6px;
}
.cm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px;
}
.cm-mkt {
  --mkt-bg: var(--bg-sunk); --mkt-line: var(--line); --mkt-ink: var(--ink-3);
  position: relative; padding: 7px 5px; text-align: center;
  border: 1px solid var(--mkt-line); border-radius: var(--radius-sm);
  background: var(--mkt-bg);
}
.cm-mkt .bet { display: block; font: 600 11.5px/1.2 var(--font-sans); color: var(--ink); }
.cm-mkt .prob { display: block; margin-top: 2px; font: 500 10.5px/1 var(--font-mono); color: var(--mkt-ink); }

/* fasce probabilità — tema chiaro */
.cm-mkt.tier-1, .cm-legend-color.tier-1 { --mkt-bg: oklch(0.85 0.14 150); --mkt-line: oklch(0.68 0.15 150); --mkt-ink: oklch(0.32 0.09 150); }
.cm-mkt.tier-2, .cm-legend-color.tier-2 { --mkt-bg: oklch(0.9 0.1 150); --mkt-line: oklch(0.75 0.12 150); --mkt-ink: oklch(0.35 0.08 150); }
.cm-mkt.tier-3, .cm-legend-color.tier-3 { --mkt-bg: oklch(0.94 0.06 150); --mkt-line: oklch(0.82 0.08 150); --mkt-ink: oklch(0.38 0.07 150); }
.cm-mkt.tier-4, .cm-legend-color.tier-4 { --mkt-bg: oklch(0.97 0.025 150); --mkt-line: oklch(0.88 0.04 150); }
.cm-mkt.tier-6, .cm-legend-color.tier-6 { --mkt-bg: oklch(0.96 0.02 27); --mkt-line: oklch(0.88 0.04 27); --mkt-ink: oklch(0.45 0.12 27); }
.cm-mkt.tier-7, .cm-legend-color.tier-7 { --mkt-bg: oklch(0.9 0.06 27); --mkt-line: oklch(0.78 0.1 27); --mkt-ink: oklch(0.42 0.14 27); }
.cm-mkt.tier-1 .bet, .cm-mkt.tier-2 .bet, .cm-mkt.tier-3 .bet { color: oklch(0.25 0.06 150); }
.cm-mkt.tier-7 .bet { color: oklch(0.3 0.1 27); }

/* fasce probabilità — tema scuro (colori pieni, gradiente come l'originale) */
[data-theme="dark"] .cm-mkt.tier-1, [data-theme="dark"] .cm-legend-color.tier-1 { --mkt-bg: linear-gradient(135deg, oklch(0.52 0.16 150), oklch(0.44 0.15 152)); --mkt-line: oklch(0.72 0.19 150); --mkt-ink: oklch(0.95 0.05 150); }
[data-theme="dark"] .cm-mkt.tier-2, [data-theme="dark"] .cm-legend-color.tier-2 { --mkt-bg: linear-gradient(135deg, oklch(0.44 0.13 150), oklch(0.37 0.12 152)); --mkt-line: oklch(0.62 0.15 150); --mkt-ink: oklch(0.92 0.06 150); }
[data-theme="dark"] .cm-mkt.tier-3, [data-theme="dark"] .cm-legend-color.tier-3 { --mkt-bg: oklch(0.35 0.09 150); --mkt-line: oklch(0.52 0.12 150); --mkt-ink: oklch(0.87 0.09 150); }
[data-theme="dark"] .cm-mkt.tier-4, [data-theme="dark"] .cm-legend-color.tier-4 { --mkt-bg: oklch(0.29 0.05 150); --mkt-line: oklch(0.42 0.07 150); --mkt-ink: oklch(0.8 0.07 150); }
[data-theme="dark"] .cm-mkt.tier-5, [data-theme="dark"] .cm-legend-color.tier-5 { --mkt-bg: oklch(0.27 0.012 200); --mkt-line: oklch(0.38 0.015 200); --mkt-ink: oklch(0.72 0.01 200); }
[data-theme="dark"] .cm-mkt.tier-6, [data-theme="dark"] .cm-legend-color.tier-6 { --mkt-bg: oklch(0.3 0.06 27); --mkt-line: oklch(0.46 0.1 27); --mkt-ink: oklch(0.8 0.1 27); }
[data-theme="dark"] .cm-mkt.tier-7, [data-theme="dark"] .cm-legend-color.tier-7 { --mkt-bg: linear-gradient(135deg, oklch(0.42 0.13 27), oklch(0.35 0.12 25)); --mkt-line: oklch(0.6 0.17 27); --mkt-ink: oklch(0.92 0.07 27); }
[data-theme="dark"] .cm-mkt.tier-1 .bet, [data-theme="dark"] .cm-mkt.tier-2 .bet { color: white; }
[data-theme="dark"] .cm-mkt.tier-3 .bet { color: oklch(0.95 0.04 150); }
[data-theme="dark"] .cm-mkt.tier-7 .bet { color: white; }

/* consigliato */
.cm-mkt.best { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep); }
.cm-mkt.best::after {
  content: '\2605'; position: absolute; top: -7px; right: -4px;
  font-size: 10px; color: var(--gold-deep); line-height: 1;
}
[data-theme="dark"] .cm-mkt.best { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
[data-theme="dark"] .cm-mkt.best::after { color: var(--gold); }

/* verifica esito (partite concluse) */
.cm-mkt.winner { box-shadow: 0 0 0 2px var(--pos); }
.cm-mkt.winner::before {
  content: '\2713'; position: absolute; top: -6px; left: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pos); color: white;
  font-size: 9px; font-weight: 700; line-height: 14px; text-align: center;
}
.cm-mkt.best.winner { box-shadow: 0 0 0 2px var(--pos), 0 0 0 3px var(--gold-deep); }
.cm-mkt.loser { opacity: .45; }

.cm-no-model { margin: 8px 0 0; font-size: 12px; color: var(--ink-mute); font-style: italic; }

@media (max-width: 720px) {
  .cm-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
  .cm-match-head { flex-direction: column; }
  .cm-match-meta { align-self: flex-end; }
}

/* ── analisi casa/trasferta ─────────────────────────────────────── */
.ha-filter { padding: 14px 18px; margin-bottom: 4px; }
.ha-filter-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.ha-filter label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 220px; max-width: 340px; }
.ha-filter label span { font: 600 11px/1 var(--font-sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; }
.ha-filter select {
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-sunk); color: var(--ink);
  font: 500 13px/1.2 var(--font-sans); cursor: pointer;
}
.ha-filter select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.ha-info { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-3); }

.ha-scroll { overflow-x: auto; padding: 4px 0; }
.ha-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ha-table th {
  padding: 10px 12px; text-align: left;
  font: 600 10.5px/1 var(--font-sans); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--line);
}
.ha-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.ha-table tr:last-child td { border-bottom: none; }
.ha-table tr:hover td { background: color-mix(in oklch, var(--bg-sunk) 60%, transparent); }
.ha-table tr.current td { background: color-mix(in oklch, var(--gold) 10%, transparent); }
.ha-table th.num, .ha-table td.num { text-align: center; font-variant-numeric: tabular-nums; }
.ha-table td.strong { font-weight: 700; color: var(--ink); }
.ha-table td.up, .ha-period-nums .up { color: var(--pos); font-weight: 600; }
.ha-table td.down, .ha-period-nums .down { color: var(--neg); font-weight: 600; }
.ha-table td a { color: var(--ink); text-decoration: none; }
.ha-table td a:hover { color: var(--gold-deep); }
.ha-table td small { display: block; color: var(--ink-mute); font-size: 11px; }

.ha-badge {
  display: inline-block; min-width: 42px; padding: 3px 8px; border-radius: 12px;
  font: 600 11.5px/1.2 var(--font-mono); text-align: center;
}
.ha-badge.home { background: color-mix(in oklch, var(--pos) 18%, transparent); color: var(--pos); }
.ha-badge.draw { background: color-mix(in oklch, var(--neu) 18%, transparent); color: var(--ink-2); }
.ha-badge.away { background: color-mix(in oklch, var(--primary) 16%, transparent); color: var(--primary); }
.ha-badge.neg { background: color-mix(in oklch, var(--neg) 18%, transparent); color: var(--neg); }

.ha-factor {
  display: inline-block; padding: 3px 9px; border-radius: 12px;
  font: 700 11.5px/1.2 var(--font-mono);
}
.ha-factor.high { background: color-mix(in oklch, var(--pos) 25%, transparent); color: var(--pos); }
.ha-factor.medium { background: color-mix(in oklch, var(--gold) 22%, transparent); color: var(--gold-deep); }
.ha-factor.low { background: color-mix(in oklch, var(--neu) 18%, transparent); color: var(--ink-3); }
[data-theme="dark"] .ha-factor.medium { color: var(--gold); }

.ha-bar {
  display: flex; height: 12px; border-radius: 6px; overflow: hidden;
  background: var(--bg-sunk); min-width: 130px;
}
.ha-bar span { display: block; height: 100%; }
.ha-bar .h { background: var(--pos); }
.ha-bar .d { background: var(--neu); }
.ha-bar .a { background: var(--neg); }
.ha-bar.tall {
  height: 20px;
  font: 600 10px/20px var(--font-mono); color: white; text-align: center;
}
.ha-bar.tall span { overflow: hidden; white-space: nowrap; }

.ha-trend { padding-bottom: 10px; }
.ha-period { padding: 10px 16px; }
.ha-period + .ha-period { border-top: 1px solid var(--line); }
.ha-period-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 7px; font-size: 13px; color: var(--ink);
}
.ha-period-head span { font-size: 11px; color: var(--ink-3); }
.ha-period-nums {
  display: flex; gap: 14px; align-items: center; margin-top: 7px;
  font-size: 11.5px; color: var(--ink-3);
}
.ha-period-nums b { font-size: 13px; color: var(--ink); }
.ha-period-nums .ha-factor { margin-left: auto; }

@media (max-width: 720px) {
  .ha-filter label { max-width: none; }
}

.ha-hero-img { margin: 0 0 20px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ha-hero-img img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; object-position: center 35%; }

/* ── dropdown nav ───────────────────────────────────────────────── */
.nav-drop { position: relative; display: inline-flex; }
.nav-drop .drop-caret { width: 10px; height: 10px; opacity: .6; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 210px; padding: 6px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .12s, transform .12s, visibility .12s;
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-menu a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 500; font-size: 13px;
}
.nav-drop-menu a:hover { background: var(--bg-sunk); color: var(--ink); }
.nav-drop-menu a[aria-current="page"] { color: var(--gold-deep); }
[data-theme="dark"] .nav-drop-menu a[aria-current="page"] { color: var(--gold); }

/* ── menu mobile (hamburger) ────────────────────────────────────── */
.burger { display: none; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line); padding: 10px 14px 16px;
  flex-direction: column; gap: 2px; background: var(--bg-elev);
}
@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}
.mobile-menu > a, .mobile-menu .mobile-group a {
  padding: 11px 12px; border-radius: 8px; color: var(--ink-2);
  font: 500 14px/1.2 var(--font-sans); display: flex; align-items: center; gap: 8px;
}
.mobile-menu a:hover { background: var(--bg-sunk); color: var(--ink); }
.mobile-menu a[aria-current="page"] { color: var(--gold-deep); background: var(--bg-sunk); }
[data-theme="dark"] .mobile-menu a[aria-current="page"] { color: var(--gold); }
.mobile-menu .badge { font-size: 10px; padding: 1px 6px; background: var(--gold); color: oklch(0.25 0.05 80); border-radius: 999px; font-weight: 700; }
.mobile-group { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.mobile-group-title { padding: 4px 12px 6px; font: 600 10.5px/1 var(--font-sans); color: var(--ink-3); text-transform: uppercase; letter-spacing: .8px; }
.mobile-group a.sub { padding-left: 22px; }
.mobile-cta { display: flex; gap: 10px; margin-top: 14px; padding: 12px 12px 0; border-top: 1px solid var(--line); }
.mobile-cta .btn { flex: 1; justify-content: center; }

/* sequenza forma (V/N/P) */
.fa-seq { display: inline-flex; gap: 3px; }
.fa-seq span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  font: 700 10.5px/1 var(--font-mono); color: white;
}
.fa-seq .w { background: var(--pos); }
.fa-seq .d { background: var(--neu); }
.fa-seq .l { background: var(--neg); }

/* fasce nella classifica (statistiche-classifica) */
.ha-table tr.band-top td { background: color-mix(in oklch, var(--gold) 7%, transparent); }
.ha-table tr.band-bottom td { background: color-mix(in oklch, var(--neg) 6%, transparent); }

/* ── albero dei punteggi (sequenza-goal) ────────────────────────── */
.gs-tree { padding: 14px 18px; overflow-x: auto; }
.gs-tree > .gs-tree-level { margin: 0; padding: 0; }
.gs-tree-level { list-style: none; margin: 0; padding-left: 22px; border-left: 1px solid var(--line); }
.gs-tree-level li { margin: 5px 0; }
.gs-node {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-sunk); font-size: 12px; color: var(--ink-2);
}
.gs-node b { font: 700 12.5px/1 var(--font-mono); color: var(--ink); }
.gs-node em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.gs-node .pct { font: 700 12px/1 var(--font-mono); color: var(--gold-deep); }
[data-theme="dark"] .gs-node .pct { color: var(--gold); }
.gs-node .cnt { font-size: 10px; color: var(--ink-mute); }
.gs-node.up { border-color: color-mix(in oklch, var(--pos) 45%, var(--line)); }
.gs-node.down { border-color: color-mix(in oklch, var(--neg) 45%, var(--line)); }

/* pagine legali (privacy, cookie) */
.legal-prose { max-width: 800px; margin: 0 auto; padding: 8px 0 40px; }
.legal-prose h1 { font: 700 30px/1.2 var(--font-display); margin: 12px 0 18px; }
.legal-prose h2 { font: 700 19px/1.3 var(--font-display); margin: 30px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-prose h3 { font: 600 15px/1.3 var(--font-sans); margin: 20px 0 8px; }
.legal-prose p, .legal-prose li { font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.legal-prose p { margin: 0 0 12px; }
.legal-prose ul, .legal-prose ol { margin: 0 0 14px; padding-left: 22px; }
.legal-prose li { margin-bottom: 4px; }
.legal-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose .index { background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 0 0 8px; }
.legal-prose .index h3 { margin: 0 0 8px; }
.legal-prose .index ol { margin: 0; }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 13.5px; }
.legal-prose table th, .legal-prose table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-prose table th { font: 600 11px/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); background: var(--bg-sunk); }
.legal-prose code { font: 500 12.5px/1 var(--font-mono); background: var(--bg-sunk); border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }

/* crest a colori sociali: bordo interno per le maglie chiare su fondo chiaro */
.crest, .crest-sm, .crest-xs { box-shadow: inset 0 0 0 1px var(--line); }

/* H1 SEO: titolo pagina compatto (home, incontro) e coda keyword nei hero */
.page-h1 {
  font: 700 20px/1.35 var(--font-display);
  margin: 2px 0 16px; color: var(--ink);
}
.page-h1 .h1-kw, .page-hero h1 .h1-kw, .h1-kw {
  font: 500 14px/1.3 var(--font-sans); color: var(--ink-3);
  letter-spacing: 0; white-space: nowrap;
}
@media (max-width: 700px) { .page-h1 .h1-kw, .h1-kw { display: block; white-space: normal; } }

/* banner stato partita (in corso / in attesa risultato) */
.status-banner {
  display: flex; align-items: center; gap: 9px;
  font: 500 13.5px/1.5 var(--font-sans); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin: 0 0 16px;
  background: var(--bg-elev);
}
.status-banner.live { border-color: color-mix(in srgb, var(--pos) 45%, var(--line)); }
.status-banner strong { color: var(--ink); }

/* nomi squadra e campionato cliccabili nella scheda match */
.team-name a, .featured-meta .league a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.team-name a:hover, .featured-meta .league a:hover {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* widget "Approfondisci": link ai tool precompilati con squadre/campionato */
.tool-links { display: flex; flex-direction: column; }
.tool-links a {
  padding: 10px 16px; font: 500 13px/1.4 var(--font-sans);
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.tool-links a:last-child { border-bottom: 0; }
.tool-links a b { color: var(--ink); font-weight: 600; }
.tool-links a:hover { color: var(--primary); background: var(--bg-sunk); }
.tool-links a:hover b { color: var(--primary); }

/* strisce attive nella pagina match: icone dedicate + sentiment */
.streak-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--line);
  font: 500 12.5px/1.4 var(--font-sans); color: var(--ink-2);
}
.streak-row:last-child { border-bottom: 0; }
.streak-row .streak-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.streak-row .n {
  font: 700 15px/1 var(--font-mono); min-width: 22px; text-align: center;
  flex: 0 0 auto;
}
.streak-row .txt b { color: var(--ink); font-weight: 600; }
.streak-row.tone-pos .streak-ico, .streak-row.tone-pos .n { color: var(--pos); }
.streak-row.tone-neg .streak-ico, .streak-row.tone-neg .n { color: var(--neg); }
.streak-row.tone-mid .streak-ico, .streak-row.tone-mid .n { color: var(--gold); }

/* data nella card partita (pagine squadra: le prossime spaziano su più giorni) */
.mc-time .d { font: 700 10px/1.2 var(--font-sans); color: var(--ink); letter-spacing: 0.04em; }

/* strisce: righe-link (widget home e pagina dedicata) e griglia pagina */
a.streak-link { text-decoration: none; }
a.streak-link:hover { background: var(--bg-sunk); }
a.streak-link:hover .txt b { color: var(--primary); }
.streak-row .txt .next { display: block; font-size: 11px; color: var(--ink-3); }
.streak-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px; margin-top: 20px;
}
.streak-block { align-self: start; }
.streak-block-title {
  display: flex; align-items: center; gap: 8px;
  font: 600 13px/1.2 var(--font-sans); margin: 0;
}
.streak-block-title .streak-ico { width: 17px; height: 17px; }
.streak-block-title.tone-pos .streak-ico { color: var(--pos); }
.streak-block-title.tone-neg .streak-ico { color: var(--neg); }
.streak-block-title.tone-mid .streak-ico { color: var(--gold); }

/* indicazione del campo nelle strisce (serie calcolate per casa/trasferta) */
.streak-row .venue { font-style: normal; font-size: 11px; color: var(--ink-3); }

/* Le X più probabili (widget pagina pronostici) */
a.draw-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-bottom: 1px solid var(--line);
  font: 500 12.5px/1.4 var(--font-sans); color: var(--ink-2);
  text-decoration: none;
}
a.draw-row:last-of-type { border-bottom: 0; }
a.draw-row:hover { background: var(--bg-sunk); }
a.draw-row:hover .txt b { color: var(--primary); }
.draw-row .p {
  font: 700 12px/24px var(--font-mono); min-width: 40px; height: 24px;
  text-align: center; border-radius: 6px;
  background: var(--primary); color: white; flex: 0 0 auto;
}
[data-theme="dark"] .draw-row .p { color: var(--bg-elev); }
.draw-row .txt { min-width: 0; }
.draw-row .txt b {
  color: var(--ink); font-weight: 600;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.draw-row .txt .next { display: block; font-size: 11px; color: var(--ink-3); }
.widget-note {
  padding: 10px 16px 12px; border-top: 1px solid var(--line);
  font-size: 11px; line-height: 1.5; color: var(--ink-3);
}

/* statistiche ufficiali partita (barre comparative casa/ospite) */
.stat-bars { padding: 14px 16px; }
.stat-bars .sb-teams {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; margin-bottom: 10px;
}
.sb-row { display: flex; align-items: center; gap: 12px; padding: 5px 0; }
.sb-row .v { font: 600 13px/1 var(--font-mono); min-width: 44px; }
.sb-row .v:last-child { text-align: right; }
.sb-row .bars { flex: 1; min-width: 0; }
.sb-row .lbl {
  display: block; text-align: center;
  font: 600 10px/1.4 var(--font-sans); text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-3);
}
.sb-row .track {
  display: flex; gap: 3px; height: 7px; margin-top: 3px;
  border-radius: 4px; overflow: hidden; background: var(--bg-sunk);
}
.sb-row .track .h { background: var(--primary); border-radius: 4px 0 0 4px; }
.sb-row .track .a { background: var(--gold-deep); border-radius: 0 4px 4px 0; margin-left: auto; }

/* rating ELO (pagina squadra) */
.elo-now { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.elo-now .cur { font: 700 22px/1.2 var(--font-display); color: var(--ink); }
.elo-now .rng { font: 600 11.5px/1.4 var(--font-mono); }
.elo-minmax {
  display: flex; justify-content: space-between;
  font: 500 10.5px/1.4 var(--font-mono); color: var(--ink-3);
}

/* corner e cartellini (pagina incontro) */
.cc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 24px; padding: 16px;
}
.cc-block { min-width: 0; }
.cc-title {
  display: block; font: 600 11px/1.4 var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3);
  margin-bottom: 6px;
}
.cc-line { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.cc-line .ln { min-width: 62px; color: var(--ink-2); font-weight: 600; }
.cc-line .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--bg-sunk); overflow: hidden; }
.cc-line .bar i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.cc-line .pv { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-2); white-space: nowrap; }

/* striscia pronostico primo tempo (pagina incontro) */
.ht-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px; padding: 16px;
}

/* medie stagionali squadra (sidebar pagina squadra) */
.team-avg { padding: 4px 16px 12px; }
.ta-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2);
}
.ta-row:last-child { border-bottom: 0; }
.ta-row .val { font: 600 12.5px/1.4 var(--font-mono); color: var(--ink); }

/* movimento quote 1X2 */
.odds-moves { padding: 14px 16px; }
.om-rows { display: grid; gap: 6px; margin-top: 10px; }
.om-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-2);
}
.om-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.om-row .mk { font: 700 11px/1 var(--font-mono); min-width: 14px; }
.om-row .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-row .vals { font: 500 12px/1 var(--font-mono); }
.om-row .vals b { color: var(--ink); }
.om-row .delta { font: 700 11px/1 var(--font-mono); min-width: 52px; text-align: right; color: var(--ink-3); }
.om-row .delta.up { color: var(--pos); }
.om-row .delta.down { color: var(--neg); }
.om-row .delta.drop { color: var(--neg); }
