html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    color: #f3e8ff;
    background:
        radial-gradient(circle at top, rgba(168, 85, 247, 0.30), transparent 26%),
        linear-gradient(180deg, #09090b 0%, #120d18 22%, #1a1224 100%);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    line-height: 1.8;
    margin: 0;
}

.page-shell {
    max-width: 1520px;
    margin: 0 auto;
    padding: 32px 18px 80px;
}

.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 18px;
    border: 1px solid rgba(216, 180, 254, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(17, 12, 22, 0.85), rgba(17, 12, 22, 0.72)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 72px),
        linear-gradient(rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 72px);
    background-size: auto, 72px 72px, 72px 72px;
    background-position: center, center, center;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
    overflow: hidden;
}

.topbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 100%);
    background-size: 100% 100%, 18px 18px;
    opacity: 0.7;
    pointer-events: none;
}

.topbar>* {
    position: relative;
    z-index: 1;
}

.team-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.team-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    color: #dfeaf9;
    text-decoration: none;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.08);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.live-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
    padding: 0 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 232, 255, 0.6);
    font-weight: 500;
    white-space: nowrap;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #a855f7;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    display: block;
    width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    filter: drop-shadow(0 8px 16px rgba(168, 85, 247, 0.12));
}

.eyebrow {
    color: #d8b4fe;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

h1 {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(2.2rem, 3vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.topbar p {
    margin: 6px 0 0;
    color: #bfd0ea;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.standings-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.standings-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.42);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 22px 18px;
    margin: 0 auto 18px;
    max-width: 1210px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(17, 24, 39, 0.92));
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.25);
}

.hero-copy {
    padding: 6px 8px 2px;
}

.pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(216, 180, 254, 0.28);
    color: #e9d5ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    font-weight: 800;
}

.hero-copy h2 {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.06em;
    color: #f8fbff;
}

.hero-copy p {
    margin: 0;
    max-width: 46rem;
    color: #cfe0f5;
    font-size: 1rem;
    line-height: 1.7;
}

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

.stat-card {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.stat-card span {
    display: block;
    color: #a9c3e3;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.stat-card strong {
    color: #f8fbff;
    font-size: 1.02rem;
    letter-spacing: -0.03em;
}

.section-marker {
    max-width: 1210px;
    margin: 0 auto 12px;
    color: #a9c3e3;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 800;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 22px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.56);
    color: #dfeaf9;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.legend-item::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: currentColor;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.legend-item.home {
    color: #c4b5fd;
}

.legend-item.danny {
    color: #7dd3fc;
}

.legend-item.jeff {
    color: #86efac;
}

.legend-item.away {
    color: #f4c98b;
}

#jazz {
    width: min(100%, 1210px);
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.28);
}

.calendar-scroll {
    width: min(100%, 1210px);
    margin: 0 auto 24px;
    overflow-x: auto;
}

#jazz th {
    padding: 14px 10px;
    background: linear-gradient(180deg, #2b0a3a 0%, #110d17 100%);
    color: #f3e8ff;
    font-size: 1.1em;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(216, 180, 254, 0.22);
}

/* ── Games Played Separator Banner ────────────────────────── */
#jazz.games-played-table {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.4), 0 0 20px rgba(245, 158, 11, 0.12);
}

#jazz th.games-played-banner {
    background: linear-gradient(180deg, #3d1c06 0%, #1c0e04 100%);
    color: #fef3c7;
    border-bottom: 2px solid rgba(245, 158, 11, 0.65);
    letter-spacing: 0.14em;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.55);
}

#jazz tr.week td {
    background: rgba(17, 12, 22, 0.95);
    color: #e9d5ff;
    padding: 10px 6px;
    font-size: 0.8rem;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(216, 180, 254, 0.14);
    border-top: none;
    height: 20px;
}

#jazz tr.bottom td {
    background: rgba(17, 12, 22, 0.94);
    color: #e9d5ff;
    padding: 10px 12px;
    font-size: 0.76rem;
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-top: 1px solid rgba(216, 180, 254, 0.16);
    height: 20px;
}

#jazz td {
    padding: 8px 6px;
    min-width: 88px;
    height: 102px;
    background: #f5f3ff;
    color: #1f1230;
    font-size: 0.9em;
    text-align: center;
    vertical-align: top;
    border: 1px solid rgba(168, 85, 247, 0.18);
    line-height: 1.3;
}

#jazz td img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin: 6px auto 0;
}

#jazz td#away {
    background: linear-gradient(180deg, #f5d7a6 0%, #f0b36d 100%);
    color: #1f2937;
}

#jazz td#danny {
    background: linear-gradient(180deg, #bfdbfe 0%, #7dd3fc 100%);
    color: #1f2937;
}

#jazz td#empty {
    background: rgba(148, 163, 184, 0.14);
    color: #dbeafe;
}

#jazz td#home {
    background: linear-gradient(180deg, #ddd6fe 0%, #a78bfa 100%);
    color: #1f1230;
}

#jazz td#jeff {
    background: linear-gradient(180deg, #bbf7d0 0%, #86efac 100%);
    color: #1f2937;
}

#jazz td#null {
    background: rgba(94, 106, 122, 0.22);
    color: rgba(255, 255, 255, 0.0);
}

