/* ============================================================================
   THE INTERLOCK — LIVE BROADCAST ROOM (/live)
   ============================================================================ */

.live-page {
  background:
    radial-gradient(ellipse 75% 50% at 25% 0%, rgba(217, 48, 37, 0.08), transparent 60%),
    radial-gradient(ellipse 65% 50% at 85% 90%, rgba(232, 168, 56, 0.08), transparent 65%),
    #090A0D;
  color: var(--ivory);
  min-height: 100vh;
}

.live-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 48px;
}

.live-hero-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 24px;
  margin-bottom: 20px;
}
.live-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(244, 240, 230, 0.1);
  border: 1px solid rgba(244, 240, 230, 0.18);
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--ivory);
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  display: inline-block;
}
.live-pill.is-on-air {
  background: rgba(217, 48, 37, 0.25);
  border-color: rgba(255, 86, 86, 0.65);
  color: #FFE4E4;
  box-shadow: 0 0 18px rgba(217, 48, 37, 0.35);
}
.live-pill.is-on-air i {
  background: #FF4B4B;
  box-shadow: 0 0 10px #FF4B4B;
  animation: livePulse 1.1s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.live-viewers-chip, .live-mode-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 17, 21, 0.85);
  border: 1px solid rgba(244, 240, 230, 0.14);
  font: 600 10.5px/1 var(--font-mono);
  color: #74FFB0;
}
.live-mode-chip { color: var(--gold-bright); }

.live-hero-bar h1 {
  margin: 0 0 6px;
  font: 500 clamp(30px, 3.8vw, 46px)/1.06 var(--font-serif);
}
.live-ticker-line {
  margin: 0;
  max-width: 70ch;
  font: 400 14.5px/1.5 var(--font-sans);
  color: rgba(244, 240, 230, 0.76);
}
.live-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Main 2-Column Live Grid */
.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr);
  gap: 20px;
  align-items: start;
}

.live-stage-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(232, 168, 56, 0.24);
  background: radial-gradient(circle at 50% 35%, rgba(36, 28, 18, 0.65), rgba(11, 12, 16, 0.96) 72%);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

