/* ============================================================================
   SoWatch v2 — Cinema Red (#e11d48) & Pure Theater Black (#07070a) Design System
   3-Tier Radius System: --r-sm (8px), --r-md (12px), --r-pill (999px)
   ============================================================================ */
:root {
  color-scheme: dark;
  --font-sans: 'Onest', 'Onest Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Onest', 'Onest Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Onest', 'Onest Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --bg-base: #07070a;
  --bg-panel: #0d0d12;
  --bg-surface: #13131b;
  --bg-elevated: #1a1a24;
  --bg-hover: #222230;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.24);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1b2;
  --text-muted: #68687a;

  --accent: #e11d48;
  --accent-hover: #f43f5e;
  --accent-active: #be123c;
  --accent-dim: rgba(225, 29, 72, 0.14);
  --accent-border: rgba(225, 29, 72, 0.42);
  --accent-white: #ffffff;

  --status-green: #10b981;
  --status-amber: #f59e0b;
  --status-red: #e11d48;

  --r-sm: 8px;
  --r-md: 12px;
  --r-pill: 999px;

  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.72);
  --shadow-modal: 0 32px 90px rgba(0, 0, 0, 0.88);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, textarea {
  caret-color: var(--accent-hover);
  user-select: text;
}

::selection {
  background: rgba(225, 29, 72, 0.36);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

html, body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button:active {
  transform: scale(0.98);
}

svg.ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ============================================================================
   UNIFIED BUTTON & BADGE SYSTEM
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  color: #ffffff;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}
.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn.icon-only {
  width: 36px;
  padding: 0;
}
.btn.active-state {
  background: var(--accent-dim);
  color: #fda4af;
  border-color: var(--accent-border);
  font-weight: 600;
}
.btn.danger-state {
  background: rgba(225, 29, 72, 0.12);
  color: #fda4af;
  border-color: rgba(225, 29, 72, 0.32);
}
.btn.danger-state:hover {
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(225, 29, 72, 0.5);
}

.text-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.text-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.cat-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}

.mono-badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mono-badge:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-green);
  display: inline-block;
  flex-shrink: 0;
}

/* Custom Dark Tooltip via [data-tip] */
[data-tip] {
  position: relative;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: #14141d;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 80;
}
[data-tip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   LANDING / PREMIERE SHOWCASE OVERLAY
   ============================================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-overlay.hidden {
  display: none;
}

.scener-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  flex-shrink: 0;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.scener-nav.scrolled {
  background: rgba(7, 7, 10, 0.9);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.34);
  flex-shrink: 0;
}
.brand-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  margin-left: 1px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  line-height: 1;
}

.scener-container {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}

.premiere-hero-wrap {
  position: relative;
  width: 100%;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px 0 84px;
  overflow: hidden;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.premiere-hero-wrap.member-mode {
  min-height: 360px;
  padding: 112px 0 48px;
}
@keyframes hero-ambient-drift {
  0%   { transform: scale(1.03); }
  100% { transform: scale(1.08); }
}

.premiere-backdrop-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050508;
}
.premiere-backdrop-media img,
.premiere-backdrop-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.premiere-backdrop-media img.hero-cozy-bg {
  opacity: 0.72;
  filter: contrast(1.05) saturate(1.06);
  animation: hero-ambient-drift 26s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .premiere-backdrop-media img.hero-cozy-bg {
    animation: none;
  }
}
.premiere-backdrop-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 86% 78% at 50% 44%, rgba(7, 7, 10, 0.28) 0%, rgba(7, 7, 10, 0.76) 70%, #07070a 100%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.82) 0%, rgba(7, 7, 10, 0.24) 34%, rgba(7, 7, 10, 0.64) 78%, #07070a 100%);
  pointer-events: none;
}

.nf-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.scener-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.7vw, 56px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 16px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.92);
  text-wrap: balance;
}
.scener-lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: #dcdce6;
  max-width: 56ch;
  line-height: 1.58;
  margin: 0 0 28px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  text-wrap: pretty;
}
.nf-form-kicker {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

/* Netflix Get-Started Bar */
.nf-start-form {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.nf-start-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.nf-start-input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: rgba(13, 13, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  user-select: text;
}
.nf-start-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.nf-start-input:focus {
  background: rgba(16, 16, 24, 0.95);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.26);
}
.nf-start-btn {
  height: 54px;
  padding: 0 28px;
  border-radius: var(--r-sm);
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.36);
}
.nf-start-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.nf-start-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.3;
  fill: none;
  transition: transform 0.16s ease;
}
.nf-start-btn:hover svg {
  transform: translateX(3px);
}

