/**
 * Boxscore — Broadcast scoreboard (Phase 3)
 */

.bsb-card {
    background: #0d0d0d;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    padding: 28px 24px 20px;
    margin-bottom: 24px;
    border: 1px solid #1f1f1f;
}

.bsb-summary {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.bsb-team {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bsb-logo-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsb-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bsb-logo-initials {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 2rem;
    color: #fff;
    letter-spacing: 0.05em;
}

.bsb-logo-home .bsb-logo-initials {
    border-color: rgba(198, 40, 40, 0.5);
    background: linear-gradient(145deg, rgba(198, 40, 40, 0.2), #1a1a1a);
}

/* Team color themes — abbr & logo */
.bsb-abbr-theme-red { color: #ef5350; }
.bsb-abbr-theme-blue { color: #64b5f6; }
.bsb-abbr-theme-gray { color: #9e9e9e; }

.bsb-logo-theme-red .bsb-logo-initials {
    border-color: rgba(198, 40, 40, 0.5);
    background: linear-gradient(145deg, rgba(198, 40, 40, 0.25), #1a1a1a);
}
.bsb-logo-theme-blue .bsb-logo-initials {
    border-color: rgba(33, 150, 243, 0.5);
    background: linear-gradient(145deg, rgba(33, 150, 243, 0.25), #1a1a1a);
}
.bsb-logo-theme-gray .bsb-logo-initials {
    border-color: rgba(158, 158, 158, 0.5);
    background: linear-gradient(145deg, rgba(120, 120, 120, 0.25), #1a1a1a);
}

.bsp-out-modal-overlay {
    display: none !important;
}

.bsp-out-modal-overlay.is-open {
    display: flex !important;
}

.bsp-out-modal-card {
    max-width: min(560px, 96vw);
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.bsp-out-type-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.bsp-out-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.bsp-out-field-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.bsp-out-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bsp-out-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.bsp-out-type-btn.selected { outline: 2px solid #ef5350; }
.bsp-out-detail { font-family: monospace; color: #f5c542; }

/* Theme overrides (must beat legacy home/away defaults) */
.bsb-score-chip.bsb-score-theme-red { background: #8b1a1a; }
.bsb-score-chip.bsb-score-theme-blue { background: #1a3d8b; }
.bsb-score-chip.bsb-score-theme-gray { background: #4a4a4a; }
.bsb-score-chip.bsb-score-theme-neutral { background: #2e2e2e; }

.bsb-td-team.bsb-td-theme-red { background: #8b1a1a !important; color: #fff; }
.bsb-td-team.bsb-td-theme-blue { background: #1a3d8b !important; color: #fff; }
.bsb-td-team.bsb-td-theme-gray { background: #3a3a3a !important; color: #e0e0e0; }
.bsb-td-team.bsb-td-theme-neutral { background: #2a2a2a !important; color: #fff; }

.bsb-td-stat.bsb-td-theme-red { background: #6d1515 !important; }
.bsb-td-stat.bsb-td-theme-blue { background: #15306d !important; }
.bsb-td-stat.bsb-td-theme-gray { background: #333 !important; }
.bsb-td-stat.bsb-td-theme-neutral { background: #333 !important; }

.bsb-team-theme-red .bsb-team-name,
.bsb-team-theme-red .bsb-team-name-home { color: #ef5350; }
.bsb-team-theme-blue .bsb-team-name,
.bsb-team-theme-blue .bsb-team-name-home { color: #64b5f6; }
.bsb-team-theme-gray .bsb-team-name,
.bsb-team-theme-gray .bsb-team-name-home { color: #bdbdbd; }

@media (max-width: 520px) {
    .bsp-out-type-row {
        grid-template-columns: 1fr;
    }
    .bsp-out-field-grid {
        grid-template-columns: 1fr;
    }
}

/* 2026 broadcast scoreboard composition */
.bsb-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 36px;
    padding: clamp(28px, 3.5vw, 58px) clamp(22px, 3vw, 52px) clamp(28px, 3vw, 48px);
    background:
        radial-gradient(circle at 50% 8%, rgba(255, 255, 255, .035), transparent 38%),
        linear-gradient(135deg, #070707 0%, #111 48%, #080808 100%);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .72), inset 0 0 80px rgba(255, 255, 255, .018);
}

.bsb-summary {
    grid-template-columns: minmax(190px, 1fr) minmax(360px, 1.25fr) minmax(190px, 1fr);
    gap: clamp(20px, 4vw, 72px);
    min-height: 310px;
    margin-bottom: 24px;
}

.bsb-team { gap: 8px; }
.bsb-logo-wrap { width: clamp(150px, 15vw, 235px); height: clamp(150px, 15vw, 235px); }
.bsb-logo-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .62)); }
.bsb-team-name { display: none; }
.bsb-team-abbr {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.55rem, 2.3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: .04em;
    color: #f2f2f2 !important;
}

.bsb-score-row { gap: clamp(18px, 3vw, 46px); margin-bottom: 22px; }
.bsb-score-chip {
    display: grid;
    place-items: center;
    width: clamp(112px, 12vw, 190px);
    min-width: 112px;
    height: clamp(150px, 16vw, 230px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    font-size: clamp(6rem, 11vw, 10.5rem);
    font-weight: 700;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .4);
    box-shadow: inset 0 0 42px rgba(255, 255, 255, .05), 0 18px 36px rgba(0, 0, 0, .38);
}
.bsb-score-chip.bsb-score-theme-red { background: linear-gradient(145deg, #d30e12, #78080b); }
.bsb-score-chip.bsb-score-theme-blue { background: linear-gradient(145deg, #1356b5, #082a68); }
.bsb-score-chip.bsb-score-theme-gray { background: linear-gradient(145deg, #333, #181818); }
.bsb-vs { font-family: 'Bebas Neue', 'Oswald', sans-serif; font-size: clamp(3rem, 5vw, 5.6rem); font-weight: 700; color: #fff; text-transform: uppercase; }
.bsb-date { font-family: 'Oswald', sans-serif; font-size: clamp(1rem, 1.7vw, 1.7rem); font-weight: 700; color: #eee; }
.bsb-inning-line { color: #aaa; }
.bsb-divider { height: 5px; margin-bottom: 26px; opacity: .9; }

.bsb-table { min-width: 920px; font-family: 'Oswald', sans-serif; }
.bsb-table th, .bsb-table td { height: clamp(56px, 5.8vw, 86px); padding: 8px; border-color: #555; }
.bsb-table thead th { border: 0; background: transparent; color: #ddd; font-size: clamp(.9rem, 1.3vw, 1.35rem); }
.bsb-th-team { width: 150px; }
.bsb-td-team { width: 150px; font-size: clamp(1.55rem, 2.7vw, 3rem); }
.bsb-td-inn, .bsb-td-stat { font-size: clamp(1.15rem, 2.2vw, 2.35rem); }
.bsb-td-team.bsb-td-theme-red, .bsb-td-stat.bsb-td-theme-red { background: linear-gradient(135deg, #b80d10, #77090b) !important; }
.bsb-td-team.bsb-td-theme-blue, .bsb-td-stat.bsb-td-theme-blue { background: linear-gradient(135deg, #1557b7, #092b69) !important; }
.bsb-td-team.bsb-td-theme-gray, .bsb-td-stat.bsb-td-theme-gray { background: linear-gradient(135deg, #383838, #202020) !important; }
.bsb-inn-input, .bsb-stat-input { width: 100%; min-width: 42px; height: 42px; font-size: 1.2rem; }

/* Real inning-based batting sheet */
.bsheet-wrap { display: flex; flex-direction: column; gap: 24px; }
.bsheet-card { border-radius: 14px; }
.bsheet-card.bsheet-team-blue { border-color: rgba(32, 112, 255, .6); box-shadow: 0 16px 42px rgba(0, 0, 0, .48), inset 0 0 30px rgba(25, 86, 200, .09); }
.bsheet-team-blue .bsheet-title-row { border-color: rgba(32, 112, 255, .55); background: linear-gradient(90deg, rgba(16, 77, 190, .3), rgba(0, 0, 0, .45)); }
.bsheet-table { min-width: 980px; }
.bsheet-order-head, .bsheet-order { width: 52px; }
.bsheet-num-head, .bsheet-num { width: 62px; }
.bsheet-player-head, .bsheet-player { width: 230px; text-align: left !important; padding-left: 16px !important; }
.bsheet-pa-cell { width: 70px; min-width: 70px; font-weight: 800; font-size: .95rem; color: #fff; text-align: center; }
.bsheet-empty { padding: 24px !important; color: #999; }

@media (max-width: 900px) {
    .bsb-card { border-radius: 24px; }
    .bsb-summary { grid-template-columns: 1fr; min-height: 0; gap: 18px; }
    .bsb-team { display: grid; grid-template-columns: 92px 1fr; justify-content: center; }
    .bsb-logo-wrap { width: 92px; height: 92px; }
    .bsb-team-abbr { text-align: left; }
    .bsb-team-home { grid-template-columns: 1fr 92px; }
    .bsb-team-home .bsb-logo-wrap { order: 2; }
    .bsb-team-home .bsb-team-abbr { text-align: right; }
    .bsb-center { order: 3; }
    .bsb-score-chip { width: min(31vw, 150px); height: min(37vw, 180px); }
}

@media (max-width: 520px) {
    .bsb-card { padding: 20px 14px; border-radius: 18px; }
    .bsb-score-chip { min-width: 84px; height: 118px; font-size: 4.8rem; }
    .bsb-vs { font-size: 2.5rem; }
    .bsb-table-wrap { margin-inline: -8px; }
}

.boxscore-mode-actions { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.boxscore-mode-btn { flex: 1; min-width: 140px; }
.boxscore-view-mode-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 6px;
    background: #333;
    color: #ccc;
}
.boxscore-game-type-fieldset,
.boxscore-cubbies-side-fieldset {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}
.boxscore-radio-label { display: block; margin: 6px 0; cursor: pointer; }

.bsb-team-name {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e0e0e0;
    max-width: 140px;
    line-height: 1.3;
}

.bsb-team-name-home {
    color: #ef5350;
}

.bsb-team-abbr {
    margin: 0;
    font-size: 0.8rem;
    color: #9e9e9e;
}

.bsb-center {
    text-align: center;
    min-width: 140px;
}

.bsb-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.bsb-score-chip {
    min-width: 56px;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    font-size: 2.2rem;
    line-height: 1;
    color: #fff;
    background: #2e2e2e;
}

.bsb-score-home {
    background: #8b1a1a;
}

.bsb-vs {
    font-size: 0.85rem;
    color: #888;
    text-transform: lowercase;
}

.bsb-date {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: #bdbdbd;
    text-transform: uppercase;
}

.bsb-inning-line {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f5c542;
}

.bsb-divider {
    height: 3px;
    margin: 0 0 16px;
    background: linear-gradient(to bottom, #fff 0, #fff 1px, transparent 1px, transparent 2px, #fff 2px, #fff 3px);
    opacity: 0.35;
}

.bsb-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bsb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 480px;
}

.bsb-table th,
.bsb-table td {
    text-align: center;
    padding: 10px 6px;
    border: 1px solid #2a2a2a;
}

.bsb-table thead th {
    color: #9e9e9e;
    font-weight: 600;
    font-size: 0.75rem;
    background: #141414;
}

.bsb-th-team {
    width: 52px;
}

.bsb-th-stat {
    background: #1a1a1a !important;
}

.bsb-th-r {
    border-left: 2px solid #444 !important;
}

.bsb-td-team {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.bsb-td-away {
    background: #2a2a2a;
    color: #fff;
}

.bsb-td-home {
    background: #8b1a1a;
    color: #fff;
}

.bsb-td-inn {
    background: #161616;
    color: #e0e0e0;
}

.bsb-td-stat {
    background: #1a1a1a;
    font-weight: 700;
    color: #fff;
}

.bsb-td-r-away {
    background: #333;
    border-left: 2px solid #444;
}

.bsb-td-r-home {
    background: #6d1515;
    border-left: 2px solid #444;
}

.bsb-inn-input,
.bsb-stat-input {
    width: 36px;
    padding: 4px;
    text-align: center;
    border: 1px solid #444;
    border-radius: 4px;
    background: #0d0d0d;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
}

.bsb-board-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bsb-frame-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bsb-frame-btn.is-current {
    box-shadow: 0 0 16px rgba(239, 83, 80, 0.35);
}

.bsheet-wrap {
    display: grid;
    gap: 22px;
}

.bsheet-card {
    background:
        radial-gradient(circle at 0 0, rgba(198, 40, 40, 0.22), transparent 36%),
        linear-gradient(135deg, #120707 0%, #070707 46%, #111 100%);
    border: 1px solid rgba(198, 40, 40, 0.42);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48), inset 0 0 30px rgba(198, 40, 40, 0.08);
}

.bsheet-title-row {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(198, 40, 40, 0.42);
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.26), rgba(0, 0, 0, 0.45));
}

.bsheet-title-row h4 {
    margin: 0;
    font-family: 'Bebas Neue', 'Oswald', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f5f5f5;
}

.bsheet-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bsheet-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    font-family: 'Oswald', system-ui, sans-serif;
}

.bsheet-table th,
.bsheet-table td {
    border: 1px solid rgba(198, 40, 40, 0.32);
    height: 48px;
    text-align: center;
}

.bsheet-table th {
    color: #ef5350;
    background: rgba(0, 0, 0, 0.62);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
}

.bsheet-num-head,
.bsheet-num {
    width: 58px;
}

.bsheet-player-head,
.bsheet-player {
    width: 220px;
    text-align: left !important;
    padding-left: 16px;
}

.bsheet-num {
    background: linear-gradient(135deg, #a6121b, #250609 62%, #090909);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
}

.bsheet-player {
    color: #f5f5f5;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.38);
}

.bsheet-row-replacement .bsheet-num,
.bsheet-row-replacement .bsheet-player {
    background: rgba(198, 40, 40, 0.12);
    color: #f0c6c6;
}

.bsheet-row-replacement .bsheet-player {
    padding-left: 34px;
}

.bsheet-pa-cell {
    background: rgba(13, 13, 13, 0.82);
    color: #f5c542;
    font-weight: 800;
    font-size: 0.92rem;
}

.bsheet-add-head,
.bsheet-add-cell {
    width: 58px;
}

.bsheet-add-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f5f5f5;
    color: #111;
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}

.bsheet-add-btn:hover,
.bsheet-add-btn:focus {
    background: #ef5350;
    color: #fff;
}

.bsheet-empty {
    color: #bbb;
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
}

.bsheet-modal {
    display: none !important;
}

.bsheet-modal.is-open {
    display: flex !important;
}

.bsheet-modal-card {
    max-width: min(720px, 96vw);
    overflow-x: hidden;
}

.bsheet-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.bsheet-result-btn {
    min-height: 46px;
    white-space: normal;
}

@media (max-width: 720px) {
    .bsb-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bsb-center {
        order: -1;
    }

    .bsb-logo-wrap {
        width: 72px;
        height: 72px;
    }

    .bsb-logo-initials {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .bsb-board-actions {
        align-items: stretch;
    }

    .bsb-frame-controls,
    .bsb-frame-btn {
        width: 100%;
    }

    .bsheet-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 460px) {
    .bsheet-result-grid {
        grid-template-columns: 1fr;
    }
}

#boxscore-broadcast-card.bsb-card {
    --bsb-total-number-size: clamp(4.4rem, 7vw, 6.4rem);
    --bsb-grid-number-size: clamp(1rem, 1.55vw, 1.45rem);
    --bsb-grid-label-size: clamp(.78rem, 1vw, .95rem);
    --bsb-abbr-size: clamp(1.15rem, 1.7vw, 1.65rem);
    overflow: hidden;
    width: min(100%, 1120px);
    margin-inline: auto;
    border-radius: 28px;
    padding: clamp(22px, 2.4vw, 34px) clamp(18px, 2.5vw, 36px) clamp(20px, 2.2vw, 30px);
    background: radial-gradient(circle at 50% 8%, rgba(255,255,255,.035), transparent 38%), linear-gradient(135deg, #070707, #111 48%, #080808);
}
#boxscore-broadcast-card .bsb-summary { grid-template-columns: minmax(150px,1fr) minmax(300px,1.15fr) minmax(150px,1fr); gap: clamp(16px,2.6vw,38px); min-height: 218px; margin-bottom: 14px; }
#boxscore-broadcast-card .bsb-logo-wrap { width: clamp(108px,11vw,150px); height: clamp(108px,11vw,150px); }
#boxscore-broadcast-card .bsb-logo-img { width: 100%; height: 100%; object-fit: contain; }
#boxscore-broadcast-card .bsb-team-name { display: none; }
#boxscore-broadcast-card .bsb-team-abbr { font-size: var(--bsb-abbr-size); line-height: 1; color: #f2f2f2 !important; }
#boxscore-broadcast-card .bsb-score-row { gap: clamp(14px,2vw,26px); margin-bottom: 12px; }
#boxscore-broadcast-card .bsb-score-chip { display: grid; place-items: center; width: clamp(88px,9vw,122px); min-width: 88px; height: clamp(118px,12vw,158px); padding: 0; font-size: var(--bsb-total-number-size); font-weight: 700; line-height: 1; }
#boxscore-broadcast-card .bsb-score-theme-red { background: linear-gradient(145deg,#d30e12,#78080b); }
#boxscore-broadcast-card .bsb-score-theme-blue { background: linear-gradient(145deg,#1356b5,#082a68); }
#boxscore-broadcast-card .bsb-score-theme-gray { background: linear-gradient(145deg,#333,#181818); }
#boxscore-broadcast-card .bsb-vs { font-size: clamp(2rem,3vw,3.25rem); line-height: 1; color: #fff; text-transform: uppercase; }
#boxscore-broadcast-card .bsb-date { font-size: clamp(.78rem,1.05vw,1rem); color: #eee; }
#boxscore-broadcast-card .bsb-inning-line { font-size: .75rem; margin-top: .2rem; }
#boxscore-broadcast-card .bsb-divider { height: 4px; margin-bottom: 14px; }
#boxscore-broadcast-card .bsb-table { min-width: 820px; table-layout: fixed; }
#boxscore-broadcast-card .bsb-table th,
#boxscore-broadcast-card .bsb-table td { height: clamp(42px,4.2vw,56px); padding: 5px 4px; border-color: #555; font-weight: 700; line-height: 1; }
#boxscore-broadcast-card .bsb-table thead th { height: 34px; padding: 4px; border: 0; background: transparent; font-size: var(--bsb-grid-label-size); font-weight: 700; }
#boxscore-broadcast-card .bsb-th-team,
#boxscore-broadcast-card .bsb-td-team { width: 112px; }
#boxscore-broadcast-card .bsb-td-team { font-size: var(--bsb-grid-number-size); font-weight: 700; }
#boxscore-broadcast-card .bsb-td-inn,
#boxscore-broadcast-card .bsb-td-stat { font-size: var(--bsb-grid-number-size); font-weight: 700; }
#boxscore-broadcast-card .bsb-inn-input,
#boxscore-broadcast-card .bsb-stat-input { width: 100%; height: 32px; min-width: 28px; padding: 2px; font-size: var(--bsb-grid-number-size); font-weight: 700; line-height: 1; }
.bsheet-wrap#boxscore-batting-sheet { display: flex; flex-direction: column; gap: 24px; }
.bsheet-wrap#boxscore-batting-sheet .bsheet-table { min-width: 980px; }
.bsheet-wrap#boxscore-batting-sheet .bsheet-order-head,
.bsheet-wrap#boxscore-batting-sheet .bsheet-order { width: 52px; }
.bsheet-wrap#boxscore-batting-sheet .bsheet-num-head,
.bsheet-wrap#boxscore-batting-sheet .bsheet-num { width: 62px; }
.bsheet-wrap#boxscore-batting-sheet .bsheet-player-head,
.bsheet-wrap#boxscore-batting-sheet .bsheet-player { width: 230px; text-align: left; padding-left: 16px; }
.bsheet-wrap#boxscore-batting-sheet .bsheet-pa-cell { width: 70px; min-width: 70px; font-weight: 800; color: #fff; text-align: center; }

/* TEAM BLUE batting-sheet theme — scoped to preserve TEAM RED and Single Game. */
#boxscore-batting-sheet .bsheet-card.bsheet-team-blue {
    background:
        radial-gradient(circle at 4% 4%, rgba(8, 103, 255, .22), transparent 34%),
        linear-gradient(135deg, #020b18 0%, #05090f 48%, #0a0b0d 100%);
    border: 1px solid #168cff;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .5), inset 0 0 34px rgba(0, 102, 255, .1);
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-title-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #168cff;
    background: linear-gradient(115deg, #0759cf 0%, #07367e 35%, #021327 72%, #05090f 100%);
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-title-row h4 {
    color: #fff;
    text-shadow: 0 0 16px rgba(30, 145, 255, .5);
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-table th,
#boxscore-batting-sheet .bsheet-team-blue .bsheet-table td {
    border-color: rgba(23, 132, 238, .58);
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-table th {
    color: #2397ff;
    background: linear-gradient(180deg, rgba(1, 18, 38, .96), rgba(3, 8, 14, .96));
    text-shadow: 0 0 12px rgba(26, 142, 255, .35);
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-order {
    background: linear-gradient(110deg, rgba(6, 38, 82, .94), rgba(4, 17, 34, .94));
    color: #61b4ff;
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-num {
    background: linear-gradient(120deg, #073675 0%, #0868e6 48%, #02142c 100%);
    color: #fff;
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-player {
    background: linear-gradient(90deg, rgba(3, 20, 40, .98), rgba(3, 9, 16, .94));
    color: #f4f9ff;
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-pa-cell {
    background: linear-gradient(135deg, rgba(4, 13, 24, .98), rgba(10, 11, 13, .98));
    color: #5ab0ff;
}

#boxscore-batting-sheet .bsheet-team-blue .bsheet-empty {
    color: #8cc8ff;
}
@media (max-width: 900px) {
    #boxscore-broadcast-card .bsb-summary { grid-template-columns: 1fr; min-height: 0; }
    #boxscore-broadcast-card .bsb-team { display: grid; grid-template-columns: 92px 1fr; }
    #boxscore-broadcast-card .bsb-logo-wrap { width: 92px; height: 92px; }
    #boxscore-broadcast-card .bsb-team-home { grid-template-columns: 1fr 92px; }
    #boxscore-broadcast-card .bsb-team-home .bsb-logo-wrap { order: 2; }
    #boxscore-broadcast-card .bsb-center { order: 3; }
}

@media (max-width: 560px) {
    #boxscore-broadcast-card.bsb-card { border-radius: 18px; padding: 16px 12px; }
    #boxscore-broadcast-card .bsb-team { grid-template-columns: 68px 1fr; }
    #boxscore-broadcast-card .bsb-team-home { grid-template-columns: 1fr 68px; }
    #boxscore-broadcast-card .bsb-logo-wrap { width: 68px; height: 68px; }
    #boxscore-broadcast-card .bsb-score-chip { width: 82px; min-width: 82px; height: 104px; font-size: 4rem; }
    #boxscore-broadcast-card .bsb-table { min-width: 760px; }
}
