:root {
    --text-color: #ffffff;
    --border-color: #3A3A3C;
    --header-footer-bg: #2C2C2E;
    --body-bg: #1E1E1E;
    /* Clutch gradient stops */
    --clutch-grad-1: #156082;
    --clutch-grad-2: #127D7D;
    --clutch-grad-3: #1FB5B5;
    --clutch-grad-4: #28D7D7;
    /* Dist color vars for exact match */
    --clutch-white: #FFFFFF;
    --clutch-grey-light: #8E8E93;
    --clutch-grey-bright: #C5C5C7;
    --clutch-grey-medium: #3A3A3C;
    --clutch-grey-dark: #2C2C2E;
    --clutch-teal-text: #00F0D0;
}

/* Minimal page styles for v2 page */
html, body {
    background: var(--clutch-black);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
}

/* v2 sections and lists */
.v2-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 10px 0 6px 0;
    color: var(--clutch-white);
}

/* Count in parentheses after section titles */
.v2-section-count {
    font-size: 1rem;
    color: var(--clutch-grey-light);
    font-weight: 400;
    margin-left: 0;
    vertical-align: middle;
}

.v2-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 36px; /* leave room for arrows inside carousel */
    width: 100%;
    /* Hide horizontal scrollbar visuals while keeping scroll functionality for arrows */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.v2-cards::-webkit-scrollbar { /* WebKit */
    display: none;
}

/* Carousel shell and arrows */
.v2-carousel {
    position: relative;
    width: 100%;
    padding: 0 10px
}

.v2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid var(--clutch-grey-medium);
    background: rgba(0, 0, 0, 0.5);
    color: var(--clutch-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .15s ease, background .15s ease;
}

.v2-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.v2-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.v2-arrow-left {
    left: 4px;
}

.v2-arrow-right {
    right: 4px;
}

/* Ensure cards are non-wrapping and snap nicely */
.v2-cards > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.tv-icon {
    width: 280px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-body {
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-screen {
    width: 85%;
    height: 65%;
    border-radius: 10px;
    background: radial-gradient(120px 60px at center, #0a0a0a, #000);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-stand {
    width: 60%;
    height: 10px;
    background: var(--border-color);
    border-radius: 0 0 8px 8px;
    margin: 8px auto 0;
}

.clutch-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 6px 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--clutch-grad-4);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, .7);
    animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, .7)
    }
    70% {
        box-shadow: 0 0 0 8px rgba(96, 165, 250, 0)
    }
    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0)
    }
}

/* === Generic Game Card (v2 self-contained) === */
.game-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    margin: 16px 0;
    color: #fff;
    width: 450px;
}

.game-card__header, .game-card__footer {
    background-color: var(--header-footer-bg);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.game-card__footer.has-panel {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
}

.game-card__body {
    position: relative; /* to anchor watch-live overlay */
    padding: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--body-bg);
}

/* Watch row inside body */
.game-card__watch-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Reserve vertical space even when there are no providers */
    min-height: 28px;
    margin-bottom: 10px;
}

/* Body variants */
.game-card__body.game-card-standard {
    background: var(--body-bg);
}

.game-card__body.game-card-clutch {
    background: linear-gradient(to right, var(--clutch-grad-1) 0%, var(--clutch-grad-2) 32%, var(--clutch-grad-3) 65%, var(--clutch-grad-4) 100%);
}

/* Header content */
.game-card__header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-card__header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.game-card__league-icon {
    height: 20px;
    width: 20px;
    border-radius: 4px;
    background: #1E1E1E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #CFD0D3;
    text-transform: uppercase;
}

.game-card__league-icon.placeholder {
    border: 1px solid var(--border-color);
}

.game-card__league-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.game-card__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    border-radius: 6px;
    background: transparent;
    color: #CFD0D3;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.game-card__icon-button:hover {
    background: #1E1E1E;
    color: #FFFFFF;
    border-color: var(--border-color);
}

.gc-icon {
    height: 18px;
    width: 18px;
}

/* Footer expandable (dist-style Game Details link) */
.details-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clutch-grey-bright);
    transition: color 0.2s ease;
    text-decoration: none;
}

.details-link:hover {
    color: var(--clutch-white);
    text-decoration: none;
}

.details-link .material-icons-outlined {
    font-size: 20px;
    margin-left: 4px;
    color: var(--clutch-grey-bright);
    transition: color 0.2s ease, transform 0.3s ease-out;
}

