/* =====================================================================
   BANGBOWBING OS — TV app styles
   Lifted out of os/os.css byte-for-byte by the v3 scene phase (ledger item 33's
   css split, kept under the item 44-47 game frame) so phase-2 app workers edit
   disjoint files. Shell, the shared app kit, the emote/rarity tokens and the
   lightbox stay in os.css; this file owns the TV app only.
   Linked from desktop.html AFTER os.css — same cascade order for ties.
   ===================================================================== */

/* =================================================================== tv */
.tv-app {
  container-type: inline-size;
  container-name: tvapp;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  padding: 12px;
}
.tv-side { display: grid; gap: 12px; align-content: start; }

/* >=720px panel width (item 38): player left, schedule/skip/predictions
   rail right. Same DOM, just reflowed -- see os/apps/tv.js. */
@container tvapp (min-width: 720px) {
  .tv-app {
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-rows: auto;
    align-items: start;
  }
  .tvstage { grid-column: 1; grid-row: 1; }
  .tv-side { grid-column: 2; grid-row: 1; }
}
.tvstage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 20px rgba(0, 0, 0, 0.5);
}
.tvplayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testcard { position: absolute; inset: 0; display: grid; place-items: center; }
.testcard .bars {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background: linear-gradient(90deg,
    #c0c0c0 0 14.28%, #c0c000 14.28% 28.56%, #00c0c0 28.56% 42.84%,
    #00c000 42.84% 57.12%, #c000c0 57.12% 71.4%, #c00000 71.4% 85.68%,
    #0000c0 85.68% 100%);
}
.testcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0 1px, transparent 1px 3px);
  animation: tvroll 7s linear infinite;
  pointer-events: none;
}
.tc-box {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  justify-items: center;
  max-width: 84%;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  background: rgba(10, 8, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 26px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.tc-kicker {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--tang);
}
.tc-box p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--screen-ink); }
.captionbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #fff;
  background: rgba(6, 4, 12, 0.78);
  border-left: 3px solid var(--aqua-lt);
}
.captionbar .interim { color: #cdd4ea; font-style: italic; }
.tvbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tv-now { font-size: 12.5px; line-height: 1.5; color: var(--screen-dim); }

.votepanel {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #262848, var(--screen-2));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid var(--aqua-lt);
}
.vote-q { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--aqua-lt); }
.voteopt {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  text-align: left;
  background: linear-gradient(180deg, #32355a, var(--screen-3));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--screen-ink);
}
.voteopt .bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(180deg, rgba(127, 227, 255, 0.34), rgba(46, 155, 255, 0.2));
  transition: width 0.35s var(--ease);
}
.voteopt .lab {
  position: relative;
  display: flex;
  gap: 9px;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 12.5px;
}
.voteopt:hover { border-color: var(--candy); }

@media (max-width: 759px) {
  .tv-app { padding: 9px; gap: 9px; }
  .picker { max-height: 112px; }
}