/* Secondary Collapsible Invite Code Drawer under Hero Bar */
.nf-invite-row {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.nf-invite-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}
.nf-invite-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.nf-invite-drawer {
  display: none;
  animation: fade-up 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.nf-invite-drawer.open {
  display: flex;
}

.scener-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.scener-btn-white {
  height: 46px;
  padding: 0 24px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #07070a;
  border: 1px solid #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.scener-btn-white:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.scener-btn-primary {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 700;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.scener-btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.scener-btn-ghost {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  background: rgba(19, 19, 27, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.scener-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.scener-code-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 13, 18, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 4px 5px 4px 13px;
  height: 46px;
  gap: 8px;
  max-width: 100%;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.scener-code-bar:focus-within {
  border-color: var(--accent);
  background: rgba(16, 16, 22, 0.96);
}
.scener-code-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  width: 148px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: text;
}
.scener-code-input::placeholder {
  color: rgba(255, 255, 255, 0.56);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
  font-weight: 500;
}
.scener-code-submit {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.scener-code-submit:hover {
  background: var(--accent-hover);
}

/* Filter Pills */
.scener-filter-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
}
.scener-filter-pill:hover {
  color: #ffffff;
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.scener-filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

/* Room Showcase Cards */
.scener-rooms-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.scener-room-card {
  position: relative;
  grid-column: span 4;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.24s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.scener-room-card.featured-span {
  grid-column: span 6;
}
.scener-room-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.86);
}
.scener-room-poster {
  position: relative;
  height: 192px;
  background: #060609;
  overflow: hidden;
}
.scener-room-card.featured-span .scener-room-poster {
  height: 224px;
}
.scener-room-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
.scener-room-poster video.room-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.scener-room-card.preview-active .scener-room-poster video.room-hover-video {
  opacity: 1;
}
.scener-room-card.preview-active .scener-room-poster img {
  opacity: 0;
}
.scener-room-card:hover .scener-room-poster img {
  transform: scale(1.04);
}
.scener-room-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.52) 0%, transparent 42%, rgba(13, 13, 18, 0.98) 100%);
  z-index: 2;
  pointer-events: none;
}

.room-card-join-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.room-card-join-cta svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  transition: transform 0.16s ease;
}
.scener-room-card:hover .room-card-join-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.scener-room-card:hover .room-card-join-cta svg {
  transform: translateX(2px);
}

.room-card-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 3;
}
.room-card-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.room-avatar-stack {
  display: inline-flex;
  align-items: center;
  margin-right: 4px;
}
.room-avatar-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg-panel);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -7px;
}
.room-avatar-ring:first-child {
  margin-left: 0;
}

.room-card-share-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.15s ease, border-color 0.15s ease;
}
.scener-room-card:hover .room-card-share-btn,
.room-card-share-btn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.room-card-share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================================
   NETFLIX-STYLE PROMOTIONAL SHOWCASE SECTIONS & ASYMMETRIC BENTO
   ============================================================================ */
