/* Team screen and the broadcast (TV timing) theme overrides */
/* ===== Team screen ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card-top { display: flex; gap: 14px; align-items: center; }
.ovr { width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--flag); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ovr b { font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--flag); }
.ovr span { font-family: var(--display); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.card h2 { font-family: var(--display); font-weight: 600; font-size: 26px; text-transform: uppercase; margin: 0; line-height: 1; }
.stat { display: grid; grid-template-columns: 110px minmax(0, 1fr) 32px; align-items: center; gap: 10px; font-size: 14px; }
.stat .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--flag); border-radius: 3px; }
.stat b { font-family: var(--mono); font-weight: 500; text-align: right; }

/* =====================================================
   BROADCAST THEME (TV timing graphics) — overrides on top of the base styles
   ===================================================== */
body { background: radial-gradient(1200px 600px at 75% -10%, var(--glow) 0%, transparent 60%) fixed, var(--asphalt); font-size: 15px; }
h1 { font-weight: 800; font-style: italic; font-size: 40px; letter-spacing: 0.01em; color: var(--hi); }
h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--hi); }
.label { font-weight: 600; letter-spacing: 0.06em; }
.panel, .rb-body, .guide-card, .wx, .rel, .call, .st-danger { border-radius: 2px; }
.panel { background: var(--glass); border-color: var(--line); backdrop-filter: blur(6px); }
select, button { border-radius: 2px; background: var(--glass); border-color: var(--line); }
select { background: #0b1226; }
button { font-weight: 700; letter-spacing: 0.04em; }
button:hover { border-color: rgba(255, 255, 255, 0.35); }
/* selected = solid white, like the broadcast graphics */
.choice button[aria-pressed="true"], .speed button[aria-pressed="true"], #playback button[aria-pressed="true"],
.tabs button[aria-selected="true"], .guide-tabs button[aria-selected="true"], .rb-nav button[aria-selected="true"],
.region-tabs button[aria-selected="true"], .wx-react button[aria-pressed="true"] {
  background: var(--hi); color: var(--asphalt); border-color: var(--hi);
}
.tabs button.mine[aria-selected="true"]::before { background: var(--flag); }
.types button, .track-grid button, .pick, .echips button { background: var(--glass); border-radius: 2px; }
.types button[aria-pressed="true"], .echips button[aria-pressed="true"], .track-pick button[aria-pressed="true"], .pick[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.6);
}
/* main action: red parallelogram */
.go, .title-menu .start { background: var(--flag); color: var(--on-flag); border-color: var(--flag); font-weight: 800; font-style: italic;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding: 12px 28px; }
.go:hover, .title-menu .start:hover { border-color: var(--flag); filter: brightness(1.1); }
.tile.primary .tile-tag { background: var(--flag); color: var(--on-flag); border-radius: 0; font-style: italic; font-weight: 800; }
.pit { color: var(--on-flag); border-radius: 0; }
/* timing tower: red header bar, white row for your driver */
.tower { background: rgba(4, 7, 16, 0.82); padding: 0 0 10px; gap: 0; }
.tower-head { background: var(--flag); padding: 8px 12px; align-items: center; }
.tower-head .label, .tower-head span { color: var(--on-flag); font-style: italic; font-weight: 800; font-size: 16px; letter-spacing: 0.02em; }
.tower #rows { padding: 0; }
.tower-head span + span { font-size: 12px; font-style: normal; font-weight: 700; opacity: 0.85; }
.tower .note { padding: 8px 12px 0; }
.row { border-top-color: rgba(255, 255, 255, 0.06); padding: 6px 10px; }
.row .pos { color: var(--hi); font-weight: 700; background: rgba(255, 255, 255, 0.05); }
.row .name { font-weight: 600; }
.row.me { background: rgba(255, 255, 255, 0.92); color: #0a0f1f; }
.row.me .pos { color: #0a0f1f; background: transparent; }
.row.me .name small, .row.me .gap, .row.me .tyre { color: #0a0f1f; }
.row.me .name small span { filter: brightness(0.6); }
.track-box { background: rgba(4, 7, 16, 0.55); }
.status b { color: var(--hi); }
.gap, .rb-table td, .wx-cell b, .rel-item b { font-variant-numeric: tabular-nums; }
.guide-card b, .wx-cell b { color: var(--hi); }
.guide-card .gc-n, .rb-n { color: var(--flag); }
.rb-table th { color: var(--muted); }
.link-btn { color: var(--hi); }
.st-dot { border-radius: 50%; }

.tile, .enroll, .sim-banner, .wx-cell, .fact, .rounds span, .staff, .ovr, .regionbar, .tile.primary .tile-tag { border-radius: 2px; }
.tile { background: var(--glass); }
.tile:hover:not([aria-disabled="true"]) { border-color: rgba(255, 255, 255, 0.45); }
.tile.primary { border-color: var(--flag); border-left-width: 6px; }
.badge { color: var(--hi); border-color: rgba(255, 255, 255, 0.5); border-radius: 0; }
.ovr b { color: var(--hi); font-style: italic; font-weight: 800; }
.title-menu button:hover, .title-menu button:focus-visible { border-color: rgba(255, 255, 255, 0.5); color: var(--hi); }
.ladder .here { color: var(--hi); }
.rounds .now { border-color: var(--hi); color: var(--hi); }
.slider input { accent-color: var(--flag); }
#tip { border-radius: 2px; }
.srow.mine, .rrow.mine { background: rgba(255, 255, 255, 0.09); box-shadow: inset 4px 0 0 var(--hi); }
.st-start { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; background: var(--flag); color: var(--on-flag); padding: 2px 10px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.st-row { grid-template-columns: minmax(270px, 1.3fr) minmax(160px, 1.2fr) minmax(0, 2fr); }
.st-head select { min-width: 120px; }
@media (max-width: 700px) { .st-row { grid-template-columns: minmax(0, 1fr); } }

