/* ===== Page layout: 3 equal columns — cards span 2, leaders take 1 ===== */
.sb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 20px; }
.sb-layout .day-group:first-child .day-heading { margin-top: 0; }
@media (min-width: 1100px) {
    .sb-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .sb-main { grid-column: span 2; }
    /* Drop the stats column down past the first day heading so it lines up with the first cards */
    .sb-side { margin-top: 28px; }
}
.sb-side { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) and (max-width: 1099px) {
    .sb-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ===== Game cards (compact, 2 columns) ===== */
.gc-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .gc-list { grid-template-columns: repeat(2, 1fr); } }

.gc { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; cursor: pointer; transition: box-shadow 0.15s; }
.gc:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

/* Top row: status + network */
.gc-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.gc-status.pre { color: var(--muted); }
.gc-status.post { color: var(--text); }
.gc-status.in { color: var(--live); }
.gc-status.in::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: middle; animation: gcPulse 1.4s infinite; }
@keyframes gcPulse { 50% { opacity: 0.25; } }
.gc-net { color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-note { font-size: 11px; font-weight: 600; color: var(--muted); margin: -4px 0 6px; }

/* Team rows */
.gc-team { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.gc-logo { width: 26px; height: 26px; flex: 0 0 26px; object-fit: contain; }
.gc-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.gc-rank { font-size: 11px; font-weight: 600; color: var(--muted); }
.gc-school { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.gc-rec { font-size: 12px; color: var(--muted); }
.gc-poss { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--live); align-self: center; }
.gc-score { min-width: 32px; text-align: right; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gc-team.loser .gc-school,
.gc-team.loser .gc-score { color: var(--muted); font-weight: 600; }

/* Live situation */
.gc-live { margin-top: 6px; font-size: 12px; line-height: 1.4; }
.gc-live strong { color: var(--live); margin-right: 6px; }
.gc-lastplay { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Stadium */
.gc-venue { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); min-width: 0; }
.gc-venue svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--accent); }
.gc-venue span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer: highlights + game link */
.gc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gc-hl { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 14px; background: var(--accent); color: #fff; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 11px 5px 9px; cursor: pointer; }
.gc-hl::before { content: ''; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.gc-hl:hover { filter: brightness(1.1); }
.gc-dur { font-weight: 500; opacity: 0.85; }
.gc-link { font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.gc-link:hover { color: var(--accent); }

/* ===== Leader boxes (sidebar) ===== */
.lb { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lb-head { margin: 0; background: #111; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 16px; }
.lb-head span { color: var(--accent); }
.lb-list { list-style: none; margin: 0; padding: 4px 16px; }
.lb-list li { display: grid; grid-template-columns: minmax(0, 1fr) 26px auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.lb-list li:last-child { border-bottom: 0; }
.lb-player { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-player a { color: inherit; text-decoration: none; }
.lb-player a:hover { color: var(--accent); }
.lb-logo { width: 24px; height: 24px; object-fit: contain; }
.lb-val { min-width: 78px; text-align: right; font-size: 11px; font-weight: 700; color: var(--accent); background: #fdecee; border-radius: 3px; padding: 3px 7px; white-space: nowrap; }

/* ===== AP poll box ===== */
.lb-poll li { grid-template-columns: 22px 24px minmax(0, 1fr) 36px; }
.lb-rk { font-size: 13px; font-weight: 800; text-align: center; }
.lb-rec { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.lb-trend { font-size: 11px; font-weight: 700; text-align: right; color: var(--muted); white-space: nowrap; }
.lb-trend.up { color: #1e7b34; }
.lb-trend.up::before { content: '\25B2'; font-size: 9px; margin-right: 2px; }
.lb-trend.down { color: var(--live); }
.lb-trend.down::before { content: '\25BC'; font-size: 9px; margin-right: 2px; }
.lb-more { display: block; text-align: right; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; }
.lb-more:hover { color: var(--accent); }

/* ===== Video modal ===== */
.vm { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vm[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); }
.vm-dialog { position: relative; width: 100%; max-width: 960px; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #111; color: #fff; }
.vm-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.vm-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
body.vm-open { overflow: hidden; }

/* ===== Conference logo grid ===== */
.conf-wrap { margin-top: 20px; }
.conf-label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #b8860b; }
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.conf-tile { display: flex; align-items: center; justify-content: center; height: 84px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; transition: box-shadow 0.15s, border-color 0.15s; }
.conf-tile img { max-width: 70%; max-height: 52px; object-fit: contain; }
.conf-tile:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.conf-tile.active { border: 2px solid var(--text); }
@media (max-width: 560px) {
    .conf-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
    .conf-tile { height: 64px; }
    .conf-tile img { max-height: 40px; }
}

.gc:not([data-href]) { cursor: default; }