@media (max-width: 980px) {
    .page-shell {
        padding: 20px 12px 60px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-stats {
        width: 100%;
        justify-content: space-around;
        gap: 16px;
        padding: 8px 0;
    }

    .team-nav {
        width: 100%;
    }

    .team-nav a {
        flex: 1 1 auto;
    }

    .standings-link {
        width: 100%;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #jazz td {
        min-width: 72px;
        height: 94px;
        font-size: 0.78em;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .page-shell {
        padding-inline: 8px;
        overflow-x: hidden;
    }

    .topbar {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .live-stats {
        gap: 12px;
    }

    .stat-value {
        font-size: 1.05rem;
    }

    .brand-lockup {
        align-items: flex-start;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 0.8rem;
    }

    .legend {
        justify-content: flex-start;
    }

    #jazz {
        display: table;
        width: 560px;
        min-width: 560px;
        white-space: normal;
    }

    #jazz td {
        min-width: 80px;
        height: 108px;
        font-size: 0.84em;
    }
}

/* ============================================================
   Overhaul Styles: Spotlight Banner, Controls, Match Cards
   ============================================================ */

/* ── Spotlight Banner ─────────────────────────────────────── */
.spotlight-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    margin-bottom: 22px;
    border-radius: 22px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 45%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.12), transparent 40%),
        linear-gradient(135deg, rgba(28, 16, 48, 0.94) 0%, rgba(16, 10, 28, 0.96) 60%, rgba(10, 6, 20, 0.98) 100%);
    box-shadow:
        0 20px 48px rgba(2, 6, 23, 0.55),
        0 0 0 1px rgba(168, 85, 247, 0.18) inset;
    overflow: hidden;
}

.spotlight-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(168, 85, 247, 0.6) 20%,
        rgba(245, 158, 11, 0.75) 50%,
        rgba(168, 85, 247, 0.6) 80%,
        transparent 100%
    );
    pointer-events: none;
}

.spotlight-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.spotlight-logo-wrap {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background: rgba(18, 10, 34, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
}

.spotlight-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.spotlight-badge-next {
    position: absolute;
    top: -8px;
    left: -6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #0b0714;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.spotlight-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotlight-time-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #d8b4fe;
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}

.spotlight-time-bar .venue {
    color: #f59e0b;
}

.spotlight-matchup {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.spotlight-matchup .vs {
    font-size: 0.9em;
    font-weight: 600;
    color: #c084fc;
    margin: 0 4px;
}

.spotlight-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tag-pill.danny {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.tag-pill.jeff {
    background: rgba(74, 222, 128, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.45);
    color: #86efac;
}

.tag-pill.home {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
}

.tag-pill.away {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

.tag-pill.broadcast {
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    font-weight: 600;
}

/* ── Countdown Box ────────────────────────────────────────── */
.countdown-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(14, 8, 26, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.28);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.countdown-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
}

.countdown-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.countdown-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(216, 180, 254, 0.7);
    letter-spacing: 0.08em;
    margin-top: 3px;
}

.countdown-colon {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c084fc;
    line-height: 1;
    margin-top: -8px;
}

/* ── Controls Bar: Filters & View Switcher ─────────────────── */
.schedule-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: rgba(16, 10, 26, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.22);
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
}

.filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.24);
    background: rgba(28, 18, 48, 0.55);
    color: #dfeaf9;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.filter-pill .count {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
}

.filter-pill:hover {
    background: rgba(168, 85, 247, 0.22);
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
    color: #ffffff;
    border-color: #c084fc;
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.45);
}

.filter-pill.danny { color: #7dd3fc; }
.filter-pill.danny.active { background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%); border-color: #38bdf8; }

.filter-pill.jeff { color: #86efac; }
.filter-pill.jeff.active { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); border-color: #4ade80; }

.filter-pill.home { color: #d8b4fe; }
.filter-pill.home.active { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); border-color: #a78bfa; }

.filter-pill.away { color: #fcd34d; }
.filter-pill.away.active { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); border-color: #fbbf24; }

/* ── Calendar Table Dimming & Interactive States ──────────── */
#jazz td {
    cursor: pointer;
    transition: opacity 0.25s ease, filter 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#jazz td:hover {
    transform: scale(1.02);
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

#jazz td.dimmed {
    opacity: 0.16;
    filter: grayscale(85%);
    pointer-events: none;
}

#jazz td.spotlight-active {
    box-shadow: inset 0 0 0 3px #f59e0b, 0 0 18px rgba(245, 158, 11, 0.5) !important;
}

/* ── Utility ──────────────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Responsive Overhauls ─────────────────────────────────── */
@media (max-width: 980px) {
    .spotlight-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }
    .countdown-box {
        align-self: center;
        width: 100%;
        justify-content: center;
    }
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .spotlight-left {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .spotlight-time-bar {
        justify-content: center;
    }
    .spotlight-tags {
        justify-content: center;
    }
    .filter-pills {
        justify-content: center;
    }
    .countdown-num {
        font-size: 1.35rem;
    }
    .countdown-segment {
        min-width: 36px;
    }
    .countdown-colon {
        font-size: 1.2rem;
    }
    .spotlight-matchup {
        font-size: 1.35rem;
    }
}
