/* CricScout — site styles. Brand palette mirrors lib/core/theme.dart. */
:root {
  --pitch: #0f5c3f;
  --pitch-deep: #073226;
  --emerald: #16a36b;
  --lime: #c8f135;
  --live: #ff3b4e;
  --gold: #f5b83d;
  --silver: #b8c4ce;
  --bronze: #cd8a5a;
  --four: #2e9bff;
  --six: #8b5cf6;

  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --surface-3: #edf2ef;
  --line: #e1e8e4;
  --text: #0b1f18;
  --muted: #5b6f67;
  --accent: var(--pitch);
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 92, 63, 0.09);
  --shadow: 0 1px 2px rgba(7, 50, 38, 0.06), 0 8px 24px -12px rgba(7, 50, 38, 0.18);
  --hero: linear-gradient(135deg, #062b20 0%, #0b4a33 45%, #128a5a 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06110d;
    --surface: #0d1c17;
    --surface-2: #122620;
    --surface-3: #173029;
    --line: #1e3a31;
    --text: #e8f2ed;
    --muted: #8fa89e;
    --accent: var(--lime);
    --accent-ink: var(--pitch-deep);
    --accent-soft: rgba(200, 241, 53, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06110d;
  --surface: #0d1c17;
  --surface-2: #122620;
  --surface-3: #173029;
  --line: #1e3a31;
  --text: #e8f2ed;
  --muted: #8fa89e;
  --accent: var(--lime);
  --accent-ink: var(--pitch-deep);
  --accent-soft: rgba(200, 241, 53, 0.1);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-name { font: 900 22px/1 var(--font); letter-spacing: -0.04em; }
.brand-name span { color: var(--emerald); }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted);
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-3); }
.nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: grid; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
.mobile-nav {
  display: none; border-top: 1px solid var(--line); padding: 8px 16px 16px; background: var(--bg);
}
.mobile-nav.open { display: grid; gap: 2px; }
.mobile-nav a { padding: 12px 8px; font-weight: 600; border-radius: 10px; }
.mobile-nav a[aria-current="page"] { background: var(--accent-soft); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--lime); color: var(--pitch-deep); box-shadow: 0 8px 24px -10px rgba(200, 241, 53, .7); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(200, 241, 53, .9); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-soft { background: var(--surface-3); color: var(--text); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--accent-soft); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip .count { font-size: 12px; opacity: .75; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 78, .6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 59, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0); } }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--surface-3); color: var(--muted);
}
.badge-live { background: rgba(255, 59, 78, .12); color: var(--live); }
.badge-up { background: rgba(46, 155, 255, .12); color: var(--four); }
.badge-done { background: var(--accent-soft); color: var(--accent); }
.badge-fmt { background: transparent; border: 1px solid var(--line); color: var(--text); }

/* ---------- Hero ---------- */
.hero { background: var(--hero); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -240px; top: -260px; width: 760px; height: 760px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .09);
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 241, 53, .16), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 32px; padding-top: 48px; padding-bottom: 56px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 80px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 900; letter-spacing: -0.04em; margin: 14px 0 16px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .78); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-stats b { display: block; font: 800 26px/1 var(--display); color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .62); }

