:root {
  color-scheme: light;
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f0f3f9; --border: #e1e5ee;
  --text: #0f172a; --text-2: #3d475c; --muted: #647089;
  --brand: #2b59ff; --brand-ink: #1d43d6; --brand-soft: #e8eeff;
  --pos: #0b8a50; --pos-soft: #e3f6ec; --neg: #d33a3f; --neg-soft: #fde9ea;
  --warn: #9a6400; --warn-soft: #fdf3dd;
  --hero-1: #0f1830; --hero-2: #1b2d5c;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .05);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b101b; --surface: #121a29; --surface-2: #182133; --border: #243049;
    --text: #e8edf7; --text-2: #c2cbdc; --muted: #8e9ab1;
    --brand: #6d8bff; --brand-ink: #93a8ff; --brand-soft: #1a2647;
    --pos: #38d38b; --pos-soft: #10301f; --neg: #ff7b7f; --neg-soft: #3a1619;
    --warn: #f1b748; --warn-soft: #33270f;
    --hero-1: #0a1020; --hero-2: #14244a;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b101b; --surface: #121a29; --surface-2: #182133; --border: #243049;
  --text: #e8edf7; --text-2: #c2cbdc; --muted: #8e9ab1;
  --brand: #6d8bff; --brand-ink: #93a8ff; --brand-soft: #1a2647;
  --pos: #38d38b; --pos-soft: #10301f; --neg: #ff7b7f; --neg-soft: #3a1619;
  --warn: #f1b748; --warn-soft: #33270f;
  --hero-1: #0a1020; --hero-2: #14244a;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.hdr { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo b { color: var(--brand); font-weight: 750; }
.logo.small { font-size: 17px; margin-bottom: 6px; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 9px; font-weight: 550; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-soft); }
@media (max-width: 560px) {
  .hdr { flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px; }
  .nav { margin-left: -12px; width: calc(100% + 12px); }
  .logo { font-size: 18px; }
}