@keyframes voice-bar {
  0%, 100% { transform: scaleY(0.35); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.promo-band {
  border-bottom: 1px solid var(--border);
  padding: 84px 0;
  background: var(--bg-base);
}
.promo-band.surface-alt {
  background: linear-gradient(180deg, #0b0b10 0%, #07070a 100%);
}
.promo-split {
  display: grid;
  grid-template-columns: 0.94fr 1.16fr;
  align-items: center;
  gap: 56px;
}
.promo-h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}
.promo-copy {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  max-width: 48ch;
  text-wrap: pretty;
}
.promo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.promo-soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #d6d6e2;
  font-size: 12.5px;
  font-weight: 600;
}

/* Live Cinema Window Preview */
.stage-artifact-frame {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.88), 0 0 80px rgba(225, 29, 72, 0.11);
}
.stage-artifact-topbar {
  height: 40px;
  padding: 0 15px;
  background: #111118;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.stage-artifact-video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050508;
  overflow: hidden;
}
.stage-artifact-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.stage-artifact-sub {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 7, 10, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 15px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-artifact-dock {
  padding: 11px 15px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.artifact-voice-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.artifact-voice-pill.speaking {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.11);
  color: #ffffff;
}
.artifact-voice-orb {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Asymmetric 1+2 Bento Showcase */
.bento-showcase-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.bento-card {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-card);
  transition: border-color 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.bento-card.hero-tile {
  grid-row: span 2;
  padding: 0;
  background: var(--bg-panel);
  justify-content: flex-start;
}
.bento-hero-media {
  position: relative;
  flex: 1 1 240px;
  min-height: 220px;
  width: 100%;
  overflow: hidden;
  background: #07070a;
}
.bento-hero-media img,
.bento-hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.bento-hero-media::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  background: linear-gradient(180deg, rgba(13, 13, 18, 0) 0%, var(--bg-panel) 100%);
  pointer-events: none;
}
.bento-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}
.bento-source-chip {
  height: 27px;
  padding: 0 11px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: #dcdce6;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento-hero-body {
  padding: 18px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
}
.bento-card.voice-tile {
  background: radial-gradient(circle at 92% 14%, rgba(16, 185, 129, 0.12) 0%, rgba(19, 19, 27, 0.92) 56%, #0d0d12 100%);
  gap: 18px;
}
.bento-card.ticket-tile {
  background: radial-gradient(circle at 92% 88%, rgba(225, 29, 72, 0.15) 0%, rgba(19, 19, 27, 0.94) 58%, #0d0d12 100%);
  gap: 18px;
}
.bento-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.24;
  margin: 0 0 6px;
}
.bento-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.58;
  margin: 0;
}

/* Tactile Voice Ducking Widget inside Bento */
.bento-voice-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(7, 7, 10, 0.66);
  border: 1px solid var(--border);
}
.voice-eq {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.voice-eq span {
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: #10b981;
  animation: voice-bar 1.1s ease-in-out infinite;
}
.voice-eq span:nth-child(2) { animation-delay: 0.18s; height: 10px; }
.voice-eq span:nth-child(3) { animation-delay: 0.35s; height: 16px; }
.voice-eq span:nth-child(4) { animation-delay: 0.52s; height: 9px; }

/* Cinema Invite Card inside Bento */
.cinema-ticket-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--r-sm);
  background: rgba(7, 7, 10, 0.68);
  border: 1px solid var(--border);
}
.ticket-code-pill {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 5px 11px;
  border-radius: 6px;
}