.spotlight {
  background: rgba(4, 30, 22, .55); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px;
  padding: 22px; backdrop-filter: blur(8px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); min-height: 260px;
}
.spotlight-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.spotlight .badge { background: rgba(255, 255, 255, .1); color: #fff; }
.spotlight .badge-live { background: rgba(255, 59, 78, .18); color: #ff7c89; }
.spot-team { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.spot-team .name { font-weight: 700; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-team .score { font: 900 30px/1 var(--display); letter-spacing: -0.02em; }
.spot-team .score small { font: 600 13px var(--font); color: rgba(255, 255, 255, .6); margin-left: 6px; letter-spacing: 0; }
.spot-team.batting .score { color: var(--lime); }
.spot-status { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .25); color: var(--lime); font-weight: 600; font-size: 14px; }
.spot-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.spot-metrics div { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px; }
.spot-metrics b { display: block; font: 800 18px/1.1 var(--display); }
.spot-metrics span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .55); }
.spot-nav { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.spot-nav button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; transition: width .2s; }
.spot-nav button[aria-current="true"] { width: 22px; background: var(--lime); }

/* ---------- Ticker ---------- */
.ticker { background: var(--pitch-deep); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.ticker-track { display: flex; gap: 40px; padding: 11px 0; width: max-content; animation: tick 60s linear infinite; font-size: 14px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; }
.ticker-item b { color: var(--lime); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 6px; }
.link-more { font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; font-size: 15px; }
.link-more:hover { text-decoration: underline; }
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 900; letter-spacing: -0.035em; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 46em; font-size: 17px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 20px 0; }

/* ---------- Feed status ---------- */
.feed-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.feed-status .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.feed-status.warn .pip { background: var(--gold); }
.feed-status.err .pip { background: var(--live); }
.notice {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; margin: 12px 0;
  background: rgba(245, 184, 61, .1); border: 1px solid rgba(245, 184, 61, .3); font-size: 14px; font-weight: 600;
}
.notice svg { width: 18px; height: 18px; flex: none; color: var(--gold); }

/* ---------- Match cards ---------- */
.grid-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.match-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: transform .15s, border-color .15s; position: relative; }
.match-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--emerald) 45%, var(--line)); }
.match-card.is-live { border-color: rgba(255, 59, 78, .35); }
.match-card.is-fav::after {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.mc-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.mc-top .mc-num { font-weight: 700; color: var(--text); white-space: nowrap; }
.mc-top .badge:last-child { margin-left: auto; }
.mc-series { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -6px; }
.mc-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mc-team .tname { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-team .tscore { font: 800 18px/1 var(--display); white-space: nowrap; }
.mc-team .tscore small { font: 500 13px var(--font); color: var(--muted); margin-left: 4px; }
.mc-team.batting .tname::after { content: " •"; color: var(--live); }
.mc-team.dim .tname, .mc-team.dim .tscore { color: var(--muted); }
.mc-status { font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 10px; border-top: 1px dashed var(--line); }
.mc-status.up { color: var(--muted); font-weight: 500; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); gap: 8px; }

.crest {
  --c1: #345; --c2: #789;
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1) 0 55%, var(--c2) 55%);
  color: #fff; font: 800 11px/1 var(--font); letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
}
.crest-lg { width: 52px; height: 52px; font-size: 14px; }
.crest-xl { width: 68px; height: 68px; font-size: 17px; }

.empty {
  padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1;
}
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

