/* THE BROADCAST — the set alone, watched from across the room. Everything
   here hangs off html.xf-bc (js/broadcast.js); without it the console is
   untouched. Wide screens only: phones keep their own hero. */

.bc-bar { display: none; }
.bc-return {
  display: none; width: 100%; margin-top: 10px; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--space-line-bright); background: rgba(255, 176, 32, 0.07);
  color: var(--neon-cyan-soft); font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em;
  cursor: pointer; text-align: left;
}
.bc-return:hover, .bc-return:focus-visible { border-color: var(--neon-cyan); background: rgba(255, 176, 32, 0.16); }
.bc-return kbd, .bc-btn kbd {
  margin-left: 10px; padding: 1px 6px; border-radius: 5px; border: 1px solid currentColor;
  font: inherit; font-size: 0.9em; opacity: 0.75;
}
.bc-return kbd { float: right; }

@media (min-width: 1101px) {
  .bc-return { display: block; }

  /* ── the room empties: rail, wires, monitors, strips and deck all rest ── */
  html.xf-bc .console { zoom: 1; height: 100dvh; grid-template-columns: minmax(0, 1fr); }
  html.xf-bc .rail,
  html.xf-bc .deckwires,
  html.xf-bc .monitors,
  html.xf-bc .controls,
  html.xf-bc .pad-strip,
  html.xf-bc .wire-strip,
  html.xf-bc #thread-strip,
  html.xf-bc .tvp-bar { display: none !important; }
  /* floating furniture steps out without being torn down (a hidden player keeps playing) */
  html.xf-bc #juke-wrap,
  html.xf-bc .inst-dock,
  html.xf-bc #xf-eye { opacity: 0; pointer-events: none; }

  /* ── the set takes the whole deck ── */
  html.xf-bc .console .deck {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "tv" "doors";
    place-content: center; row-gap: 10px; column-gap: 0; padding: 20px 28px 68px;
  }
  html.xf-bc .console .tv {
    grid-area: tv; justify-self: center;
    width: min(100%, calc((100dvh - 208px) * 16 / 9));
  }
  /* the doors stay with the set */
  html.xf-bc .console .doors {
    grid-area: doors; justify-self: center; max-width: none;
    width: min(100%, calc((100dvh - 208px) * 16 / 9));
  }

  /* ── ten-foot type: read it from the couch ── */
  html.xf-bc .segment__name { font-size: clamp(2.8rem, 5.2vw, 6rem); }
  html.xf-bc .segment__take { font-size: clamp(1.15rem, 1.55vw, 1.9rem); max-width: 52ch; line-height: 1.36; }
  html.xf-bc .segment__eyebrow, html.xf-bc .segment__grade { font-size: clamp(0.8rem, 0.95vw, 1.1rem); }
  html.xf-bc .segment__lower { padding: clamp(24px, 3.4vw, 56px); padding-bottom: clamp(44px, 5vw, 76px); }
  html.xf-bc .tv__hud { font-size: clamp(0.8rem, 0.95vw, 1.1rem); }

  /* ── the one strip left in the room ── */
  html.xf-bc .bc-bar {
    display: flex; align-items: center; gap: 16px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    padding: 14px 26px calc(14px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(0deg, rgba(6, 3, 1, 0.92), rgba(6, 3, 1, 0));
    font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-dim); transition: opacity 0.7s ease;
  }
  html.xf-bc .bc-bar.is-quiet { opacity: 0.42; }
  html.xf-bc .bc-bar:hover, html.xf-bc .bc-bar:focus-within { opacity: 1; }
  .bc-bar__air { color: var(--neon-cyan); white-space: nowrap; }
  .bc-bar__now { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
  .bc-btn {
    flex: none; min-height: 38px; padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--space-line-bright); background: rgba(10, 6, 4, 0.72);
    color: var(--neon-cyan-soft); font: inherit; letter-spacing: inherit; text-transform: inherit;
    cursor: pointer; white-space: nowrap;
  }
  .bc-btn:hover, .bc-btn:focus-visible { border-color: var(--neon-cyan); background: rgba(255, 176, 32, 0.16); }
  .bc-btn[aria-pressed="true"] { border-color: var(--neon-cyan); background: rgba(255, 176, 32, 0.24); color: #fff3d6; }
  .bc-btn--door { border-color: var(--neon-cyan); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html.xf-bc .bc-bar { transition: none; }
}
