/* css/tv.css: the TV wall (tv.php). Moved verbatim from style.css (UI plan step 20d). */

/* ---------- TV mode (tv.php) ---------------------------------------------
   A camera wall on a television, driven by its remote: the grid and a
   scrubber, nothing else. The top bar keeps the site's name.
   Rules are body.tv-scoped and win over the narrow-screen layout too, because
   a TV browser can report a small CSS width (a 1920 panel at 2x is 960). */
body.tv .side,
body.tv .topbar-slot,
body.tv #driverBadge,
body.tv .topbar-right, body.tv .rail, body.tv .pagebar, body.tv #btnMenu,
body.tv .transport .tools,
body.tv #btnPrevEvent, body.tv #btnNextEvent, body.tv #rate,
body.tv .tlhead, body.tv .tltip, body.tv .side-open { display: none !important; }
body.tv { height: 100%; overflow: hidden; cursor: none; }
body.tv .app { grid-template-columns: minmax(0, 1fr); }   /* no rail on the wall */
body.tv .layout { display: flex; flex-direction: column; flex: 1; min-height: 0; grid-template-columns: none; grid-template-rows: none; }
body.tv .stage { flex: 1; min-height: 0; }
body.tv .video-area { flex: 1; height: auto; min-height: 0; }
body.tv .transport { justify-content: center; }
body.tv .timeline-wrap { height: 92px; }
/* Where the remote is: the active pane (grid) or the scrubber. Thick and
   bright -- it is read from across a room. */
/* Drawn on its own top layer: the pane's overlays (no signal, the picture)
   would otherwise paint over an outline. (top/right/bottom/left: the TV's
   browser may be Chromium 85, which has no inset.) */
body.tv .pane.focus { outline: none; }
body.tv .pane.focus::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 9; pointer-events: none;
  border: 5px solid var(--accent); }
body.tv.tv-scrub .pane.focus::after { border-color: var(--tv-scrub-ring); border-width: 3px; }
body.tv.tv-scrub .transport,
body.tv.tv-scrub .timeline-wrap { box-shadow: inset 0 0 0 4px var(--accent); }
body.tv .ctxmenu button:focus { outline: 3px solid var(--accent); outline-offset: -3px; background: var(--panel-3); }
body.tv .ctxmenu { font-size: 18px; }
/* The remote's key help, shown briefly on load and on demand (the Info / ? key). */
.tvhelp { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 60;
  background: rgba(17, 21, 27, .94); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 20px; font-size: 17px; line-height: 1.6; color: var(--text); pointer-events: none; }
.tvhelp b { color: var(--accent); }
