/* ============ BASE ============ */

body {
    margin: 0;
    background-color: #161616;
    font-family: 'Poppins', sans-serif;
    color: #f0f0f0;
    min-height: 100vh;
}

/* ============ NAVBAR ============ */

#navbar-div {
    display: flex;
    align-items: center;
    padding: 0 28px;
    height: 56px;
    background-color: #0f0f0f;
    border-bottom: 2px solid rgb(140, 0, 0);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 4px;
}

.nav-brand {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: white;
    margin-right: auto;
}

.navbar-button {
    padding: 6px 16px;
    color: #777;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    transition: color 0.2s, background 0.2s;
    letter-spacing: 0.03em;
}

.navbar-button:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.07);
}

/* ============ LAYOUT ============ */

.main-div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-div {
    /*max-width: 1400px;*/
    margin: 0 auto;
    width: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============ SECTION HEADER ============ */

.section-header {
    text-align: center;
    margin-bottom: 4px;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(160, 0, 0);
    display: block;
    margin-bottom: 4px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: white;
}

/* ============ LEAGUE TOGGLE ============ */

#league-toggle {
    display: flex;
    gap: 3px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 3px;
    margin: 14px auto 0;
    width: fit-content;
}

.league-btn {
    padding: 4px 22px;
    border: none;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    background: none;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.league-btn.active {
    background: rgb(140, 0, 0);
    color: white;
}

.league-btn:hover:not(.active) {
    color: #aaa;
}

/* ============ DATE NAV ============ */

#date-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 0 36px;
}

#date-display {
    font-size: 1.4rem;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    letter-spacing: -0.01em;
    color: #e8e8e8;
}

#date-nav button {
    background: none;
    border: 1px solid #2e2e2e;
    border-radius: 50%;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}

#date-nav button:hover {
    border-color: rgb(140, 0, 0);
    color: white;
    background: rgba(140, 0, 0, 0.18);
}

/* ============ SCHEDULE GRID ============ */

#schedule-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    width: 100%;
}

#schedule-container > p {
    color: #444;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ============ GAME CARD ============ */

.game-schedule-card {
    width: 400px;
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #272727;
    border-left: 3px solid rgb(140, 0, 0);
    overflow: hidden;
    transition: transform 0.15s, border-color 0.15s;
}

.game-schedule-card:hover {
    transform: translateY(-2px);
    border-color: #383838;
    border-left-color: rgb(170, 0, 0);
}

.card-team-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.card-team-row + .card-team-row {
    border-top: 1px solid #252525;
}