.details-link:hover .material-icons-outlined {
    color: var(--clutch-white);
}

.game-card.expanded .details-link .material-icons-outlined {
    transform: rotate(180deg);
}

/* Keep support for previous chevron implementation (no-op if unused) */
.game-card__footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    color: #E2E8F0;
    cursor: pointer;
    user-select: none;
}

.game-card__chevron {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.game-card__footer.is-expanded .game-card__chevron {
    transform: rotate(180deg);
}

.game-card__stats-panel {
    background-color: inherit;
    padding: 0;
    border-top: 0;
}

.collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}

.collapsible.expanded {
    max-height: 500px;
    opacity: 1;
    padding: 15px 16px;
}

.game-card__stats-panel.collapsible.expanded {
    padding: 12px 0 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}


/* --- Venue row styling to center content and align icon vertically (matches dist) --- */
.stadium-info {
    display: flex;
    align-items: center; /* vertically center icon with text */
    justify-content: center; /* horizontally center the whole row */
    gap: 8px;
    color: var(--clutch-grey-bright);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.stadium-info .material-icons-outlined {
    font-size: 18px;
    line-height: 1; /* avoid extra vertical space */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- Content layout helpers for score/status to avoid wrapping --- */
.game-card__center {
    min-width: 0;
}

.game-card__score,
.game-card__status {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__team {
    margin-bottom: 28px;
}

/* --- Mobile responsiveness: make cards span full available width inside carousel and tighten center column --- */
@media (max-width: 540px) {
    /* On small screens, make carousel full-bleed and cards truly full-width */
    .v2-cards {
        padding: 0 !important; /* override inline padding set by JS */
        gap: 0; /* prevent peek of next card */
    }

    .v2-cards .game-card {
        box-sizing: border-box;
        width: 100%;
        min-width: 100%;
    }

    /* Reduce team column footprint and logo size to free space */
    .game-card__team {
        width: 96px;
    }

    .game-card__team-logo {
        height: 40px;
        width: 40px;
        margin-bottom: 6px;
    }

    .game-card__team-name {
        max-width: 90px;
        font-size: 0.8rem;
    }

    /* Ensure score and status fit on one line */
    .game-card__center {
        padding: 0 4px;
        min-width: 0;
    }

    .game-card__score {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .game-card__status {
        font-size: 0.70rem;
        line-height: 1.1;
        margin-top: 2px;
    }
}

/* Watch live group (ported to match dist) */
.watch-live-anchor {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
}

.watch-live-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 4px 8px;
}

.watch-live-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--clutch-grey-bright);
    font-size: 12px;
    white-space: nowrap;
}

.watch-live-text .material-icons-outlined {
    font-size: 16px;
}

.provider-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.provider-logo-small {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    object-fit: contain;
}

.providers-more {
    font-size: 12px;
    color: var(--clutch-grey-bright);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.providers-more:hover {
    color: var(--clutch-white);
}

/* Modal */
.v2-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
}

.v2-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 51;
}

.v2-modal .v2-dialog {
    width: 92vw;
    max-width: 520px;
    max-height: 80vh;
    background: #1b1b1b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v2-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--header-footer-bg);
    border-bottom: 1px solid var(--border-color);
}

.v2-dialog-title {
    font-weight: 700;
    font-size: 1rem;
}

.v2-dialog-close {
    background: transparent;
    border: 0;
    color: var(--clutch-white);
    opacity: 0.8;
    cursor: pointer;
}

.v2-dialog-close:hover {
    opacity: 1;
}

.v2-dialog-body {
    padding: 12px 14px;
    overflow-y: auto;
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    color: var(--clutch-white);
    text-decoration: none;
}

.provider-item:hover .provider-name {
    text-decoration: underline;
}

.provider-list .provider-name {
    font-size: 0.95rem;
}

.provider-list img {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    object-fit: contain;
}


.top-bar .logo {
    font-family: var(--font-family-logo);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clutch-white);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
}

/* Minimal page styles for v2 page */
html, body {
    background: var(--clutch-black);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
}

/* Bottom action bar (mobile) */
:root {
    --bottombar-height: 56px;
}
.v2-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--bottombar-height);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    background: rgba(28, 28, 30, 0.96);
    backdrop-filter: saturate(180%) blur(10px);
    border-top: 1px solid var(--clutch-grey-medium);
    z-index: 250; /* above top bar (200) and section/league headers */
    padding-bottom: env(safe-area-inset-bottom);
}

