/* =========================================================
   Base Layout
   ========================================================= */
html {
    font-size: 14px;
    min-height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
}

main {
    padding-bottom: 2rem;
}

.stats-scroll-wrap {
    position: relative;
    z-index: 2;
}

.boxscore-notes {
    display: block;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    .boxscore-notes {
        margin-bottom: 6rem;
        padding-bottom: 3rem;
    }
}

.footer {
    background-color: #fff;
    position: relative;
    z-index: 3;
    margin-top: 2rem;
    clear: both;
}

    .footer .container > div {
        width: 100%;
    }

@media (min-width: 768px) {
    .footer .container > div {
        width: auto;
    }
}

.table-responsive {
    border-radius: 0.375rem;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* =========================================================
   Animations
   ========================================================= */
.live-pulse {
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.75;
        transform: scale(1.04);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================================
   Navbar / Dropdowns
   ========================================================= */
.leaderboard-dd:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: .75rem 0 1rem;
        border-top: 1px solid #e9ecef;
    }

    .navbar-nav .nav-link {
        min-height: 52px;
        display: flex;
        align-items: center;
        padding: .9rem 1rem;
        font-size: 1.05rem;
        border-bottom: 1px solid rgba(0,0,0,.05);
    }

    .navbar-nav .dropdown-menu {
        border: 0;
        margin: 0;
        padding: 0 0 .5rem 1rem;
        background: transparent;
    }

    .navbar-nav .dropdown-item {
        padding: .75rem 1rem;
        font-size: .98rem;
    }

    .navbar-toggler {
        padding: .6rem .8rem;
        border-width: 2px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

        .navbar-brand img {
            max-height: 34px;
        }
}
/* =========================================================
   Games/Box Score
   ========================================================= */

@media (max-width: 768px) {
    .mobile-hide-scorecard {
        display: none !important;
    }
}

.bpw-scoreboard {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    max-width: 100%;
}

.bpw-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    column-gap: .75rem;
}