/* YouTube Live Container */
.yt-stage-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-stage-wrap[hidden] { display: none; }
#yt-live-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Synced Vinyl Deck Stage */
.deck-stage-wrap {
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.deck-stage-wrap[hidden] { display: none; }

.live-turntable-visual {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.live-platter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    conic-gradient(from 40deg, transparent 0deg, rgba(255, 224, 156, 0.14) 24deg, transparent 54deg, transparent 180deg, rgba(255, 224, 156, 0.14) 204deg, transparent 234deg),
    repeating-radial-gradient(circle at 50% 50%, #121216 0px, #121216 3px, #1E1E24 4px, #111115 6px);
  border: 3px solid rgba(232, 168, 56, 0.38);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85), inset 0 0 24px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  animation: liveSpin 4.2s linear infinite;
  animation-play-state: paused;
}
.live-platter.is-spinning { animation-play-state: running; }
@keyframes liveSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.live-center-label {
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: #EFE3CE;
  border: 2.5px solid #C85A34;
  color: #141418;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  gap: 2px;
}
.live-center-label span { font: 700 8px/1 var(--font-mono); letter-spacing: 0.1em; color: #C85A34; }
.live-center-label strong { font: 600 12px/1.15 var(--font-serif); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-center-label small { font: 600 8.5px/1 var(--font-mono); opacity: 0.72; }

.live-tonearm {
  position: absolute;
  top: 8px;
  right: -12px;
  width: 10px;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, #E8A838, #8A611B);
  transform-origin: top center;
  transform: rotate(10deg);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.live-tonearm.is-dropped { transform: rotate(28deg); }

#live-spectrum-canvas {
  width: 100%;
  max-width: 620px;
  height: 68px;
  display: block;
}

.deck-transport-bar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}
.live-vol-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 10px/1 var(--font-mono);
  color: rgba(244, 240, 230, 0.65);
}
.live-vol-box input { width: 92px; accent-color: #E8A838; cursor: pointer; }
.sync-clock-tag {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #74FFB0;
}

/* Floating Ripples */
.live-ripples-overlay {
  position: absolute;
  right: 18px;
  bottom: 86px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}
.live-rx-chip {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.88);
  border: 1px solid rgba(232, 168, 56, 0.45);
  color: var(--ivory);
  font: 600 11px/1 var(--font-mono);
  white-space: nowrap;
  animation: liveFloatRx 3.4s ease-out forwards;
}
@keyframes liveFloatRx {
  0%   { opacity: 0; transform: translateY(10px) scale(0.9); }
  14%  { opacity: 1; transform: translateY(0) scale(1); }
  82%  { opacity: 0.9; transform: translateY(-150px); }
  100% { opacity: 0; transform: translateY(-200px); }
}

/* Reaction Deck */
.reaction-deck {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(244, 240, 230, 0.1);
  background: rgba(10, 11, 14, 0.72);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reaction-deck-label {
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.13em;
  color: rgba(244, 240, 230, 0.55);
}
.reaction-btns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.rx-btn {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 230, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  font: 600 12px/1 var(--font-mono);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.2s ease, background 0.2s ease;
}
.rx-btn:hover { border-color: var(--gold-bright); background: rgba(232, 168, 56, 0.14); }
.rx-btn:active { transform: scale(0.96); }
.rx-wheel { border-color: rgba(255, 120, 78, 0.45); color: #FFB89E; }

/* Sidebar Cards */
.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.live-side-card {
  border-radius: 14px;
  border: 1px solid rgba(244, 240, 230, 0.11);
  background: linear-gradient(180deg, rgba(24, 22, 19, 0.92), rgba(14, 15, 18, 0.94));
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.live-eyebrow {
  display: block;
  font: 600 10px/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}
.live-side-card h2 {
  margin: 0;
  font: 500 25px/1.12 var(--font-serif);
}
.live-track-credit {
  margin: -4px 0 0;
  font: 500 12px/1.4 var(--font-mono);
  color: var(--terra-bright);
}
.live-liner-note {
  margin: 0;
  font: 400 14.5px/1.58 var(--font-serif);
  color: rgba(244, 240, 230, 0.86);
}
.live-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.req-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.request-form input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(244, 240, 230, 0.16);
  background: #0B0C0F;
  color: var(--ivory);
  font: 500 12.5px/1.3 var(--font-mono);
}
.req-feedback {
  margin: 0;
  font: 500 11.5px/1.3 var(--font-mono);
  color: #74FFB0;
  min-height: 14px;
}
.recent-notes-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
  max-height: 190px;
  overflow-y: auto;
}
.recent-note-row {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid rgba(232, 168, 56, 0.45);
  font-size: 12.5px;
}
.recent-note-row strong {
  display: block;
  font: 600 10px/1.2 var(--font-mono);
  color: var(--gold-bright);
  margin-bottom: 2px;
}

/* Attendance Pass Modal */
.pass-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: grid;
  place-items: center;
  padding: 20px;
}
.pass-modal[hidden] { display: none; }
.pass-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.84);
  backdrop-filter: blur(8px);
}
.pass-dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #141312;
  border: 1px solid rgba(232, 168, 56, 0.35);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pass-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pass-head h2 { margin: 0; font: 500 22px/1.15 var(--font-serif); }
.pass-close {
  border: 1px solid rgba(244, 240, 230, 0.2);
  background: transparent;
  color: var(--ivory);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}
.pass-preview { display: flex; justify-content: center; background: #090A0D; padding: 10px; border-radius: 10px; }
#pass-canvas { width: min(320px, 100%); height: auto; border-radius: 6px; }
.pass-controls { display: flex; flex-direction: column; gap: 10px; }
.pass-controls input {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(244, 240, 230, 0.18);
  background: #0B0C0F;
  color: var(--ivory);
  font: 500 13px/1.3 var(--font-mono);
}

@media (max-width: 960px) {
  .live-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .live-shell { padding: 14px 14px 36px; }
  .reaction-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req-row-2 { grid-template-columns: 1fr; }
}
