/* Faithful broadcast layout from the approved reference. */
#broadcast-hud { --hud-glass:rgba(19,21,27,.62); --hud-side-inset:max(8px,.7vw); --hud-map-unit:min(.068334vw,1px); --hud-map-width:calc(var(--hud-map-unit) * var(--hud-map-canvas-width,186)); --hud-map-gap:clamp(6px,.6vw,10px); }
#broadcast-hud .timing-tower { top:4.4%; left:.7%; width:clamp(164px,12vw,210px); padding:0; border:1px solid #ffffff36; background:var(--hud-glass); box-shadow:none; }
#broadcast-hud .tower-brand { height:48px; display:grid; place-items:center; font:italic 900 38px/1 Arial,sans-serif; letter-spacing:-6px; border-bottom:1px solid #ffffff35; }
#broadcast-hud .tower-caption { min-height:0; padding:9px 8px; justify-content:center; font-size:12px; background:#10121a40; }
#broadcast-hud .tower-caption small { display:none; }
#broadcast-hud #tower-rows { padding:0; }
#broadcast-hud #tower-rows li { height:30px; grid-template-columns:24px 3px 32px 1fr 12px; gap:4px; padding:0 5px 0 0; background:transparent; box-shadow:none; }
#broadcast-hud #tower-rows b { font-size:14px; letter-spacing:0; }
#broadcast-hud #tower-rows .rank { height:30px; line-height:30px; background:#080a1040; font-size:13px; color:white; }
#broadcast-hud #tower-rows .player .rank { background:#ed1018; }
#broadcast-hud #tower-rows .player { background:#e106001c; }
#broadcast-hud #tower-rows .interval { font-size:12px; font-weight:400; }
#broadcast-hud #tower-rows .tyre { font-size:10px; }
#broadcast-hud .fastest-mark { display:none; }
#broadcast-hud .circuit-map { top:2.6%; right:var(--hud-side-inset); width:var(--hud-map-width); background:transparent; border:0; box-shadow:none; }
#broadcast-hud .corner-preview { position:absolute; top:2.6%; right:calc(var(--hud-side-inset) + var(--hud-map-width) + var(--hud-map-gap)); width:calc(var(--hud-map-unit) * 120); background:transparent; border:0; box-shadow:none; overflow:hidden; }
#broadcast-hud .corner-preview canvas { width:100%; display:block; }
#broadcast-hud .gap-strip, #broadcast-hud.is-countdown .gap-strip { top:4.9%; left:28%; right:28%; width:auto; min-width:0; transform:none; padding:10px 12px; display:flex; gap:12px; background:rgba(8,32,66,.65); border:1px solid #ffffff55; }
#broadcast-hud .gap-strip::before { display:none; }
#broadcast-hud .gap-strip span { color:white; font-size:10px; letter-spacing:.02em; }
#broadcast-hud .gap-strip strong, #broadcast-hud .gap-strip b { font-size:14px; color:white; border:0; padding:0; }
#broadcast-hud .lap-comparison { display:none!important; }
/* Sculpted twin-dial instrument silhouette, matching the supplied cockpit HUD. */
#broadcast-hud .telemetry { top:auto; left:50%; right:auto; bottom:4px; transform:translateX(-50%); width:clamp(270px,22.5vw,378px); height:auto; aspect-ratio:640/310; padding:0; display:block; background:transparent; border:0; box-shadow:none; overflow:visible; container-type:inline-size; text-shadow:0 0 3px #ffffff30; }
#broadcast-hud .instrument-shell { position:absolute; inset:0; width:100%; height:100%; overflow:visible; filter:drop-shadow(0 3px 3px #0008); }
#broadcast-hud .battery-dial, #broadcast-hud .engine-dial { position:absolute; top:25%; width:29%; height:39%; display:flex; align-items:center; justify-content:center; flex-direction:column; border:0; box-shadow:none; background:none; }
#broadcast-hud .battery-dial { left:4%; }
#broadcast-hud .telemetry small { font:500 2.8cqw/1.1 Arial,sans-serif; color:#e4e7de; }
#broadcast-hud .battery-dial strong { color:#e2f296; font:900 7.5cqw/1.05 "Arial Black",Arial,sans-serif; letter-spacing:-.5cqw; }
#broadcast-hud .drive-gear { position:absolute; left:33%; top:33%; width:36%; display:flex; flex-direction:column; align-items:center; gap:1.4cqw; }
#broadcast-hud .drive-gear b { color:white; font:900 15cqw/.95 "Arial Black",Arial,sans-serif; letter-spacing:-.6cqw; }
#broadcast-hud .drive-gear small { color:#dce995; font:600 2.9cqw/1 Arial,sans-serif; }
#broadcast-hud .gear-digit { position:relative; display:grid; place-items:center; width:1.6em; height:.95em; font:900 15cqw/.95 "Arial Black",Arial,sans-serif; isolation:isolate; }
#broadcast-hud .gear-digit b { grid-area:1/1; display:block; }
#broadcast-hud .gear-previous { position:absolute; inset:0; text-align:center; opacity:0; pointer-events:none; }
#broadcast-hud .engine-dial { right:2%; top:25%; height:41%; }
#broadcast-hud .engine-dial strong { font:900 7.5cqw/.98 "Arial Black",Arial,sans-serif; letter-spacing:-.3cqw; }
#broadcast-hud .engine-dial b { font:800 4.3cqw/1.05 Arial,sans-serif; letter-spacing:.1cqw; }
#broadcast-hud .engine-revs { position:absolute; left:35%; top:30%; width:29%; height:2px; background:transparent; }
#broadcast-hud .engine-revs i { display:block; height:100%; width:var(--rev-fill,0%); background:#d0dbe02e; }
#broadcast-hud .boost-label { position:absolute; bottom:0; left:29%; right:auto; display:flex; gap:5cqw; align-items:center; color:#fff; font:italic 800 4.2cqw/1 Arial,sans-serif; letter-spacing:0; }
#broadcast-hud .boost-label span { width:6.5cqw; height:6.5cqw; display:grid; place-items:center; border:1.5px solid #e1e5e4; border-radius:50%!important; font:600 3.5cqw/1 Arial,sans-serif; }
#broadcast-hud .car-condition { display:none!important; }
@media(max-height:650px) { #broadcast-hud .tower-brand {height:34px;font-size:28px} #broadcast-hud #tower-rows li,#broadcast-hud #tower-rows .rank {height:24px;line-height:24px} }

/* Reference timing tower: 324px source, scaled as a single unit. */
#broadcast-hud .timing-tower {width:clamp(162px,16.875vw,260px);background:#1c1c25;border:1px solid #77716d;container-type:inline-size;overflow:hidden;}
#broadcast-hud .tower-brand {height:26.5cqw;letter-spacing:0;background:#1b1b24;border-bottom:1px solid #44424a;}
#broadcast-hud .tower-brand img {width:60cqw;height:auto;display:block;}
#broadcast-hud .tower-caption {height:17cqw;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;background:#15151f;border:0;font:500 9cqw/1 Arial,sans-serif;letter-spacing:0;color:#eee;}
#broadcast-hud .tower-caption b {font-size:11cqw;font-weight:800;}
#broadcast-hud #tower-rows {margin:0;padding:0;}
#broadcast-hud #tower-rows li {display:grid;height:17.6cqw;grid-template-columns:14.5cqw 14cqw 26cqw 1fr 7cqw;gap:0;padding:0 2cqw 0 0;background:#1c1c25;color:#f4f4f5;align-items:center;}
#broadcast-hud #tower-rows .player,#broadcast-hud #tower-rows .target {background:#1c1c25;box-shadow:none;border:0;}
#broadcast-hud #tower-rows .rank {height:100%;line-height:17.6cqw;text-align:center;background:#0e0d17;border-bottom:1px solid #292633;font:600 9cqw/17.6cqw Arial,sans-serif;}
#broadcast-hud #tower-rows .player .rank {background:#0e0d17;}
#broadcast-hud #tower-rows li:first-child .rank {background:#ee0008;}
#broadcast-hud #tower-rows .team-logo {width:13.3cqw;height:12.7cqw;object-fit:contain;display:block;}
#broadcast-hud #tower-rows b {font:800 9.3cqw/1 Arial,sans-serif;letter-spacing:-.15cqw;}
#broadcast-hud #tower-rows .interval {font:500 8.8cqw/1 Arial,sans-serif;letter-spacing:-.35cqw;text-align:right;color:#eee;white-space:nowrap;}
#broadcast-hud #tower-rows .tyre {display:block;font:500 6.5cqw/1 Arial,sans-serif;color:#ddd;text-align:right;background:none;border:0;}
#broadcast-hud #tower-rows .fastest-mark {display:none;}
body.touch #broadcast-hud .timing-tower {width:126px;}
body.touch #broadcast-hud #tower-rows li:nth-child(n) {display:grid;}

/* Fit the entire 22-car field in the live classification. */
#broadcast-hud #tower-rows .team-identity {
  font: 800 5.3cqw/1 Arial, sans-serif;
  color: var(--team);
  text-align: center;
}
body.full-grid #broadcast-hud .timing-tower {
  --grid-row: min(12cqw, 3.55dvh);
}
body.full-grid #broadcast-hud .tower-brand {
  height: min(42px, 7dvh);
}
body.full-grid #broadcast-hud .tower-brand img {
  max-height: 100%;
  object-fit: contain;
}
body.full-grid #broadcast-hud .tower-caption {
  height: min(36px, 7dvh);
  padding-block: 0;
  font-size: min(9cqw, 3.2dvh);
}
body.full-grid #broadcast-hud .tower-caption b {
  font-size: min(11cqw, 3.9dvh);
}
body.full-grid #broadcast-hud #tower-rows li {
  height: var(--grid-row);
}
body.full-grid #broadcast-hud #tower-rows .rank {
  font-size: min(7.5cqw, 2.55dvh);
  line-height: var(--grid-row);
}
body.full-grid #broadcast-hud #tower-rows b,
body.full-grid #broadcast-hud #tower-rows .interval {
  font-size: min(7.5cqw, 2.55dvh);
}
body.full-grid #broadcast-hud #tower-rows .team-logo {
  height: var(--grid-row);
}
body.full-grid #broadcast-hud #tower-rows .player {
  box-shadow: inset 2px 0 var(--team);
}