.bpw-team-info {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

    .bpw-team-info span {
        white-space: normal;
    }

.team-logo-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.bpw-team-score {
    text-align: right;
    font-weight: 700;
}




/* =========================================================
   Team Logos / Badges
   ========================================================= */
.team-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

    .team-badge img {
        flex-shrink: 0;
    }

    .team-badge span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.team-logo {
    height: 22px;
    width: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.team-logo-sm {
    height: 18px;
    width: 18px;
    flex: 0 0 18px;
}

.team-logo-md {
    height: 28px;
    width: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.team-logo-lg {
    height: 48px;
    width: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.team-header-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* =========================================================
   Player Details
   ========================================================= */

.player-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.player-stat-chip {
    min-width: 76px;
    padding: .5rem .65rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fff;
    text-align: center;
    line-height: 1.15;
}

    .player-stat-chip span {
        display: block;
        font-size: .72rem;
        color: #6c757d;
        font-weight: 700;
        text-transform: uppercase;
    }

    .player-stat-chip strong {
        display: block;
        font-size: 1rem;
        margin-top: .15rem;
    }

.player-stat-panel {
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .75rem;
    background: var(--bs-light-bg-subtle, #f8f9fa);
    margin-bottom: 1rem;
}

    .player-stat-panel .player-stat-strip {
        margin-bottom: 0;
    }






/* =========================================================
   Pro / Premium Stats
   ========================================================= */
.pro-stat {
    background-color: rgba(13, 110, 253, 0.04) !important;
}

.pro-start,
.pro-stat-start {
    border-left: 3px solid rgba(13, 110, 253, 0.35);
}

.pro-col {
    background-color: rgba(13, 110, 253, 0.025);
}

th.pro-col {
    background-color: rgba(13, 110, 253, 0.06);
}

td.pro-col {
    background-color: transparent;
}
/* =========================================================
   Sticky Scroll Tables
   Used by:
   - Team Stats
   - Team Summary
   - Player Batting Stats
   - Player Pitching Stats
   ========================================================= */

.stats-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin-bottom: 2rem;
}

/* Team Stats / Team Summary tables */
.team-stats-table {
    width: auto;
    table-layout: auto;
    white-space: nowrap;
}

    .team-stats-table th,
    .team-stats-table td {
        vertical-align: middle;
    }

        .team-stats-table th:first-child,
        .team-stats-table td:first-child {
            position: sticky;
            left: 0;
            z-index: 10;
            min-width: 210px;
            width: 210px;
            max-width: 210px;
            background-color: #fff;
            white-space: nowrap;
        }

    .team-stats-table thead th:first-child {
        z-index: 30;
    }

    .team-stats-table th:not(:first-child),
    .team-stats-table td:not(:first-child) {
        width: 52px;
        min-width: 52px;
        text-align: right;
        padding-left: .45rem;
        padding-right: .45rem;
    }
/* Player Fielding table */
.fielding-stats-table {
    width: max-content;
    min-width: 900px;
    table-layout: fixed;
    white-space: nowrap;
}

    .fielding-stats-table th:first-child,
    .fielding-stats-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #fff;
        min-width: 170px;
        width: 170px;
        max-width: 170px;
        white-space: normal;
    }

    .fielding-stats-table thead th:first-child {
        z-index: 4;
    }

    .fielding-stats-table td:first-child a {
        display: inline-block;
    }

    .fielding-stats-table th:nth-child(2),
    .fielding-stats-table td:nth-child(2) {
        min-width: 46px;
        width: 46px;
        max-width: 46px;
        text-align: center;
    }

    .fielding-stats-table th:not(:first-child):not(:nth-child(2)),
    .fielding-stats-table td:not(:first-child):not(:nth-child(2)) {
        min-width: 52px;
        width: 52px;
        max-width: 52px;
        text-align: right;
        padding-left: .35rem;
        padding-right: .35rem;
        white-space: nowrap;
    }
/* Player Detail Fielding Game Log table */
.player-fielding-log-table {
    min-width: 1180px;
    table-layout: fixed;
    white-space: nowrap;
}

    /* Date */
    .player-fielding-log-table th:nth-child(1),
    .player-fielding-log-table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #fff;
        min-width: 92px;
        width: 92px;
        max-width: 92px;
        text-align: left;
    }

    /* Team */
    .player-fielding-log-table th:nth-child(2),
    .player-fielding-log-table td:nth-child(2) {
        min-width: 190px;
        width: 190px;
        max-width: 190px;
        text-align: left;
        padding-left: .65rem;
        padding-right: .9rem;
    }

    /* Opponent */
    .player-fielding-log-table th:nth-child(3),
    .player-fielding-log-table td:nth-child(3) {
        min-width: 190px;
        width: 190px;
        max-width: 190px;
        text-align: left;
        padding-left: .65rem;
        padding-right: .9rem;
    }

    /* Pos */
    .player-fielding-log-table th:nth-child(4),
    .player-fielding-log-table td:nth-child(4) {
        min-width: 62px;
        width: 62px;
        max-width: 62px;
        text-align: center;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    /* Stat columns */
    .player-fielding-log-table th:nth-child(n+5),
    .player-fielding-log-table td:nth-child(n+5) {
        min-width: 48px;
        width: 48px;
        max-width: 48px;
        text-align: right;
        padding-left: .3rem;
        padding-right: .3rem;
    }

    .player-fielding-log-table.table-striped tbody tr:nth-of-type(odd) td:first-child {
        background-color: #f2f2f2;
    }

    .player-fielding-log-table.table-striped tbody tr:nth-of-type(even) td:first-child {
        background-color: #fff;
    }

    .player-fielding-log-table thead th {
        position: sticky;
        top: 0;
        z-index: 20;
        background-color: #fff;
    }

        .player-fielding-log-table thead th:first-child {
            z-index: 30;
        }



/* Player Batting table */
.batting-stats-table {
    min-width: 1250px;
    white-space: nowrap;
}

    .batting-stats-table th:first-child,
    .batting-stats-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #fff;
        min-width: 90px;
        max-width: 90px;
        white-space: normal;
    }

    .batting-stats-table thead th:first-child {
        z-index: 4;
    }

    .batting-stats-table td:first-child a {
        display: inline-block;
    }

/* Player Pitching table */
.pitching-stats-table {
    min-width: 1200px;
    white-space: nowrap;
}

    .pitching-stats-table th:first-child,
    .pitching-stats-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #fff;
        min-width: 155px;
        max-width: 155px;
        white-space: normal;
    }

    .pitching-stats-table thead th:first-child {
        z-index: 4;
    }

    .pitching-stats-table td:first-child a {
        display: inline-block;
    }

    /* Batting/Pitching numeric columns */
    .batting-stats-table th:not(:first-child),
    .batting-stats-table td:not(:first-child),
    .pitching-stats-table th:not(:first-child),
    .pitching-stats-table td:not(:first-child) {
        min-width: 58px;
        width: 58px;
        text-align: right;
        padding-left: .55rem;
        padding-right: .55rem;
        white-space: nowrap;
    }

    .team-stats-table.table-striped tbody tr:nth-of-type(odd) td:first-child,
    .batting-stats-table.table-striped tbody tr:nth-of-type(odd) td:first-child,
    .pitching-stats-table.table-striped tbody tr:nth-of-type(odd) td:first-child,
    .fielding-stats-table.table-striped tbody tr:nth-of-type(odd) td:first-child {
        background-color: #f2f2f2;
    }

    .team-stats-table.table-striped tbody tr:nth-of-type(even) td:first-child,
    .batting-stats-table.table-striped tbody tr:nth-of-type(even) td:first-child,
    .pitching-stats-table.table-striped tbody tr:nth-of-type(even) td:first-child,
    .fielding-stats-table.table-striped tbody tr:nth-of-type(even) td:first-child {
        background-color: #fff;
    }

    .team-stats-table thead th,
    .batting-stats-table thead th,
    .pitching-stats-table thead th,
    .fielding-stats-table thead th {
        position: sticky;
        top: 0;
        z-index: 20;
        background-color: #fff;
    }
/* Desktop table width */
@media (min-width: 769px) {
    .team-stats-table {
        min-width: 760px;
    }
}

/* Mobile table tightening */
@media (max-width: 768px) {
    .team-stats-table th:first-child,
    .team-stats-table td:first-child {
        min-width: 84px !important;
        width: 84px !important;
        max-width: 84px !important;
    }

    .team-summary-team-name {
        font-size: .78rem;
    }

    .team-stats-table .team-logo-sm {
        width: 16px;
        height: 16px;
    }

    .batting-stats-table,
    .pitching-stats-table {
        width: max-content;
        min-width: unset;
        table-layout: auto;
    }

        .team-stats-table th,
        .team-stats-table td,
        .batting-stats-table th,
        .batting-stats-table td,
        .pitching-stats-table th,
        .pitching-stats-table td {
            padding: .28rem .32rem;
            font-size: .78rem;
            white-space: nowrap;
        }

            /* Sticky first column */
            .batting-stats-table th:first-child,
            .batting-stats-table td:first-child,
            .pitching-stats-table th:first-child,
            .pitching-stats-table td:first-child {
                min-width: 72px;
                max-width: 72px;
                width: 72px;
            }

            /* Numeric stat columns */
            .batting-stats-table th:not(:first-child),
            .batting-stats-table td:not(:first-child),
            .pitching-stats-table th:not(:first-child),
            .pitching-stats-table td:not(:first-child) {
                min-width: 34px;
                width: 34px;
                padding-left: .18rem;
                padding-right: .18rem;
            }
    
}

@media (max-width: 768px) {
    .fielding-stats-table {
        width: max-content;
        min-width: unset;
        table-layout: auto;
    }

        .fielding-stats-table th,
        .fielding-stats-table td {
            padding: .28rem .32rem;
            font-size: .78rem;
            white-space: nowrap;
        }

            .fielding-stats-table th:first-child,
            .fielding-stats-table td:first-child {
                min-width: 92px;
                max-width: 92px;
                width: 92px;
                white-space: normal;
            }

            .fielding-stats-table th:nth-child(2),
            .fielding-stats-table td:nth-child(2) {
                min-width: 38px;
                width: 38px;
            }

            .fielding-stats-table th:not(:first-child):not(:nth-child(2)),
            .fielding-stats-table td:not(:first-child):not(:nth-child(2)) {
                min-width: 42px;
                width: 42px;
                padding-left: .18rem;
                padding-right: .18rem;
            }
}

@media (max-width: 768px) {
    .player-fielding-log-table {
        width: max-content;
        min-width: unset;
        table-layout: fixed;
        white-space: nowrap;
    }

        .player-fielding-log-table th,
        .player-fielding-log-table td {
            padding: .28rem .28rem;
            font-size: .78rem;
            white-space: nowrap;
            vertical-align: middle;
        }

            .player-fielding-log-table th:nth-child(1),
            .player-fielding-log-table td:nth-child(1) {
                min-width: 76px;
                width: 76px;
                max-width: 76px;
            }

            .player-fielding-log-table th:nth-child(2),
            .player-fielding-log-table td:nth-child(2),
            .player-fielding-log-table th:nth-child(3),
            .player-fielding-log-table td:nth-child(3) {
                min-width: 48px;
                width: 48px;
                max-width: 48px;
                text-align: center;
                padding-left: .2rem;
                padding-right: .2rem;
            }

            .player-fielding-log-table th:nth-child(4),
            .player-fielding-log-table td:nth-child(4) {
                min-width: 36px;
                width: 36px;
                max-width: 36px;
                text-align: center;
                padding-left: .18rem;
                padding-right: .18rem;
            }

            .player-fielding-log-table th:nth-child(n+5),
            .player-fielding-log-table td:nth-child(n+5) {
                min-width: 38px;
                width: 38px;
                max-width: 38px;
                text-align: right;
                padding-left: .18rem;
                padding-right: .18rem;
            }
}
/* Standings mobile tightening */
@media (max-width: 768px) {

    .standings-scroll {
        overflow-x: auto;
    }

    .standings-division-card {
        width: max-content;
        min-width: 100%;
    }

    .standings-table {
        width: max-content;
        min-width: 100%;
    }

        .standings-table th,
        .standings-table td {
            padding: .22rem .32rem;
            font-size: .82rem;
            white-space: nowrap;
            vertical-align: middle;
        }

            /* Team column */
            .standings-table th:first-child,
            .standings-table td:first-child {
                min-width: 84px;
                padding-left: .45rem;
                padding-right: .35rem;
            }

            /* Numeric columns */
            .standings-table th:not(:first-child),
            .standings-table td:not(:first-child) {
                min-width: 34px;
                text-align: center;
                padding-left: .2rem;
                padding-right: .2rem;
            }

    .team-badge {
        gap: 4px;
    }

        .team-badge img {
            width: 16px;
            height: 16px;
        }

        .team-badge span {
            font-size: .8rem;
            font-weight: 600;
        }
}

.mobile-game-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: .9rem 1rem;
    margin-bottom: .85rem;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    cursor: pointer;
}

    .mobile-game-card .btn-sm {
        padding: .28rem .55rem;
        font-size: .78rem;
    }

    .mobile-game-card:active {
        transform: scale(.985);
    }

    .mobile-game-card .team-badge {
        gap: .45rem;
    }

    .mobile-game-card:hover {
        border-color: #86b7fe;
    }

    .mobile-game-card .team-logo,
    .mobile-game-card .team-logo-sm {
        width: 20px;
        height: 20px;
    }

    .mobile-game-card .team-badge span {
        font-size: 1rem;
        font-weight: 600;
    }

