/* bstv.app public site — the look of the broadcast overlay: deep navy, gold
   as the only accent, tabular figures. */
:root {
  --bg: #0A1216;
  --bg-2: #0D181D;
  --bg-head: #001B26;
  --line: #1E2D33;
  --line-2: #16252B;
  --line-strong: #3A4C54;
  --text: #FFFFFF;
  --text-2: #C9D3DB;
  --muted: #9FB0B6;
  --accent: #FFD700;
  --accent-ink: #001B26;
  --live: #FF3B3B;
  --pb: #7BD861;
  --ob: #FF6BFF;
  --pit: #3FA9F5;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: "Titillium Web", "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: #FFE45C; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-weight: 700; letter-spacing: .14em; font-size: 15px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 4px; font-weight: 700; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #FFE45C; color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; }
.btn-ghost:hover { color: var(--text); border-color: var(--text-2); }

/* Home */
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.04; font-weight: 900; }
.hero p { margin: 0; font-size: 19px; color: var(--text-2); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { flex: 1 1 480px; min-width: 0; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg-head); border-bottom: 2px solid var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.mini-row { display: grid; grid-template-columns: 40px 4px 48px minmax(0, 1fr) 88px; align-items: center; gap: 10px; height: 40px; padding-right: 16px; border-bottom: 1px solid var(--line-2); }
.mini-row .pos { text-align: center; font-weight: 700; }
.mini-row .stripe { height: 24px; }
.mini-row .no { font-weight: 700; font-style: italic; color: var(--text-2); }
.mini-row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .gap { text-align: right; color: var(--text-2); }

.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.download { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.download-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.download h2 { margin: 0; font-size: 34px; }
.download p { margin: 0; font-size: 17px; color: var(--text-2); }
.sha { font-size: 13px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.steps { flex: 1 1 480px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; counter-increment: step; }
.steps li::before { content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--text-2); font-size: 15px; }

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; gap: 20px; }

/* Live timing */
.page { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 28px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); font-weight: 900; line-height: 1.05; }
.page-head p { margin: 4px 0 0; font-size: 17px; color: var(--text-2); }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.room { display: flex; flex-direction: column; color: var(--text); text-decoration: none; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.room:hover { color: var(--text); border-color: var(--line-strong); }
.room-top { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bg-head); border-bottom: 2px solid var(--line); font-size: 13px; color: var(--text-2); }
.room.is-live .room-top { border-bottom-color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.status .dot { background: var(--muted); }
.is-live .status, .status.is-live { color: var(--live); }
.is-live .status .dot, .status.is-live .dot { background: var(--live); }
.room-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.room-title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.room-track { color: var(--text-2); font-size: 15px; }
.facts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr) minmax(0, 1.2fr); gap: 12px; }
.fact small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.fact span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.room-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.room-foot b { color: var(--accent); }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); }
.note { margin: 0; font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 110px; }
.chip small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.chip span { font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.flag-box { width: 18px; height: 18px; border-radius: 3px; background: var(--muted); }
.flag-green { background: #1FD14A; } .flag-yellow, .flag-yellow_waving { background: #FFD700; }
.flag-red { background: #E00000; } .flag-white { background: #FFFFFF; } .flag-blue { background: #1E6BFF; }
.flag-checkered { background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 9px 9px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.tabs button[aria-pressed="true"] { border-color: var(--accent); background: var(--bg-head); }
.tabs i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.timing { width: 100%; min-width: 820px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.timing th { background: var(--bg-head); text-align: left; font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 12px 8px; font-weight: 700; }
.timing td { padding: 0 8px; height: 44px; border-top: 1px solid var(--line-2); }
.timing tbody tr:nth-child(even) { background: #0C161A; }
.timing .r { text-align: right; }
.timing .pos { display: flex; align-items: center; height: 44px; padding: 0; }
.timing .pos i { width: 4px; height: 28px; flex: none; }
.timing .pos b { flex: 1; text-align: center; font-size: 16px; }
.timing .no { font-weight: 700; font-style: italic; color: var(--text-2); }
.timing .name { font-weight: 600; }
.timing .team, .timing .gap { color: var(--text-2); }
.timing .pb { color: var(--pb); } .timing .ob { color: var(--ob); }
.timing .pit { color: var(--pit); font-weight: 700; }
.timing th:first-child, .timing td:first-child { padding-left: 0; width: 48px; }
.timing th:last-child, .timing td:last-child { padding-right: 16px; }
.stale { color: var(--muted); font-size: 14px; }
