
/* ==== VARSITY SCHEDULE CUSTOM STYLES ==== */
.schedule-hero {
    background:
        radial-gradient(ellipse 80% 120% at 70% 50%, rgba(37,99,235,0.18) 0%, transparent 65%),
        linear-gradient(to right, #070d18 0%, #0d1e4a 55%, #1e3a8a 100%);
    padding: 3.5rem 0 5rem;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.schedule-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.hero-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.sub-header {
    font-size: 0.78rem;
    font-weight: 800;
    color: #93c5fd;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sub-header::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #93c5fd;
    border-radius: 2px;
    flex-shrink: 0;
}

.main-title {
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    margin: 0 0 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}
.main-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(to right, #C8D4E0, transparent);
    border-radius: 2px;
    margin-top: 1rem;
}
.main-title em {
    font-style: normal;
    color: #60A5FA;
}

.season-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #CBD5E1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2.5rem;
}

.next-game-header {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.2em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.opponent-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.game-details {
    display: flex;
    gap: 1.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}

.game-details i {
    color: #4169E1;
    margin-right: 0.3rem;
}

/* HERO COUNTDOWN */
.hero-countdown {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.countdown-wrapper {
    display: flex;
    gap: 1rem;
}

.timer-block {
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    min-width: 80px;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-label {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
    font-weight: 700;
}

/* RECORDS FLOATING CARD */
.records-section {
    max-width: 1400px;
    margin: -4rem auto 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.records-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.record-item {
    padding: 1.5rem 1rem;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}
.record-item:last-child {
    border-right: none;
}

.record-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.record-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

@media screen and (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .hero-countdown {
        padding: 1.35rem;
    }
    .records-section {
        padding: 0 1.5rem;
    }
    .records-card {
        grid-template-columns: repeat(4, 1fr);
    }
    .record-item:nth-child(4n) {
        border-right: none;
    }
    .record-item:nth-child(n+5) {
        border-top: 1px solid #e2e8f0;
    }
    .schedule-container {
        padding: 0 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .schedule-hero {
        padding: 2.5rem 0 4.5rem;
    }
    .hero-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 0 1.25rem;
    }
    .hero-info {
        min-width: 0;
        width: 100%;
    }
    .season-label {
        margin-bottom: 1.5rem;
    }
    .opponent-text {
        font-size: clamp(1.5rem, 6vw, 2.1rem);
    }
    .game-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-countdown {
        width: 100%;
        padding: 1.15rem;
    }
    .countdown-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
    .timer-block {
        min-width: 0;
        padding: 0.75rem 0.35rem;
    }
    .timer-value {
        font-size: clamp(1.45rem, 5.5vw, 2rem);
    }
    .records-section {
        padding: 0 1.25rem;
        margin: -3rem auto 2rem;
    }
    .records-card {
        grid-template-columns: repeat(2, 1fr);
    }
    .record-item {
        padding: 1.1rem 0.75rem;
    }
    .record-item:nth-child(odd) {
        border-right: 1px solid #e2e8f0;
    }
    .record-item:nth-child(even) {
        border-right: none;
    }
    .record-item:nth-child(n+3) {
        border-top: 1px solid #e2e8f0;
    }
    .schedule-container {
        padding: 0 1.25rem;
        margin-bottom: 4rem;
    }
}


/* Toolbar & Container */
.schedule-container {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.schedule-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.toolbar-left {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-tool {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-tool i {
    color: #2563eb;
}

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

.season-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.2rem 0.35rem 0.2rem 0.75rem;
}

.season-picker-label {
    font-weight: 800;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.season-select {
    padding: 0.38rem 2rem 0.38rem 0.55rem;
    border: none;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.88rem;
    color: #0f172a;
    appearance: none;
    cursor: pointer;
    background: #ffffff url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%230f172a'%20stroke-width%3D'3'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolyline%20points%3D'6%209%2012%2015%2018%209'%2F%3E%3C%2Fsvg%3E") no-repeat right 0.55rem center;
    background-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* D1 Quick-Filter Pill Bar */
.schedule-filter-pills {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.22rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    gap: 0.2rem;
}

.sched-filter-pill,
.filter-pill {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.42rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
    letter-spacing: 0.02em;
}

.sched-filter-pill:hover,
.filter-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.6);
}

.sched-filter-pill.active,
.filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.16);
}

.schedule-count-badge {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.view-toggles {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 0.22rem;
    gap: 0.22rem;
    border: 1px solid #e2e8f0;
}

.btn-view {
    background: transparent;
    border: none;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s;
}

.btn-view.active {
    background: #2563EB;
    color: white;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* MONTH HEADERS */
.month-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: #0f172a;
    margin: 2.25rem 0 0.9rem;
    text-transform: uppercase;
}

.month-line {
    width: 5px;
    height: 1.25rem;
    background: linear-gradient(180deg, #2563EB 0%, #1d4ed8 100%);
    border-radius: 3px;
}

.month-title-text {
    color: #0f172a;
}

.month-count-pill {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #475569;
    background: #e2e8f0;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* Screen-reader / Print helper */
.sr-print-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container query context for Card View */
#wrapperCardView {
    container-type: inline-size;
}

/* ==== DIVISION 1 / POWER 4 GAME CARDS (4-Zone Horizontal Layout) ==== */
.game-card {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 144px minmax(290px, 1.35fr) 320px 268px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border-color: #94a3b8;
}

.game-card.home::before,
.game-card.away::before,
.game-card.neutral::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    z-index: 2;
}

.game-card.home::before {
    background: #2563EB;
}

.game-card.away::before {
    background: #64748b;
}

.game-card.neutral::before {
    background: #eab308;
}

/* ZONE 1: Left Date & Venue Block */
.card-date-col {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 1rem 0.85rem 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.d1-venue-pill {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    line-height: 1.2;
}

.d1-venue-pill.home {
    background: #dbeafe;
    color: #1d4ed8;
}

.d1-venue-pill.away {
    background: #e2e8f0;
    color: #334155;
}

.d1-venue-pill.neutral {
    background: #fef9c3;
    color: #a16207;
}

.d1-date-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
    margin: 0.1rem 0;
}

.d1-date-dow {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.14em;
    margin-bottom: 0.15rem;
}

.d1-date-md {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

/* Keep .game-date in DOM for print/screen-readers while showing stacked date on screen */
.card-date-col .game-date {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.d1-date-sub {
    font-size: 0.65rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

/* ZONE 2: Opponent Crest + Matchup Identity */
.card-left {
    padding: 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.d1-matchup-wrap {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    width: 100%;
}

.d1-opp-crest {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.d1-opp-crest.home {
    border-color: #bfdbfe;
    background: linear-gradient(145deg, #ffffff 0%, #eff6ff 100%);
}

.d1-opp-crest img,
.d1-opp-crest-img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.d1-opp-crest-fallback {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d1-vs-chip {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 0.14rem 0.36rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
    border: 2px solid #ffffff;
    line-height: 1;
}

.d1-vs-chip.home {
    background: #2563EB;
    color: #ffffff;
}

.d1-vs-chip.away {
    background: #334155;
    color: #ffffff;
}

.d1-vs-chip.neutral {
    background: #ca8a04;
    color: #ffffff;
}

.d1-matchup-details {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    min-width: 0;
    flex: 1;
}

.game-subtitles {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

/* Conference & Non-Conference badges */
.badge-conf {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: 5px;
    line-height: 1.2;
}

.badge-nonconf {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    line-height: 1.2;
}

.d1-level-pill {
    font-size: 0.62rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-opp {
    font-size: 1.32rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.01em;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.42rem;
    line-height: 1.15;
}

.d1-opp-prefix {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.d1-opp-prefix.home {
    color: #2563EB;
}

.d1-opp-prefix.away {
    color: #64748b;
}

.d1-opp-prefix.neutral {
    color: #ca8a04;
}

.d1-opp-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-loc-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
}

.game-loc {
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.d1-loc-pin {
    color: #64748b;
    font-size: 0.78rem;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    font-size: 0.64rem;
    font-weight: 800;
    color: #2563EB;
    background: #eff6ff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.24rem 0.68rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    transition: all 0.18s ease;
}

.btn-directions:hover {
    background: #2563EB;
    color: #ffffff;
    border-color: #2563EB;
}

/* ZONE 3: Center Mini R-H-E Linescore / Matchup Slate */
.card-center {
    padding: 0.9rem 1.15rem;
    border-left: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.d1-linescore-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.d1-linescore-box {
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    overflow: hidden;
    background: #ffffff;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.d1-ls-head {
    display: grid;
    grid-template-columns: 1fr 28px 28px 28px;
    align-items: center;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0.28rem 0.6rem;
    text-transform: uppercase;
}

.d1-ls-head.cols-1,
.d1-ls-row.cols-1 {
    grid-template-columns: 1fr 42px;
}

.d1-ls-head.cols-5,
.d1-ls-row.cols-5 {
    grid-template-columns: 1fr repeat(4, 24px) 32px;
}

.d1-ls-head.cols-6,
.d1-ls-row.cols-6 {
    grid-template-columns: 1fr repeat(5, 22px) 30px;
}

.d1-ls-head-title {
    color: #cbd5e1;
}

.d1-ls-col {
    text-align: center;
    color: #e2e8f0;
}

.d1-ls-row {
    display: grid;
    grid-template-columns: 1fr 28px 28px 28px;
    align-items: center;
    padding: 0.32rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    border-top: 1px solid #f1f5f9;
}

.d1-ls-row.is-winner {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.d1-ls-team {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding-right: 0.35rem;
}

.d1-ls-team img,
.d1-ls-team-logo,
.d1-mini-logo {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.d1-ls-team-mono {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.52rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.d1-ls-team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d1-win-caret {
    color: #2563EB;
    font-size: 0.7rem;
    margin-left: auto;
}

.d1-ls-val {
    text-align: center;
    font-size: 0.78rem;
}

.d1-ls-val.is-runs {
    font-weight: 900;
    color: #0f172a;
    background: rgba(241, 245, 249, 0.7);
    border-radius: 4px;
}

.d1-linescore-note {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d1-linescore-note i {
    color: #eab308;
    font-size: 0.65rem;
}

/* Upcoming Slate Box in Center Zone */
.d1-upcoming-slate {
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.d1-slate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.d1-slate-label {
    font-size: 0.62rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.d1-slate-val {
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.d1-slate-divider {
    height: 1px;
    background: #f1f5f9;
}

/* ZONE 4: Right Result & Action Links */
.card-right {
    width: auto;
    min-width: 0;
    padding: 1.1rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.7rem;
    border-left: 1px solid #e2e8f0;
    background: #ffffff;
}

.game-result-block {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.d1-result-Main {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* Unmistakable W / L / T Color Pill Badges */
.d1-wl-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.d1-wl-pill.sm {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.76rem;
}

.d1-wl-pill.win {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.d1-wl-pill.loss {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.d1-wl-pill.tie {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.game-score {
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.game-score.d1-upcoming-time {
    font-size: 1.25rem;
    color: #1e293b;
}

.d1-tz-tag {
    font-size: 0.72em;
    font-weight: 700;
    color: #64748b;
    margin-left: 2px;
}

.game-status {
    font-size: 0.66rem;
    font-weight: 800;
    color: #475569;
    background: #f1f5f9;
    padding: 0.16rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.game-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-link-outline {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    padding: 0.45rem 0.78rem;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-link-outline i {
    color: #2563EB;
    font-size: 0.74rem;
}

.btn-link-outline:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.btn-link-outline:hover i {
    color: #ffffff;
}

.btn-link-outline.is-pending {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: default;
    box-shadow: none;
}

.btn-link-outline.is-pending i {
    color: #94a3b8;
}


/* ==== DIVISION 1 PRESS-BOX LIST VIEW ==== */
.list-table-container {
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: white;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.list-table-header {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.35rem;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    font-size: 0.7rem;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.list-table-row {
    display: flex;
    padding: 0.95rem 1.35rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    background: white;
    transition: background 0.15s ease;
    position: relative;
}

.list-table-row.home {
    border-left: 4px solid #2563EB;
}

.list-table-row.away {
    border-left: 4px solid #64748b;
}

.list-table-row.neutral {
    border-left: 4px solid #eab308;
}

.list-table-row:last-child {
    border-bottom: none;
}

.list-table-row:hover {
    background: #f8fafc;
}

.col-date {
    width: 170px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.list-ha-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 900;
    flex-shrink: 0;
}

.list-ha-badge.home {
    background: #dbeafe;
    color: #1d4ed8;
}

.list-ha-badge.away {
    background: #e2e8f0;
    color: #334155;
}

.list-ha-badge.neutral {
    background: #fef9c3;
    color: #a16207;
}

.col-opp {
    flex: 1.2;
    min-width: 210px;
    font-size: 0.98rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.list-opp-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.list-opp-wrap img,
.col-opp img,
.list-opp-logo {
    width: 26px;
    height: 26px;
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.list-opp-mono {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.62rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-vs-tag {
    font-size: 0.72rem;
    font-weight: 900;
}

.list-vs-tag.home {
    color: #2563EB;
}

.list-vs-tag.away {
    color: #64748b;
}

.col-loc {
    width: 270px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding-right: 0.75rem;
}

.list-loc-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-loc-map-link {
    color: #2563EB;
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.list-loc-map-link:hover {
    opacity: 1;
}

.col-type {
    width: 145px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.col-type .badge-conf {
    font-size: 0.58rem;
    padding: 0.2rem 0.5rem;
}

.badge-nonconf-list {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
}

.col-res {
    width: 175px;
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.list-res-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.list-score-num {
    font-weight: 900;
    color: #0f172a;
}

.list-final-badge {
    font-size: 0.58rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

.list-time-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.col-links {
    width: 185px;
    display: flex;
    justify-content: flex-end;
}

.list-links-group {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.list-btn-link {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.3rem 0.58rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s ease;
}

.list-btn-link i {
    color: #2563EB;
    font-size: 0.68rem;
}

.list-btn-link:hover {
    background: #2563EB;
    border-color: #2563EB;
    color: #ffffff;
}

.list-btn-link:hover i {
    color: #ffffff;
}

/* Container & Media Query Responsive Adaptations */
@container (max-width: 1060px) {
    .game-card {
        grid-template-columns: 128px minmax(0, 1fr) 235px;
    }
    .card-date-col {
        grid-column: 1;
        grid-row: 1;
    }
    .card-left {
        grid-column: 2;
        grid-row: 1;
    }
    .card-right {
        grid-column: 3;
        grid-row: 1;
    }
    .card-center {
        grid-column: 1 / -1;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 0.75rem 1.25rem;
        background: #f8fafc;
    }
    .d1-upcoming-slate {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem 1.5rem;
    }
    .d1-slate-divider {
        display: none;
    }
}

@media screen and (max-width: 1100px) {
    .game-card {
        grid-template-columns: 128px minmax(0, 1fr) 235px;
    }
    .card-date-col {
        grid-column: 1;
        grid-row: 1;
    }
    .card-left {
        grid-column: 2;
        grid-row: 1;
    }
    .card-right {
        grid-column: 3;
        grid-row: 1;
    }
    .card-center {
        grid-column: 1 / -1;
        grid-row: 2;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 0.75rem 1.25rem;
        background: #f8fafc;
    }
    .d1-upcoming-slate {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem 1.5rem;
    }
    .d1-slate-divider {
        display: none;
    }
    .list-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .list-table-header,
    .list-table-row {
        min-width: 920px;
    }
}

@container (max-width: 720px) {
    .game-card {
        grid-template-columns: 1fr;
    }
    .card-date-col,
    .card-left,
    .card-center,
    .card-right {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .card-date-col {
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.65rem 1.15rem;
    }
    .d1-date-stack {
        flex-direction: row;
        gap: 0.4rem;
        align-items: baseline;
    }
    .d1-date-dow {
        margin-bottom: 0;
    }
    .card-left {
        padding: 1rem 1.1rem;
    }
    .d1-opp-crest {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    .d1-opp-crest-img {
        width: 36px;
        height: 36px;
    }
    .game-opp {
        font-size: 1.12rem;
        flex-wrap: wrap;
    }
    .d1-opp-title-text {
        white-space: normal;
        overflow: visible;
    }
    .card-center {
        padding: 0.75rem 1.1rem;
    }
    .d1-upcoming-slate {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .card-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 0.85rem 1.15rem;
        gap: 0.75rem;
    }
    .game-result-block {
        align-items: flex-start;
        text-align: left;
    }
    .game-links {
        margin-left: auto;
    }
}

@media screen and (max-width: 900px) {
    .schedule-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 768px) {
    .main-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .game-card {
        grid-template-columns: 1fr;
    }
    .card-date-col,
    .card-left,
    .card-center,
    .card-right {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .card-date-col {
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.65rem 1.15rem;
    }
    .d1-date-stack {
        flex-direction: row;
        gap: 0.4rem;
        align-items: baseline;
    }
    .d1-date-dow {
        margin-bottom: 0;
    }
    .card-left {
        padding: 1rem 1.1rem;
    }
    .d1-opp-crest {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    .d1-opp-crest-img {
        width: 36px;
        height: 36px;
    }
    .game-opp {
        font-size: 1.12rem;
        flex-wrap: wrap;
    }
    .d1-opp-title-text {
        white-space: normal;
        overflow: visible;
    }
    .card-center {
        padding: 0.75rem 1.1rem;
    }
    .d1-upcoming-slate {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }
    .card-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 0.85rem 1.15rem;
        gap: 0.75rem;
    }
    .game-result-block {
        align-items: flex-start;
        text-align: left;
    }
    .game-links {
        margin-left: auto;
    }
}

@media screen and (max-width: 600px) {
    .toolbar-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .btn-tool {
        justify-content: center;
    }
    .season-picker {
        grid-column: 1 / -1;
        justify-content: space-between;
    }
    .toolbar-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .schedule-filter-pills {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .sched-filter-pill {
        padding: 0.45rem 0.2rem;
        font-size: 0.72rem;
        text-align: center;
    }
    .view-toggles {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .btn-view {
        justify-content: center;
    }
    .schedule-count-badge {
        text-align: center;
    }
}

/* ==== PRINT STYLES ==== */
@media print {
    @page {
        margin: 0.5in;
        size: auto;
    }
    
    body {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Hide layout cruft */
    .sticky-header-wrapper,
    .premium-footer,
    .schedule-toolbar,
    .btn-directions,
    .game-links,
    .col-links,
    .list-loc-map-link,
    .list-opp-logo,
    .list-opp-mono,
    .list-ha-badge,
    .d1-wl-pill,
    .hero-countdown,
    .records-section,
    .sub-header,
    .season-picker {
        display: none !important;
    }

    .sr-print-only {
        position: static !important;
        width: auto !important;
        height: auto !important;
        clip: auto !important;
        overflow: visible !important;
        white-space: normal !important;
    }
    
    /* Let the true title show, but reformat it for print */
    .schedule-hero {
        background: transparent !important;
        padding: 1rem 0 !important;
        color: black !important;
    }
    .main-title {
        color: black !important;
        font-size: 2rem !important;
        text-align: center;
        margin-bottom: 0 !important;
    }
    .season-label {
        color: #333 !important;
        text-align: center;
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .schedule-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Force the list wrapper to be visible and unconstrained */
    #wrapperCardView { display: none !important; }
    #wrapperListView { display: block !important; }
    
    /* Scale List View Table */
    .list-table-container {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow-x: visible !important;
        width: 100% !important;
    }
    .list-table-header, .list-table-row {
        min-width: 0 !important;
        width: 100% !important;
        page-break-inside: avoid;
        padding: 0.5rem !important;
        border-bottom: 1px solid #ccc !important;
        border-left: none !important;
    }
    .list-table-header {
        font-size: 0.65rem !important;
        background: #f8fafc !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* Squish columns so they fit without horizontal scroll */
    .col-date { width: 16% !important; font-size: 0.75rem !important; }
    .col-opp { flex: 1 !important; font-size: 0.85rem !important; }
    .col-loc { width: 28% !important; font-size: 0.75rem !important; }
    .col-type { width: 14% !important; font-size: 0.7rem !important; }
    .col-res { width: 16% !important; font-size: 0.75rem !important; text-align: right; }
    .badge-conf { background: none !important; color: #000 !important; border: 1px solid #000 !important; }
}



/* ==== BASKETBALL QUARTER / FINAL SCOREBOARD GRID MODIFIERS ==== */
.d1-linescore-box.cols-1 .d1-linescore-head,
.d1-linescore-box.cols-1 .d1-linescore-row {
    grid-template-columns: minmax(130px, 1fr) 54px;
}

.d1-linescore-box.cols-5 .d1-linescore-head,
.d1-linescore-box.cols-5 .d1-linescore-row {
    grid-template-columns: minmax(100px, 1fr) 28px 28px 28px 28px 38px;
}

.d1-linescore-box.cols-6 .d1-linescore-head,
.d1-linescore-box.cols-6 .d1-linescore-row {
    grid-template-columns: minmax(90px, 1fr) 25px 25px 25px 25px 26px 36px;
}