.stats-card .card-body {
    padding: .75rem .4rem;
}

.stats-card .fs-4 {
    font-size: 1.5rem !important;
}

.mobile-score {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: .95;
    letter-spacing: -.03em;
}

.mobile-meta {
    font-size: .78rem;
    color: #6c757d;
}

.mobile-venue {
    font-size: .92rem;
    font-weight: 500;
    color: #495057;
}

.mobile-divider {
    height: 1px;
    background: #f1f3f5;
    margin: .7rem 0;
}

/* =========================================================
   Top Horizontal Scrollbars
   ========================================================= */

.top-scrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;
    margin-bottom: .35rem;
}

.top-scrollbar-inner {
    height: 1px;
}

/* Match table widths */
.batting-scroll-inner {
    width: 1600px;
}

.pitching-scroll-inner {
    width: 1450px;
}
.player-fielding-log-scroll-inner {
    width: 1040px;
}

/* =========================================================
   Details/PlayerBio
   ========================================================= */
.player-bio-strip {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: .75rem;
}

.player-bio-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .65rem;
    border: 1px solid #cfd6df;
    border-radius: 999px;
    background: #f1f5f9;
    color: #212529;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}



/* =========================================================
   Roster / Player Chaser
   ========================================================= */
#roster-detail {
    scroll-margin-top: 90px;
}

