/* ==========================================================================
   University Week Monitor — Royal Blue & White with Gold accents
   ========================================================================== */
:root {
    --royal: #1f3fae;
    --royal-600: #2a4fc9;
    --royal-700: #17318d;
    --royal-800: #122667;
    --royal-900: #0b1a4a;
    --royal-50: #eef2ff;
    --royal-100: #dfe6ff;
    --gold: #f2b705;
    --gold-600: #d49d00;
    --yellow: #ffd23f;
    --ink: #111827;
    --ink-2: #4b5563;
    --muted: #6b7280;
    --grid: #e5e7eb;
    --line: #e3e8f4;
    --bg: #f3f6fc;
    --card: #ffffff;
    /* reserved status colours — always shown with an icon + label */
    --st-upcoming: #475569;
    --st-ongoing: #dc2626;
    --st-completed: #15803d;
    --st-postponed: #b45309;
    --st-cancelled: #6b7280;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 29, 74, .06), 0 4px 16px rgba(15, 29, 74, .06);
    --bs-primary: var(--royal);
    --bs-primary-rgb: 31, 63, 174;
    --bs-link-color: var(--royal);
    --bs-link-color-rgb: 31, 63, 174;
    --bs-link-hover-color: var(--royal-700);
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body { font-family: var(--bs-body-font-family); background: var(--bg); color: var(--ink); font-size: .925rem; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--royal-700); }
.text-gold { color: var(--gold) !important; }
.min-w-0 { min-width: 0; }

.btn-primary { --bs-btn-bg: var(--royal); --bs-btn-border-color: var(--royal); --bs-btn-hover-bg: var(--royal-700); --bs-btn-hover-border-color: var(--royal-700); --bs-btn-active-bg: var(--royal-800); }
.btn-outline-primary { --bs-btn-color: var(--royal); --bs-btn-border-color: var(--royal); --bs-btn-hover-bg: var(--royal); --bs-btn-hover-border-color: var(--royal); --bs-btn-active-bg: var(--royal-700); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--royal-900); font-weight: 600; }
.btn-gold:hover { background: var(--yellow); border-color: var(--yellow); color: var(--royal-900); }
.form-control:focus, .form-select:focus { border-color: var(--royal-600); box-shadow: 0 0 0 .2rem rgba(31, 63, 174, .15); }
.form-label { font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: .25rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { background: var(--royal-50); border-bottom: 1px solid var(--line); }
.table { --bs-table-bg: transparent; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); white-space: nowrap; }

/* ---------- Top navigation ---------- */
.topbar { background: linear-gradient(90deg, var(--royal-900), var(--royal) 70%, var(--royal-600)); box-shadow: 0 2px 10px rgba(11, 26, 74, .3); padding: .55rem 0; border-bottom: 3px solid var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: .7rem; color: rgba(255, 255, 255, .7); }
.topbar .nav-link { color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .82rem; border-radius: 8px; padding: .45rem .6rem !important; white-space: nowrap; }
.topbar .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1499.98px) { .topbar .nav-link .bi { display: none; } .brand-sub { display: none; } }
.topbar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topbar .nav-link.active { color: var(--royal-900); background: var(--yellow); }