.site-footer { margin-top: 56px; border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 24px; }
.foot-grid p { margin: 0; font-size: 14px; }
.foot-grid nav { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.foot-grid nav a { color: var(--text-2); }
.disclaimer { color: var(--muted); }
.age { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border: 1.5px solid currentColor;
  border-radius: 6px; font-weight: 750; font-size: 12px; margin-right: 6px; color: var(--neg); vertical-align: 1px; }
.copy { margin-top: 18px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -20%, #2b59ff55, transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2));
  color: #fff; padding: 44px 0 40px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 40px); margin: 0 0 12px; max-width: 760px; }
.hero .lead { color: #c9d4ee; max-width: 700px; font-size: 17px; margin: 0; }
.hero .lead strong { color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0 0; max-width: 760px; }
.hero-stats div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 14px; }
.hero-stats dt { color: #aebbd8; font-size: 12px; }
.hero-stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hero-stats .pos { color: #4ff0a2; } .hero-stats .neg { color: #ff9a9d; }
.hero-link { display: inline-block; margin-top: 14px; color: #c9d6ff; font-weight: 600; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { padding: 30px 0; } .hero .lead { font-size: 15.5px; } }

.page-head { background: var(--surface); border-bottom: 1px solid var(--border); padding: 22px 0 22px; }
.page-head h1 { font-size: clamp(24px, 3.6vw, 34px); margin: 4px 0 8px; }
.page-head .lead { color: var(--text-2); margin: 0; max-width: 760px; }
.crumbs { display: flex; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2, .section > h2 { font-size: 22px; margin: 0 0 14px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 550; padding: 7px 13px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
.seg .cnt { font-size: 12px; opacity: .8; margin-left: 3px; font-variant-numeric: tabular-nums; }
select, input[type=number] { font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
select { padding-right: 28px; max-width: 220px; }
.edge-range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.edge-range input { width: 72px; }
@media (max-width: 560px) {
  .filters .seg { width: 100%; } .filters .seg button { flex: 1; }
  .filters .sel { flex: 1; } .filters select { width: 100%; max-width: none; }
}

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; display: flex; flex-direction: column; gap: 11px; min-width: 0; position: relative; }
.card.is-value { border-top: 3px solid var(--pos); padding-top: 14px; }
.card.r-won { border-top: 3px solid var(--pos); padding-top: 14px; }
.card.r-lost { border-top: 3px solid var(--neg); padding-top: 14px; }
.card-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.league { font-size: 13px; color: var(--muted); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.tag { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; border: 1px solid var(--border); }
.tag-value { background: var(--pos-soft); color: var(--pos); border-color: transparent; }
.tag-live { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.teams { font-size: 18px; margin: 0; font-weight: 700; }
.teams a { color: var(--text); }
.teams a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.teams .vs { color: var(--muted); font-weight: 450; font-size: 15px; margin: 0 2px; }
.kickoff { font-size: 13px; color: var(--muted); margin-top: -6px; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-soft); border-radius: 12px; padding: 11px 14px; }
.pick-muted { background: var(--surface-2); border: 1px solid var(--border); }
.pick-main { display: flex; flex-direction: column; min-width: 0; }
.pick-k { font-size: 12px; color: var(--muted); }
.pick-v { font-size: 16.5px; font-weight: 700; overflow-wrap: anywhere; }
.pick-odds { text-align: right; display: flex; flex-direction: column; flex-shrink: 0; }
.odds { font-size: 25px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.book { font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.kpis > div { background: var(--surface-2); border-radius: 9px; padding: 6px 8px; min-width: 0; border: 1px solid var(--border); }
.kpis dt { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.summary { margin: 0; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
.form-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; font-size: 13px; }
.form-mini .tn { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 19px; height: 19px; border-radius: 5px; font-size: 10.5px; font-weight: 750; display: inline-grid; place-items: center; color: #fff; }
.dot.W { background: #17a35e; } .dot.D { background: #8b95a5; } .dot.L { background: #dd4a4f; }
.card-link { margin-top: auto; font-weight: 650; font-size: 14px; position: relative; z-index: 1; pointer-events: none; }
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }

.res { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); }
.res > div { display: flex; flex-direction: column; }
.res-k { font-size: 12px; color: var(--muted); }
.res-score { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.res-r { text-align: right; align-items: flex-end; }
.res-badge { font-weight: 750; }
.res-pl { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.res-won { background: var(--pos-soft); border-color: transparent; } .res-won .res-badge, .res-won .res-pl { color: var(--pos); }
.res-lost { background: var(--neg-soft); border-color: transparent; } .res-lost .res-badge, .res-lost .res-pl { color: var(--neg); }
.res-manual { background: var(--warn-soft); border-color: transparent; } .res-manual .res-badge { color: var(--warn); }

.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-2); }
.empty p { margin: 0 0 12px; }
.empty-page { text-align: center; padding: 60px 16px; }
.btn { display: inline-block; font: inherit; font-weight: 650; font-size: 14px; color: #fff; background: var(--brand); border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-block { display: block; text-align: center; background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-title { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; }
.stat-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stat-nums dt { font-size: 11.5px; color: var(--muted); }
.stat-nums dd { margin: 0; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .stat-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- how ---------- */
.how h2 { margin-top: 18px; }
.steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; counter-increment: s; display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.steps span { color: var(--text-2); font-size: 14px; }

/* ---------- match page ---------- */
.kickoff-lg { color: var(--text-2); margin: 0; }
.match-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 22px; align-items: start; }
@media (max-width: 920px) { .match-grid { grid-template-columns: 1fr; } }
.match-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pick-lg { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.pick-lg.is-value { background: linear-gradient(135deg, var(--pos-soft), var(--surface) 70%); border-color: color-mix(in srgb, var(--pos) 35%, var(--border)); }
.pick-lg p { margin: 0; }
.pick-lg .pick-v { font-size: 22px; font-weight: 800; margin: 2px 0 4px; }
.pick-lg .odds { font-size: 36px; }
.kpis-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpis-lg > div { background: var(--surface); padding: 10px 12px; border-radius: 12px; }
.kpis-lg dt { font-size: 12.5px; overflow: visible; white-space: normal; }
.kpis-lg dd { font-size: 21px; }
@media (max-width: 600px) { .kpis-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pick-lg .pick-v { font-size: 19px; } .pick-lg .odds { font-size: 30px; } }
.hint { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); width: 17px; height: 17px; border-radius: 50%; font-size: 11px; line-height: 1; padding: 0; cursor: help; vertical-align: 1px; position: relative; }
.hint-pop { position: absolute; z-index: 30; max-width: 260px; background: var(--text); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.summary-lg { font-size: 17px; font-weight: 600; margin: 0; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 12px 12px 0; }
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.block h2 { font-size: 18px; margin: 0 0 10px; }
.prose { margin: 0; white-space: pre-line; color: var(--text-2); }
.bullets { margin: 0; padding-left: 20px; color: var(--text-2); }
.bullets li { margin: 4px 0; }
.notes { background: var(--warn-soft); border-color: transparent; }
.notes h2 { color: var(--warn); }
.teams-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .teams-2 { grid-template-columns: 1fr; } }
.team-box h3 { font-size: 15.5px; margin: 0 0 8px; }
.team-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-badge { font-size: 12.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
.last5 { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.last5 li { padding: 5px 0; border-top: 1px solid var(--border); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.odds-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.odds-table th, .odds-table td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.odds-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.odds-table .num { text-align: right; }
.odds-table tr.chosen td { background: var(--brand-soft); font-weight: 700; color: var(--brand-ink); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.sources a { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 99px; color: var(--text-2); }
.disclaimer-inline { font-size: 13px; color: var(--muted); margin: 0; }
.match-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
@media (max-width: 920px) { .match-side { position: static; } }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.side-card h2 { font-size: 15px; margin: 0 0 10px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.related { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.related li { display: flex; flex-direction: column; }
.related a { font-weight: 600; }

.faq details { border-top: 1px solid var(--border); padding: 10px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 0; color: var(--text-2); }
