body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #12284B;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


body.undefeated {
    background: #12284B !important;
}


.container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #FFC52F;
}

.site-title {
    margin-bottom: 0;
}

.site-title-link {
    color: inherit;
    text-decoration: none;
}

.answer {
    font-size: 4rem;
    font-weight: bold;
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.emoji-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1em;
    line-height: 1.3;
}

.yes {
    background: transparent;
    color: white;
}

.champions {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 40%, #b8860b 70%, #ffd700 100%);
    color: #1a1a1a;
    font-size: 3rem;
    animation: championShine 2s ease-in-out infinite alternate;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

@keyframes championShine {
    from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    to   { box-shadow: 0 0 50px rgba(255, 215, 0, 0.9), 0 0 80px rgba(255, 197, 47, 0.5); }
}

.no {
    background: transparent;
    color: white;
}

.streaming {
    background: transparent;
    color: #a8c8f0;
}

.record {
    font-size: 1.5rem;
    margin: 1rem 0;
    opacity: 0.9;
    color: #FFC52F;
}

.preseason-record {
    font-size: 1.1rem;
    opacity: 0.7;
}

.playoff-record {
    font-size: 1.1rem;
    opacity: 0.8;
}

.next-game {
    background: rgba(18, 40, 75, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 2px solid #FFC52F;
}

.next-game h3 {
    margin-top: 0;
    color: #FFC52F;
}

.countdown {
    font-size: 1.1rem;
    color: #FFC52F;
    font-weight: bold;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 197, 47, 0.1);
    border-radius: 5px;
}

.live-game {
    background: rgba(255, 0, 0, 0.1) !important;
    border: 2px solid #ff0000 !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.game-status {
    font-size: 1rem;
    color: #ff0000;
    font-weight: bold;
    margin: 0.5rem 0;
}

.score-display {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.brewers-score {
    color: #FFC52F;
}

.opponent-score {
    color: #ffffff;
}

.loading {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #FFC52F;
}

.error {
    color: #ff6b6b;
    font-size: 1.1rem;
}

.brewers-logo {
    font-size: 2rem;
    margin: 0 1rem;
}

.season-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 0.5rem;
}

.season-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFC52F;
    min-width: 8rem;
    text-align: center;
}

.season-nav {
    background: rgba(255, 197, 47, 0.15);
    border: 2px solid #FFC52F;
    color: #FFC52F;
    font-size: 1.6rem;
    line-height: 1;
    width: 3rem;
    height: 2.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.season-nav-jump {
    opacity: 0.75;
    width: 3rem;
}

.season-nav:hover:not(:disabled) {
    background: rgba(255, 197, 47, 0.3);
    transform: scale(1.1);
}

.season-divider {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFC52F;
    padding: 0.4rem 0;
    border-top: 1px solid rgba(255, 197, 47, 0.3);
    border-bottom: 1px solid rgba(255, 197, 47, 0.3);
    margin: 0.25rem 0;
}

.season-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.last-updated {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    color: #FFC52F;
}

/* Collapsible toggle sections */
.collapsible-section {
    width: 572px;
    margin: 0.4rem auto 0;
    box-sizing: border-box;
}

.collapsible-section[open] > .collapsible-summary {
    margin-bottom: 0.4rem;
}

.collapsible-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 197, 47, 0.55);
    padding: 0.1rem 0;
    width: fit-content;
    transition: color 0.2s;
}

.collapsible-summary::-webkit-details-marker { display: none; }

.collapsible-summary::before {
    content: '\F0142'; /* mdi chevron-down */
    font-family: 'Material Design Icons';
    font-size: 0.85rem;
    transition: transform 0.2s;
    display: inline-block;
}

details:not([open]) > .collapsible-summary::before {
    transform: rotate(-90deg);
}

.collapsible-summary:hover {
    color: rgba(255, 197, 47, 0.85);
}

/* keep streak-banner from having its own outer margin when inside details */
.collapsible-section .streak-banner {
    margin-top: 0;
}

/* keep on-this-day from having its own outer margin when inside details */
.collapsible-section .on-this-day {
    margin-top: 0;
    width: 100%;
}

.streak-banner {
    background: rgba(255, 197, 47, 0.08);
    border: 1px solid rgba(255, 197, 47, 0.3);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    margin: 0.5rem auto 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 540px;
}

.streak-banner strong {
    color: #FFC52F;
    font-size: 1rem;
}

.last-undefeated {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 197, 47, 0.85);
    min-height: 1.5rem;
}

.last-undefeated-link {
    color: #FFC52F;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 197, 47, 0.5);
    transition: color 0.2s, text-decoration-color 0.2s;
}