.livebar { background: var(--royal-800); color: #fff; padding: .4rem 0; font-size: .82rem; }
.live-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .15rem .65rem; border-radius: 999px; font-weight: 700; font-size: .75rem; letter-spacing: .04em; }
.live-pill.is-live { background: var(--st-ongoing); color: #fff; }
.live-pill.is-idle { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 500; }
.pulse-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: pulse 1.6s infinite; flex: none; }
.panel-head .pulse-dot, .date-heading .pulse-dot, .b-meta .pulse-dot { background: var(--st-ongoing); box-shadow: 0 0 0 0 rgba(220, 38, 38, .6); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); } 70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.refresh-state .bi { margin-right: .15rem; }
.refresh-state.state-error { color: #fecaca; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.announcement { background: linear-gradient(90deg, #fff7d6, #fffbeb); border: 1px solid #fde68a; border-left: 4px solid var(--gold); border-radius: 10px; padding: .55rem .9rem; margin-bottom: 1.25rem; font-size: .88rem; color: #78350f; display: flex; gap: .5rem; align-items: center; }

/* ---------- Page structure ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.page-title { font-size: 1.6rem; font-weight: 700; color: var(--royal-900); margin: 0; }
.page-sub { color: var(--muted); margin: .2rem 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; gap: .5rem; }
.panel-head h2 { font-size: 1rem; font-weight: 700; margin: 0; color: var(--royal-900); display: flex; align-items: center; gap: .5rem; }
.section-title { font-weight: 700; color: var(--royal-900); margin: .5rem 0 .9rem; }
.filter-bar { padding: .9rem 1rem; }
.chart-box { position: relative; width: 100%; }
.site-footer { background: var(--royal-900); color: rgba(255, 255, 255, .65); font-size: .75rem; padding: 1rem 0; margin-top: 2rem; }

/* ---------- Stat cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stat-card { display: flex; gap: .9rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); color: var(--ink); transition: transform .15s; }
.stat-card:hover { transform: translateY(-2px); color: var(--ink); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.stat-label { font-size: .75rem; color: var(--muted); font-weight: 500; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--royal-900); }
.stat-sub { font-size: .72rem; color: var(--muted); }
.tone-blue .stat-icon { background: var(--royal-50); color: var(--royal); }
.tone-navy .stat-icon { background: var(--royal); color: #fff; }
.tone-live .stat-icon { background: #fee2e2; color: var(--st-ongoing); }
.tone-gold .stat-icon { background: #fef3c7; color: var(--gold-600); }
.tone-green .stat-icon { background: #dcfce7; color: var(--st-completed); }
.progress-stacked { height: 12px; border-radius: 999px; background: #e9edf7; }
.bg-status-completed { background: var(--st-completed) !important; }
.bg-status-ongoing { background: var(--st-ongoing) !important; }
.bg-status-postponed { background: var(--st-postponed) !important; }
.legend-row { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--ink-2); }
.legend-row .sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.legend-row .sw-empty { background: #e9edf7; border: 1px solid #cbd5e1; }

/* ---------- Status badges ---------- */
.status-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.status-badge.status-upcoming { background: #eef2f7; color: var(--st-upcoming); }
.status-badge.status-ongoing { background: var(--st-ongoing); color: #fff; }
.status-badge.status-completed { background: #dcfce7; color: var(--st-completed); }
.status-badge.status-postponed { background: #fef3c7; color: var(--st-postponed); }
.status-badge.status-cancelled { background: #f3f4f6; color: var(--st-cancelled); text-decoration: line-through; }
.status-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 500; }
.chip span { background: var(--royal-50); color: var(--royal); border-radius: 999px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; }
.chip.active { background: var(--royal); color: #fff; border-color: var(--royal); }
.chip.active span { background: var(--yellow); color: var(--royal-900); }
.chip-ongoing .bi { color: var(--st-ongoing); }
.chip.active .bi { color: inherit; }

/* ---------- Match cards ---------- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.match-grid.compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.panel .col-lg-6 .match-grid.compact, .col-lg-5 .match-grid.compact, .col-xl-7 .match-grid.compact { grid-template-columns: 1fr; }
.match-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--st-upcoming); display: flex; flex-direction: column; }
.match-card.status-ongoing { border-top-color: var(--st-ongoing); }
.match-card.status-completed { border-top-color: var(--st-completed); }
.match-card.status-postponed { border-top-color: var(--st-postponed); }
.match-card.status-cancelled { border-top-color: var(--st-cancelled); opacity: .75; }
.match-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: .7rem .9rem .3rem; }
.match-event { font-size: .8rem; font-weight: 600; color: var(--royal-900); min-width: 0; }
.match-event a { color: inherit; }
.match-event .bi { color: var(--royal); margin-right: .2rem; }
.match-round { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.match-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .5rem .9rem .8rem; }
.side { text-align: center; min-width: 0; }
.side-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin: 0 auto .35rem; display: block; border: 3px solid var(--c); background: #fff; }
.side-logo-text { display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .02em; border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 2px var(--c); }
.side-logo-tbd { display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; border: 2px dashed #cbd5e1; font-weight: 700; }
.side-code { font-weight: 800; font-size: 1.15rem; color: var(--royal-900); line-height: 1.1; }
.side-name { font-size: .7rem; color: var(--muted); line-height: 1.25; margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side.is-loser { opacity: .55; }
.match-center { text-align: center; min-width: 110px; }
.score-line { display: flex; align-items: center; justify-content: center; gap: .35rem; }
.score { font-size: 2.3rem; font-weight: 800; color: var(--royal-900); line-height: 1; font-variant-numeric: tabular-nums; border-radius: 8px; padding: 0 .2rem; }
.score.is-win { color: var(--royal); }
.score-sep { font-size: 1.6rem; font-weight: 700; color: #cbd5e1; }
.score-unit { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.period { display: inline-block; margin-top: .3rem; background: #fee2e2; color: #991b1b; font-size: .7rem; font-weight: 600; padding: .1rem .5rem; border-radius: 6px; }
.status-completed .period { background: #f1f5f9; color: var(--ink-2); }
.vs { font-weight: 800; font-size: 1.3rem; color: var(--gold-600); letter-spacing: .05em; }
.sched-date { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.sched-time { font-size: 1.05rem; font-weight: 700; color: var(--royal); }
.match-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem; padding: .5rem .9rem; border-top: 1px solid var(--line); background: #fafbff; font-size: .75rem; color: var(--ink-2); margin-top: auto; }
.match-result { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.verify-tag { font-size: .68rem; font-weight: 600; padding: .1rem .45rem; border-radius: 6px; white-space: nowrap; }
.verify-tag.ok { background: #dcfce7; color: var(--st-completed); }
.verify-tag.pending { background: #fef3c7; color: var(--st-postponed); }
.match-card.compact .side-logo { width: 38px; height: 38px; font-size: .6rem; border-width: 2px; }
.match-card.compact .side-code { font-size: .95rem; }
.match-card.compact .score { font-size: 1.55rem; }
.match-card.compact .match-center { min-width: 84px; }
.match-card.compact .match-body { padding: .3rem .8rem .6rem; }
.score-flash { animation: scoreFlash 2.4s ease-out; }
@keyframes scoreFlash { 0%, 30% { background: var(--yellow); color: var(--royal-900); transform: scale(1.12); } 100% { background: transparent; transform: scale(1); } }
.card-flash { animation: cardFlash 2.4s ease-out; }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: var(--shadow); } }
.date-heading { font-size: .85rem; font-weight: 700; color: var(--royal-900); margin: .75rem 0 .6rem; display: flex; align-items: center; gap: .45rem; }
.date-heading .count { background: var(--royal-50); color: var(--royal); border-radius: 999px; padding: 0 .5rem; font-size: .72rem; }
.scoreboard-big .match-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.scoreboard-big .score { font-size: 3.4rem; }
.scoreboard-big .side-logo { width: 72px; height: 72px; }
.scoreboard-big .side-code { font-size: 1.5rem; }
.panel-live { border-top: 4px solid var(--st-ongoing); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty-state .bi { font-size: 2.2rem; color: #c7d2fe; display: block; margin-bottom: .4rem; }
.empty-state h6 { color: var(--ink-2); font-weight: 600; margin-bottom: .25rem; }
.empty-state p { font-size: .82rem; margin: 0; }

/* ---------- Standings ---------- */
.standings-table td { border-bottom-color: var(--line); }
.standings-table.sortable th[data-sort] { cursor: pointer; user-select: none; }
.standings-table.sortable th[data-sort]:hover { color: var(--royal); }
.standings-table th.sorted-asc::after { content: ' ▲'; font-size: .6rem; }
.standings-table th.sorted-desc::after { content: ' ▼'; font-size: .6rem; }
.standings-table tr.top-1 td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.standings-table tr.top-2 td:first-child { box-shadow: inset 4px 0 0 #94a3b8; }
.standings-table tr.top-3 td:first-child { box-shadow: inset 4px 0 0 #b7793f; }
.rank-no { font-weight: 800; font-size: 1.05rem; color: var(--royal-900); display: block; }
.move { font-size: .68rem; font-weight: 600; }
.move-up { color: var(--st-completed); }
.move-down { color: var(--st-ongoing); }
.move-same { color: #cbd5e1; }
.college-cell { display: flex; align-items: center; gap: .6rem; color: var(--ink); min-width: 0; }
.college-cell:hover { color: var(--royal); }
.college-cell small { max-width: 240px; }
.college-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); }
.college-logo-text { display: grid; place-items: center; background: var(--c); color: #fff; font-size: .62rem; font-weight: 700; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c); }
.college-hero .college-logo, .college-card .college-logo { width: 64px; height: 64px; font-size: .85rem; }
.points-cell { font-weight: 800; font-size: 1.05rem; color: var(--royal); font-variant-numeric: tabular-nums; }
.rating-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.rating-val small { color: var(--muted); font-weight: 500; margin-left: 1px; }
.rating-bar { height: 4px; border-radius: 4px; background: #e9edf7; margin-top: 4px; min-width: 70px; }
.rating-bar span { display: block; height: 100%; border-radius: 4px; background: var(--royal); }
.tiebreak-note { font-size: .7rem; }
.standings-table.compact td { padding-top: .45rem; padding-bottom: .45rem; }
.standings-table.compact .college-cell small { max-width: 150px; }
.medal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .68rem; font-weight: 700; background: #e5e7eb; color: var(--ink-2); }
.medal-gold { background: linear-gradient(135deg, #ffe17a, var(--gold)); color: #5c4300; }
.medal-silver { background: linear-gradient(135deg, #f1f5f9, #a8b3c2); color: #334155; }
.medal-bronze { background: linear-gradient(135deg, #f3c39a, #b7793f); color: #4a2a0e; }
.rule-list { padding-left: 1.1rem; color: var(--ink-2); }
.rule-list li { margin-bottom: .45rem; }
.compare-table th { border-bottom: 3px solid var(--c, var(--line)); }
.compare-table th .college-logo { margin: 0 auto .25rem; }
.compare-table td.better { font-weight: 800; color: var(--royal); background: var(--royal-50); }

/* ---------- Podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: .6rem; padding-top: .5rem; }
.podium-step { text-align: center; color: var(--ink); display: flex; flex-direction: column; align-items: center; }
.podium-step:hover { color: var(--royal); }
.podium-step .college-logo { width: 54px; height: 54px; font-size: .75rem; margin-bottom: .35rem; }
.podium-step.place-1 .college-logo { width: 68px; height: 68px; }
.podium-code { font-weight: 800; color: var(--royal-900); }
.podium-points { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }
.podium-block { width: 100%; border-radius: 10px 10px 0 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; }
.podium-step.place-1 .podium-block { height: 104px; background: linear-gradient(180deg, var(--yellow), var(--gold-600)); color: var(--royal-900); }
.podium-step.place-2 .podium-block { height: 74px; background: linear-gradient(180deg, #a8b3c2, #7b8797); }
.podium-step.place-3 .podium-block { height: 56px; background: linear-gradient(180deg, #d59a63, #9a5f2c); }

/* ---------- Feed ---------- */
.feed { list-style: none; padding: 0; margin: 0; }
.feed-item { display: grid; grid-template-columns: 14px 1fr auto; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); align-items: start; }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st-upcoming); margin-top: .35rem; }
.feed-item.status-ongoing .feed-dot { background: var(--st-ongoing); }
.feed-item.status-completed .feed-dot { background: var(--st-completed); }
.feed-item.status-postponed .feed-dot { background: var(--st-postponed); }
.feed-title { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.feed-meta { font-size: .72rem; color: var(--muted); }
.feed-item time { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.code-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 6px; background: #f1f5f9; color: var(--ink); }
.code-chip::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* ---------- Event results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.col-xl-4 .results-grid { grid-template-columns: 1fr; }
.result-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; display: flex; flex-direction: column; }
.result-card header { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; margin-bottom: .6rem; }
.result-card h5 { font-size: 1rem; font-weight: 700; margin: .1rem 0 0; }
.result-card footer { margin-top: auto; padding-top: .5rem; }
.placements { list-style: none; padding: 0; margin: 0; }
.placements li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid #f1f4fa; }
.placements li:last-child { border-bottom: 0; }
.placements li .college-cell { flex: 1; }
.placements .college-logo { width: 30px; height: 30px; font-size: .55rem; }
.placements .pts { font-weight: 700; color: var(--royal); font-variant-numeric: tabular-nums; }
.placements li.place-1 { background: linear-gradient(90deg, #fffbea, transparent); border-radius: 8px; padding-left: .3rem; }

/* ---------- Bracket ---------- */
.bracket { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; }
.b-round { min-width: 220px; flex: 1 0 220px; display: flex; flex-direction: column; }
.b-round-title { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--royal); margin-bottom: .6rem; text-align: center; background: var(--royal-50); border-radius: 8px; padding: .3rem; }
.b-matches { display: flex; flex-direction: column; justify-content: space-around; gap: .75rem; flex: 1; }
.b-match { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; border-left: 4px solid var(--st-upcoming); }
.b-match.status-ongoing { border-left-color: var(--st-ongoing); }
.b-match.status-completed { border-left-color: var(--st-completed); }
.b-match.status-postponed { border-left-color: var(--st-postponed); }
.b-meta { display: flex; justify-content: space-between; font-size: .66rem; color: var(--muted); padding: .25rem .55rem; background: #fafbff; align-items: center; gap: .3rem; }
.b-slot { display: grid; grid-template-columns: auto 1fr auto; gap: .45rem; align-items: center; padding: .35rem .55rem; border-top: 1px solid #f1f4fa; }
.b-slot::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--c); grid-row: 1; position: absolute; }
.b-slot { position: relative; padding-left: .9rem; }
.b-slot::before { left: .35rem; }
.b-code { font-weight: 700; font-size: .85rem; }
.b-team { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.b-slot.win { background: var(--royal-50); }
.b-slot.win .b-score, .b-slot.win .b-code { color: var(--royal); }
.b-slot.lose { opacity: .55; }
.bracket-side-title { font-weight: 700; color: var(--royal-900); margin: 1rem 0 .5rem; }
.bracket-league .b-matches { justify-content: flex-start; }
.league-table td { font-variant-numeric: tabular-nums; }

/* ---------- Events, teams & colleges ---------- */
.event-card { color: var(--ink); transition: transform .15s, border-color .15s; }
.event-card:hover { transform: translateY(-2px); border-color: var(--royal-100); color: var(--ink); }
.event-card h6 { font-weight: 700; color: var(--royal-900); }
.event-status { font-size: .68rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.es-upcoming { background: #eef2f7; color: var(--st-upcoming); }
.es-ongoing { background: #fee2e2; color: var(--st-ongoing); }
.es-completed { background: #dcfce7; color: var(--st-completed); }
.es-cancelled { background: #f3f4f6; color: var(--st-cancelled); }
.college-card { border-top: 4px solid var(--c); }
.college-card h6 a { color: var(--royal-900); font-weight: 700; }
.rank-big { font-size: 1.5rem; font-weight: 800; color: var(--royal); line-height: 1; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; background: var(--royal-50); border-radius: 10px; padding: .6rem; margin-bottom: .75rem; text-align: center; }
.mini-stats strong { display: block; font-size: .95rem; color: var(--royal-900); }
.mini-stats strong small { font-size: .62rem; color: var(--muted); }
.mini-stats span { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.team-list { list-style: none; padding: 0; margin: 0; }
.team-list li { display: flex; gap: .6rem; align-items: center; padding: .45rem 0; border-bottom: 1px solid #f1f4fa; font-size: .85rem; }
.team-list li:last-child { border-bottom: 0; }
.team-list small { font-size: .7rem; }
.team-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.record { font-weight: 700; font-variant-numeric: tabular-nums; background: #f1f5f9; border-radius: 6px; padding: .1rem .45rem; font-size: .78rem; white-space: nowrap; }
.college-hero { border-top: 5px solid var(--c); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hero-stats div { text-align: center; }
.hero-stats span { display: block; font-size: .68rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.hero-stats strong { font-size: 1.3rem; color: var(--royal-900); }
.hero-stats strong small { font-size: .7rem; color: var(--muted); }

/* ---------- Presentation mode (TV / projector / LED wall) ---------- */
body.present { background: radial-gradient(circle at 20% 0%, #23409e 0%, var(--royal-900) 55%, #060f2e 100%); color: #fff; overflow: hidden; height: 100vh; }
#present { display: flex; flex-direction: column; height: 100vh; padding: 1.5vh 2vw; }
.present-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1.2vh; border-bottom: 3px solid var(--gold); }
.present-title { font-size: clamp(1.2rem, 2.2vw, 2.4rem); font-weight: 800; line-height: 1.1; }
.present-sub { color: rgba(255, 255, 255, .7); font-size: clamp(.8rem, 1vw, 1.1rem); }
.present-slide-name { font-size: clamp(1rem, 1.8vw, 2rem); font-weight: 700; color: var(--yellow); text-transform: uppercase; letter-spacing: .06em; }
.present-clock { font-size: clamp(1.2rem, 2.2vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.slides { flex: 1; position: relative; margin: 1.5vh 0; min-height: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; pointer-events: none; }
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.present .match-grid { grid-template-columns: repeat(auto-fill, minmax(min(560px, 100%), 1fr)); gap: 1.5vw; }
.present .match-grid.compact { grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }
/* Live slide: few matches stretch to fill the screen */
.present [data-region="live"] .match-grid { grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr)); }
.present [data-region="live"] .match-card:only-child .score { font-size: clamp(5rem, 11vw, 12rem); }
.present [data-region="live"] .match-card:only-child .side-logo { width: clamp(90px, 10vw, 180px); height: clamp(90px, 10vw, 180px); font-size: 1.6rem; }
.present [data-region="live"] .match-card:only-child .side-code { font-size: clamp(2rem, 4vw, 4.5rem); }
.present [data-region="live"] .match-card:only-child .match-body { padding: 3vh 2vw; }
.present .match-card { font-size: 1.1rem; }
.present .match-event { font-size: 1.05rem; }
.present .match-round { font-size: .9rem; }
.present .side-code { font-size: clamp(1.5rem, 2.4vw, 2.8rem); }
.present .side-name { font-size: .95rem; }
.present .side-logo { width: clamp(60px, 6vw, 110px); height: clamp(60px, 6vw, 110px); font-size: 1rem; }
.present .score { font-size: clamp(3rem, 5.5vw, 6.5rem); }
.present .match-center { min-width: 200px; }
.present .match-card.compact .score { font-size: clamp(2rem, 3.4vw, 4rem); }
.present .match-card.compact .side-code { font-size: clamp(1.2rem, 1.8vw, 2rem); }
.present .period { font-size: 1rem; }
.present .status-badge { font-size: .95rem; }
.present .match-foot { font-size: .95rem; }
.present .sched-time { font-size: 1.6rem; }
.present .sched-date { font-size: 1.05rem; }
.present .empty-state { color: rgba(255, 255, 255, .75); padding: 12vh 0; }
.present .empty-state .bi { font-size: 5rem; color: var(--yellow); }
.present .empty-state h6 { color: #fff; font-size: 2rem; }
.present .empty-state p { font-size: 1.2rem; }
.present-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 1rem 1.25rem; }
.present .standings-table { font-size: 1.15rem; }
.present .standings-table .points-cell { font-size: 1.5rem; }
.present .standings-table .college-logo { width: 46px; height: 46px; }
.present .podium { padding-top: 6vh; }
.present .podium-code { color: #fff; font-size: 2.2rem; }
.present .podium-points { color: rgba(255, 255, 255, .85); font-size: 1.3rem; }
.present .podium-step .college-logo { width: 100px; height: 100px; font-size: 1.2rem; }
.present .podium-step.place-1 .college-logo { width: 130px; height: 130px; }
.present .podium-step.place-1 .podium-block { height: 28vh; font-size: 3rem; }
.present .podium-step.place-2 .podium-block { height: 20vh; }
.present .podium-step.place-3 .podium-block { height: 14vh; }
.present .podium-block { font-size: 2.4rem; }
.present .results-grid { grid-template-columns: repeat(3, 1fr); }
.present .result-card { color: var(--ink); font-size: 1.05rem; }
.present .result-card h5 { font-size: 1.4rem; }
.present .result-card h5 a { color: var(--royal-900); }
.present-bottom { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; }
.ticker { background: rgba(255, 255, 255, .08); border-left: 4px solid var(--gold); padding: .5rem 1rem; border-radius: 8px; font-size: clamp(.9rem, 1.2vw, 1.3rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .bi { color: var(--yellow); margin-right: .4rem; }
.present-controls { display: flex; gap: .4rem; align-items: center; }
.present-controls .dots { display: flex; gap: .35rem; margin-right: .5rem; }
.present-controls .dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .3); padding: 0; }
.present-controls .dots button.active { background: var(--yellow); }
.present-progress { grid-column: 1 / -1; height: 4px; background: rgba(255, 255, 255, .12); border-radius: 4px; overflow: hidden; }
.present-progress span { display: block; height: 100%; width: 0; background: var(--gold); }
@keyframes present-progress { from { width: 0; } to { width: 100%; } }
.present .live-pill.is-idle { background: rgba(255, 255, 255, .14); }

/* ==========================================================================
   Admin panel
   ========================================================================== */
body.admin { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex: none; background: linear-gradient(180deg, var(--royal-900), var(--royal-800)); color: rgba(255, 255, 255, .8); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.1rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.sidebar-brand strong { display: block; font-size: .95rem; line-height: 1.15; }
.sidebar-brand small { color: var(--yellow); font-size: .7rem; }
.sidebar-section { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); padding: 1rem 1.2rem .35rem; }
.sidebar-link { display: flex; align-items: center; gap: .65rem; padding: .5rem 1.2rem; color: rgba(255, 255, 255, .82); font-size: .86rem; border-left: 3px solid transparent; }
.sidebar-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sidebar-link.active { color: #fff; background: rgba(255, 210, 63, .12); border-left-color: var(--yellow); font-weight: 600; }
.sidebar-link .badge { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding: 1rem 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 1.5rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 1.15rem; font-weight: 700; color: var(--royal-900); margin: 0; }
.admin-content { padding: 1.5rem; }
.role-badge { font-size: .68rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: var(--yellow); color: var(--royal-900); }
.admin .table td { vertical-align: middle; }
.admin .table-actions { white-space: nowrap; text-align: right; }
.admin .table-actions form { display: inline; }
.score-console { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; }
.score-side { text-align: center; border: 2px solid var(--c); border-radius: var(--radius); padding: 1rem; background: #fff; }
.score-side .code { font-size: 1.6rem; font-weight: 800; color: var(--royal-900); }
.score-input { font-size: 3rem !important; font-weight: 800; text-align: center; height: auto; padding: .2rem; font-variant-numeric: tabular-nums; }
.step-buttons { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: .6rem; }
.step-buttons .btn { min-width: 52px; font-weight: 700; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 30% 0%, var(--royal-600), var(--royal-900) 70%); padding: 1rem; }
.login-card { width: 100%; max-width: 400px; border-top: 5px solid var(--gold); }
.placement-row .form-select, .placement-row .form-control { font-size: .85rem; }
.admin-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.admin-stat .v { font-size: 1.6rem; font-weight: 800; color: var(--royal-900); }
.admin-stat .l { font-size: .75rem; color: var(--muted); }
.json-diff { font-family: ui-monospace, Consolas, monospace; font-size: .72rem; white-space: pre-wrap; word-break: break-all; max-width: 420px; color: var(--ink-2); }
.sidebar-toggle { display: none; }

@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: -270px; z-index: 1040; transition: left .2s; }
    .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    .sidebar-toggle { display: inline-block; }
    .admin-content { padding: 1rem; }
}
@media (max-width: 575.98px) {
    .page-title { font-size: 1.3rem; }
    .match-grid, .scoreboard-big .match-grid, .match-grid.compact { grid-template-columns: 1fr; }
    .score { font-size: 1.9rem; }
    .scoreboard-big .score { font-size: 2.4rem; }
    .match-center { min-width: 90px; }
    .side-logo { width: 44px; height: 44px; }
    .mini-stats { grid-template-columns: repeat(2, 1fr); }
    .score-console { grid-template-columns: 1fr; }
    .score-input { font-size: 2.2rem !important; }
}

/* ---------- Print ---------- */
@media print {
    .topbar, .livebar, .site-footer, .filter-bar, .btn, .announcement, .sidebar, .admin-topbar { display: none !important; }
    body { background: #fff; }
    .panel, .card, .match-card { box-shadow: none; break-inside: avoid; }
}

/* ==========================================================================
   Minimal theme — neutral surfaces, one navy accent, flat cards.
   Overrides the original styles above; delete this block to revert.
   ========================================================================== */
:root {
    --royal: #1e3a8a;
    --royal-600: #1d4ed8;
    --royal-700: #1e3070;
    --royal-800: #172554;
    --royal-900: #0f172a;
    --royal-50: #f1f5f9;
    --royal-100: #e2e8f0;
    --gold: #ca8a04;
    --gold-600: #a16207;
    --yellow: #fde68a;
    --ink: #0f172a;
    --ink-2: #475569;
    --muted: #64748b;
    --line: #e5e7eb;
    --bg: #f8fafc;
    --radius: 10px;
    --shadow: none;
    --bs-primary-rgb: 30, 58, 138;
    --bs-link-color-rgb: 30, 58, 138;
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font-size: .9rem; letter-spacing: -.005em; -webkit-font-smoothing: antialiased; }
.btn { border-radius: 8px; font-weight: 500; }
.btn-gold { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-gold:hover { background: #1e293b; border-color: #1e293b; color: #fff; }
.form-control, .form-select { border-color: var(--line); border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(30, 58, 138, .1); }
.card { box-shadow: none; }
.card-header { background: #fff; font-weight: 600; }
.table > thead th { font-size: .7rem; letter-spacing: .06em; font-weight: 500; }

/* Top navigation */
.topbar { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); box-shadow: none; padding: .5rem 0; }
.topbar .navbar-brand { color: var(--ink); }
.brand-title { font-weight: 600; font-size: .98rem; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: .7rem; }
.topbar .nav-link { color: var(--ink-2); font-size: .84rem; font-weight: 500; border-radius: 6px; }
.topbar .nav-link .bi { display: none; }
.topbar .nav-link:hover { color: var(--ink); background: #f1f5f9; }
.topbar .nav-link.active { color: var(--ink); background: #f1f5f9; font-weight: 600; }

.livebar { background: #fff; color: var(--ink-2); border-bottom: 1px solid var(--line); padding: .35rem 0; font-size: .78rem; }
.livebar strong { color: var(--ink); font-weight: 600; }
.live-pill { font-size: .72rem; letter-spacing: 0; padding: .1rem .55rem; }
.live-pill.is-idle { background: #f1f5f9; color: var(--ink-2); }
.live-pill.is-live { background: #fef2f2; color: var(--st-ongoing); }
.live-pill.is-live .pulse-dot { background: var(--st-ongoing); }
.refresh-state.state-error { color: var(--st-ongoing); }
.livebar .btn { font-size: .75rem; }

.announcement { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--royal); border-radius: 8px; color: var(--ink-2); }
.announcement .bi { color: var(--royal); }

/* Page structure */
.page-head { margin-bottom: 1.5rem; }
.page-title { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.page-sub { font-size: .9rem; }
.panel { border-radius: 12px; padding: 1.25rem 1.35rem; }
.panel-head { margin-bottom: 1rem; }
.panel-head h2 { font-size: .95rem; font-weight: 600; color: var(--ink); }
.panel-head h2 > .bi { color: var(--muted); font-size: .95rem; }
.section-title, .bracket-side-title { color: var(--ink); font-weight: 600; }
.site-footer { background: transparent; color: var(--muted); border-top: 1px solid var(--line); }

/* Stat cards */
.stat-card { padding: 1rem; }
.stat-card:hover { transform: none; border-color: #cbd5e1; }
.stat-icon { width: 40px; height: 40px; border-radius: 8px; font-size: 1.1rem; }
.tone-blue .stat-icon, .tone-navy .stat-icon, .tone-gold .stat-icon, .tone-green .stat-icon, .tone-live .stat-icon { background: #f1f5f9; color: var(--ink-2); }
.tone-live .stat-icon { color: var(--st-ongoing); }
.stat-value { color: var(--ink); font-weight: 600; }
.progress-stacked { height: 6px; background: #f1f5f9; }

/* Status badges & chips */
.status-badge { font-weight: 500; padding: .15rem .55rem; }
.status-badge.status-ongoing { background: #fef2f2; color: var(--st-ongoing); }
.status-badge.status-upcoming { background: #f1f5f9; }
.status-badge.status-completed { background: #f0fdf4; }
.status-badge.status-postponed { background: #fffbeb; }
.chip { border-radius: 8px; }
.chip span { background: #f1f5f9; color: var(--ink-2); }
.chip.active { background: var(--ink); border-color: var(--ink); }
.chip.active span { background: rgba(255, 255, 255, .15); color: #fff; }

/* Match cards */
.match-card { border-top: 1px solid var(--line); border-radius: 12px; transition: border-color .15s; }
.match-card:hover { border-color: #cbd5e1; }
.match-card.status-ongoing { border-top-color: #fecaca; border-color: #fecaca; box-shadow: inset 3px 0 0 var(--st-ongoing); }
.match-card.status-completed, .match-card.status-postponed { border-top-color: var(--line); }
.match-head { padding: .85rem 1rem .25rem; }
.match-event { font-weight: 600; color: var(--ink); font-size: .82rem; }
.match-event .bi { color: var(--muted); }
.match-body { padding: .6rem 1rem 1rem; }
.side-logo { border: 0; width: 48px; height: 48px; }
.side-logo-text { box-shadow: none; border: 0; font-weight: 600; font-size: .66rem; }
.side-logo-tbd { border: 1px dashed #cbd5e1; }
.side-code { font-weight: 700; font-size: 1rem; color: var(--ink); }
.score { font-weight: 700; color: var(--ink); font-size: 2.1rem; letter-spacing: -.03em; }
.score.is-win { color: var(--ink); }
.side.is-loser { opacity: .45; }
.score-sep { color: #d1d5db; font-weight: 400; }
.score-unit { letter-spacing: .06em; }
.period { background: #f1f5f9; color: var(--ink-2); font-weight: 500; }
.status-ongoing .period { background: #fef2f2; color: var(--st-ongoing); }
.vs { color: #cbd5e1; font-weight: 600; font-size: .95rem; letter-spacing: .1em; }
.sched-date { font-weight: 500; color: var(--muted); font-size: .74rem; }
.sched-time { font-weight: 600; color: var(--ink); font-size: 1rem; }
.match-foot { background: transparent; color: var(--muted); padding: .55rem 1rem; }
.verify-tag { font-weight: 500; }
.match-card.compact .side-logo { width: 34px; height: 34px; }
.match-card.compact .score { font-size: 1.45rem; }
.date-heading { color: var(--ink-2); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin: 1rem 0 .6rem; }
.date-heading:first-child { margin-top: 0; }
.date-heading .bi { color: var(--muted); }
.date-heading .count { background: #f1f5f9; color: var(--ink-2); }
@keyframes scoreFlash { 0%, 30% { background: #fef9c3; transform: scale(1.06); } 100% { background: transparent; transform: scale(1); } }
@keyframes cardFlash { 0% { box-shadow: 0 0 0 2px var(--royal); } 100% { box-shadow: none; } }
.panel-live { border-top: 1px solid var(--line); }

/* Empty state */
.empty-state { padding: 2.5rem 1rem; }
.empty-state .bi { font-size: 1.8rem; color: #cbd5e1; }
.empty-state h6 { font-weight: 600; }

/* Standings */
.standings-table tr.top-1 td:first-child, .standings-table tr.top-2 td:first-child, .standings-table tr.top-3 td:first-child { box-shadow: none; }
.rank-no { font-weight: 600; font-size: .95rem; color: var(--ink); }
.standings-table tr.top-1 .rank-no { color: var(--gold); }
.college-logo { border: 0; width: 34px; height: 34px; }
.college-logo-text { border: 0; box-shadow: none; font-weight: 600; }
.points-cell { font-weight: 700; font-size: 1rem; color: var(--ink); }
.rating-bar { height: 3px; background: #f1f5f9; }
.rating-bar span { background: var(--ink-2); }
.medal-gold, .medal-silver, .medal-bronze { background: #f1f5f9; }
.medal-gold { color: var(--gold-600); box-shadow: inset 0 0 0 1px #fde68a; }
.medal-silver { color: #64748b; box-shadow: inset 0 0 0 1px #cbd5e1; }
.medal-bronze { color: #9a5f2c; box-shadow: inset 0 0 0 1px #e7c4a3; }
.compare-table td.better { background: #f8fafc; color: var(--ink); }

/* Podium */
.podium-code { color: var(--ink); font-weight: 700; }
.podium-block { border-radius: 8px 8px 0 0; font-weight: 700; font-size: 1.25rem; }
.podium-step.place-1 .podium-block { background: #0f172a; color: #fff; }
.podium-step.place-2 .podium-block { background: #475569; }
.podium-step.place-3 .podium-block { background: #94a3b8; }

/* Feed, results, bracket, cards */
.feed-item { border-bottom-style: solid; }
.placements li.place-1 { background: #f8fafc; }
.placements .pts, .rank-big { color: var(--ink); }
.b-round-title { background: transparent; color: var(--muted); font-weight: 600; }
.b-match { border-left-width: 1px; border-radius: 8px; }
.b-match.status-ongoing { border-left: 3px solid var(--st-ongoing); }
.b-meta { background: #f8fafc; }
.b-slot.win { background: #f8fafc; }
.b-slot.win .b-score, .b-slot.win .b-code { color: var(--ink); }
.event-card:hover { transform: none; border-color: #cbd5e1; }
.event-card h6, .college-card h6 a { color: var(--ink); font-weight: 600; }
.college-card, .college-hero { border-top: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--c); }
.mini-stats { background: #f8fafc; border: 1px solid var(--line); }
.mini-stats strong, .hero-stats strong { color: var(--ink); }

/* Presentation mode: flat dark background */
body.present { background: #0b1120; }
.present-top { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.present-title { font-weight: 700; letter-spacing: -.02em; }
.present-slide-name { color: rgba(255, 255, 255, .7); font-weight: 600; }
.ticker { border-left-color: rgba(255, 255, 255, .4); }
.ticker .bi { color: #fff; }
.present-controls .dots button.active, .present-progress span { background: #fff; }
.present .podium-code { color: #fff; }
.present .podium-step.place-1 .podium-block { background: #fff; color: var(--ink); }
.present .empty-state .bi { color: rgba(255, 255, 255, .5); }

/* Admin */
.sidebar { background: #fff; color: var(--ink-2); border-right: 1px solid var(--line); }
.sidebar-brand { color: var(--ink); border-bottom: 1px solid var(--line); }
.sidebar-brand small { color: var(--muted); }
.sidebar-section { color: #94a3b8; font-weight: 600; }
.sidebar-link { color: var(--ink-2); border-left: 0; margin: 1px .6rem; padding: .45rem .7rem; border-radius: 6px; }
.sidebar-link .bi { color: var(--muted); }
.sidebar-link:hover { color: var(--ink); background: #f1f5f9; }
.sidebar-link.active { color: var(--ink); background: #f1f5f9; font-weight: 600; }
.sidebar-link.active .bi { color: var(--ink); }
.sidebar-foot { border-top: 1px solid var(--line); color: var(--ink); }
.role-badge { background: #f1f5f9; color: var(--ink-2); }
.admin-topbar { background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); }
.admin-topbar h1 { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.admin-stat .v { color: var(--ink); font-weight: 700; }
.score-side { border-width: 1px; border-color: var(--line); box-shadow: inset 0 3px 0 var(--c); }
.score-side .code { color: var(--ink); }
.login-wrap { background: var(--bg); }
.login-card { border-top: 1px solid var(--line); }
.side-logo-text, .college-logo-text { font-size: .56rem; letter-spacing: -.03em; overflow: hidden; }
.match-card:not(.compact) .side-logo-text { font-size: .62rem; }

/* Bigger college logos on match cards */
.match-card .side-logo { width: 80px; height: 80px; margin-bottom: .45rem; }
.match-card.compact .side-logo { width: 60px; height: 60px; }
.match-card:not(.compact) .side-logo-text { font-size: .8rem; }
.match-card.compact .side-logo-text { font-size: .7rem; }
@media (max-width: 575.98px) {
    .match-card .side-logo { width: 64px; height: 64px; }
    .match-card.compact .side-logo { width: 52px; height: 52px; }
}

/* Simple admin menu */
.sidebar-brand + .sidebar-link { margin-top: .75rem; }
.sidebar-more { margin-top: .5rem; }
.sidebar-more summary { list-style: none; cursor: pointer; }
.sidebar-more summary::-webkit-details-marker { display: none; }
.sidebar-more .chev { font-size: .7rem; transition: transform .15s; }
.sidebar-more[open] .chev { transform: rotate(180deg); }
.sidebar-more > a.sidebar-link { padding-left: 1.6rem; font-size: .82rem; }