.roster-team-picker {
    background: #fff;
}

.roster-league-title {
    font-size: .8rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .4rem;
}

.roster-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
}

.roster-team-card {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .6rem;
    border: 1px solid #dee2e6;
    border-radius: .55rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

    .roster-team-card:hover {
        background: #f8f9fa;
    }

    .roster-team-card.active,
    .roster-team-card.active:hover {
        background: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }

        .roster-team-card.active strong {
            color: #fff;
        }

        .roster-team-card.active span:not(.badge) {
            color: rgba(255,255,255,.85);
        }

        

    .roster-team-card img {
        width: 30px;
        height: 30px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .roster-team-card strong {
        display: block;
        line-height: 1.05;
    }

    .roster-team-card span {
        display: block;
        font-size: .78rem;
        line-height: 1.15;
        color: #6c757d;
    }

    .roster-team-card.active span {
        color: rgba(255,255,255,.85);
    }

.chaser-preview-img {
    height: 170px;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 767.98px) {
    .roster-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .roster-team-card {
        min-height: 54px;
        padding: .45rem .5rem;
    }

        .roster-team-card img {
            width: 28px;
            height: 28px;
        }
}

/* =========================================================
   Schedule Tables
   ========================================================= */
@media (max-width: 767.98px) {
    .schedule-table td,
    .schedule-table th {
        padding: 0.4rem 0.35rem;
        font-size: 0.85rem;
    }

    .schedule-table .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }

    .schedule-venue {
        display: none;
    }
}

/* =========================================================
   Scoreboard / Today's Games
   ========================================================= */

.mobile-scoreboard-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    max-width: 100%;
    margin-top: 4px;
    overflow: hidden;
    text-decoration: none;
    line-height: 1.15;
    border-radius: 4px;
}

    .mobile-scoreboard-row:hover,
    .mobile-scoreboard-row[title]:hover {
        background-color: transparent;
        text-decoration: none;
    }

    .mobile-scoreboard-row * {
        text-decoration: none !important;
    }

    .mobile-scoreboard-row .team-side {
        display: flex;
        justify-content: center;
        min-width: 0;
        overflow: hidden;
    }

    .mobile-scoreboard-row .team-badge {
        justify-content: center;
        min-width: 0;
        max-width: 100%;
    }

        .mobile-scoreboard-row .team-badge span {
            min-width: 0;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: normal;
            line-height: 1.05;
        }

    .mobile-scoreboard-row .team-side:first-child .team-badge {
        justify-content: flex-start;
        text-align: left;
    }

    .mobile-scoreboard-row .team-side:last-child .team-badge {
        justify-content: flex-end;
        text-align: right;
    }

    .mobile-scoreboard-row img {
        width: 44px !important;
        height: 44px !important;
        object-fit: contain;
        flex-shrink: 0;
    }