.fav-star {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    color: #3a3a3a;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}
.fav-star:hover { color: #f5c518; }
.fav-star.on    { color: #f5c518; }

.card-team-row.loser .card-team-name {
    color: #555;
}

.card-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.card-team-name {
    flex: 1;
    font-size: 0.83rem;
    font-weight: 500;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.card-record {
    font-size: 0.7rem;
    color: #404040;
    flex-shrink: 0;
    margin-right: 8px;
}

.card-score {
    font-size: 1.45rem;
    font-weight: 700;
    min-width: 26px;
    text-align: right;
    flex-shrink: 0;
    line-height: 1;
}

.card-score.winner {
    color: #ffffff;
}

.card-score.loser {
    color: #3a3a3a;
}

.card-footer {
    padding: 7px 16px;
    border-top: 1px solid #252525;
    background-color: #191919;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.card-series {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #2a2a2a;
    flex-shrink: 0;
}

.card-status {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #444;
}

.card-status.scheduled {
    color: #888;
}

/* ============ LIVE CARD ============ */

.live-card {
    border-left-color: rgb(210, 35, 35);
}

.live-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-bottom: 1px solid #252525;
    background: #1a1a1a;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgb(210, 35, 35);
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(210, 35, 35);
    animation: blink 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

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

.live-inning {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ccc;
    margin-left: auto;
}

.live-bso {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.bso-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.bso-label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #3a3a3a;
    margin-right: 2px;
    text-transform: uppercase;
}

.count-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid #2e2e2e;
    background: transparent;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.count-dot.ball.on {
    background: rgb(72, 190, 88);
    border-color: rgb(100, 220, 115);
    box-shadow: 0 0 5px rgba(72, 190, 88, 0.4);
}

.count-dot.strike.on {
    background: rgb(230, 165, 0);
    border-color: rgb(255, 200, 40);
    box-shadow: 0 0 5px rgba(230, 165, 0, 0.4);
}

.count-dot.out.on {
    background: #e0e0e0;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.live-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-top: 1px solid #252525;
    background: #1a1a1a;
}

/* Base diamond */
.bases-diamond {
    display: grid;
    grid-template-columns: repeat(3, 13px);
    grid-template-rows: repeat(2, 13px);
    gap: 3px;
    flex-shrink: 0;
}

.base {
    width: 13px;
    height: 13px;
    background: #252525;
    border: 1px solid #353535;
    transform: rotate(45deg);
    border-radius: 1px;
    transition: background 0.2s, box-shadow 0.2s;
}

.base.occupied {
    background: rgb(250, 175, 35);
    border-color: rgb(255, 200, 70);
    box-shadow: 0 0 7px rgba(250, 175, 35, 0.45);
}

/* Batter / pitcher */
.live-matchup {
    flex: 1;
    min-width: 0;
}

.matchup-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 0.73rem;
    color: #bbb;
    white-space: nowrap;
    min-width: 0;
}

.matchup-row + .matchup-row {
    margin-top: 4px;
}

.matchup-label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #484848;
    width: 22px;
    flex-shrink: 0;
}

.matchup-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batter-stats {
    font-size: 0.6rem;
    color: #888;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Pitcher section on scheduled cards */
.card-pitchers {
    padding: 8px 16px;
    border-top: 1px solid #222;
    background: #191919;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pitcher-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.pitcher-label {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #383838;
    width: 18px;
    flex-shrink: 0;
}

.pitcher-name {
    flex: 1;
    font-size: 0.72rem;
    color: #686868;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pitcher-era {
    font-size: 0.6rem;
    color: #464646;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Most recent play */
.live-last-play {
    padding: 9px 16px;
    border-top: 1px solid #252525;
    font-size: 0.73rem;
    color: #666;
    line-height: 1.45;
    font-style: italic;
    background: #181818;
}

.live-loading {
    padding: 12px 16px;
    font-size: 0.73rem;
    color: #3a3a3a;
    text-align: center;
    font-style: italic;
}

.loading-msg {
    color: #3a3a3a;
    font-size: 0.85rem;
}

.pbp-loading {
    padding: 8px 0;
    color: #444;
    font-size: 0.75rem;
    font-style: italic;
}

/* ============ PLAY-BY-PLAY ============ */

.pbp-section {
    border-top: 1px solid #252525;
    padding: 10px 14px;
    background: #1a1a1a;
    text-align: left;
}

.pbp-toggle {
    width: 100%;
    background: none;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #555;
    padding: 6px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pbp-toggle:hover {
    border-color: #3a3a3a;
    color: #bbb;
    background-color: #222;
}

.pbp-content {
    display: none;
    max-height: 260px;
    overflow-y: auto;
    margin-top: 8px;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e transparent;
}

.pbp-content.pbp-open {
    display: block;
}

.pbp-inning-header {
    font-size: 0.62rem;
    color: #3e3e3e;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 10px 0 4px;
    border-bottom: 1px solid #252525;
    margin-bottom: 2px;
}

.pbp-play {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    padding: 6px 0;
    border-bottom: 1px solid #202020;
    font-size: 0.72rem;
    color: #505050;
    line-height: 1.4;
}

.pbp-play:last-child {
    border-bottom: none;
}

.pbp-play.pbp-scoring {
    color: #888;
}

.pbp-event {
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

.pbp-play.pbp-scoring .pbp-event {
    color: rgb(210, 110, 20);
}

.pbp-desc {
    flex: 1;
    min-width: 0;
}

.pbp-score {
    font-weight: 600;
    font-size: 0.68rem;
    color: rgb(210, 110, 20);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
}

/* ============ VIEW TABS ============ */

#view-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0 0;
    border-bottom: 1px solid #272727;
    width: 100%;
}

.view-tab-btn {
    padding: 9px 26px;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.view-tab-btn:hover {
    color: #888;
}

.view-tab-btn.active {
    color: white;
    border-bottom-color: rgb(140, 0, 0);
}

/* ============ STANDINGS ============ */

#standings-container,
#playoffs-container,
#leaders-container {
    width: 100%;
}

.league-standings {
    margin-bottom: 48px;
    width: 100%;
}

.league-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(160, 0, 0);
    margin-bottom: 14px;
}

.division-tables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.standings-section {
    background: #1e1e1e;
    border: 1px solid #272727;
    border-radius: 10px;
    overflow: hidden;
}

.standings-div-name {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #555;
    padding: 9px 12px 7px;
    border-bottom: 1px solid #252525;
    background: #191919;
}

.standings-header-row,
.standings-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
}

.standings-header-row {
    padding: 4px 12px;
    border-bottom: 1px solid #222;
}

.standings-row + .standings-row {
    border-top: 1px solid #1c1c1c;
}

.standings-row.div-leader {
    background: rgba(140, 0, 0, 0.07);
}

.standings-row.playoff-pos {
    background: rgba(140, 0, 0, 0.04);
}

.st-rank {
    width: 14px;
    text-align: center;
    font-size: 0.6rem;
    color: #3a3a3a;
    flex-shrink: 0;
}

.st-logo-ph {
    width: 22px;
    flex-shrink: 0;
}

.st-logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.st-name,
.st-name-h {
    flex: 1;
    font-size: 0.76rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.standings-header-row .st-name-h {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #333;
    text-transform: uppercase;
}

.st-w, .st-l {
    width: 28px;
    text-align: center;
    font-size: 0.76rem;
    color: #ccc;
    flex-shrink: 0;
}

.st-pct {
    width: 44px;
    text-align: right;
    font-size: 0.76rem;
    color: #999;
    flex-shrink: 0;
}

.st-gb {
    width: 46px;
    text-align: right;
    font-size: 0.72rem;
    color: #555;
    flex-shrink: 0;
}

.standings-header-row .st-w,
.standings-header-row .st-l,
.standings-header-row .st-pct,
.standings-header-row .st-gb {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #333;
    text-transform: uppercase;
}

.wc-divider {
    padding: 3px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-divider::before,
.wc-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgb(140, 0, 0);
    opacity: 0.25;
}

.wc-divider span {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(160, 0, 0);
    opacity: 0.7;
    white-space: nowrap;
}

/* ============ PLAYOFF BRACKET ============ */

.playoffs-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.bracket-league {
    width: 100%;
}

.bracket-league-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(160, 0, 0);
    margin-bottom: 14px;
}

.bracket-rounds {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.bracket-round {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bracket-round-label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3a3a3a;
    margin-bottom: 8px;
    text-align: center;
}

.bracket-matches {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bracket-matchup {
    flex: 1;
    background: #1e1e1e;
    border: 1px solid #272727;
    border-left: 3px solid rgb(140, 0, 0);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bracket-matchup.tbd-matchup {
    border-left-color: #262626;
    background: #191919;
}

.bracket-team {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    flex: 1;
}

.bracket-team + .bracket-team {
    border-top: 1px solid #252525;
}

.bracket-team.tbd-team {
    color: #2e2e2e;
    font-size: 0.7rem;
    justify-content: center;
    font-style: italic;
}

.bracket-seed {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgb(140, 0, 0);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}

.bracket-logo {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bracket-name {
    flex: 1;
    font-size: 0.74rem;
    font-weight: 500;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.bracket-record {
    font-size: 0.62rem;
    color: #404040;
    flex-shrink: 0;
}

.world-series-banner {
    text-align: center;
    padding: 22px;
    background: #1a1a1a;
    border: 1px solid #252525;
    border-top: 3px solid rgb(140, 0, 0);
    border-radius: 12px;
}

.ws-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgb(160, 0, 0);
    margin-bottom: 12px;
}

.ws-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ws-team {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3a3a3a;
    font-style: italic;
}

.ws-vs {
    font-size: 0.7rem;
    color: #2e2e2e;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ============ PLAYER / TEAM LINKS ============ */

.player-link {
    cursor: pointer;
    transition: color 0.15s;
}

.player-link:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-link {
    cursor: pointer;
    transition: color 0.15s, opacity 0.15s;
}

.card-team-name.team-link:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-logo.team-link:hover {
    opacity: 0.8;
}

/* ============ TEAM PAGE ============ */

.team-page-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0 28px;
    width: 100%;
    border-bottom: 1px solid #222;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.team-logo-large {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.team-header-info {
    flex: 1;
    min-width: 180px;
}

.team-name-large {
    font-size: 1.9rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.1;
}

.team-venue {
    font-size: 0.76rem;
    color: #555;
    margin-bottom: 3px;
}

.team-division {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(140, 0, 0);
}

.team-record-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.record-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #252525;
    border-radius: 10px;
    padding: 12px 16px 10px;
    min-width: 54px;
    gap: 5px;
}

.record-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.record-key {
    font-size: 0.49rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
}

.team-section {
    width: 100%;
    margin-bottom: 32px;
}

.team-section-title {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgb(140, 0, 0);
    margin-bottom: 12px;
}

/* Team aggregate stats */
.team-stats-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.team-stats-block {
    flex: 1;
    min-width: 280px;
    background: #1e1e1e;
    border: 1px solid #272727;
    border-radius: 10px;
    padding: 16px;
}

.team-stats-block-label {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3a3a3a;
    margin-bottom: 12px;
}

/* Roster */
.roster-group-label {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #3a3a3a;
    margin-bottom: 6px;
    margin-top: 18px;
}

.roster-group-label:first-child {
    margin-top: 0;
}

.roster-table {
    width: 100%;
    background: #1e1e1e;
    border: 1px solid #272727;
    border-radius: 10px;
    overflow: hidden;
}

.roster-table-scroll {
    overflow-x: auto;
}

.roster-header-row,
.roster-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    min-width: 500px;
}

.roster-header-row {
    padding: 6px 14px;
    border-bottom: 1px solid #252525;
    background: #191919;
}

.roster-row {
    cursor: pointer;
    transition: background 0.12s;
}

.roster-row:hover {
    background: #272727;
}

.roster-row + .roster-row {
    border-top: 1px solid #1d1d1d;
}

.roster-num {
    width: 24px;
    font-size: 0.66rem;
    color: #383838;
    flex-shrink: 0;
    text-align: right;
}

.roster-name {
    flex: 1;
    font-size: 0.77rem;
    color: #ccc;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roster-pos {
    width: 32px;
    font-size: 0.63rem;
    color: #555;
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.roster-stat {
    width: 50px;
    text-align: right;
    font-size: 0.73rem;
    color: #bbb;
    flex-shrink: 0;
}

.roster-stat.dim {
    color: #3e3e3e;
}

.roster-header-row .roster-num,
.roster-header-row .roster-name,
.roster-header-row .roster-pos,
.roster-header-row .roster-stat {
    font-size: 0.51rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2e2e2e;
    text-transform: uppercase;
}

/* Schedule columns */
.schedule-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .schedule-columns { grid-template-columns: 1fr; }
}

.schedule-col {
    background: #1e1e1e;
    border: 1px solid #272727;
    border-radius: 10px;
    overflow: hidden;
}

.schedule-col-label {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #444;
    padding: 9px 14px 7px;
    border-bottom: 1px solid #252525;
    background: #191919;
}

.sched-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
}

.sched-row + .sched-row {
    border-top: 1px solid #1d1d1d;
}

.sched-date {
    font-size: 0.65rem;
    color: #3a3a3a;
    width: 48px;
    flex-shrink: 0;
}

.sched-ha {
    font-size: 0.58rem;
    color: #2e2e2e;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
}

.sched-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sched-opp {
    flex: 1;
    font-size: 0.73rem;
    color: #aaa;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sched-result {
    font-size: 0.68rem;
    font-weight: 700;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}

.sched-result.win  { color: rgb(72, 190, 88); }
.sched-result.loss { color: rgb(210, 35, 35); }

.sched-score {
    font-size: 0.7rem;
    color: #555;
    flex-shrink: 0;
    width: 38px;
    text-align: right;
}

.sched-time {
    font-size: 0.67rem;
    color: #555;
    flex-shrink: 0;
}

.team-no-data {
    font-size: 0.75rem;
    color: #2e2e2e;
    padding: 14px;
    margin: 0;
    font-style: italic;
}

/* ============ PLAYER MODAL ============ */

#player-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

#player-modal {
    background: #1e1e1e;
    border: 1px solid #2e2e2e;
    border-top: 3px solid rgb(140, 0, 0);
    border-radius: 14px;
    width: 400px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 22px 20px 20px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e transparent;
}

#player-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #444;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    transition: color 0.15s;
    font-family: 'Poppins', sans-serif;
}

#player-modal-close:hover {
    color: #ccc;
}

.player-modal-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.player-photo {
    width: 76px;
    height: 96px;
    border-radius: 10px;
    object-fit: cover;
    object-position: top center;
    border: 1px solid #2e2e2e;
    flex-shrink: 0;
    background: #252525;
}

.player-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.player-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1.2;
}