.last-undefeated-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.data-credit {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
    color: #FFC52F;
}

.data-credit a {
    color: #FFC52F;
    text-decoration: underline;
}

.data-credit a:hover {
    opacity: 1;
}

.share-section {
    margin: 1.25rem auto 0;
    width: 572px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* On This Day */
.on-this-day {
    background: rgba(18, 40, 75, 0.8);
    border: 1px solid rgba(255, 197, 47, 0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
}

.otd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.otd-label {
    color: #FFC52F;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.otd-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.otd-reset {
    font-size: 0.72rem;
    color: rgba(255, 197, 47, 0.6);
    border: 1px solid rgba(255, 197, 47, 0.3);
    border-radius: 5px;
    padding: 0.15rem 0.5rem;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.otd-reset:hover {
    color: #FFC52F;
    border-color: #FFC52F;
}

.otd-refresh {
    background: none;
    border: 1px solid rgba(255, 197, 47, 0.35);
    border-radius: 6px;
    color: rgba(255, 197, 47, 0.7);
    cursor: pointer;
    padding: 0.2rem 0.45rem;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s, border-color 0.2s;
}

.otd-refresh:hover {
    color: #FFC52F;
    border-color: #FFC52F;
}

.otd-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.otd-photo-link {
    flex-shrink: 0;
}

.otd-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 197, 47, 0.3);
    display: block;
}

.otd-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.otd-season-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.otd-year {
    color: #FFC52F;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.otd-year:hover {
    text-decoration: underline;
    color: #e0a820;
}

.otd-game-type {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
}

.otd-game-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.otd-result-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.otd-result-badge.win  { background: rgba(76, 175, 80, 0.25); color: #4caf50; }
.otd-result-badge.loss { background: rgba(244, 67, 54, 0.25); color: #f44336; }
.otd-result-badge.tie  { background: rgba(255, 152, 0, 0.25); color: #ff9800; }

.otd-matchup {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.otd-score {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.otd-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 620px) {
    .collapsible-section {
        width: 100%;
    }
    .on-this-day {
        border-radius: 10px;
        padding: 0.9rem 1rem;
    }
}


.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 197, 47, 0.12);
    border: 1.5px solid rgba(255, 197, 47, 0.5);
    border-radius: 20px;
    color: #FFC52F;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.share-btn:hover {
    background: rgba(255, 197, 47, 0.25);
    border-color: #FFC52F;
    transform: translateY(-1px);
}

.share-icon {
    font-size: 1rem;
}

.copy-success {
    background: rgba(32, 201, 151, 0.2) !important;
    border-color: #20c997 !important;
    color: #20c997 !important;
}

.schedule-section {
    background: rgba(18, 40, 75, 0.8);
    margin: 0.25rem auto;
    width: 572px;
    box-sizing: border-box;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid #FFC52F;
    border-radius: 10px;
    overflow-x: auto;
}

.schedule-section h3 {
    margin-top: 0;
    color: #FFC52F;
    text-align: center;
    margin-bottom: 1.5rem;
}

.schedule-grid {
    display: grid;
    gap: 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FFC52F #12284B;
}

.schedule-grid::-webkit-scrollbar,
#card-ties .record-list::-webkit-scrollbar {
    width: 8px;
}

.schedule-grid::-webkit-scrollbar-track,
#card-ties .record-list::-webkit-scrollbar-track {
    background: #12284B;
    border-radius: 4px;
}

.schedule-grid::-webkit-scrollbar-thumb,
#card-ties .record-list::-webkit-scrollbar-thumb {
    background: #FFC52F;
    border-radius: 4px;
    border: 1px solid #12284B;
}

.schedule-grid::-webkit-scrollbar-thumb:hover,
#card-ties .record-list::-webkit-scrollbar-thumb:hover {
    background: #e0a820;
}

.schedule-provider-bar {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-provider-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #FFC52F;
}

.schedule-provider-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.schedule-provider-name {
    font-weight: 600;
    color: #FFC52F;
    margin-right: auto;
}

.schedule-provider-name.schedule-provider-none {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-weight: 400;
}

.schedule-provider-change {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 197, 47, 0.4);
    background: rgba(255, 197, 47, 0.08);
    color: #FFC52F;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.schedule-provider-change:hover {
    background: rgba(255, 197, 47, 0.18);
    border-color: #FFC52F;
}