/* Netflix-Style FAQ Accordion */
.nf-faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.nf-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.nf-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.nf-faq-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.nf-faq-item[open] {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.nf-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.nf-faq-item summary::-webkit-details-marker {
  display: none;
}
.nf-faq-plus {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s ease;
}
.nf-faq-item[open] .nf-faq-plus {
  transform: rotate(45deg);
  color: var(--accent-hover);
}
.nf-faq-answer {
  padding: 15px 22px 20px;
  font-size: 14.5px;
  line-height: 1.64;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Logged-In Personal Lobby Actions */
.member-lobby-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.member-action-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
}
.member-inline-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.member-inline-row .login-field {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

/* Netflix-Grade Auth Screen & Card */
.nf-auth-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 75% at 50% 45%, rgba(7, 7, 10, 0.72) 0%, rgba(4, 4, 7, 0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
}
.nf-auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.nf-auth-topbar > * {
  pointer-events: auto;
}

/* Auth & Lobby Cards */
.login-card {
  width: 432px;
  max-width: 94vw;
  background: rgba(9, 9, 13, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  padding: 38px 38px 34px;
  box-shadow: var(--shadow-modal);
  animation: fade-up 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.nf-auth-title {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.nf-auth-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 22px;
  line-height: 1.5;
}
.login-field {
  width: 100%;
  height: 48px;
  background: rgba(22, 22, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  padding: 0 15px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: text;
}
.login-field:focus {
  background: var(--bg-elevated);
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.22);
}
.login-field::placeholder {
  color: var(--text-muted);
}
.login-btn {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}
.login-btn:hover {
  background: var(--accent-hover);
}
.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nf-auth-switchers {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.nf-auth-link {
  background: transparent;
  border: none;
  padding: 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.nf-auth-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}
.login-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.login-error {
  font-size: 12px;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.32);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-bottom: 12px;
  display: none;
}

/* VIP Cinema Invite Welcome Card */
.invite-ticket-card {
  width: 452px;
  max-width: 94vw;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(225, 29, 72, 0.15) 0%, rgba(13, 13, 18, 0.96) 66%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.92);
  position: relative;
  z-index: 3;
}
.invite-ticket-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.invite-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.invite-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
}
.invite-code-tag {
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.invite-host-line {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.invite-host-line strong {
  color: #ffffff;
  font-weight: 700;
}
.invite-room-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.invite-now-playing-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.invite-now-playing-box svg {
  width: 13px;
  height: 13px;
  fill: var(--accent);
  flex-shrink: 0;
}
.invite-now-playing-box span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.invite-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.invite-mic-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 4px 0 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.invite-mic-toggle:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
}
.invite-mic-toggle input {
  display: none;
}
.invite-mic-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.invite-mic-box svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.6;
  fill: none;
  opacity: 0;
  transition: opacity 0.14s ease;
}
.invite-mic-toggle input:checked + .invite-mic-box {
  background: var(--accent);
  border-color: var(--accent);
}
.invite-mic-toggle input:checked + .invite-mic-box svg {
  opacity: 1;
}
.invite-mic-text {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}
.invite-mic-text small {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 400;
}
.invite-join-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
}
.invite-join-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}
.invite-footer-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ============================================================================
   THEATER ROOM LAYOUT (CENTER STAGE + RIGHT SIDEBAR)
   ============================================================================ */
.app-layout {
  display: flex;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.center-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Topbar */
.topbar {
  height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 25;
  flex-shrink: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.center-stage.lights-dimmed .topbar {
  opacity: 0.14;
  border-bottom-color: transparent;
}
.center-stage.lights-dimmed .topbar:hover {
  opacity: 1;
}

.topbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.room-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.room-heading:hover {
  color: var(--accent-hover);
}

.topbar-invite-pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.topbar-invite-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
  color: #ffffff;
}
.topbar-invite-pill.copied {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}
.topbar-copy-ico {
  width: 11.5px;
  height: 11.5px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.72;
}
.btn.live-sharing {
  background: rgba(225, 29, 72, 0.18) !important;
  border-color: rgba(225, 29, 72, 0.55) !important;
  color: #fda4af !important;
}
.btn.live-sharing:hover {
  background: rgba(225, 29, 72, 0.3) !important;
  color: #ffffff !important;
}

/* ============================================================================
   POST-ROOM-CREATION CINEMA FOYER (2-STEP STAGE WELCOME)
   ============================================================================ */
.cinema-foyer {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.4vw, 32px);
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%, rgba(225, 29, 72, 0.13) 0%, transparent 68%),
    radial-gradient(ellipse 85% 75% at 50% 55%, #12121a 0%, #07070a 100%);
  overflow-y: auto;
}
.cinema-foyer-inner {
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  margin: auto;
}

/* Step 1: Invite Strip */
.foyer-invite-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(19, 19, 27, 0.88);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.foyer-invite-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.foyer-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.foyer-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.foyer-invite-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.foyer-invite-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foyer-invite-text span {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.foyer-invite-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.foyer-code-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: #09090d;
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
}
.foyer-copy-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  background: #ffffff;
  color: #09090d;
  border: 1px solid #ffffff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.16s ease, transform 0.14s ease;
}
.foyer-copy-btn svg {
  width: 13.5px;
  height: 13.5px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
}
.foyer-copy-btn:hover {
  background: #e4e4e7;
}
.foyer-copy-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* Step 2: Heading & Launch Cards */
.foyer-heading-block {
  text-align: left;
  padding: 0 2px;
}
.foyer-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 5px;
  line-height: 1.2;
}
.foyer-subtitle {
  font-size: clamp(12.5px, 1.15vw, 14px);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.foyer-guest-wait {
  background: rgba(19, 19, 27, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}
.foyer-guest-wait-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}
.foyer-guest-wait-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.foyer-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.foyer-action-card {
  appearance: none;
  text-align: left;
  font-family: var(--font-sans);
  background: rgba(19, 19, 27, 0.82);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background 0.18s ease;
}
.foyer-action-card:hover {
  transform: translateY(-2px);
  background: rgba(25, 25, 36, 0.96);
  border-color: rgba(255, 255, 255, 0.28);
}
.foyer-action-card.primary-card {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(225, 29, 72, 0.18) 0%, rgba(19, 19, 27, 0.92) 72%);
  border-color: rgba(225, 29, 72, 0.42);
}
.foyer-action-card.primary-card:hover {
  border-color: rgba(244, 63, 94, 0.72);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(225, 29, 72, 0.25) 0%, rgba(24, 24, 34, 0.96) 76%);
}
.foyer-action-card.split-card {
  cursor: default;
}
.foyer-action-card.split-card:hover {
  transform: none;
}

