/* ─── Variables ──────────────────────────────────────────────────────────────── */
:root {
    --navy:       #1a2340;
    --navy-light: #243055;
    --mlb:        #003087;
    --nhl:        #111111;
    --nba:        #c9082a;
    --wnba:       #ff6b35;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.14);
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
body {
    background-color: #f4f6fb;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e2535;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.site-navbar {
    background-color: var(--navy);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-navbar .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: 0.01em;
}

.site-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.15s;
}

.site-navbar .nav-link:hover {
    color: #fff !important;
}

/* ─── Page header ────────────────────────────────────────────────────────────── */
.page-header h1 {
    color: var(--navy);
}

/* ─── Controls bar ───────────────────────────────────────────────────────────── */
.controls-bar {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--card-shadow);
}

/* ─── League tabs ────────────────────────────────────────────────────────────── */
.league-tab {
    border: 2px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.league-tab:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.league-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.league-tab-mlb.active  { background: var(--mlb);  border-color: var(--mlb); }
.league-tab-nhl.active  { background: var(--nhl);  border-color: var(--nhl); }
.league-tab-nba.active  { background: var(--nba);  border-color: var(--nba); }
.league-tab-wnba.active { background: var(--wnba); border-color: var(--wnba); }

.league-tab .badge {
    font-size: 0.7rem;
    font-weight: 700;
}

.league-tab.active .badge {
    background: rgba(255,255,255,0.3) !important;
}

/* ─── League section headings ────────────────────────────────────────────────── */
.league-section-heading {
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

/* ─── League badges ──────────────────────────────────────────────────────────── */
.league-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3em 0.65em;
    border-radius: 20px;
}

.league-mlb  { background-color: var(--mlb)  !important; color: #fff !important; }
.league-nhl  { background-color: var(--nhl)  !important; color: #fff !important; }
.league-nba  { background-color: var(--nba)  !important; color: #fff !important; }
.league-wnba { background-color: var(--wnba) !important; color: #fff !important; }

/* ─── Team cards ─────────────────────────────────────────────────────────────── */
.team-card {
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.team-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}

.team-abbr {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: #f0f3f9;
    padding: 0.2em 0.5em;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ─── Broadcast sections ─────────────────────────────────────────────────────── */
.broadcast-sections {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.broadcast-group {
    padding: 0.45rem 0.6rem;
    background: #f8f9fc;
    border-radius: 8px;
    border-left: 3px solid #dee2e6;
}

.broadcast-group:has(.cat-regional-tv),
.broadcast-group:has(.network-name):first-child {
    border-left-color: #6c757d;
}

.broadcast-category-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.broadcast-entry {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.15rem;
}

.broadcast-entry:last-child {
    margin-bottom: 0;
}

.network-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e2535;
}

.network-note {
    font-size: 0.72rem;
    color: #6c757d;
    font-style: italic;
}

.network-link {
    color: var(--navy);
    text-decoration: none;
}

.network-link:hover {
    text-decoration: underline;
    color: var(--navy);
}

/* ─── Category badges (admin) ────────────────────────────────────────────────── */
.category-badge {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.3em 0.6em;
}

.cat-regional-tv    { background-color: #dbeafe; color: #1e40af; }
.cat-national-tv    { background-color: #fef9c3; color: #854d0e; }
.cat-streaming      { background-color: #dcfce7; color: #166534; }
.cat-radio          { background-color: #fce7f3; color: #9d174d; }
.cat-ota            { background-color: #ede9fe; color: #5b21b6; }
.cat-out-of-market  { background-color: #ffedd5; color: #9a3412; }

/* ─── Card footer edit link ──────────────────────────────────────────────────── */
.team-card .card-footer .btn {
    font-size: 0.75rem;
    color: #9ca3af;
    border-color: #e5e7eb;
}

.team-card .card-footer .btn:hover {
    color: var(--navy);
    border-color: var(--navy);
    background: transparent;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid #e8ecf3;
    background: #fff;
}

.site-footer a {
    color: var(--navy);
}

/* ─── Inline broadcast list (full-width panels) ──────────────────────────────── */
.broadcast-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding: 0.5rem 1rem;
}

.broadcast-list-inline li {
    border-bottom: none;
    padding: 0.35rem 0;
    flex: 0 0 auto;
    min-width: 160px;
}

/* ─── Team section break ─────────────────────────────────────────────────────── */
.team-section-break {
    border-color: #e2e8f0;
    margin: 0.75rem 0 1rem;
}

/* ─── Sources panel ──────────────────────────────────────────────────────────── */
.sources-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
}

.sources-list li {
    padding: 0.4rem 1rem;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--navy);
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
}

.source-link-icon {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ─── Hidden card (JS filtering) ─────────────────────────────────────────────── */
.team-card-col.hidden {
    display: none !important;
}

/* League section hidden when all children are hidden */
.league-section.hidden {
    display: none !important;
}

/* ─── Home hero ──────────────────────────────────────────────────────────────── */
.home-hero {
    max-width: 680px;
    margin: 4vh auto 0;
    text-align: center;
    padding: 2rem 1rem 3rem;
}

.home-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.home-subtitle {
    font-size: 1.05rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.home-search {
    margin: 0 auto 2.5rem;
}

.home-search-box {
    position: relative;
}

.home-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 1.1rem;
    z-index: 2;
}

.home-search-box input {
    padding-left: 3rem;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e6ef;
}

.home-search-box input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 0.2rem rgba(26,35,64,0.12);
}

/* ─── Search dropdown ────────────────────────────────────────────────────────── */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
    z-index: 50;
    text-align: left;
}

.search-dropdown.show { display: block; }

.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: #1e2535;
    border-bottom: 1px solid #f0f2f7;
}

.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #f4f6fb; }

.search-item-abbr {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25em 0.5em;
    border-radius: 6px;
    color: #fff !important;
    min-width: 42px;
    text-align: center;
}

.search-item-name { flex: 1; font-weight: 600; }
.search-item-league { font-size: 0.75rem; color: #9ca3af; font-weight: 700; }

/* ─── League links (home) ────────────────────────────────────────────────────── */
.league-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 520px;
    margin: 0 auto;
}

.league-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    border-top: 4px solid #dee2e6;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.league-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.league-link-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.6rem;
}

.league-link-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.league-link-count {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 600;
    margin-top: 0.1rem;
}

.league-link-mlb  { border-top-color: var(--mlb); }
.league-link-nhl  { border-top-color: var(--nhl); }
.league-link-nba  { border-top-color: var(--nba); }
.league-link-wnba { border-top-color: var(--wnba); }

/* ─── League filter box ──────────────────────────────────────────────────────── */
.league-filter-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e2e6ef;
    border-radius: 24px;
    padding: 0.4rem 1rem;
    box-shadow: var(--card-shadow);
    min-width: 240px;
}

.league-filter-box input {
    border: none;
    box-shadow: none !important;
    padding: 0.2rem 0;
}

.league-filter-box input:focus { outline: none; }

/* ─── Conference / division headings ─────────────────────────────────────────── */
.conf-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #e8ecf3;
}

.div-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    margin: 1rem 0 0.5rem;
}

/* ─── Team link cards (league + search) ──────────────────────────────────────── */
.team-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: #1e2535;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.team-link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    color: #1e2535;
}

.team-link-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ─── Team card logo stack ────────────────────────────────────────────────────── */
.team-logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 56px;
}

.team-card-league-logo {
    height: 16px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.team-card-logo-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-logo {
    max-width: 48px;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.team-card-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
}

.team-abbr-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35em 0.55em;
    border-radius: 7px;
    color: #fff !important;
    min-width: 46px;
    text-align: center;
}

.team-link-name { font-weight: 700; line-height: 1.25; }
.team-link-sub  { font-size: 0.75rem; color: #9ca3af; }
.team-link-arrow { color: #cbd2e0; }

/* ─── Blackout link ──────────────────────────────────────────────────────────── */
.blackout-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
}

.blackout-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* ─── Team page ──────────────────────────────────────────────────────────────── */
.team-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border-left: 5px solid #dee2e6;
}

.league-accent-mlb  { border-left-color: var(--mlb); }
.league-accent-nhl  { border-left-color: var(--nhl); }
.league-accent-nba  { border-left-color: var(--nba); }
.league-accent-wnba { border-left-color: var(--wnba); }

.team-local-broadcast {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.35rem;
}

.team-local-broadcast i { margin-right: 0.25rem; }

.team-local-broadcast a {
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
}

.team-local-broadcast a:hover { text-decoration: underline; }

[data-bs-theme="dark"] .team-local-broadcast { color: #9aa4b5; }
[data-bs-theme="dark"] .team-local-broadcast a { color: #cdd6e6; }

.team-abbr-pill-lg {
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0.5em 0.7em;
    border-radius: 10px;
    color: #fff !important;
    min-width: 64px;
    text-align: center;
}

.broadcast-panel {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    height: 100%;
    overflow: hidden;
}

.broadcast-panel-header {
    background: #f8f9fc;
    padding: 0.7rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    border-bottom: 1px solid #eef1f6;
}

.broadcast-panel-header i { margin-right: 0.4rem; }

.broadcast-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.broadcast-list li {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f4f6fb;
}

.broadcast-list li:last-child { border-bottom: none; }

/* ─── Hidden card (JS filtering) ─────────────────────────────────────────────── */
.team-card-col.hidden { display: none !important; }

/* ─── Upcoming games list ────────────────────────────────────────────────────── */
.games-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f4f6fb;
    flex-wrap: wrap;
}

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

.game-when {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.game-date {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e2535;
}

.game-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.game-time-local {
    margin-left: 0.25rem;
    color: #9ca3af;
}

.game-matchup {
    flex: 1;
    min-width: 140px;
    font-size: 0.9rem;
}

.game-vs {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9ca3af;
    margin-right: 0.35rem;
}

.game-opp { font-weight: 600; color: #1e2535; }

.game-nets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    margin-left: auto;
}

.game-net-badge {
    font-size: 0.72rem;
    font-weight: 600;
    background: #eef2ff;
    color: #3730a3;
    padding: 0.2em 0.55em;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

a.game-net-badge:hover { text-decoration: underline; }

/* Local broadcaster — prominent highlight */
.game-net-local {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(26,35,64,0.3);
}

.game-net-local .bi { font-size: 0.68rem; }

a.game-net-local:hover { color: #fff; }

.games-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-top: 1px solid #eef1f6;
    background: #f8f9fc;
}

/* ─── Admin dashboard grid ───────────────────────────────────────────────────── */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 880px;
    margin: 0 auto;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: #1e2535;
    border-top: 4px solid var(--navy);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    color: #1e2535;
}

.admin-tile-icon {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 0.6rem;
}

.admin-tile-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.01em;
}

.admin-tile-desc {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 0.2rem;
}

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

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

/* ─── Standings table ────────────────────────────────────────────────────────── */
.standings-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 0;
}

.standings-table thead th {
    background: #f8f9fc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #eef1f6;
    white-space: nowrap;
}

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

.standings-rank {
    width: 32px;
    text-align: center;
    font-size: 0.8rem;
}

.standings-num {
    text-align: center;
    font-size: 0.88rem;
    white-space: nowrap;
}

.standings-team-link {
    text-decoration: none;
    color: #1e2535;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.standings-team-link:hover { color: var(--navy); text-decoration: underline; }

.standings-highlight {
    background-color: #eff6ff !important;
}

.standings-highlight td { border-color: #bfdbfe !important; }

/* ─── OOM notes (public-facing per-entry note) ──────────────────────────────── */
.oom-notes {
    font-size: 0.78rem;
    color: #374151;
    margin-top: 0.15rem;
    display: block;
}

/* ─── OOM region label (NHL US / Canada sub-headers) ────────────────────────── */
.oom-region-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    padding: 0.4rem 1rem 0.2rem;
}

/* ─── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .home-title { font-size: 1.9rem; }
    .home-hero  { padding-top: 1rem; }
    .league-links { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .league-link  { padding: 1.1rem 0.5rem; }
    .league-link-name { font-size: 1.15rem; }
    .team-page-header { padding: 1rem; }
}

/* ─── Theme toggle button ────────────────────────────────────────────────────── */
.theme-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: rgba(255,255,255,0.8) !important;
    font-size: 1.05rem;
    line-height: 1;
    padding: 0.5rem 0.75rem;
}
.theme-toggle:hover { color: #fff !important; }

/* ─── Dark mode ──────────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] {
    --card-shadow: 0 2px 8px rgba(0,0,0,0.45);
    --card-shadow-hover: 0 6px 20px rgba(0,0,0,0.6);
}

[data-bs-theme="dark"] body {
    background-color: #11161f;
    color: #e6e9f0;
}

/* Headings / brand text that hard-coded --navy */
[data-bs-theme="dark"] .home-title,
[data-bs-theme="dark"] .page-header h1,
[data-bs-theme="dark"] .league-link-name,
[data-bs-theme="dark"] .conf-heading,
[data-bs-theme="dark"] .team-link-name,
[data-bs-theme="dark"] .team-card .card-title,
[data-bs-theme="dark"] .broadcast-panel-header,
[data-bs-theme="dark"] .admin-tile-name,
[data-bs-theme="dark"] .admin-tile-icon {
    color: #d6deec;
}

/* Muted/secondary text */
[data-bs-theme="dark"] .home-subtitle,
[data-bs-theme="dark"] .team-link-sub,
[data-bs-theme="dark"] .league-link-count,
[data-bs-theme="dark"] .network-note,
[data-bs-theme="dark"] .div-heading,
[data-bs-theme="dark"] .admin-tile-desc,
[data-bs-theme="dark"] .oom-region-label,
[data-bs-theme="dark"] .blackout-link {
    color: #9aa4b5;
}

/* Surfaces (custom cards/panels not covered by Bootstrap's data-bs-theme) */
[data-bs-theme="dark"] .broadcast-panel,
[data-bs-theme="dark"] .team-link-card,
[data-bs-theme="dark"] .league-link,
[data-bs-theme="dark"] .admin-tile,
[data-bs-theme="dark"] .team-page-header,
[data-bs-theme="dark"] .controls-bar,
[data-bs-theme="dark"] .search-dropdown,
[data-bs-theme="dark"] .standings-table,
[data-bs-theme="dark"] .home-search-box input,
[data-bs-theme="dark"] .league-filter-box {
    background: #1b2230;
    border-color: #2b3445;
    color: #e6e9f0;
}

[data-bs-theme="dark"] .team-link-card:hover,
[data-bs-theme="dark"] .team-link-card:hover .team-link-name { color: #e6e9f0; }

/* Subtle header strips / table heads */
[data-bs-theme="dark"] .broadcast-panel-header,
[data-bs-theme="dark"] .standings-table thead th,
[data-bs-theme="dark"] .games-pager {
    background: #232c3c;
    border-color: #2b3445;
    color: #cfd8e8;
}

/* Borders & dividers */
[data-bs-theme="dark"] .broadcast-list li,
[data-bs-theme="dark"] .standings-table tbody td,
[data-bs-theme="dark"] .game-row,
[data-bs-theme="dark"] .search-item { border-color: #232c3c; }
[data-bs-theme="dark"] .team-section-break { border-color: #2b3445; }
[data-bs-theme="dark"] .conf-heading { border-bottom-color: #2b3445; }

/* Foreground text on surfaces */
[data-bs-theme="dark"] .network-name,
[data-bs-theme="dark"] .game-date,
[data-bs-theme="dark"] .game-opp,
[data-bs-theme="dark"] .standings-team-link,
[data-bs-theme="dark"] .search-item,
[data-bs-theme="dark"] .source-link { color: #e6e9f0; }

[data-bs-theme="dark"] .search-item:hover { background: #232c3c; }
[data-bs-theme="dark"] .team-abbr { background: #232c3c; color: #e6e9f0; }
[data-bs-theme="dark"] .game-time,
[data-bs-theme="dark"] .game-time-local { color: #9aa4b5; }

/* Badges */
[data-bs-theme="dark"] .game-net-badge { background: #2a3242; color: #c7d2fe; }
[data-bs-theme="dark"] .game-net-local { background: #3b82f6; color: #fff; }
[data-bs-theme="dark"] a.game-net-local:hover { color: #fff; }

/* Highlighted standings row */
[data-bs-theme="dark"] .standings-highlight { background-color: #1e3a5f !important; }
[data-bs-theme="dark"] .standings-highlight td { border-color: #2c4a72 !important; }

/* Notes / placeholders */
[data-bs-theme="dark"] .oom-notes { color: #c7cede; }
[data-bs-theme="dark"] .home-search-box input::placeholder { color: #6b7585; }

/* Footer */
[data-bs-theme="dark"] .site-footer { background: #1b2230; border-color: #2b3445; }
[data-bs-theme="dark"] .site-footer a { color: #9aa4b5; }

/* Company group header (admin broadcasters) — light by default, dark-aware */
.bc-company-cell { background: #f0f3f9; }
[data-bs-theme="dark"] .bc-company-cell { background: #232c3c; }

/* Bootstrap's light utilities aren't theme-aware — darken them in dark mode */
[data-bs-theme="dark"] thead.table-light th {
    background-color: #232c3c !important;
    color: #cfd8e8 !important;
    border-color: #2b3445 !important;
}
[data-bs-theme="dark"] .card-footer.bg-light {
    background-color: #1f2735 !important;
    border-color: #2b3445;
}
[data-bs-theme="dark"] code.bg-light,
[data-bs-theme="dark"] pre.bg-light {
    background-color: #232c3c !important;
    color: #e6e9f0;
}
