:root {
    --navy-950: #071120;
    --navy-900: #0b172a;
    --navy-850: #102039;
    --navy-800: #152846;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-400: #22d3ee;
    --green-500: #22c55e;
    --amber-500: #f59e0b;
    --red-500: #ef4444;
    --slate-950: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--slate-50);
    color: var(--slate-950);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

.shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(7, 17, 32, 0.94);
    backdrop-filter: blur(16px);
}

.site-nav {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--white);
    font-size: 1.12rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.45);
    border-radius: 12px;
    background: linear-gradient(145deg, var(--blue-500), #1d4ed8 55%, #0f2f7c);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    font-size: 1rem;
}

.brand-accent {
    color: #60a5fa;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.nav-link {
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 750;
    padding: 10px 13px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
    background: rgba(59, 130, 246, 0.14);
    color: var(--white);
}

.nav-cta {
    margin-left: 6px;
    background: var(--blue-600);
    box-shadow: 0 7px 22px rgba(37, 99, 235, 0.3);
    color: var(--white);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: #1d4ed8;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.11), transparent 29%),
        radial-gradient(circle at 72% 80%, rgba(37, 99, 235, 0.2), transparent 38%),
        linear-gradient(135deg, var(--navy-950), var(--navy-900) 58%, #0b2251);
    color: var(--white);
}

.hero::after {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 540px;
    align-items: center;
    gap: 56px;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    padding: 78px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #7dd3fc;
    font-size: 0.77rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.13);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.82); }
}

.hero h1 {
    max-width: 760px;
    margin: 18px 0 20px;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 950;
    letter-spacing: -0.065em;
    line-height: 0.93;
}

.hero-copy {
    max-width: 660px;
    margin: 0;
    color: #b8c5d8;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 850;
    padding: 0 19px;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--blue-600);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
    color: var(--white);
}

.button-primary:hover {
    background: #1d4ed8;
}

.button-secondary {
    border-color: rgba(203, 213, 225, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero-board {
    position: relative;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(8, 20, 39, 0.76);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.hero-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding: 18px 20px;
}

.hero-board-title {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-board-meta {
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 750;
}

.hero-board-games {
    display: grid;
    gap: 1px;
    background: rgba(148, 163, 184, 0.12);
}

.hero-game {
    display: grid;
    align-items: center;
    gap: 14px;
    grid-template-columns: 1fr auto;
    background: rgba(10, 25, 47, 0.96);
    padding: 16px 20px;
}

.hero-game-league {
    margin-bottom: 7px;
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-game-matchup {
    color: #e2e8f0;
    font-size: 0.94rem;
    font-weight: 800;
}

.hero-game-state {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 4px;
}

.hero-game-score {
    color: var(--white);
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
}

.stat-strip {
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

.stat-grid {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-md);
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 21px 24px;
}

.stat + .stat {
    border-left: 1px solid var(--slate-200);
}

.stat-value {
    display: block;
    color: var(--slate-950);
    font-size: 1.42rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 750;
}

.section {
    padding: 74px 0;
}

.section-tight {
    padding: 46px 0;
}

.section-muted {
    border-block: 1px solid var(--slate-200);
    background: var(--white);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-kicker {
    margin: 0 0 6px;
    color: var(--blue-600);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.7rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.section-copy {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--slate-500);
}

.text-link {
    color: var(--blue-600);
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.text-link:hover {
    text-decoration: underline;
}

.sport-row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}

.filter-chip {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--slate-600);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 0 15px;
    white-space: nowrap;
}

.filter-chip:hover,
.filter-chip[aria-pressed="true"] {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.score-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.league-section {
    margin-top: 30px;
}

.league-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 14px;
    padding-bottom: 11px;
}

.league-heading h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.league-count {
    color: var(--slate-500);
    font-size: 0.76rem;
    font-weight: 750;
}

.game-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.game-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.game-card.is-live {
    border-color: rgba(239, 68, 68, 0.45);
}

.game-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--slate-100);
    padding: 12px 15px;
}

.game-league {
    overflow: hidden;
    color: var(--slate-500);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0 9px;
    white-space: nowrap;
}

.status-pill.live {
    background: #fef2f2;
    color: #dc2626;
}

.status-pill.final {
    background: #ecfdf5;
    color: #15803d;
}

.team-list {
    display: grid;
    gap: 4px;
    padding: 11px 15px;
}

.team-row {
    display: grid;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.team-logo-wrap {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
}

.team-logo {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}

.team-fallback {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 9px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 0.68rem;
    font-weight: 950;
}

.team-name {
    min-width: 0;
}

.team-name strong {
    display: block;
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-name small {
    display: block;
    color: var(--slate-500);
    font-size: 0.68rem;
}

.team-score {
    min-width: 28px;
    font-size: 1.12rem;
    font-variant-numeric: tabular-nums;
    font-weight: 950;
    text-align: right;
}

.team-row.winner .team-name strong,
.team-row.winner .team-score {
    color: var(--slate-950);
}

.game-card-foot {
    display: flex;
    min-height: 41px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--slate-100);
    color: var(--slate-500);
    font-size: 0.69rem;
    padding: 9px 15px;
}

.game-card-foot span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.loading-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skeleton {
    min-height: 190px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 45%, #f1f5f9 65%);
    background-size: 240% 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    to { background-position: -240% 0; }
}

.empty-state,
.error-state {
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--slate-500);
    padding: 46px 24px;
    text-align: center;
}

.empty-state strong,
.error-state strong {
    display: block;
    color: var(--slate-950);
    font-size: 1rem;
    margin-bottom: 5px;
}

.toolbar {
    display: grid;
    align-items: end;
    gap: 14px;
    grid-template-columns: minmax(230px, 1fr) auto auto;
    margin: 24px 0;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: var(--slate-600);
    font-size: 0.73rem;
    font-weight: 850;
}

.input,
.select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--slate-300);
    border-radius: 11px;
    background: var(--white);
    color: var(--slate-950);
    outline: none;
    padding: 0 13px;
}