.provider-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.provider-dialog {
    position: relative;
    background: #1a3660;
    border: 1px solid rgba(255, 197, 47, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    width: 90%;
    max-width: 460px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: galleryIn 0.2s ease-out;
}

.provider-dialog .gallery-header {
    padding: 0 0 0.8rem;
}

.provider-dialog .watch-channels {
    gap: 0;
}

.provider-dialog .watch-provider-picker {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.game-item.completed.win {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.game-item.completed.loss {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.game-item.live {
    border-left-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.game-item.next {
    border-left-color: #FFC52F;
    background: rgba(255, 197, 47, 0.15);
    box-shadow: 0 0 10px rgba(255, 197, 47, 0.3);
}

.game-item.highlight {
    outline: 2px solid #FFC52F;
    outline-offset: -2px;
    box-shadow: 0 0 14px rgba(255, 197, 47, 0.55);
    animation: pulse 1.5s 2;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.game-details {
    flex: 1;
}

.game-opponent {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.game-date {
    font-size: 0.85rem;
    opacity: 0.8;
    color: #FFC52F;
}

/* All-time head-to-head note on current-season schedule items */
.game-h2h {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    margin-top: 0.15rem;
}

.game-h2h:hover {
    color: #FFC52F;
    text-decoration: underline;
}

.game-network {
    opacity: 0.7;
    font-style: italic;
}

.game-channum {
    font-style: normal;
    font-weight: 600;
    opacity: 1;
    color: #FFC52F;
    background: rgba(255, 197, 47, 0.14);
    padding: 0.05rem 0.35rem;
    border-radius: 0.3rem;
    margin-left: 0.2rem;
    white-space: nowrap;
}

.game-channel {
    font-size: 0.8rem;
    margin-top: 0.15rem;
    line-height: 1.3;
}

.game-channel-watchable {
    cursor: pointer;
    transition: color 0.15s;
}

.game-channel-watchable:hover {
    color: #FFC52F;
}

.game-channel-watchable:hover .game-network {
    opacity: 1;
}

.watch-service-area-picker {
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.watch-service-area-picker[hidden] {
    display: none;
}

.watch-service-area-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.watch-service-area-select {
    font-size: 0.85rem;
    padding: 0.4rem 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.watch-service-area-select:hover {
    border-color: rgba(255, 197, 47, 0.5);
}

.watch-service-area-select:focus {
    outline: none;
    border-color: #FFC52F;
    background: rgba(255, 197, 47, 0.08);
}

.watch-service-area-select option {
    color: #15161e;
    background: #fff;
}

.game-result {
    text-align: center;
    width: 100%;
    margin-top: 0.5rem;
}

.game-score {
    font-weight: bold;
    font-size: 1.1rem;
}

.game-score.win {
    color: #4CAF50;
}

.game-score.loss {
    color: #f44336;
}

.game-score.live {
    color: #ff0000;
}

.game-score a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

.game-status {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.2rem;
}

.live-indicator-small {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 0.3rem;
    animation: blink 1s infinite;
}

.countdown-small {
    font-size: 0.8rem;
    color: #FFC52F;
    font-weight: bold;
    margin-top: 0.2rem;
}

.last-play {
    font-size: 0.75rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.4rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    white-space: pre-line;
    line-height: 1.3;
    border-left: 2px solid #FFC52F;
}

.last-play strong {
    color: #FFC52F;
    font-weight: bold;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .answer {
        font-size: 2.5rem;
        margin: 1rem 0;
    }
    
    .container {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .schedule-section {
        width: 100%;
        padding: 1rem;
        margin: 1rem 0;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .share-section {
        width: 100%;
    }

    .schedule-grid {
        max-height: 400px;
    }

    .season-selector {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        width: 100%;
    }

    .season-selector #season-first,
    .season-selector #season-prev10,
    .season-selector #season-prev  { order: 1; }
    .season-selector #season-label { order: 2; width: 100%; }
    .season-selector #season-next,
    .season-selector #season-next10,
    .season-selector #season-last  { order: 3; }

    .schedule-section h3 {
        margin-bottom: 1.5rem;
    }
}

.site-footer {
    position: sticky;
    bottom: 0;
    margin-top: 1.5rem;
    padding: 0.4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(to top, rgba(18, 40, 75, 0.98), rgba(18, 40, 75, 0.92));
    backdrop-filter: blur(8px);
    z-index: 50;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 100%;
    max-width: 960px;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.footer-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.footer-nav-link .mdi {
    font-size: 0.95rem;
}

.footer-share-wrap {
    position: relative;
    display: inline-flex;
}

.footer-share-trigger {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

.footer-share-caret {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.footer-share-trigger[aria-expanded="true"] .footer-share-caret {
    transform: rotate(180deg);
}

.footer-share {
    position: absolute;
    bottom: calc(100% + 0.4rem);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 0.35rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 197, 47, 0.25);
    background: #1a3558;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    gap: 0.1rem;
    z-index: 60;
}

.footer-share[hidden] {
    display: none;
}

.footer-share-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border: none;
    border-radius: 6px;
    background: none;
    font: inherit;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.footer-share-item:hover {
    background: rgba(255, 197, 47, 0.15);
    color: #fff;
}

.footer-share-item .mdi {
    font-size: 1rem;
    color: #FFC52F;
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.35);
    max-width: 640px;
    margin: 0;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.72rem;
    transition: color 0.2s;
}

.github-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.github-link .mdi {
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .footer-nav {
        gap: 0.05rem;
    }

    .footer-nav-link {
        padding: 0.3rem 0.45rem;
        font-size: 0.75rem;
    }

    .footer-share {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Photo gallery button */
.gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 197, 47, 0.12);
    border: 1.5px solid rgba(255, 197, 47, 0.5);
    border-radius: 20px;
    color: #FFC52F;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
}

.gallery-btn:hover {
    background: rgba(255, 197, 47, 0.25);
    border-color: #FFC52F;
    transform: translateY(-1px);
}

.gallery-btn .mdi {
    font-size: 1rem;
}

/* Modal overlay */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.gallery-dialog {
    position: relative;
    background: #1a3558;
    border: 2px solid #FFC52F;
    border-radius: 12px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: galleryIn 0.2s ease-out;
}

@keyframes galleryIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 197, 47, 0.3);
    flex-shrink: 0;
}

.gallery-title {
    margin: 0;
    font-size: 1.2rem;
    color: #FFC52F;
}

.gallery-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
}

.gallery-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #FFC52F #1a3558;
}

.gallery-grid::-webkit-scrollbar { width: 8px; }
.gallery-grid::-webkit-scrollbar-track { background: #1a3558; border-radius: 4px; }
.gallery-grid::-webkit-scrollbar-thumb { background: #FFC52F; border-radius: 4px; }

.gallery-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 197, 47, 0.15);
    transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
    border-color: rgba(255, 197, 47, 0.5);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
}

.gallery-item-info {
    padding: 0.6rem 0.75rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gallery-caption {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.gallery-license {
    font-size: 0.72rem;
    color: rgba(255, 197, 47, 0.7);
    margin-top: auto;
}

.gallery-license a {
    color: rgba(255, 197, 47, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.gallery-license a:hover {
    color: #FFC52F;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
    animation: lightboxIn 0.18s ease-out;
}

.lightbox[hidden] {
    display: none;
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
    animation: lightboxImgIn 0.18s ease-out;
}

@keyframes lightboxImgIn {
    from { transform: scale(0.96); }
    to   { transform: scale(1); }
}

.lightbox-info {
    margin-top: 1rem;
    text-align: center;
    max-width: 640px;
    pointer-events: none;
}

.lightbox-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.lightbox-license {
    font-size: 0.75rem;
    color: rgba(255, 197, 47, 0.7);
    pointer-events: auto;
}

.lightbox-license a {
    color: rgba(255, 197, 47, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lightbox-license a:hover {
    color: #FFC52F;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 10;
}

.lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.lightbox-nav.hidden {
    visibility: hidden;
    pointer-events: none;
}

.lightbox-nav-prev { left: 1rem; }
.lightbox-nav-next { right: 1rem; }

@media (max-width: 600px) {
    .gallery-dialog {
        max-height: 95vh;
    }

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

/* --- Records & Superlatives page --- */

.records-container {
    max-width: 900px;
}

.records-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #FFC52F;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.records-back:hover {
    text-decoration: underline;
}

.records-title {
    margin-bottom: 0.25rem;
}

.records-subtitle {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.record-card {
    background: rgba(18, 40, 75, 0.8);
    border: 2px solid #FFC52F;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.record-card-focus {
    box-shadow: 0 0 24px rgba(255, 197, 47, 0.55);
}

.record-card-title {
    color: #FFC52F;
    font-size: 1.25rem;
    margin: 0 0 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.record-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    margin: 0 0 0.9rem;
}

.record-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex: 1;
}

.record-entry {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.6rem;
    align-items: baseline;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.record-entry:last-child {
    border-bottom: none;
}

.record-entry-main {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    color: white;
}

.record-entry-sub {
    color: rgba(255, 255, 255, 0.85);
}

.record-entry-detail {
    grid-column: 2;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.record-entry-top .record-entry-main {
    color: #FFC52F;
    font-size: 1.6rem;
}

.record-entry-top .record-entry-sub {
    font-size: 1.1rem;
    font-weight: 600;
}

.record-entry a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 197, 47, 0.45);
    text-underline-offset: 2px;
}

.record-entry a:hover {
    color: #FFC52F;
    text-decoration-color: #FFC52F;
}

.record-empty {
    color: rgba(255, 255, 255, 0.7);
    flex: 1;
}

/* The ties card lists every tie (39 and counting) — scroll it instead of
   letting it stretch the whole grid row. Scrollbar matches .schedule-grid
   (shared ::-webkit-scrollbar rules above). */
#card-ties .record-list {
    max-height: 21rem;
    overflow-y: auto;
    padding-right: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: #FFC52F #12284B;
}

.record-share {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.record-share-btn {
    padding: 0.35rem 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
}

/* Pill styling comes from .share-btn on the same element. */
.records-link {
    margin: 0.75rem 0.25rem 0;
}

/* --- Head-to-Head page --- */

.h2h-focus-card {
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

.h2h-focus-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}

.h2h-focus-close:hover {
    background: rgba(255, 197, 47, 0.2);
    color: #FFC52F;
}

.h2h-focus-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 197, 47, 0.6);
}

.h2h-record {
    color: #FFC52F;
    font-size: 2.6rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    margin: 0.1rem 0 0.35rem;
}

.h2h-stats {
    margin-bottom: 1rem;
}

.h2h-stat {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    column-gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.h2h-stat:last-child {
    border-bottom: none;
}

.h2h-stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.h2h-stat a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 197, 47, 0.45);
    text-underline-offset: 2px;
}

.h2h-stat a:hover {
    color: #FFC52F;
    text-decoration-color: #FFC52F;
}

/* --- Head-to-Head breakdown card --- */

.h2h-breakdown {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 197, 47, 0.25);
    padding-top: 0.75rem;
}

.h2h-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.5rem 1.25rem;
    margin-bottom: 0.75rem;
}

.h2h-breakdown-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.6rem;
    background: rgba(18, 40, 75, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.h2h-breakdown-val {
    color: white;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.h2h-breakdown-meta {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    font-size: 0.85rem;
}

.h2h-breakdown-extra {
    margin-bottom: 0.75rem;
}

.h2h-breakdown-section {
    margin-top: 0.5rem;
}

.h2h-breakdown-heading {
    color: #FFC52F;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.h2h-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.h2h-breakdown-table td {
    padding: 0.3rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.h2h-breakdown-table tbody tr:last-child td {
    border-bottom: none;
}

/* Clickable table rows */
.h2h-row {
    cursor: pointer;
    transition: background 0.15s;
}

.h2h-row:hover,
.h2h-row:focus-visible {
    background: rgba(255, 197, 47, 0.12);
    outline: none;
}

.h2h-row:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(255, 197, 47, 0.6);
}

.h2h-row-name {
    font-weight: 600;
}

@media (max-width: 600px) {
    .h2h-breakdown-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem 0.6rem;
    }

    .h2h-breakdown-stat {
        padding: 0.3rem 0.45rem;
    }
}

.h2h-controls {
    margin-bottom: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    /* The centered page layout sizes the container to its widest child (the
       table); span it so the controls center as one row instead of
       shrink-wrapping into a ragged stack. */
    width: 100%;
    box-sizing: border-box;
}

.h2h-select {
    padding: 0.5rem 0.9rem;
    background: rgba(18, 40, 75, 0.8);
    border: 1.5px solid rgba(255, 197, 47, 0.5);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}

.h2h-select:focus {
    outline: none;
    border-color: #FFC52F;
}

.h2h-select option {
    background: #12284B;
}

.h2h-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.h2h-check input {
    accent-color: #FFC52F;
}

.h2h-count {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
    min-height: 1em;
}

.h2h-filter {
    width: 100%;
    max-width: 12rem;
    box-sizing: border-box;
    padding: 0.5rem 0.9rem;
    background: rgba(18, 40, 75, 0.8);
    border: 1.5px solid rgba(255, 197, 47, 0.5);
    border-radius: 20px;
    color: white;
    font-size: 0.95rem;
}

.h2h-filter::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.h2h-filter:focus {
    outline: none;
    border-color: #FFC52F;
}

.h2h-table-wrap {
    overflow-x: auto;
}

.h2h-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(18, 40, 75, 0.8);
    border: 2px solid #FFC52F;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
}

.h2h-table th,
.h2h-table td {
    padding: 0.45rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.h2h-table th {
    color: #FFC52F;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.h2h-table tbody tr:last-child td {
    border-bottom: none;
}

.h2h-table tbody tr:hover {
    background: rgba(255, 197, 47, 0.08);
}

.h2h-table td a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.h2h-table td a:hover {
    color: #FFC52F;
}

.h2h-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 600px) {
    /* Tighten the table so it fits a phone viewport instead of overflowing
       into a horizontal scroll (opponent names wrap; numbers stay nowrap). */
    .h2h-table th,
    .h2h-table td {
        padding: 0.4rem 0.45rem;
    }

    .h2h-table td {
        font-size: 0.9rem;
    }

    .h2h-table th {
        font-size: 0.72rem;
    }

    .h2h-filter {
        max-width: 100%;
    }
}


/* --- Franchise history --- */

.history-spark {
    display: block;
    max-width: 600px;
    margin: 0.25rem auto 0.5rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.history-spark:hover {
    opacity: 1;
}

.history-spark svg {
    width: 100%;
    height: auto;
    display: block;
}

.history-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.history-toggle {
    display: inline-flex;
    border: 1.5px solid rgba(255, 197, 47, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

.history-toggle-btn {
    padding: 0.4rem 1.1rem;
    background: transparent;
    border: none;
    color: #FFC52F;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.history-toggle-btn.history-toggle-active {
    background: rgba(255, 197, 47, 0.25);
    color: white;
}

.history-chart {
    position: relative;
    background: rgba(18, 40, 75, 0.8);
    border: 2px solid #FFC52F;
    border-radius: 10px;
    padding: 0.75rem;
}

.history-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.history-tooltip {
    position: absolute;
    pointer-events: none;
    background: #0d1d38;
    border: 1px solid #FFC52F;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    color: white;
    white-space: nowrap;
    z-index: 5;
}

.history-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0.75rem 0 1rem;
}

.history-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-glyph {
    font-size: 14px;
    line-height: 1;
    text-align: center;
    width: 12px;
    display: inline-block;
}

.legend-wswin {
    color: #FFC52F;
    text-shadow: 0 0 1px #0d1d38;
}

.legend-wsapp {
    color: #FFD66B;
}

.legend-lcs {
    color: #7FC4FF;
}

.legend-division {
    color: #9BD7A3;
}

.legend-wildcard {
    color: #C9A8E8;
}

#history-share {
    justify-content: center;
}

.history-section-title {
    text-align: center;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.season-table,
.sortable-table {
    font-variant-numeric: tabular-nums;
}

.sortable-table thead th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.sortable-table thead th:hover {
    color: white;
    background: rgba(255, 197, 47, 0.12);
}

.season-table tbody tr {
    cursor: pointer;
}

.season-table .pos {
    color: #9BD7A3;
}

.season-table .neg {
    color: #FF6B6B;
}


/* --- Coach photos & interim markers --- */

.coach-photo-cell {
    width: 44px;
}

.coach-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1.5px solid rgba(255, 197, 47, 0.5);
}

.coach-photo-none {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
}

.coach-interim {
    color: #FFC52F;
    margin-left: 0.15rem;
}

@media (max-width: 600px) {
    .coaches-table .coach-photo-cell {
        display: none;
    }
    .coaches-table thead th:first-child {
        display: none;
    }
}

/* ── Watch modal ──────────────────────────────────────────────── */
.watch-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.watch-dialog {
    position: relative;
    background: #1a3660;
    border: 1px solid rgba(255, 197, 47, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
    color: white;
}

.watch-game-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 1.25rem;
    text-align: center;
}

.watch-channels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.watch-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFC52F;
    margin: 0 0 0.6rem;
}

.watch-channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.watch-channel-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 0.15s;
}

.watch-channel-item:hover {
    border-color: rgba(255, 197, 47, 0.4);
}

.watch-channel-name {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.watch-channel-name a {
    color: inherit;
    text-decoration: none;
}

.watch-channel-name a:hover {
    color: #FFC52F;
}

.watch-channel-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.watch-providers {
    font-size: 0.75rem;
    color: rgba(255, 197, 47, 0.8);
    margin-top: 0.15rem;
}

.watch-no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    padding: 1rem 0;
}

.watch-disclaimer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.watch-provider-picker {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.watch-provider-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFC52F;
}

.watch-provider-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 197, 47, 0.35);
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    padding: 0.55rem 0.8rem;
    transition: border-color 0.15s, background 0.15s;
}

.watch-provider-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.watch-provider-input:focus {
    outline: none;
    border-color: #FFC52F;
    background: rgba(255, 255, 255, 0.12);
}

.watch-provider-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.watch-provider-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.watch-provider-input-wrap .watch-provider-input {
    padding-right: 2.2rem;
}

.watch-provider-clear {
    position: absolute;
    right: 0.4rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.watch-provider-clear:hover {
    color: #FFC52F;
    background: rgba(255, 197, 47, 0.15);
}

.watch-provider-input-wrap datalist {
    display: none;
}

.watch-channel-num {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: 0.2rem;
    font-size: 0.85rem;
}

.watch-channel-num-label {
    color: rgba(255, 255, 255, 0.55);
}

.watch-channel-num-value {
    color: #FFC52F;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.watch-channel-num-none {
    font-style: italic;
}

/* ── Line score modal ── */
.linescore-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.linescore-dialog {
    position: relative;
    z-index: 1;
    background: #1a3a6b;
    border: 1px solid rgba(255, 197, 47, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    width: min(96vw, 720px);
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.linescore-body {
    overflow-x: auto;
}

.linescore-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.linescore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.linescore-table thead th {
    background: rgba(255, 197, 47, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.6rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 197, 47, 0.25);
}

.linescore-table td {
    padding: 0.5rem 0.6rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.linescore-table tbody tr:last-child td {
    border-bottom: none;
}

.linescore-team-col {
    text-align: left !important;
    font-weight: 700;
    min-width: 90px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.linescore-rhe {
    border-left: 1px solid rgba(255, 197, 47, 0.2) !important;
    font-weight: 600;
}

.linescore-total {
    color: #FFC52F !important;
    font-weight: 800 !important;
}

.linescore-brewers td {
    background: rgba(255, 197, 47, 0.05);
}

/* Score cell clickable indicator */
.linescore-trigger {
    cursor: pointer;
    position: relative;
}

.linescore-trigger::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: rgba(255, 197, 47, 0.6);
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

.linescore-trigger:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.linescore-box-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #FFC52F;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.1rem;
    border-bottom: 1px solid rgba(255, 197, 47, 0.4);
    transition: border-color 0.15s, color 0.15s;
    align-self: flex-start;
}

.linescore-box-link:hover {
    color: #FFD45E;
    border-bottom-color: #FFD45E;
}

.linescore-pitchers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0.6rem 0 0.1rem;
    font-size: 0.82rem;
}

.linescore-pitcher {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
}

.linescore-pitcher-label {
    font-weight: 700;
    color: #FFC52F;
    letter-spacing: 0.04em;
    min-width: 1.5em;
}

.linescore-pitcher-name {
    color: rgba(255, 255, 255, 0.85);
}

/* ── Record standings link ── */
.record-standings-link {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 197, 47, 0.6);
    transition: border-color 0.15s, color 0.15s;
}

.record-standings-link:hover {
    border-bottom-color: #FFC52F;
    color: #FFC52F;
}

/* ── Standings modal ── */
.standings-dialog {
    position: relative;
    z-index: 1;
    background: #1a3a6b;
    border: 1px solid rgba(255, 197, 47, 0.3);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: galleryIn 0.2s ease-out;
    width: min(96vw, 680px);
    max-height: 88vh;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.standings-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    flex: 1;
    min-height: 0;
    padding: 0 1rem;
}

.standings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 197, 47, 0.2);
    flex-shrink: 0;
}

.standings-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.6rem 0.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.standings-tab:hover {
    color: rgba(255, 255, 255, 0.85);
}

.standings-tab-active {
    color: #FFC52F;
    border-bottom-color: #FFC52F;
}

.standings-panel {
    overflow-y: auto;
    max-height: calc(88vh - 130px);
    padding: 0.5rem 0 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #FFC52F #1a3558;
}

.standings-panel::-webkit-scrollbar { width: 6px; }
.standings-panel::-webkit-scrollbar-track { background: #1a3558; border-radius: 3px; }
.standings-panel::-webkit-scrollbar-thumb { background: #FFC52F; border-radius: 3px; }

.standings-league-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.standings-league-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFC52F;
    padding: 0.15rem 0.5rem;
    border-left: 2px solid #FFC52F;
    margin-bottom: 0.1rem;
}

.standings-block {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.standings-div-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.6rem 0.1rem;
}

.standings-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    min-width: 320px;
}

.standings-table th {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.standings-table td {
    padding: 0.32rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.standings-num {
    text-align: right;
}

.standings-team-cell {
    text-align: left;
    white-space: nowrap;
    padding-left: 0.6rem !important;
    min-width: 90px;
}

.standings-brewers td {
    color: #FFC52F;
    font-weight: 700;
}

.standings-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

.standings-tag-div {
    background: #FFC52F;
    color: #12284B;
}

.standings-tag-wc {
    background: rgba(255, 197, 47, 0.25);
    color: #FFC52F;
    border: 1px solid rgba(255, 197, 47, 0.5);
}


@media (max-width: 480px) {
    .standings-tab {
        font-size: 0.7rem;
        padding: 0.5rem 0.1rem;
    }
}

/* ── Box score page (/game/:gid) ── */

#boxscore-root {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.boxscore-header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 197, 47, 0.2);
}

.boxscore-navrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.boxscore-navbtn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.boxscore-navbtn:hover {
    background: rgba(255, 197, 47, 0.15);
    border-color: rgba(255, 197, 47, 0.5);
    color: #FFC52F;
}

.boxscore-navbtn-empty {
    visibility: hidden;
}

.boxscore-close {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    z-index: 1;
}

.boxscore-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
}

.boxscore-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 1.3rem;
    font-weight: 700;
}

/* On the box score page the WP/LP/S line sits between centered sections;
   center it there (the season-page line score modal keeps it left-aligned). */
#boxscore-root .linescore-pitchers {
    justify-content: center;
}

.boxscore-team {
    color: rgba(255, 255, 255, 0.95);
}

.boxscore-score {
    color: #FFC52F;
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.boxscore-sep {
    color: rgba(255, 255, 255, 0.4);
}

.boxscore-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.boxscore-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.1rem;
}

.boxscore-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFC52F;
    margin: 0.25rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255, 197, 47, 0.2);
}

.boxscore-tables {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.boxscore-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.boxscore-table thead th {
    background: rgba(255, 197, 47, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.55rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 197, 47, 0.22);
}

.boxscore-table thead th:first-child {
    text-align: left;
}

.boxscore-table td {
    padding: 0.38rem 0.55rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
}

.boxscore-table td:first-child {
    text-align: left;
}

.boxscore-brewers td:first-child {
    color: #FFC52F;
    font-weight: 600;
}

.boxscore-player {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92) !important;
    white-space: normal;
    min-width: 110px;
}

.boxscore-totals td {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(255, 197, 47, 0.25);
    border-bottom: none;
    padding-top: 0.45rem;
}

.boxscore-totals td:first-child {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6) !important;
}

.boxscore-brewers.boxscore-totals td:first-child {
    color: #FFC52F !important;
}

.boxscore-dec {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    color: #12284B;
    background: #FFC52F;
    border-radius: 3px;
    padding: 0 0.25rem;
    margin-left: 0.3rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

.boxscore-umps {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.boxscore-umps-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-right: 0.3rem;
}

.boxscore-ump-pos {
    font-weight: 700;
    color: rgba(255, 197, 47, 0.75);
    font-size: 0.72rem;
}

.boxscore-scoring td {
    text-align: left;
}

.boxscore-scoring-inn {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
    width: 2.6rem;
    white-space: nowrap;
}

.boxscore-scoring-inn .mdi {
    color: rgba(255, 197, 47, 0.85);
    font-size: 0.9rem;
    margin-right: 0.1rem;
    vertical-align: -0.08em;
}

.boxscore-scoring-desc {
    white-space: normal;
    min-width: 200px;
}

.boxscore-scoring-score {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.boxscore-scoring-brewers .boxscore-scoring-desc {
    color: #FFC52F;
}

.boxscore-notes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    padding: 0.2rem 0.1rem 0;
}

.boxscore-note-ph {
    font-style: italic;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.boxscore-note-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: rgba(255, 197, 47, 0.8);
}

.boxscore-teamtabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 197, 47, 0.25);
}

