/* CityTicker Television: a dense dark broadcast grid. Borders use the site
   green and gold, never Bloomberg orange/blue. */
.tv-broadcast { background: #05080a; color: #e8edf0; }
.tv-broadcast .ct-tapes,
.tv-broadcast .copilot,
.tv-broadcast .signup-prompt,
.tv-broadcast #ask-box,
.tv-broadcast .ask-toggle,
.tv-broadcast .lang,
.tv-broadcast #copilot-toggle { display: none !important; }
.tv-broadcast .frame { padding: 0; max-width: none; width: 100%; }
.tv-broadcast .ct-top { background: #05080a; border-bottom: 1px solid #1a2428; }
.tv-broadcast { --ct-top: 48px; }

.ctv {
  --ctv-bg: #05080a;
  --ctv-panel: #0b1114;
  --ctv-line: #00a884;
  --ctv-gold: #c4a35a;
  --ctv-up: #25d366;
  --ctv-down: #ea0038;
  --ctv-muted: #8b9aa0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(220px, 0.72fr);
  grid-template-rows: minmax(0, 1.75fr) minmax(210px, 0.8fr);
  gap: 6px;
  padding: 6px;
  height: calc(100vh - var(--ct-top, 48px));
  min-height: 520px;
  background: var(--ctv-bg);
  color: #e8edf0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}
.ctv > section { background: var(--ctv-panel); min-width: 0; min-height: 0; overflow: hidden; }
.ctv-video { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 28px minmax(0, 1fr); border: 2px solid var(--ctv-line); }
.ctv-feat { grid-column: 2; grid-row: 1; border: 2px solid var(--ctv-line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ctv-tiles { grid-column: 3; grid-row: 1 / 3; border: 2px solid var(--ctv-gold); display: flex; flex-direction: column; }
.ctv-news { grid-column: 1; grid-row: 2; border: 2px solid var(--ctv-gold); display: grid; grid-template-columns: 28px minmax(0, 1fr); }
.ctv-later { grid-column: 2; grid-row: 2; border: 2px solid var(--ctv-line); padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }

.ctv-side, .ctv-news-label {
  background: #008069;
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.ctv-news-label { background: #c4a35a; color: #1a1408; }

.ctv-stage { position: relative; min-height: 0; background: #000; }
.ctv-stage video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ctv-stage .live-badge { position: absolute; top: 10px; left: 10px; background: #ea0038; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; padding: 2px 7px; }
.ctv-stage #unmute { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 14px; padding: 4px 12px; background: #00a884; color: #fff; cursor: pointer; font-size: 12px; }
.ctv-l3 { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 12px 8px; background: linear-gradient(transparent, rgb(0 0 0 / .88)); }
.ctv-speaker { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.ctv-role { font-size: 12px; color: #c9d4d8; letter-spacing: .06em; text-transform: uppercase; margin: 2px 0 6px; }
.ctv-strip { background: #008069; color: #fff; font: 700 13px/1.3 ui-monospace, "SF Mono", Menlo, monospace; padding: 5px 8px; letter-spacing: .04em; }

.ctv-feat-name { font-size: 18px; font-weight: 700; }
.ctv-feat-last { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctv-feat-last.up, .ctv-tile.up .chg, .ctv-feat-last.up span { color: var(--ctv-up); }
.ctv-feat-last.down, .ctv-tile.down .chg, .ctv-feat-last.down span { color: var(--ctv-down); }
.ctv-feat-ohlc { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ctv-muted); font-variant-numeric: tabular-nums; }
.ctv-feat-chart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ctv-feat-cap { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ctv-gold); margin-bottom: 2px; }
.ctv-chart { width: 100%; height: 100%; min-height: 56px; display: block; }
.ctv-chart .fill { fill: rgb(0 168 132 / .35); }
.ctv-chart .line { fill: none; stroke: #00a884; stroke-width: 1.6; }

.ctv-tiles-body { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.ctv-tile { padding: 7px 10px 6px; border-bottom: 1px solid #1a2428; }
.ctv-tile-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ctv-tile-top b { font-weight: 700; letter-spacing: .03em; }
.ctv-tile-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ctv-tile .last { font-variant-numeric: tabular-nums; font-size: 14px; }
.ctv-spark { width: 64px; height: 20px; }
.ctv-spark .spark { fill: none; stroke: var(--ctv-up); stroke-width: 1.4; }
.ctv-spark .spark.down { stroke: var(--ctv-down); }
.ctv-clock { padding: 8px 10px; font: 700 13px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; color: var(--ctv-gold); border-top: 1px solid #1a2428; text-transform: uppercase; }

.ctv-news-body { padding: 8px 12px 10px; min-width: 0; overflow: auto; }
.ctv-news-meta { display: flex; justify-content: flex-end; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ctv-gold); }
.ctv-news h2 { margin: 4px 0 8px; font-size: 20px; line-height: 1.2; }
.ctv-news ul { margin: 0; padding: 0 0 0 1.1em; color: #d4b36a; font-size: 14px; }
.ctv-news li { margin: 0 0 4px; }

.ctv-later-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ctv-gold); }
.ctv-later h2 { margin: 0; font-size: 24px; line-height: 1.15; }
.ctv-later-blurb { margin: 0; color: var(--ctv-muted); font-size: 13px; }
.ctv-later-times { margin: 0; font: 700 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.ctv-now-show { margin: 6px 0 0; font-size: 13px; color: var(--ctv-muted); }
.ctv-now-show b { color: #e8edf0; }

video::cue {
  background: rgb(0 0 0 / .7);
  color: #fff;
  font: 600 16px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (max-width: 900px) {
  .ctv {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }
  .ctv-video, .ctv-feat, .ctv-tiles, .ctv-news, .ctv-later { grid-column: 1; grid-row: auto; }
  .ctv-stage { aspect-ratio: 16 / 9; }
  .ctv-chart { min-height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .ctv-stage video { /* captions still show */ }
}