/* Skeletons */
.skel { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-card { height: 176px; border-radius: var(--radius); }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature a.link-more { margin-top: 12px; }

/* ---------- Two-column blocks ---------- */
.split { display: grid; gap: 20px; }
@media (min-width: 960px) { .split { grid-template-columns: 1.2fr 1fr; } .split.even { grid-template-columns: 1fr 1fr; } }

/* ---------- Rankings ---------- */
.rank-mini { padding: 6px 0; }
.rank-mini h3 { font-size: 15px; padding: 14px 18px 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rank-row { display: grid; grid-template-columns: 34px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 18px; }
.rank-row + .rank-row { border-top: 1px solid var(--line); }
.rank-row .pos { font: 800 16px var(--display); color: var(--muted); text-align: center; }
.rank-row .who { min-width: 0; }
.rank-row .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.rank-row .who span { font-size: 13px; color: var(--muted); }
.rank-row .val { font: 800 17px var(--display); }
.rank-row .val small { display: block; text-align: right; font: 500 11px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rank-row.fav { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.pos-1 { color: var(--gold) !important; } .pos-2 { color: var(--silver) !important; } .pos-3 { color: var(--bronze) !important; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin: 8px 0 20px; }
.podium .step { text-align: center; padding: 18px 10px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; justify-items: center; gap: 8px; }
.podium .step.p1 { padding-top: 28px; border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface)); }
.podium .medal { font: 900 13px var(--font); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #1c1300; }
.podium .p1 .medal { background: var(--gold); } .podium .p2 .medal { background: var(--silver); } .podium .p3 .medal { background: var(--bronze); }
.podium .pname { font-weight: 800; font-size: 15px; line-height: 1.2; }
.podium .pteam { font-size: 12px; color: var(--muted); }
.podium .prating { font: 900 22px var(--display); color: var(--accent); }
.segmented { display: inline-flex; background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: right; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.data td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td:first-child { white-space: normal; min-width: 180px; }
table.data tr:last-child td { border-bottom: 0; }
table.data .pname { font-weight: 700; }
table.data .dis { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
table.data .hi { font-weight: 800; color: var(--accent); }
table.data tr.notout .pname::after { content: "*"; color: var(--accent); margin-left: 2px; }
table.data tfoot td { font-weight: 700; background: var(--surface-2); }

/* ---------- Match page ---------- */
.match-hero { background: var(--hero); color: #fff; }
.match-hero .wrap { padding-top: 28px; padding-bottom: 28px; }
.crumbs { font-size: 13px; color: rgba(255, 255, 255, .65); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.mh-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .75); }
.match-hero .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.match-hero .badge-live { background: rgba(255, 59, 78, .2); color: #ff8b96; }
.mh-board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 22px 0 18px; }
.mh-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mh-side.right { align-items: flex-end; text-align: right; }
.mh-side .tn { font-weight: 800; font-size: clamp(15px, 2.4vw, 22px); }
.mh-side .ts { font: 900 clamp(26px, 5vw, 44px)/1 var(--display); letter-spacing: -0.03em; }
.mh-side .ts small { display: block; font: 600 13px/1.5 var(--font); color: rgba(255, 255, 255, .6); letter-spacing: 0; margin-top: 4px; }
.mh-side.batting .ts { color: var(--lime); }
.mh-vs { font-weight: 800; color: rgba(255, 255, 255, .45); font-size: 14px; }
.mh-status { background: rgba(0, 0, 0, .22); border-radius: 14px; padding: 12px 16px; color: var(--lime); font-weight: 700; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.mh-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; position: sticky; top: 64px; background: var(--bg); z-index: 5; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: 14px 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--emerald); }
.panel[hidden] { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; }
.stat b { display: block; font: 900 26px/1.1 var(--display); }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.card-pad { padding: 18px; }
.card h3 { font-size: 17px; margin-bottom: 12px; }
.innings-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.innings-head h3 { margin: 0; }
.innings-head .tot { font: 900 22px var(--display); }
.innings-head .tot small { font: 500 13px var(--font); color: var(--muted); margin-left: 6px; }
.innings-switch { margin-bottom: 14px; }
.sub-head { padding: 12px 16px 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.note-line { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.note-line b { color: var(--text); }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .lbl { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--emerald); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.perf { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.perf + .perf { border-top: 1px solid var(--line); }
.perf .pic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 900; }
.perf .who { flex: 1; min-width: 0; }
.perf .who b { display: block; }
.perf .who span { font-size: 13px; color: var(--muted); }
.perf .fig { font: 900 20px var(--display); }
.comm { display: grid; }
.comm-item { display: grid; grid-template-columns: 56px 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.comm-item .ov { font-weight: 700; color: var(--muted); font-size: 14px; padding-top: 6px; }
.ball { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-3); }
.ball.b4 { background: var(--four); color: #fff; } .ball.b6 { background: var(--six); color: #fff; } .ball.bw { background: var(--live); color: #fff; }
.recent { display: flex; gap: 6px; flex-wrap: wrap; }
.info-list { display: grid; }
.info-list div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info-list div:last-child { border-bottom: 0; }
.info-list dt, .info-list span { color: var(--muted); }
.countdown { display: flex; gap: 10px; }
.countdown div { background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 62px; }
.countdown b { display: block; font: 900 24px var(--display); color: #fff; }
.countdown span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }

/* ---------- Schedule ---------- */
.day-group { margin-bottom: 28px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; position: sticky; top: 64px; background: var(--bg); padding: 10px 0; z-index: 2; }
.day-head h3 { font-size: 18px; }
.day-head span { color: var(--muted); font-size: 14px; }
.row-list { display: grid; }
.row-match { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.row-match + .row-match { border-top: 1px solid var(--line); }
.row-match:hover { background: var(--surface-2); }
.row-match .time { font-weight: 800; font-size: 15px; }
.row-match .time small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.row-match .mid { min-width: 0; }
.row-match .mid b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-match .mid span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-match .end { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) { .row-match { grid-template-columns: 58px 1fr; } .row-match .end { grid-column: 2; } }

/* ---------- Tools ---------- */
.tools-grid { display: grid; gap: 18px; }
@media (min-width: 960px) { .tools-grid { grid-template-columns: 1fr 1fr; } }
.tool { padding: 22px; scroll-margin-top: 84px; }
.tool h2 { font-size: 22px; margin-bottom: 6px; }
.tool > p { color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 14px; width: 100%; font-variant-numeric: tabular-nums;
}
.field input:focus, .field select:focus { outline: 2px solid var(--emerald); outline-offset: -1px; }
.result { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--accent-soft); display: grid; gap: 10px; }
.result-main { font: 900 30px/1 var(--display); color: var(--accent); }
.result-sub { font-size: 14px; color: var(--muted); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.result-grid div { background: var(--surface); border-radius: 10px; padding: 10px; text-align: center; }
.result-grid b { display: block; font: 800 18px var(--display); }
.result-grid span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nrr-rows { display: grid; gap: 10px; }
.nrr-row { display: grid; grid-template-columns: repeat(4, 1fr) 36px; gap: 8px; align-items: end; }
.nrr-row input { height: 42px; }
.nrr-row .icon-btn { width: 36px; height: 42px; }
.tool-index { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; }

/* ---------- App promo ---------- */
.app-band { background: var(--hero); color: #fff; border-radius: 28px; overflow: hidden; display: grid; gap: 24px; padding: 32px 24px 0; position: relative; }
@media (min-width: 900px) { .app-band { grid-template-columns: 1.1fr 1fr; padding: 48px 48px 0; align-items: end; } }
.app-band h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.03em; }
.app-band p { color: rgba(255, 255, 255, .78); margin: 12px 0 20px; max-width: 32em; }
.app-band ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.app-band li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.app-band li svg { width: 20px; height: 20px; color: var(--lime); flex: none; }
.app-band .copy { padding-bottom: 40px; }
.phones { display: flex; justify-content: center; gap: 14px; align-items: flex-end; }
.phone { width: 46%; max-width: 230px; border-radius: 26px 26px 0 0; border: 6px solid #0a1a14; border-bottom: 0; overflow: hidden; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .6); background: #0a1a14; }
.phone img { width: 100%; height: auto; }
.phone.tall { transform: translateY(-24px); }
.play-badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.play-badge svg { width: 26px; height: 26px; }
.play-badge small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.2; }
.play-badge b { display: block; font-size: 18px; line-height: 1.1; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); }

/* ---------- Team picker ---------- */
.team-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.team-pick { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.team-pick .crest { width: 30px; height: 30px; font-size: 9px; }
.team-pick[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; padding: 8px 0 56px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--muted); margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 40px 0 28px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-grid .about { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-grid .about { grid-column: auto; } }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; font-family: var(--font); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-grid .about p { margin-top: 12px; max-width: 30em; }
.foot-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.fav-btn[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: initial; } }