.score-center {
    min-width: 92px;
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: #222;
}

.mobile-year-break {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .8rem;
    margin: 1.1rem 0 .85rem;
    color: #0d47a1;
}

    .mobile-year-break span {
        height: 1px;
        background: #90caf9;
    }

    .mobile-year-break strong {
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: .03em;
    }

.mobile-date-block {
    color: #0d47a1;
    text-align: left;
    min-width: 48px;
    line-height: 1;
}

.mobile-date-month {
    font-size: .8rem;
    font-weight: 800;
}

.mobile-date-day {
    font-size: 2rem;
    font-weight: 800;
    line-height: .95;
}

.mobile-date-dow {
    font-size: .8rem;
    font-weight: 700;
}

.team-name-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .75rem;
    text-align: center;
    margin-top: 6px;
    font-size: .9rem;
    font-weight: 700;
    color: #444;
}

    .team-name-row > * {
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }

.game-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: .85rem;
    font-weight: 600;
    color: #777;
}

.matchup-col {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.status-col {
    flex: 0 0 88px;
    min-width: 88px;
    text-align: right;
    white-space: nowrap;
}

.today-games-card .small {
    font-size: 0.85rem;
    line-height: 1.2;
}

.today-games-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 6px;
}

.today-game-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 5px 7px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #212529;
    text-decoration: none;
    font-size: .78rem;
}

    .today-game-pill:hover,
    a.today-game-pill:hover {
        background: #f8f9fa;
        border-color: #86b7fe;
        box-shadow: 0 0 0 1px rgba(13, 110, 253, .15);
        text-decoration: none;
    }

    .today-game-pill.is-pregame {
        border-color: #b6d4fe;
        background: #f8fbff;
    }

a.today-game-pill {
    cursor: pointer;
}

.today-game-disabled {
    opacity: .85;
}

.game-pill-main {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    white-space: nowrap;
}

.game-pill-team {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
}

.game-pill-logo {
    width: 16px !important;
    height: 16px !important;
}

.game-pill-status {
    font-size: .75rem;
    color: #6c757d;
    white-space: nowrap;
}
.game-events-footer {
    font-size: .9rem;
}

.game-ejection-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .4rem;
}

.game-event-symbol {
    flex: 0 0 auto;
}

.umpire-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem 1rem;
}

.umpire-footer-item {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    min-width: 0;
}

.umpire-footer-position {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--bs-secondary-color);
}

.umpire-footer-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .game-events-footer {
        font-size: .85rem;
    }

    .umpire-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .35rem .75rem;
    }

    .game-ejection-row {
        gap: .4rem;
    }

        .game-ejection-row .text-muted {
            display: block;
            margin-left: 0 !important;
        }
}
@media (max-width: 420px) {
    .mobile-scoreboard-row {
        gap: .3rem;
    }

        .mobile-scoreboard-row img {
            width: 38px !important;
            height: 38px !important;
        }

    .score-center {
        min-width: 82px;
        font-size: 1.85rem;
    }

    .team-name-row {
        font-size: .82rem;
        gap: .5rem;
    }

    .game-meta-row {
        font-size: .8rem;
    }
}
/* =========================================================
   Box Scores
   ========================================================= */
.boxscore-section-logo {
    height: 22px;
    width: auto;
}

.boxscore-table {
    font-size: 0.9rem;
}

    .boxscore-table th {
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #777;
        border-bottom: 1px solid #ccc;
        padding-bottom: 0.25rem;
    }

    .boxscore-table td {
        padding: 0.35rem 0.4rem;
        vertical-align: middle;
    }

    .boxscore-table .text-end {
        white-space: nowrap;
    }

    .boxscore-table tbody tr:last-child td {
        border-bottom-color: transparent !important;
    }

.boxscore-player {
    min-width: 220px;
}

.back-to-games {
    margin-bottom: 2rem;
    display: inline-block;
}

.sub-player {
    display: inline-block;
    margin-left: 18px;
    padding-left: 20px;
}

.seen-player {
    margin-left: 4px;
}

.seen-check {
    color: #198754;
}

.section-title {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    font-weight: 600;
}

.hrs-link {
    text-decoration: underline !important;
}

    .hrs-link:hover {
        text-decoration: underline !important;
    }