.foyer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.foyer-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.foyer-card-icon.accent-icon {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.34);
}
.foyer-card-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.foyer-card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid rgba(225, 29, 72, 0.38);
  color: #fda4af;
  white-space: nowrap;
}
.foyer-card-tag.muted-tag {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.foyer-card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.foyer-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}
.foyer-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.48;
}

.foyer-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}
.foyer-action-card.primary-card .foyer-card-cta {
  color: #fda4af;
}
.foyer-card-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  transition: transform 0.16s ease;
}
.foyer-action-card:hover .foyer-card-cta svg {
  transform: translateX(3px);
}
.foyer-split-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.foyer-split-btns .btn {
  width: 100%;
  justify-content: center;
  height: 32px;
  font-size: 12px;
  padding: 0 8px;
}

/* Stage Live Broadcast Bar & Unmute Prompt */
.stage-unmute-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 26;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: rgba(225, 29, 72, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
  transition: transform 0.16s ease, background 0.16s ease;
}
.stage-unmute-prompt:hover {
  transform: translate(-50%, -50%) scale(1.03);
  background: #f43f5e;
}
.stage-unmute-prompt svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
}

.stage-broadcast-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 22;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(4, 4, 7, 0.94) 0%, rgba(4, 4, 7, 0.45) 65%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cinema-screen:hover .stage-broadcast-bar,
.stage-broadcast-bar:focus-within {
  opacity: 1;
}
.stage-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.stage-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.media-modal-tabshare-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  background: radial-gradient(120% 120% at 0% 0%, rgba(225, 29, 72, 0.16) 0%, rgba(19, 19, 27, 0.92) 75%);
  border: 1px solid rgba(225, 29, 72, 0.35);
}

/* Cinema Stage & Screen */
.cinema-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 50% 48%, rgba(225, 29, 72, 0.05) 0%, rgba(7, 7, 10, 0.98) 76%),
    var(--bg-base);
}
.cinema-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 52px
    ),
    radial-gradient(ellipse 74% 54% at 50% 50%, transparent 44%, rgba(4, 4, 7, 0.84) 100%);
  pointer-events: none;
  z-index: 2;
}

#ambilight-canvas {
  position: absolute;
  width: 86%;
  height: 84%;
  filter: blur(88px) saturate(135%);
  opacity: 0.26;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.cinema-screen {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1140px;
  aspect-ratio: 16 / 9;
  max-height: 100%;
  background: #020204;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

#main-video, #main-youtube {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: none;
}

.screen-top-meta {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 15;
  background: rgba(7, 7, 10, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cinema-screen:hover .screen-top-meta {
  opacity: 1;
}

/* Subtitle Overlay */
#cinema-subtitle-overlay {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 18;
  max-width: 82%;
  text-align: center;
  pointer-events: none;
  display: none;
}
.sub-cue-box {
  display: inline-block;
  background: rgba(7, 7, 10, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: #f5f5f7;
  font-size: clamp(13px, 1.4vw, 19px);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  line-height: 1.45;
}

/* Live Poll Card */
#live-poll-card {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 276px;
  background: rgba(13, 13, 18, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 13px;
  z-index: 25;
  box-shadow: var(--shadow-card);
  display: none;
}
.poll-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.poll-q {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.poll-opt {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.14s ease;
}
.poll-opt:hover {
  border-color: var(--border-hover);
}
.poll-opt.voted {
  border-color: var(--accent-border);
}
.poll-opt-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--accent-dim);
  transition: width 0.3s ease;
  z-index: 0;
}
.poll-opt-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-primary);
}