.player-meta {
    font-size: 0.76rem;
    color: #888;
    margin-bottom: 3px;
}

.player-meta-secondary {
    font-size: 0.67rem;
    color: #4e4e4e;
    margin-bottom: 2px;
}

.player-stats-section {
    border-top: 1px solid #252525;
    padding-top: 16px;
    margin-top: 4px;
}

.player-stats-section + .player-stats-section {
    margin-top: 16px;
}

.player-stats-label {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(140, 0, 0);
    margin-bottom: 10px;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #252525;
    border-radius: 8px;
    padding: 10px 4px 8px;
    gap: 5px;
}

.stat-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-key {
    font-size: 0.49rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #444;
}

.player-no-stats {
    font-size: 0.78rem;
    color: #3a3a3a;
    text-align: center;
    padding: 12px 0 4px;
    border-top: 1px solid #252525;
    margin-top: 4px;
}

/* ============ LINESCORE ============ */

.ls-content {
    display: none;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e transparent;
}

.ls-content.ls-open {
    display: block;
}

.linescore-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #2e2e2e transparent;
}

.linescore-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: max-content;
}

.ls-row {
    display: flex;
    align-items: center;
}

.ls-row + .ls-row {
    border-top: 1px solid #1e1e1e;
}

.ls-cell {
    width: 20px;
    text-align: center;
    font-size: 0.68rem;
    color: #777;
    padding: 4px 1px;
    flex-shrink: 0;
}