/* =========================================================
   Player Seen Summary
   ========================================================= */

.player-seen-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin: 1rem 0 1.25rem;
}

.seen-stat {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: .7rem .5rem;
    text-align: center;
}


.stat-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 54px;
    padding: .45rem .7rem;
    border: 1px solid #dee2e6;
    border-radius: .7rem;
    background: #fff;
    text-align: center;
}

    .stat-chip span {
        font-size: .68rem;
        font-weight: 700;
        color: #6c757d;
        text-transform: uppercase;
    }

    .stat-chip strong {
        font-size: .9rem;
        line-height: 1.1;
    }

.stat-chip-team {
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    text-align: left;
}

    .stat-chip-team img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

/* =========================================================
   Mobile Filter Tightening
.seen-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}

.seen-stat strong {
    display: block;
    font-size: .95rem;
    color: #212529;
}

@media (max-width: 576px) {
    .player-seen-stats {
        gap: .45rem;
    }

    .seen-stat {
        padding: .55rem .35rem;
    }

    .seen-label {
        font-size: .65rem;
    }

    .seen-stat strong {
        font-size: .82rem;
    }
}
/* =========================================================
   Mobile Filter Tightening
   ========================================================= */
@media (max-width: 576px) {

    .filters-section .form-label,
    .filters-section label {
        font-size: .82rem;
        margin-bottom: .2rem;
        font-weight: 600;
    }

    .filters-section .form-select,
    .filters-section .form-control {
        min-height: 38px;
        height: 38px;
        padding: .25rem .65rem;
        font-size: .9rem;
        border-radius: .45rem;
    }

    .filters-section .mb-3,
    .filters-section .form-group {
        margin-bottom: .55rem !important;
    }

    .filters-section .btn {
        min-height: 40px;
        padding: .35rem .75rem;
        font-size: .95rem;
    }

    .filters-section .btn-sm {
        padding: .25rem .5rem;
        font-size: .8rem;
    }

    /* Team selector */
    .filters-section .border.rounded.p-2 {
        max-height: 220px !important;
    }

    .team-league-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .team-league-column {
        display: flex;
        flex-direction: column;
    }

    .team-league-title {
        font-size: .72rem;
        font-weight: 700;
        color: #6c757d;
        text-transform: uppercase;
        margin-bottom: .3rem;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: .15rem;
    }

    .team-league-column .form-check {
        margin-bottom: .12rem;
    }

    .team-league-column .form-check-label {
        font-size: .72rem;
        line-height: 1.1;
    }

    .team-league-column .form-check-input {
        width: .8rem;
        height: .8rem;
        margin-top: .15rem;
    }
}
/* =========================================================
   General Mobile Polish
   ========================================================= */