/* Shared nav styles for sidebar/bottom bar */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    color: var(--clutch-grey-light);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item .material-icons-outlined {
    font-size: 28px;
}

.nav-item .nav-label {
    font-size: 0.7rem;
    margin-top: 4px;
}

.nav-item:hover {
    background-color: var(--clutch-grey-dark);
    color: var(--clutch-white);
    text-decoration: none;
}

.nav-item.active {
    background-color: var(--clutch-grey-dark);
    color: var(--clutch-teal-text);
}

/* Desktop left action bar (hidden on mobile) */
.v2-side-bar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    background: var(--clutch-black);
    border-right: 1px solid var(--clutch-grey-medium);
    display: none; /* shown on desktop */
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px 8px 12px; /* leave room below sticky top-bar */
    gap: 12px;
    z-index: 60;
    flex-direction: column;
}

/* Content wrapper shifts right on desktop to accommodate sidebar */
.v2-content {
    margin-left: 0;
}

@media (max-width: 1023px) {
    /* Avoid bottom bar overlapping content */
    .v2-content { padding-bottom: calc(var(--bottombar-height) + env(safe-area-inset-bottom)); }
    .v2-content { margin-left: 0; /* make room for left toolbar */ }
}

@media (min-width: 1024px) {
    .v2-bottom-bar { display: none; }
    .v2-side-bar { display: flex; }
    .v2-content { padding-left: 80px; /* make room for left toolbar */ }
}

/* Old filter button styles retained (if used elsewhere) */
.v2-filter-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 8px;
    border: 1px solid var(--clutch-grey-medium);
    background: var(--clutch-grey-dark);
    color: var(--clutch-grey-bright);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}
.v2-filter-button:hover {
    background-color: var(--clutch-grey-medium);
    color: var(--clutch-white);
}
.v2-filter-button .material-icons-outlined {
    font-size: 24px;
}

/* Filters left drawer */
.v2-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 70;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.v2-filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.v2-filter-sheet {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: var(--clutch-grey-dark);
    border-right: 1px solid var(--clutch-grey-medium);
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 20px rgba(0, 0, 0, 0.4);
}

.v2-filter-overlay.active .v2-filter-sheet {
    transform: translateX(0);
}

.v2-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--header-footer-bg);
    border-bottom: 1px solid var(--border-color);
}

.v2-filter-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.v2-filter-close {
    background: transparent;
    border: 0;
    color: var(--clutch-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.v2-filter-body {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.v2-filter-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--header-footer-bg);
}

.v2-apply-filters {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--clutch-grey-medium);
    background: #2a2a2a;
    color: var(--clutch-white);
    font-weight: 700;
    cursor: pointer;
}

.v2-filter-group {
    margin-bottom: 16px;
}

.v2-filter-group h4 {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--clutch-grey-bright);
}

.v2-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.v2-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.v2-toggle-label {
    font-size: 0.95rem;
}

.v2-checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.v2-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Prevent background scroll when filter is open */
body.v2-lock-scroll {
    overflow: hidden;
}

/* v2 sections and lists */
.v2-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 10px 0 6px 0;
    color: var(--clutch-white);
    padding: 0 10px;
}

.v2-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 36px; /* leave room for arrows inside carousel */
    width: 100%;
    /* Hide horizontal scrollbar visuals while keeping scroll functionality for arrows */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.v2-cards::-webkit-scrollbar { /* WebKit */
    display: none;
}


.v2-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid var(--clutch-grey-medium);
    background: rgba(0, 0, 0, 0.5);
    color: var(--clutch-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .15s ease, background .15s ease;
}

.v2-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.v2-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.v2-arrow-left {
    left: 4px;
}

.v2-arrow-right {
    right: 4px;
}