.input:focus,
.select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.13);
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--slate-300);
    border-radius: 11px;
    background: var(--white);
    color: var(--slate-700);
    cursor: pointer;
    font-weight: 950;
}

.icon-button:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.score-hero {
    background:
        radial-gradient(circle at 84% 20%, rgba(37, 99, 235, 0.2), transparent 30%),
        var(--navy-950);
    color: var(--white);
    padding: 54px 0 48px;
}

.score-hero-grid {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.score-hero h1 {
    margin: 10px 0 8px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.score-hero p {
    max-width: 680px;
    margin: 0;
    color: #aebed4;
}

.refresh-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aebed4;
    font-size: 0.78rem;
    white-space: nowrap;
}

.refresh-meta .live-dot {
    width: 7px;
    height: 7px;
}

.view-tabs {
    display: flex;
    gap: 8px;
    margin: 22px 0 2px;
    overflow-x: auto;
}

.view-tab {
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 850;
    padding: 0 15px;
}

.view-tab[aria-pressed="true"] {
    border-color: var(--blue-500);
    background: var(--blue-600);
    color: var(--white);
}

.calendar-strip {
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 22px 0 28px;
}

.calendar-day {
    display: grid;
    min-height: 76px;
    place-items: center;
    gap: 2px;
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
    color: var(--slate-600);
    cursor: pointer;
    padding: 9px 6px;
}

.calendar-day:hover,
.calendar-day[aria-pressed="true"] {
    border-color: var(--blue-500);
    background: #eff6ff;
    color: #1d4ed8;
}

.calendar-day span {
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.calendar-day strong {
    font-size: 1.2rem;
    line-height: 1;
}

.calendar-day small {
    font-size: 0.67rem;
    font-weight: 700;
}

.coverage-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.coverage-card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 19px;
}

.coverage-card strong {
    display: block;
    margin-bottom: 7px;
    font-size: 0.92rem;
}

.coverage-card span {
    color: var(--slate-500);
    font-size: 0.77rem;
}

.site-footer {
    margin-top: 40px;
    background: var(--navy-950);
    color: #94a3b8;
}

.footer-inner {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-copy {
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

@media (max-width: 980px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
    }

    .nav-link {
        white-space: nowrap;
    }

    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 68px 0 78px;
    }

    .hero-board {
        max-width: 680px;
    }

    .score-grid,
    .loading-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coverage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 22px, 1200px);
    }

    .brand {
        font-size: 1rem;
    }

    .nav-links {
        gap: 3px;
    }

    .nav-link {
        font-size: 0.79rem;
        padding: 8px 9px;
    }

    .nav-cta {
        margin-left: 0;
    }

    .hero-inner {
        gap: 38px;
        padding: 56px 0 65px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

    .stat-strip {
        margin-top: -20px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        padding: 17px;
    }

    .stat + .stat {
        border-left: 0;
    }

    .stat:nth-child(even) {
        border-left: 1px solid var(--slate-200);
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--slate-200);
    }

    .section {
        padding: 54px 0;
    }

    .section-head,
    .score-hero-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .score-grid,
    .loading-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .date-controls {
        justify-content: space-between;
    }

    .date-controls .input {
        flex: 1;
    }

    .calendar-strip {
        grid-template-columns: repeat(7, 76px);
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .coverage-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 30px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