.boxscore-teamtab {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.boxscore-teamtab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.boxscore-teamtab.active {
    background: rgba(255, 197, 47, 0.15);
    border-color: rgba(255, 197, 47, 0.4);
    color: #FFC52F;
}

.boxscore-teampanel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* display:flex above would defeat the hidden attribute's UA display:none,
   leaving both team panels stacked and the tabs seemingly dead. */
.boxscore-teampanel[hidden] {
    display: none;
}

.boxscore-subtabs {
    display: flex;
    gap: 0.4rem;
}

.boxscore-subtab {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.9rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.boxscore-subtab:hover {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.boxscore-subtab.active {
    background: rgba(255, 197, 47, 0.15);
    border-color: rgba(255, 197, 47, 0.5);
    color: #FFC52F;
}

@media (max-width: 540px) {
    .boxscore-matchup {
        font-size: 1.1rem;
    }
    .boxscore-teamtab {
        font-size: 0.78rem;
        padding: 0.45rem 0.4rem;
    }
    .boxscore-navrow {
        padding: 0 1.9rem;
    }
    .boxscore-navbtn {
        width: 1.7rem;
        height: 1.7rem;
        font-size: 1.1rem;
    }
    .boxscore-score {
        font-size: 1.25rem;
    }
    .boxscore-table {
        font-size: 0.78rem;
    }
    .boxscore-table th,
    .boxscore-table td {
        padding: 0.32rem 0.4rem;
    }
    .boxscore-player {
        min-width: 90px;
    }
}