/* Ensure cards are non-wrapping and snap nicely */
.v2-cards > * {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.tv-icon {
    width: 280px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-body {
    width: 100%;
    height: 100%;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-screen {
    border: 2px solid var(--border-color);
    width: 88%;
    height: 78%;
    background: radial-gradient(ellipse at center, #1b1b1b 0%, #0b0b0b 70%);
    border-radius: 12px;
}

/* Game card styles - self-contained for v2 */
.game-card {
    width: 450px; /* fixed width per request */
    background: var(--body-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-color);
}

/* Mobile: card full width */
@media (max-width: 540px) {
    .game-card {
        width: calc(100vw - 24px);
    }

    .v2-cards {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Header, Body, Footer as before */
.game-card__header {
    background: var(--header-footer-bg);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-card__header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.game-card__header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.game-card__league-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.game-card__league-name {
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__action {
    background: transparent;
    border: 0;
    color: var(--clutch-white);
    opacity: 0.8;
    cursor: pointer;
}

.game-card__action:hover {
    opacity: 1;
}

.game-card__body {
    background: var(--body-bg);
    padding: 12px;
    position: relative;
}

.game-card-standard {
    background: var(--body-bg);
}

.game-card-clutch {
    background: linear-gradient(to right, var(--clutch-grad-1) 0%, var(--clutch-grad-2) 32%, var(--clutch-grad-3) 65%, var(--clutch-grad-4) 100%);
}

/* Watch row is always present to keep consistent layout */
.game-card__watch-row {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

/* Teams and center status/score */
.game-card__teams-row {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.1fr) 1fr;
    align-items: center;
    gap: 8px;
}

.game-card__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.game-card__score {
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__status {
    font-size: 13px;
    color: var(--clutch-grey-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.game-card__team-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.game-card__team-name {
    font-size: 13px;
    text-align: center;
    max-width: 120px;
    /* Allow wrapping to multiple lines and clamp to 2 lines */
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    /* Reserve two-line height so all cards are equal */
    min-height: 2.4em;
    max-height: 2.4em;
}

/* Mobile tweaks for score/status single-line */
@media (max-width: 540px) {
    .game-card__score {
        font-size: 20px;
    }

    .game-card__status {
        font-size: 12px;
    }

    .game-card__team-logo {
        width: 40px;
        height: 40px;
    }

    /* Limit league name to 80% of header width and ellipsize */
    .game-card__league-name {
        max-width: 80%;
    }
}

.game-card__footer {
    background: var(--header-footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-card__footer .details-link {
    color: var(--clutch-grey-bright);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.game-card__footer .details-link:hover {
    color: var(--clutch-white);
}

.game-card__chevron {
    transition: transform .35s ease;
}

.game-card.expanded .game-card__chevron {
    transform: rotate(180deg);
}

.game-card__stats-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height .5s ease-out, padding .5s ease-out;
    padding: 0 2px;
}

.game-card.expanded .game-card__stats-panel {
    max-height: 240px;
    padding: 15px 2px;
}

/* Stadium info rows (centered) */
.stadium-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--clutch-grey-bright);
    justify-content: center;
    width: 100%;
}

.stadium-info .material-icons-outlined {
    font-size: 18px;
    vertical-align: middle;
}

/* Watch live group (ported to match dist) */
.watch-live-anchor {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 2;
}

.watch-live-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 4px 8px;
}

.watch-live-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--clutch-grey-bright);
    font-size: 12px;
    white-space: nowrap;
}

.watch-live-text .material-icons-outlined {
    font-size: 16px;
}

.provider-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.provider-logo-small {
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    object-fit: contain;
}

.providers-more {
    font-size: 12px;
    color: var(--clutch-grey-bright);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.providers-more:hover {
    color: var(--clutch-white);
}

/* Modal */
.v2-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
}

.v2-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 51;
}

.v2-modal .v2-dialog {
    width: 92vw;
    max-width: 520px;
    max-height: 80vh;
    background: #1b1b1b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.v2-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--header-footer-bg);
    border-bottom: 1px solid var(--border-color);
}

.v2-dialog-title {
    font-weight: 700;
    font-size: 1rem;
}

.v2-dialog-close {
    background: transparent;
    border: 0;
    color: var(--clutch-white);
    opacity: 0.8;
    cursor: pointer;
}

.v2-dialog-close:hover {
    opacity: 1;
}

.v2-dialog-body {
    padding: 12px 14px;
    overflow-y: auto;
}

/* Dark themed scrollbar for providers modal */
.v2-dialog-body {
    scrollbar-width: thin;
    scrollbar-color: var(--clutch-grey-medium) var(--clutch-black);
}

.v2-dialog-body::-webkit-scrollbar {
    width: 10px;
}

.v2-dialog-body::-webkit-scrollbar-track {
    background: var(--clutch-black);
    border-radius: 8px;
}

.v2-dialog-body::-webkit-scrollbar-thumb {
    background-color: var(--clutch-grey-medium);
    border-radius: 8px;
    border: 2px solid var(--clutch-black);
}

.v2-dialog-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--clutch-grey-light);
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    color: var(--clutch-white);
    text-decoration: none;
}

.provider-item:hover .provider-name {
    text-decoration: underline;
}

.provider-list .provider-name {
    font-size: 0.95rem;
}

.provider-list img {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    object-fit: contain;
}


.top-bar .logo {
    font-family: var(--font-family-logo);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clutch-white);
    text-transform: lowercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
}


.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
    padding: 0 20px;
    top: 0; /* fallback */
    top: env(safe-area-inset-top); /* iOS safe-area support when available */
    background-color: var(--clutch-black);
    z-index: 200; /* above sidebar and carousels */
    border-bottom: 1px solid var(--clutch-grey-medium);
}




/* ===== v2 overrides to match blueprint filter styles and fonts ===== */
:root {
    --clutch-black: #000000;
    --font-family-sans: 'Helvetica Neue', 'Arial', sans-serif;
    --font-family-logo: 'Montserrat', 'Arial Black', sans-serif;
    --font-family-heading: 'Aptos Display', 'Arial Black', 'Helvetica Neue', sans-serif;
}

/* Ensure cards align left when track doesn't overflow */
.v2-cards {
    justify-content: flex-start;
}

/* Filter drawer styling closer to blueprint */
.v2-filter-sheet {
    background: var(--clutch-grey-dark);
    border-right: 1px solid var(--clutch-grey-medium);
}

.v2-filter-header h3 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    color: var(--clutch-white);
}

.v2-filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--clutch-white);
}