@media (max-width: 576px) {


    .container {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: .75rem;
    }

    .row.g-3 {
        --bs-gutter-x: .5rem;
        --bs-gutter-y: .5rem;
    }

    .card {
        border-radius: .75rem;
        margin-bottom: .75rem;
    }

        .card.text-center {
            padding: .65rem !important;
            min-height: 82px;
            display: flex;
            justify-content: center;
        }

            .card.text-center h5 {
                font-size: .72rem;
                line-height: 1.1;
                margin-bottom: .25rem;
                color: #6c757d;
                text-transform: uppercase;
                letter-spacing: .25px;
                font-weight: 700;
            }

            .card.text-center h3 {
                font-size: 1.35rem;
                line-height: 1.1;
                margin-bottom: 0;
                font-weight: 700;
            }

            .card.text-center a {
                text-decoration: none;
            }

    .team-logo,
    .team-logo-md {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .team-logo-lg,
    .team-header-logo {
        max-width: 60px;
        max-height: 60px;
    }

    .sub-player {
        margin-left: 12px;
        padding-left: 12px;
    }

    .today-game-inner {
        padding: 10px;
    }

    .today-team-logo {
        width: 24px;
        height: 24px;
    }
}
/* =========================================================
   Stadium Maps
   ========================================================= */

.stadium-map-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

    .stadium-map-stats .card {
        min-width: 0;
    }

    .stadium-map-stats .small {
        font-size: .72rem;
        line-height: 1.1;
    }

@media (min-width: 768px) {
    .stadium-map-stats {
        gap: 1rem;
    }

        .stadium-map-stats .small {
            font-size: .875rem;
        }
}


/* =========================================================
   Player Detail Tables Polish
   ========================================================= */

.batting-stats-table td:nth-child(n+5),
.batting-stats-table th:nth-child(n+5),
.pitching-stats-table td:nth-child(n+5),
.pitching-stats-table th:nth-child(n+5) {
    text-align: right;
}

.pitching-stats-table td:nth-child(4),
.pitching-stats-table th:nth-child(4) {
    text-align: center;
    width: 70px;
    white-space: nowrap;
}



/* =========================================================
   Player Badges
   ========================================================= */

.player-badge-line {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.player-badges {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
    line-height: 1;
}

    .player-badges span {
        display: inline-flex;
        align-items: center;
    }





/* =========================================================
   Leaderboards
   ========================================================= */

#leaderboard-results {
    scroll-margin-top: 110px;
}
.locked-stat {
    opacity: .75;
    cursor: not-allowed;
    background: #fafafa;
}

    .locked-stat:hover {
        background: #fafafa;
    }
.locked-scope {
    opacity: .75;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-width: 991px) {

    .leaderboard-categories-card {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 1rem;
    }

    .leaderboard-category-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

        .leaderboard-category-list .list-group-item {
            width: 100% !important;
            margin: 0 !important;
            text-align: center;
            border-radius: 999px !important;
        }
        
        .leaderboard-category-list .bg-light {
            grid-column: 1 / -1;
            border-radius: .5rem !important;
            text-align: left;
        }
            .leaderboard-category-list .list-group-item.active {
                background: #0d6efd;
                border-color: #0d6efd;
                color: #fff;
            }

    .leaderboard-category-header {
        flex-basis: 100%;
        border-radius: .5rem !important;
        margin-top: .25rem;
        margin-bottom: .1rem;
        font-size: .72rem;
        letter-spacing: .03em;
    }
   
}

/* =========================================================
   Pills / Chips
   ========================================================= */

.date-pill {
    display: inline-flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-width: 70px;
    padding: .16rem .5rem;
    border-radius: .5rem;
    background: #e8f1ff;
    border: 1px solid #b8d1ff;
    color: #0b5ed7;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    transition: all .15s ease;
}

    .date-pill:hover {
        background: #d6e7ff;
        border-color: #8fb6ff;
        color: #084298;
        text-decoration: none;
    }

    .date-pill:active {
        transform: scale(.98);
    }

.date-pill {
    min-width: 64px;
    padding: .08rem .35rem;
    font-size: .72rem;
    border-radius: .38rem;
    line-height: 1.1;
}
/* =========================================================
   Admin Activity Log
   ========================================================= */
@media (max-width: 576px) {
    .admin-feature-table {
        font-size: .8rem;
    }

        .admin-feature-table th,
        .admin-feature-table td {
            white-space: nowrap;
        }

            .admin-feature-table th:first-child,
            .admin-feature-table td:first-child {
                position: sticky;
                left: 0;
                background: var(--bs-body-bg);
                z-index: 2;
                min-width: 150px;
                max-width: 180px;
                white-space: normal;
            }
}
/* =========================================================
   Explorer
   ========================================================= */
.explore-preview {
    cursor: zoom-in;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .explore-preview:hover {
        transform: scale(1.015);
    }

/* =========================================================
   Chasers
   ========================================================= */

.chase-planner-table {
    table-layout: fixed;
    width: 100%;
}

    .chase-planner-table th,
    .chase-planner-table td {
        padding: .28rem .5rem;
        vertical-align: middle;
        line-height: 1.15;
    }

    .chase-planner-table th {
        font-size: .82rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .chase-planner-table td {
        font-size: .92rem;
    }

    .chase-planner-table tbody tr:last-child td {
        border-bottom: 0;
    }

.chase-player-col {
    width: 42%;
}

.chase-pos-col {
    width: 9%;
    text-align: center;
    white-space: nowrap;
}

.chase-score-col {
    width: 10%;
    white-space: nowrap;
}

.chase-awards-col {
    width: 39%;
    white-space: normal;
    overflow-wrap: normal;
    line-height: 1.35;
}

.chase-awards span {
    display: inline-block;
    margin-right: .22rem;
    margin-bottom: .12rem;
    font-size: .95rem;
}

.team-logo-sm {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
.active-dot {
    display: inline-block;
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #198754;
    margin-left: .35rem;
    vertical-align: middle;
}
.card-header {
    padding: .55rem .75rem;
}

    .card-header .fw-bold,
    .card-header .small {
        line-height: 1.05;
    }

.card.mb-3.shadow-sm {
    margin-bottom: .8rem !important;
}
.draft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 1.25rem;
    font-size: .68rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0 .45rem;
    line-height: 1;
}
.badge.bg-success {
    font-size: .72rem;
    padding: .32rem .45rem;
}
/* =========================================================
   Top Targets Mobile
   ========================================================= */

.player-chaser-table {
    table-layout: fixed;
    width: 100%;
}

    .player-chaser-table th,
    .player-chaser-table td {
        vertical-align: middle;
    }

@media (max-width: 767.98px) {
    .player-chaser-table th,
    .player-chaser-table td {
        padding: .38rem .25rem;
        font-size: .88rem;
        line-height: 1.15;
    }

        /* Column sizing by actual table position:
       1 Rank hidden
       2 Player
       3 Team
       4 Pos
       5 Score
       6 Awards
       7 Coming hidden
    */

        .player-chaser-table th:nth-child(2),
        .player-chaser-table td:nth-child(2) {
            width: 43%;
            white-space: normal;
        }

        .player-chaser-table th:nth-child(3),
        .player-chaser-table td:nth-child(3) {
            width: 19%;
            white-space: nowrap;
        }

        .player-chaser-table th:nth-child(4),
        .player-chaser-table td:nth-child(4) {
            width: 8%;
            text-align: center;
            white-space: nowrap;
        }

        .player-chaser-table th:nth-child(5),
        .player-chaser-table td:nth-child(5) {
            width: 11%;
            text-align: right;
            white-space: nowrap;
        }

        .player-chaser-table th:nth-child(6),
        .player-chaser-table td:nth-child(6) {
            width: 19%;
            text-align: right;
            white-space: normal;
            overflow: hidden;
        }

    .player-chaser-player-cell {
        min-width: 0;
        max-width: none;
    }

        .player-chaser-player-cell a {
            overflow-wrap: anywhere;
        }

    .player-chaser-mobile-park {
        line-height: 1.15;
        font-size: .78rem;
    }

    .player-chaser-table td:nth-child(3) img {
        width: 20px !important;
        height: 20px !important;
    }

    .player-chaser-table td:nth-child(3) .gap-1 {
        gap: .15rem !important;
    }

    .player-chaser-table td:nth-child(6) span {
        display: inline-block;
        font-size: .82rem;
        line-height: 1.05;
        margin-left: 1px;
    }

    .player-chaser-table th:nth-child(6) {
        font-size: 0;
    }

        .player-chaser-table th:nth-child(6)::after {
            content: "Awards";
            font-size: .78rem;
        }
}
/* =========================================================
    Award Winners Table
   ========================================================= */

.award-winners-wrap {
    width: 100%;
}

.award-winners-table {
    width: 100%;
}

.award-player-cell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .25rem .35rem;
}

.award-mobile-seen-summary {
    display: none;
}

.date-pill {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #eef2f7;
    border: 1px solid #b9d4ff;
    color: #0d6efd;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .date-pill:hover {
        background: #dfeaff;
        text-decoration: none;
    }

.seen-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.8rem;
    padding: .22rem .5rem;
    border-radius: 999px;
    background: #e9ecef;
    color: #212529;
    font-weight: 700;
    font-size: .82rem;
}

@media (max-width: 576px) {
    .award-winners-table {
        border-collapse: separate;
        border-spacing: 0 .35rem;
    }

        .award-winners-table thead {
            display: none;
        }

        .award-winners-table,
        .award-winners-table tbody,
        .award-winners-table tr,
        .award-winners-table td {
            display: block;
            width: 100%;
        }

            .award-winners-table tr {
                background: #fff;
                border: 1px solid #dee2e6;
                border-radius: .65rem;
                padding: .45rem .55rem;
                box-shadow: 0 1px 2px rgba(0,0,0,.04);
            }

            .award-winners-table.table-striped > tbody > tr:nth-of-type(odd) > * {
                --bs-table-accent-bg: transparent;
            }

            .award-winners-table td {
                border: 0;
                padding: 0;
            }

    .award-mobile-topline {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .45rem;
    }

    .award-player-cell {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: .18rem .28rem;
        line-height: 1.15;
        min-width: 0;
    }

        .award-player-cell a {
            max-width: 165px;
            overflow-wrap: anywhere;
        }

    .award-mobile-seen-summary {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: .22rem;
        flex-shrink: 0;
        font-size: .75rem;
        color: #6c757d;
        white-space: nowrap;
        line-height: 1.1;
    }

    .award-seasons-td {
        margin-top: .18rem;
        color: #495057;
        font-size: .8rem;
        line-height: 1.15;
    }

    .award-seen-td,
    .award-first-seen-td {
        display: none !important;
    }

    .seen-count-pill {
        min-width: 1.35rem;
        padding: .06rem .3rem;
        font-size: .72rem;
    }

    .date-pill {
        font-size: .72rem;
        padding: .1rem .36rem;
    }

    .player-badges {
        gap: .1rem;
    }
}
@media (max-width: 576px) {
    .all-stars-seen-table .award-mobile-topline {
        align-items: center;
    }

    .all-stars-seen-table .award-player-cell a {
        max-width: 190px;
    }
}
/* Milestone Green Dot */
.active-player-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-radius: 50%;
    background-color: #198754;
    vertical-align: middle;
}
/* FINAL FOOTER OVERRIDE */
.footer {
    position: static !important;
    bottom: auto !important;
    width: 100% !important;
    line-height: normal !important;
    margin-top: 2rem !important;
    background: #fff;
    clear: both;
}