.ls-header .ls-cell {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2e2e2e;
    border-bottom: 1px solid #252525;
    padding-bottom: 5px;
}

.ls-name-cell {
    width: 36px;
    text-align: left;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #aaa;
    padding-left: 2px;
}

.ls-header .ls-name-cell {
    color: transparent;
}

.ls-rhe {
    font-weight: 700;
    color: #ccc;
    border-left: 1px solid #252525;
    padding-left: 5px;
    margin-left: 3px;
}

.ls-header .ls-rhe {
    color: #3e3e3e;
}

/* ============ LEAGUE LEADERS ============ */

.leaders-section {
    margin-bottom: 36px;
    width: 100%;
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .leaders-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .leaders-grid { grid-template-columns: 1fr; }
}

.leader-board {
    background: #1e1e1e;
    border: 1px solid #272727;
    border-radius: 10px;
    overflow: hidden;
}

.leader-board-title {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
    padding: 9px 12px 7px;
    border-bottom: 1px solid #252525;
    background: #191919;
}

.leader-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    cursor: pointer;
    transition: background 0.12s;
}

.leader-row:hover {
    background: #272727;
}

.leader-row + .leader-row {
    border-top: 1px solid #1d1d1d;
}

.leader-rank {
    width: 14px;
    font-size: 0.58rem;
    color: #3a3a3a;
    flex-shrink: 0;
    text-align: right;
    font-weight: 600;
}

.leader-photo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 1px solid #2e2e2e;
    flex-shrink: 0;
    background: #252525;
}

.leader-name {
    flex: 1;
    font-size: 0.72rem;
    color: #ccc;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leader-team {
    font-size: 0.57rem;
    color: #3a3a3a;
    flex-shrink: 0;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.leader-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
}

/* 5-column variant for basketball leaders */
.leaders-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px) {
    .leaders-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .leaders-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

/* ============ NBA STANDINGS ============ */

.nba-standings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

@media (max-width: 800px) {
    .nba-standings-layout { grid-template-columns: 1fr; }
}