.v2-checkbox-group input[type="checkbox"], .v2-toggle input[type="checkbox"] {
    accent-color: var(--clutch-grad-4);
}

.v2-apply-filters {
    background-color: var(--clutch-grad-4);
    color: var(--clutch-black);
    border: none;
}

.v2-apply-filters:hover {
    background-color: var(--clutch-white);
    color: var(--clutch-black);
}


/* Typography base to match blueprint */
html, body {
    font-family: var(--font-family-sans);
    display: contents;
}


/* Filter panel label styles to match blueprint */
.v2-toggle-label {
    color: var(--clutch-grey-bright);
    font-size: 0.9rem;
}

.v2-checkbox-group label {
    color: var(--clutch-grey-bright);
    font-size: 0.9rem;
}


/* === Clutchwatch badge (matches blueprint) === */
:root {
    --clutch-dark-outline: #1A1A1A;
}

.provider-logo {
    background-color: var(--clutch-grey-medium);
    color: var(--clutch-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.clutchwatch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--clutch-black);
    color: var(--clutch-white);
    font-family: var(--font-family-logo);
    font-style: normal;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 4px 10px 4px 8px;
    border-radius: 20px;
    border: 1px solid var(--clutch-dark-outline);
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--clutch-grad-4);
    border-radius: 50%;
    animation: v2-pulse 1.5s infinite ease-in-out;
    display: inline-block;
}

@keyframes v2-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 215, 215, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(40, 215, 215, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 215, 215, 0);
    }
}

/* Ensure left/right containers exist for spacing */
.game-card__watch-row .watch-left, .game-card__watch-row .watch-right {
    display: inline-flex;
    align-items: center;
}


/* Ensure carousel arrows are always visible above cards (desktop z-index fix) */
.v2-carousel .v2-arrow {
    z-index: 100;
}


/* Sport icons inside filter list */
.v2-sport-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--clutch-grey-bright);
    padding-right: 5px;
    display: inline-flex; /* keep icon vertically centered next to text */
    align-items: center;
}

.american-football-ball-possession-icon {
    font-size: 20px;
}


/* Layering overrides to ensure filter drawer and modals are always above other UI */
/* Filters drawer overlay should sit above carousels/arrows and bars */
.v2-filter-overlay { z-index: 900; }
/* Modals must always be on top of everything */
.v2-modal-backdrop { z-index: 1000; }
.v2-modal { z-index: 1001; }