/* ============================================================================
   ICON-DRIVEN CINEMA PLAYER CONTROLS + SCRUBBER HOVER PREVIEW
   ============================================================================ */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 12px;
  background: linear-gradient(to top, rgba(4, 4, 7, 0.92) 0%, rgba(4, 4, 7, 0.45) 65%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.cinema-screen:hover .player-controls,
.player-controls:focus-within {
  opacity: 1;
}

.scrubber-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  cursor: pointer;
  position: relative;
  transition: height 0.12s ease;
}
.scrubber-bar:hover {
  height: 7px;
}
.scrubber-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--r-pill);
  position: relative;
}
.scrubber-progress::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition: transform 0.14s ease;
}
.scrubber-bar:hover .scrubber-progress::after {
  transform: translateY(-50%) scale(1);
}

#scrubber-hover-tip {
  position: absolute;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(13, 13, 18, 0.94);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  z-index: 10;
}
.scrubber-bar:hover #scrubber-hover-tip {
  opacity: 1;
}

.timeline-marker {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 9px;
  background: #ffffff;
  border-radius: var(--r-pill);
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 4;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ctrl-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ctrl-btn.icon-btn {
  width: 32px;
  padding: 0;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}
.ctrl-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: #fda4af;
}

.vol-range {
  width: 72px;
  accent-color: var(--accent);
  cursor: pointer;
  height: 4px;
}
.time-readout {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-left: 4px;
  white-space: nowrap;
}

/* ============================================================================
   STAGE DOCK (PARTICIPANT PODS + VOICE/WEBCAM + REACTIONS)
   ============================================================================ */
.stage-footer {
  min-height: 62px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 20;
  flex-shrink: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.center-stage.lights-dimmed .stage-footer {
  opacity: 0.14;
  border-top-color: transparent;
}
.center-stage.lights-dimmed .stage-footer:hover {
  opacity: 1;
}

.stage-participants {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding: 2px 0;
}
.stage-participants::-webkit-scrollbar {
  display: none;
}

.stage-tile {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.stage-tile:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.stage-tile.speaking {
  border-color: var(--status-green);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.stage-tile .tile-cam {
  display: none;
  width: 64px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: #000;
}
.stage-tile.cam-active {
  border-radius: var(--r-sm);
  padding: 4px 8px 4px 4px;
}
.stage-tile.cam-active .tile-cam {
  display: block;
}
.stage-tile.cam-active .avatar-circle {
  display: none;
}

.stage-tile-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-mic-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.18);
  color: #fda4af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stage-mic-badge svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.stage-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ctrl-pill {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  white-space: nowrap;
}
.ctrl-pill:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.ctrl-pill.on {
  background: var(--accent-dim);
  color: #fda4af;
  border-color: var(--accent-border);
}
.ctrl-pill.off,
.ctrl-pill.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}
.ctrl-pill.icon-sq {
  width: 36px;
  padding: 0;
}

.stage-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 2px;
}

.reaction-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 3px;
  height: 36px;
}
.reaction-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reaction-btn:hover {
  background: var(--accent-dim);
  color: var(--accent-hover);
}
.reaction-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cinema Lights Out & Floating Reactions */
.app-layout.cinema-lights-out .topbar,
.app-layout.cinema-lights-out .stage-footer,
.app-layout.cinema-lights-out .right-sidebar {
  opacity: 0.06;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-layout.cinema-lights-out .topbar:hover,
.app-layout.cinema-lights-out .stage-footer:hover,
.app-layout.cinema-lights-out .right-sidebar:hover {
  opacity: 1;
}
.app-layout.cinema-lights-out .cinema-area {
  background: #020204;
}

#reaction-float-layer {
  position: absolute;
  right: 22px;
  bottom: 68px;
  width: 170px;
  height: 240px;
  pointer-events: none;
  z-index: 24;
  overflow: hidden;
}
@keyframes float-reaction-up {
  0% { opacity: 0; transform: translateY(18px) scale(0.86); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 0.92; transform: translateY(-135px) scale(1); }
  100% { opacity: 0; transform: translateY(-185px) scale(0.92); }
}
.floating-reaction-pill {
  position: absolute;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: rgba(13, 13, 18, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  animation: float-reaction-up 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.floating-reaction-pill svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent-hover);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ============================================================================
   RIGHT SIDEBAR (3 CLEAN TABS: SOHBET · PROGRAM · KİŞİLER)
   ============================================================================ */
.right-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: margin-right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
}
.right-sidebar.collapsed {
  margin-right: -320px;
}

