:root {
    --hdr-bg: #121821;
    --hdr-h: 56px;
    --accent: #c8102e;
    --bg: #f1f2f4;
    --card: #ffffff;
    --text: #1a1d21;
    --muted: #6b7280;
    --border: #e3e5e8;
    --live: #d0021b;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Header ===== */
.site-header { background: var(--hdr-bg); color: #fff; position: relative; z-index: 100; }
.header-inner { max-width: 1280px; margin: 0 auto; height: var(--hdr-h); display: flex; align-items: center; padding: 0 16px; }
.brand { color: #fff; font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.5px; }
.brand span { color: var(--accent); }
.nav-toggle { margin-left: auto; background: none; border: 0; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.main-nav { display: none; position: absolute; top: var(--hdr-h); left: 0; right: 0; background: var(--hdr-bg); border-top: 1px solid rgba(255,255,255,0.1); }
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; color: #fff; text-decoration: none; padding: 14px 16px; font-weight: 600; font-size: 15px; }
.main-nav a.active { color: var(--accent); }
.caret { display: inline-block; border: 4px solid transparent; border-top-color: currentColor; margin-left: 4px; vertical-align: middle; transform: translateY(2px); }
.dropdown { display: none; background: rgba(255,255,255,0.05); }
.has-dropdown.open > .dropdown { display: block; }
.dropdown a { padding-left: 32px; font-weight: 500; }

@media (min-width: 992px) {
    .site-header { position: fixed; top: 0; left: 0; right: 0; }
    body { padding-top: var(--hdr-h); }
    .nav-toggle { display: none; }
    .main-nav { display: block; position: static; margin-left: 32px; border: 0; background: none; height: 100%; }
    .main-nav > ul { display: flex; height: 100%; }
    .main-nav > ul > li { position: relative; height: 100%; }
    .main-nav > ul > li > a { height: 100%; display: flex; align-items: center; padding: 0 16px; border-bottom: 3px solid transparent; }
    .main-nav > ul > li > a.active { color: #fff; border-bottom-color: var(--accent); }
    .main-nav > ul > li > a:hover { border-bottom-color: var(--accent); }
    .dropdown { position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.15); border-radius: 0 0 6px 6px; padding: 6px 0; }
    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown { display: block; }
    .dropdown a { color: var(--text); padding: 10px 16px; }
    .dropdown a:hover { background: var(--bg); }
}

/* ===== Page ===== */
.page { max-width: 1280px; margin: 0 auto; padding: 16px; }
.sb-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-title { font-size: 22px; margin: 0; }
.sb-filters select { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 32px 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); cursor: pointer; }

/* ===== Week strip ===== */
.week-strip-wrap { display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.week-strip { position: relative; display: flex; flex: 1; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.week-strip::-webkit-scrollbar { display: none; }
.week-chip { flex: 0 0 auto; min-width: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.week-chip .wk-label { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; }
.week-chip .wk-dates { font-size: 11px; white-space: nowrap; }
.week-chip:hover { background: var(--bg); }
.week-chip.active { border-bottom-color: var(--accent); }
.week-chip.active .wk-label { color: var(--accent); }
.strip-arrow { background: none; border: 0; font-size: 24px; padding: 0 10px; cursor: pointer; color: var(--muted); }
.strip-arrow:hover { color: var(--text); background: var(--bg); }

/* ===== Games ===== */
.day-heading { font-size: 15px; font-weight: 700; margin: 24px 0 10px; }
.game-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
.game-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: inherit; transition: box-shadow 0.15s; }
.game-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.status.pre { color: var(--muted); }
.status.live { color: var(--live); }
.status.final { color: var(--text); }
.network { color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-note { font-size: 11px; font-weight: 600; color: var(--muted); margin: -4px 0 6px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.team-logo { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.team-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.team-name .rank { font-size: 11px; font-weight: 600; color: var(--muted); }
.team-name .name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.team-name .record { font-size: 12px; color: var(--muted); }
.poss { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--live); align-self: center; }
.team-score { min-width: 32px; text-align: right; font-size: 20px; font-weight: 800; }
.team-row.loser .name,
.team-row.loser .team-score { color: var(--muted); font-weight: 600; }
.card-bottom { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-bottom .situation { color: var(--text); font-weight: 600; }
.sb-empty { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 40px 16px; text-align: center; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 32px 16px; }