/* v2 header filter button placed next to logo */
.v2-header-filter {
    background: transparent;
    border: 0;
    padding: 4px;
    margin-left: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.v2-header-filter:focus { outline: none; }
.v2-filter-icon {
    font-size: 22px;
    color: var(--clutch-grad-4);
}


/* Ensure disabled carousel arrows are visibly inactive and non-interactive */
.v2-arrow:disabled,
.v2-arrow[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none; /* prevent hover/click */
}

/* Prevent hover style from affecting disabled arrows */
.v2-arrow:disabled:hover,
.v2-arrow[aria-disabled="true"]:hover {
  background: rgba(0, 0, 0, 0.5);
}


.v2-view-toggle {
    display: flex;
    gap: 5px;
    background-color: var(--clutch-grey-dark);
    padding: 4px;
    border-radius: 8px;
}

.v2-toggle-button {
    background-color: transparent;
    border: none;
    color: var(--clutch-grey-light);
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}


.v2-toggle-button.active {
    background-color: var(--clutch-grad-4);
    color: var(--clutch-white);
}

.v2-toggle-button:hover:not(.active) {
    color: var(--clutch-white);
}

/* Section header bar layout: title + toggle inline after the sport name */
.v2-section-title {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* keep everything aligned to the left */
  width: 100%;
  gap: 12px;
  padding: 4px 10px;
  box-sizing: border-box;
}

.v2-section-left {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* tighter spacing between icon, name, and count */
  min-height: 44px; /* touch target height */
}

.v2-view-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }

.v2-toggle-button { padding: 4px 12px; font-size: 0.8rem; }

@media (max-width: 480px) {
  .v2-section-title { flex-wrap: wrap; row-gap: 8px; font-size: 0.8rem; }
  /* keep toggle inline; no full-width stretch on mobile */
  .v2-view-toggle { justify-content: flex-start; }
  .v2-section-count { font-size: 0.8rem; }
  :root { --sportbar-height: 44px; }
  /* Mobile: show only the number in parentheses for counts */
  .v2-section-count .count-noun,
  .card-count .count-noun { display: none; }
}

/* View containers for All Games vs By League */
.v2-view-container { display: none; }
.v2-view-container.active { display: block; }

/* By-league subsection header and count (mirrors blueprint styles) */
.league-subsection h3 {
  font-family: var(--font-family-heading, Montserrat, sans-serif);
  font-size: 0.8rem;
  color: var(--clutch-grey-bright);
  margin: 12px 10px 10px 10px;
  font-weight: 700;
  padding: 4px 0;
  display: inline-flex; /* align league name and count vertically */
  align-items: center;
}
.card-count {
  font-size: 0.75rem;
  color: var(--clutch-grey-light);
  font-weight: 400;
  line-height: 1; /* avoid baseline misalignment */
}

/* Space stacked per-league carousels slightly */
.v2-by-league-view .v2-carousel { margin-bottom: 8px; }


/* --- NFL possession-aware score layout: keep dash centered and prevent shifting when icons appear --- */
.game-card__score .score-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left | dash | right */
    align-items: center;
    gap: 8px;
}
.game-card__score .side {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.game-card__score .side-left { justify-content: flex-end; }
.game-card__score .side-right { justify-content: flex-start; }
/* Reserve space for the football icon so numbers don't move when it toggles */
.game-card__score .icon-slot {
    width: 14px; /* matches icon size below */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Smaller football icon specific to NFL renderer */
.nfl-possession-icon {
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}
.game-card__score .dash {
    display: inline-block;
    min-width: 10px;
    text-align: center;
}
@media (max-width: 540px) {
    .game-card__score .icon-slot { width: 12px; }
    .nfl-possession-icon { font-size: 12px; }
}


/* Sticky sport section headers under the top bar */
:root {
    --topbar-height: 45px; /* matches .top-bar height */
}

.v2-section-title {
    position: sticky;
    /* Keep headers below the sticky top bar and safe area */
    top: calc(env(safe-area-inset-top) + var(--topbar-height));
    z-index: 150; /* below top-bar (200), above content */
    background: var(--clutch-black);
    /* Make sure anchor jumps don't hide titles under the top bar */
    scroll-margin-top: calc(env(safe-area-inset-top) + var(--topbar-height) + 8px);
    border-bottom: 1px solid var(--clutch-grey-medium);
}

:root {
    --sportbar-height: 52px; /* approximate height of the sport header bar */
}

/* Sticky league headers (when viewing By League) sit under the sport header */
.v2-league-title {
    position: sticky;
    top: calc(env(safe-area-inset-top) + var(--topbar-height) + var(--sportbar-height));
    z-index: 140; /* below sport header (150), above content */
    background: var(--clutch-black);
    margin: 0; /* override default margins for sticky stacking */
    padding: 6px 10px; /* consistent horizontal padding with section title */
    border-bottom: 1px solid var(--clutch-grey-medium);
    scroll-margin-top: calc(env(safe-area-inset-top) + var(--topbar-height) + var(--sportbar-height) + 6px);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