.right-tabs {
  height: 54px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  gap: 4px;
  flex-shrink: 0;
}
.seg-tab {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
}
.seg-tab:hover {
  color: #ffffff;
}
.seg-tab.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.panel-view {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.panel-view.active {
  display: flex;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  transition: background 0.12s ease;
}
.msg-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.msg-item.is-system {
  padding: 4px 10px;
  align-items: center;
}
.msg-body {
  flex: 1;
  min-width: 0;
}
.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.msg-author {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}
.msg-role-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: var(--r-pill);
}
.msg-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-left: auto;
}
.msg-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.52;
  word-break: break-word;
}
.msg-item.is-system .msg-text {
  color: var(--text-muted);
  font-size: 11.5px;
}

.chat-time-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: #fda4af;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
  padding: 1px 7px;
  cursor: pointer;
}
.chat-time-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.snapshot-card {
  margin-top: 7px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
  cursor: pointer;
}
.snapshot-card img {
  width: 100%;
  display: block;
  max-height: 140px;
  object-fit: cover;
}
.snapshot-time-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(7, 7, 10, 0.86);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
}

.chat-composer {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.chat-composer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 4px 6px;
  transition: border-color 0.15s ease;
}
.chat-composer-box:focus-within {
  border-color: var(--accent);
}

.chat-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0 11px;
  height: 36px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  user-select: text;
}
.chat-input:focus {
  border-color: var(--accent);
}
.chat-input::placeholder {
  color: var(--text-muted);
}

/* Program Tab Sections (Queue + Watchlist unified) */
.prog-sec-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 4px 2px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.track-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.track-row:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.track-row.playing {
  background: var(--accent-dim);
  border-color: var(--accent-border);
}
.track-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.track-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  width: 16px;
  flex-shrink: 0;
}
.track-row.playing .track-idx {
  color: #fda4af;
  font-weight: 700;
}
.track-title {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-dur {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-left: 6px;
  flex-shrink: 0;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 6px;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.member-row:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* ============================================================================
   MODALS, DROPDOWNS & TOAST
   ============================================================================ */
.more-menu-wrap {
  position: relative;
}
.more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 5px;
  min-width: 210px;
  box-shadow: var(--shadow-card);
  z-index: 100;
  display: none;
}
.more-menu.open {
  display: block;
}
.more-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.more-menu-item:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 7, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-box {
  width: 480px;
  max-width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-modal);
  animation: fade-up 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
}
.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.field-input, .field-select {
  width: 100%;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0 13px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: text;
}
.field-input:focus, .field-select:focus {
  background: var(--bg-elevated);
  border-color: var(--accent);
}
.field-select option {
  background: #0d0d12;
  color: #ffffff;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 2px;
}
.cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.cat-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.cat-actions {
  display: flex;
  gap: 6px;
}

.prof-banner {
  height: 84px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  position: relative;
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
}
.prof-big-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--bg-panel);
  position: absolute;
  bottom: -26px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  cursor: pointer;
}
.prof-big-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.genre-chip {
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
}
.genre-chip.selected {
  background: var(--accent-dim);
  color: #fda4af;
  border-color: var(--accent-border);
}
.tone-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.tone-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  cursor: pointer;
}
.tone-dot.selected {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.source-row, .search-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
}
.search-poster {
  width: 36px;
  height: 50px;
  border-radius: 6px;
  background: #14141c;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-muted);
}
.mini-num-input {
  width: 48px;
  height: 28px;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: 11.5px;
  text-align: center;
  outline: none;
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.score-btn {
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.score-btn:hover, .score-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.kbd-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

#toast-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 13, 18, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-border);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  z-index: 1200;
  box-shadow: var(--shadow-card);
  display: none;
}

/* ============================================================================
   RESPONSIVE & ZERO-OVERFLOW MOBILE ERGONOMICS
   ============================================================================ */
@media (max-width: 1080px) {
  .scener-room-card,
  .scener-room-card.featured-span {
    grid-column: span 6;
  }
}

@media (max-width: 960px) {
  .scener-nav,
  .scener-container,
  .nf-auth-topbar {
    padding: 0 20px;
  }
  .premiere-hero-wrap {
    min-height: 520px;
    padding: 104px 0 56px;
  }
  .premiere-hero-wrap.member-mode {
    min-height: auto;
    padding: 96px 0 36px;
  }
  .promo-band {
    padding: 52px 0;
  }
  .promo-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bento-showcase-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-card.hero-tile {
    grid-row: auto;
    min-height: 360px;
  }
  .member-lobby-actions {
    grid-template-columns: 1fr;
  }
  .app-layout {
    flex-direction: column;
  }
  .right-sidebar {
    width: 100%;
    height: 42dvh;
    border-left: none;
    border-top: 1px solid var(--border);
    transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .right-sidebar.collapsed {
    margin-right: 0;
    height: 0;
    border-top: none;
    overflow: hidden;
  }
  .cinema-area {
    padding: 10px 12px;
  }
  .foyer-cards-grid {
    grid-template-columns: 1fr;
  }
  .cinema-screen {
    aspect-ratio: auto;
    min-height: 320px;
    height: 100%;
  }
  .room-card-share-btn {
    opacity: 1;
    transform: none;
  }
  #now-playing-bar {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .scener-room-card,
  .scener-room-card.featured-span {
    grid-column: span 12;
  }
  .nf-start-form {
    flex-direction: column;
    align-items: stretch;
  }
  .nf-start-input {
    font-size: 16px;
    height: 50px;
  }
  .nf-start-btn {
    width: 100%;
    height: 50px;
  }
  .nf-faq-item summary {
    padding: 16px 18px;
    font-size: 15px;
  }
  .nf-faq-answer {
    padding: 14px 18px 18px;
  }
  .login-card {
    padding: 28px 22px 24px;
  }
  .scener-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .scener-btn-white {
    width: 100%;
    justify-content: center;
  }
  .scener-code-bar {
    width: 100%;
    justify-content: space-between;
  }
  .scener-code-input {
    flex: 1;
    width: auto;
    min-width: 0;
    font-size: 16px;
  }
  .login-field,
  .field-input,
  .field-select,
  .chat-input {
    font-size: 16px;
  }

  /* Zero-overflow mobile topbar */
  .topbar {
    padding: 0 10px;
    gap: 6px;
    height: 50px;
  }
  .topbar .hide-mobile {
    display: none !important;
  }
  .topbar .btn-label-mobile-hide {
    display: none;
  }
  .topbar .btn.compact-mobile {
    width: 36px;
    padding: 0;
  }
  .room-heading {
    max-width: 118px;
    font-size: 12.5px;
  }
  .mono-badge {
    padding: 3px 7px;
    font-size: 10px;
  }

  /* Zero-overflow mobile stage footer */
  .stage-footer {
    padding: 6px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .stage-participants {
    flex: 1 1 100%;
    order: 2;
  }
  .stage-controls {
    flex: 1 1 100%;
    order: 1;
    justify-content: space-between;
    gap: 4px;
  }
  .stage-controls .hide-mobile {
    display: none !important;
  }
  #mic-label {
    display: none;
  }
  #dock-mic {
    width: 36px;
    padding: 0;
  }

  /* Player controls mobile fit */
  .player-controls,
  .stage-broadcast-bar {
    opacity: 1;
    padding: 18px 10px 8px;
  }
  .foyer-invite-strip {
    padding: 10px 12px;
    gap: 10px;
  }
  .foyer-invite-actions {
    width: 100%;
    justify-content: space-between;
  }
  .foyer-copy-btn {
    flex: 1;
    justify-content: center;
  }
  .media-modal-tabshare-tip {
    flex-direction: column;
    align-items: stretch;
  }
  .vol-range,
  .ctrl-btn.hide-mobile {
    display: none;
  }
}
