/* ==========================================================================
   Wetube Ciné 18+ VIP Lounge & Phố Đêm Hàng Rong — Sexy Neon Glass Theme
   Smooth 60fps transitions + Multi-touch Pinch-Zoom support
   ========================================================================== */

:root {
  --bg-deep: #0b0509;
  --bg-glass: rgba(24, 12, 22, 0.84);
  --bg-glass-strong: rgba(18, 9, 17, 0.94);
  --bg-pill: rgba(30, 15, 28, 0.88);
  --border-olive: rgba(255, 77, 158, 0.25);
  --border-bright: rgba(255, 42, 133, 0.62);
  --accent-green: #ff2a85;
  --accent-lime: #ff4da6;
  --accent-neon-lime: #a3e635;
  --accent-violet: #a855f7;
  --accent-red: #f43f5e;
  --accent-gold: #facc15;
  --text-main: #fdf2f8;
  --text-muted: #d8b4fe;
  --side-chat-width: 350px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  touch-action: none;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.theater-stage {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #240c1f 0%, #090408 100%);
  touch-action: none;
}

#canvas-3d,
#canvas-2d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}

#canvas-3d:active,
#canvas-2d:active {
  cursor: grabbing;
}

#canvas-2d {
  display: none;
}

/* Synchronized Screen Video Layer & Full-Screen Photo Projection */
.screen-video-layer {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  border-radius: 4px;
  transition: opacity 0.18s ease;
}

#master-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#youtube-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
}

#youtube-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* 3D Screen Photo Projection Overlay */
.projected-screen-overlay {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(14, 6, 12, 0.94);
  border: 2px solid rgba(255, 42, 133, 0.78);
  box-shadow: 0 0 60px rgba(255, 42, 133, 0.4);
}

.projected-screen-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.projected-screen-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.projected-screen-brand {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fbcfe8;
  text-transform: uppercase;
}

.projected-screen-timer {
  background: rgba(255, 42, 133, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
}

.projected-screen-bottom {
  position: relative;
  z-index: 2;
  padding: 20px 16px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 65%, transparent 100%);
  text-align: center;
}

.projected-screen-meta {
  font-size: 12px;
  color: #fbcfe8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
  margin-bottom: 4px;
}

.projected-screen-meta strong {
  color: var(--accent-gold);
}

.projected-screen-msg {
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(255, 42, 133, 0.85);
}

/* ==========================================================================
   ZINGME HÀNG RONG 2D AUTHENTIC HUD OVERLAY
   ========================================================================== */
.zingme-hud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 14;
  display: none;
}

.zingme-hud-layer > * {
  pointer-events: auto;
}

.zing-stats-box {
  position: absolute;
  top: 66px;
  left: 16px;
  background: rgba(28, 10, 24, 0.84);
  border: 2px solid #ff2a85;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fef08a;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 22px rgba(255, 42, 133, 0.3);
}

.zing-marquee-banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
  border: 3px solid #db2777;
  border-radius: 16px;
  padding: 4px 18px 6px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
  min-width: 320px;
}

.zing-marquee-title {
  font-size: 13px;
  font-weight: 900;
  color: #831843;
  font-style: italic;
}

.zing-marquee-sub {
  background: linear-gradient(90deg, #db2777, #9333ea);
  color: #fef08a;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 12px;
  border-radius: 99px;
  margin-top: 2px;
  display: inline-block;
}

.zing-right-buttons {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.zing-capsule-btn {
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 12.5px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.12s ease;
}

.zing-capsule-btn:hover {
  transform: scale(1.06);
}

.zing-capsule-btn.blue {
  background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.zing-capsule-btn.red {
  background: linear-gradient(180deg, #ff4da6, #e11d48);
}

.zing-capsule-btn.green {
  background: linear-gradient(180deg, #c084fc, #7e22ce);
}

.zing-vote-pills {
  display: flex;
  gap: 6px;
}

.zing-thumb-btn {
  background: #fef9c3;
  border: 2px solid #ca8a04;
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #713f12;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.zing-room-plaque {
  position: absolute;
  top: 66px;
  right: 92px;
  background: #3b0764;
  border: 2px solid #ff4da6;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 900;
  color: #ff4da6;
  box-shadow: inset 0 0 10px rgba(255, 77, 166, 0.4);
}

/* ==========================================================================
   3D/2D SPEECH BUBBLES
   ========================================================================== */
.bubbles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.speech-bubble-3d {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(24, 11, 22, 0.92);
  border: 1px solid rgba(255, 77, 166, 0.65);
  color: #fdf2f8;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  max-width: 220px;
  box-shadow: 0 8px 24px rgba(255, 42, 133, 0.32);
  pointer-events: none;
  animation: bubblePop 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  word-break: break-word;
}

.speech-bubble-3d::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(24, 11, 22, 0.92) transparent transparent;
}

.speech-bubble-3d .bubble-author {
  display: block;
  font-size: 10px;
  color: #ff4da6;
  font-weight: 800;
  margin-bottom: 2px;
}

@keyframes bubblePop {
  from { opacity: 0; transform: translate(-50%, -85%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

.floating-effect {
  position: absolute;
  pointer-events: none;
  z-index: 9;
  font-size: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.6));
  animation: floatUpEffect 3.2s ease-out forwards;
}

@keyframes floatUpEffect {
  0% { opacity: 1; transform: translateY(0) scale(0.7); }
  20% { opacity: 1; transform: translateY(-35px) scale(1.22); }
  100% { opacity: 0; transform: translateY(-230px) scale(0.95); }
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.top-hud {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.top-hud > * {
  pointer-events: auto;
}

.top-left-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 12, 29, 0.88);
  border: 1px solid rgba(255, 42, 133, 0.45);
  padding: 6px 14px 6px 8px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 42, 133, 0.22);
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff2a85, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 42, 133, 0.55);
}

.brand-text h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-18plus {
  background: linear-gradient(135deg, #ff2a85, #e11d48);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(255, 42, 133, 0.6);
}

.brand-text span {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #f472b6;
  text-transform: uppercase;
  margin-top: 2px;
}

.mode-switch-pill {
  display: flex;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  border-radius: 12px;
  padding: 3px;
  backdrop-filter: blur(12px);
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.35), rgba(168, 85, 247, 0.35));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 166, 0.65);
}

.status-center-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  padding: 7px 16px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  font-size: 12.5px;
}

.status-live-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: #fff;
}

.status-live-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #ff2a85;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff2a85;
}

.status-divider {
  width: 1px;
  height: 20px;
  background: var(--border-olive);
}

.status-counts {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.status-counts strong {
  font-size: 12px;
  color: #fdf2f8;
}

.status-counts small {
  font-size: 11px;
  color: var(--text-muted);
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 42, 133, 0.16);
  border: 1px solid rgba(255, 77, 166, 0.45);
  color: #ff80bf;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.top-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fef08a;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.icon-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  backdrop-filter: blur(12px);
  transition: all 0.15s ease;
}

.icon-circle-btn:hover {
  border-color: var(--border-bright);
  background: rgba(65, 20, 55, 0.9);
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.35);
}

.avatar-badge-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a85, #a855f7);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   LEFT OVERLAY: "TRÊN MÀN ẢNH" + VOTE BỎ QUA + DISCO 128 BPM PILL
   ========================================================================== */
.now-playing-hud {
  position: absolute;
  top: 78px;
  left: 18px;
  z-index: 18;
  width: min(355px, calc(100vw - 95px));
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: auto;
}

.np-header-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.np-source-tag {
  background: rgba(255, 42, 133, 0.22);
  color: #ff80bf;
  border: 1px solid rgba(255, 77, 166, 0.45);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9.5px;
}

.np-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.np-meta {
  font-size: 12px;
  color: #f5d0fe;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.sync-player-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-olive);
  border-radius: 12px;
  padding: 7px 10px;
  backdrop-filter: blur(12px);
}

.sync-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-ctrl-btn {
  background: rgba(255, 42, 133, 0.16);
  border: 1px solid rgba(255, 77, 166, 0.35);
  color: #fff;
  border-radius: 8px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sync-ctrl-btn:hover {
  background: rgba(255, 42, 133, 0.38);
  border-color: var(--accent-lime);
}

.sync-seek-slider {
  flex: 1;
  accent-color: #ff2a85;
  height: 5px;
  cursor: pointer;
}

.vote-skip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.vote-skip-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  color: #fff;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(12px);
}

.vote-skip-btn:hover,
.vote-skip-btn.voted {
  border-color: var(--accent-lime);
  background: rgba(255, 42, 133, 0.25);
}

.vote-skip-count {
  color: #ff80bf;
  font-weight: 800;
}

.vote-skip-info {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.vote-progress-track {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
}

.vote-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff2a85, #a855f7);
  transition: width 0.25s ease;
}

.disco-bpm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  color: #fbcfe8;
  padding: 5px 11px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.15s ease;
}

.disco-bpm-pill.active {
  border-color: rgba(255, 42, 133, 0.65);
  background: rgba(45, 14, 38, 0.92);
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.32);
}

/* ==========================================================================
   RIGHT FLOATING VERTICAL TOOLBAR DOCK
   ========================================================================== */
.right-toolbar-dock {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 22;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  border-radius: 18px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
}

.dock-item-btn {
  position: relative;
  width: 58px;
  padding: 7px 4px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-item-btn:hover,
.dock-item-btn.active {
  background: rgba(255, 42, 133, 0.22);
  color: #fff;
}

.dock-item-btn .dock-icon {
  font-size: 18px;
  line-height: 1;
}

.dock-item-btn .dock-label {
  font-size: 10px;
  font-weight: 600;
  color: #f5d0fe;
  white-space: nowrap;
}

.dock-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  background: #ff2a85;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
}

.dock-badge.red {
  background: #e11d48;
  color: #fff;
}

/* ==========================================================================
   BOTTOM HUD BAR (Camera Switcher + Quick Zoom Buttons + Chat + Volume)
   ========================================================================== */
.bottom-hud {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.bottom-hud > * {
  pointer-events: auto;
}

.bottom-left-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cam-switcher-group {
  display: flex;
  align-items: center;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  border-radius: 13px;
  padding: 4px;
  gap: 3px;
  backdrop-filter: blur(12px);
}

.cam-btn {
  width: 34px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.cam-btn:hover,
.cam-btn.active {
  background: rgba(255, 42, 133, 0.3);
  color: #fff;
}

.private-room-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid var(--border-bright);
  color: #fff;
  padding: 8px 14px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 18px rgba(255, 42, 133, 0.25);
}

.bottom-chat-bar {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  border-radius: 14px;
  padding: 5px 8px 5px 12px;
  backdrop-filter: blur(12px);
}

.bottom-chat-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
}

.chat-char-count {
  font-size: 11px;
  color: var(--text-muted);
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: none;
  background: rgba(255, 42, 133, 0.28);
  color: #ff80bf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-right-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  border: 1px solid var(--border-olive);
  border-radius: 13px;
  padding: 5px 12px;
  backdrop-filter: blur(12px);
}

.quick-emoji-btn {
  border: none;
  background: transparent;
  font-size: 17px;
  cursor: pointer;
  padding: 3px;
  transition: transform 0.15s ease;
}

.quick-emoji-btn:hover {
  transform: scale(1.25);
}

.volume-slider {
  width: 72px;
  accent-color: #ff2a85;
  cursor: pointer;
}

.volume-pct {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  min-width: 34px;
  text-align: right;
}

/* ==========================================================================
   FLOATING / DOCKED CHAT PANEL
   ========================================================================== */
.side-panel {
  position: absolute;
  top: 72px;
  bottom: 72px;
  right: 88px;
  width: 340px;
  background: rgba(20, 9, 19, 0.94);
  border: 1px solid rgba(255, 77, 166, 0.32);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  z-index: 21;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.side-panel.collapsed {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}

.side-panel-top-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-panel-sublabel {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #f472b6;
  text-transform: uppercase;
}

.side-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.side-panel-title-row h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.side-tabs {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.side-tab-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.side-tab-btn.active {
  background: rgba(255, 42, 133, 0.24);
  border-color: rgba(255, 77, 166, 0.5);
  color: #fff;
}

.side-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.side-room-invite-bar {
  padding: 7px 14px;
  background: rgba(255, 42, 133, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.btn-copy-mini {
  background: rgba(255, 42, 133, 0.25);
  border: 1px solid rgba(255, 77, 166, 0.5);
  color: #fbcfe8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
}

.side-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.side-tab-content.active {
  display: flex;
}

.chat-msg-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-msg-item.system .chat-msg-bubble {
  background: rgba(255, 42, 133, 0.14);
  border-color: rgba(255, 77, 166, 0.35);
  color: #fbcfe8;
  font-size: 11.5px;
}

.chat-msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.chat-msg-author {
  font-weight: 800;
  color: #fdf2f8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-author-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.seat-mini-tag {
  background: rgba(255, 42, 133, 0.2);
  color: #fbcfe8;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
}

.chat-msg-time {
  color: #a855f7;
  font-size: 10px;
}

.chat-msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 12.5px;
  color: #fdf2f8;
  line-height: 1.4;
  word-break: break-word;
}

.side-chat-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-emoji-strip {
  display: flex;
  justify-content: space-between;
}

.side-emoji-strip button {
  background: rgba(255, 42, 133, 0.1);
  border: 1px solid rgba(255, 77, 166, 0.2);
  border-radius: 7px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 12.5px;
  color: #fbcfe8;
}

.side-input-row {
  display: flex;
  gap: 6px;
}

.side-input-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-olive);
  border-radius: 9px;
  padding: 7px 10px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 3, 8, 0.8);
  backdrop-filter: blur(8px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: min(740px, 96vw);
  max-height: 90vh;
  background: #170a15;
  border: 1px solid rgba(255, 77, 166, 0.38);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.92);
}

.wetube-modal-head {
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.wetube-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f472b6;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.wetube-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.wetube-modal-desc {
  font-size: 12.5px;
  color: #d8b4fe;
  margin-top: 4px;
  line-height: 1.45;
}

.modal-close-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fdf2f8;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 12px 24px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cinema-screen-arc {
  margin: 4px auto 10px;
  width: 82%;
  border-top: 2px solid rgba(255, 42, 133, 0.45);
  border-radius: 50% 50% 0 0 / 18px 18px 0 0;
  padding-top: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f472b6;
}

.seat-rows-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.seat-row-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 560px;
}

.seat-row-letter {
  width: 18px;
  font-size: 11.5px;
  font-weight: 700;
  color: #d8b4fe;
  text-align: center;
}

.seat-cluster {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}

.seat-box-btn {
  width: 34px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.seat-box-btn:hover {
  border-color: var(--accent-lime);
  color: #fff;
}

.seat-box-btn.mine {
  background: rgba(255, 42, 133, 0.38);
  border-color: #ff2a85;
  color: #fff;
}

.seat-box-btn.occupied {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #64748b;
  cursor: not-allowed;
}

.seat-box-btn.bot {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.48);
  color: #e9d5ff;
}

.seat-legend-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11.5px;
  color: #d8b4fe;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
}

.seat-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #d8b4fe;
}

.seat-modal-footer strong {
  color: #ff4da6;
  font-size: 14px;
}

.photo-dropzone {
  border: 1.5px dashed rgba(255, 77, 166, 0.4);
  background: rgba(255, 42, 133, 0.04);
  border-radius: 16px;
  padding: 26px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.photo-dropzone-preview {
  max-height: 150px;
  max-width: 100%;
  border-radius: 10px;
  display: none;
  object-fit: contain;
}

.btn-upload-device {
  margin-top: 6px;
  background: rgba(255, 42, 133, 0.18);
  border: 1px solid rgba(255, 77, 166, 0.48);
  color: #fdf2f8;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.proj-textarea {
  width: 100%;
  height: 76px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 77, 166, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  resize: none;
  outline: none;
}

.proj-duration-slider {
  width: 100%;
  accent-color: #ff2a85;
  height: 6px;
  cursor: pointer;
}

.proj-cost-card {
  background: rgba(255, 42, 133, 0.08);
  border: 1px solid rgba(255, 77, 166, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-cost-amount {
  font-size: 24px;
  font-weight: 900;
  color: #ff80bf;
  margin-top: 2px;
}

.proj-confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff2a85, #9333ea);
  border: none;
  color: #ffffff;
  padding: 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(255, 42, 133, 0.4);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 12px;
  font-weight: 700;
  color: #f5d0fe;
}

.form-input,
.form-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-olive);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.primary-btn {
  background: linear-gradient(135deg, #ff2a85, #9333ea);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-olive);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.catalog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 77, 166, 0.2);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.catalog-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #090408;
}

.catalog-card-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.catalog-card-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-card-btns {
  margin-top: auto;
  display: flex;
  gap: 5px;
}

.catalog-card-btns button {
  flex: 1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.rooms-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.room-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-olive);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.room-item-card.active {
  border-color: #ff2a85;
  background: rgba(255, 42, 133, 0.16);
}

.queue-card {
  display: flex;
  gap: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 77, 166, 0.16);
  border-radius: 10px;
  padding: 8px;
  align-items: center;
}

.queue-thumb {
  width: 60px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
}

.queue-info {
  flex: 1;
  min-width: 0;
}

.queue-title {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.queue-actions {
  display: flex;
  gap: 4px;
}

.queue-actions button {
  background: rgba(255, 42, 133, 0.2);
  border: 1px solid rgba(255, 77, 166, 0.4);
  color: #fff;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 11px;
  cursor: pointer;
}

.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(26, 9, 23, 0.95);
  border: 1px solid #ff2a85;
  color: #fff;
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(255, 42, 133, 0.45);
}

body.ui-hidden .now-playing-hud,
body.ui-hidden .right-toolbar-dock,
body.ui-hidden .bottom-hud,
body.ui-hidden .status-center-pill,
body.ui-hidden .side-panel {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .side-panel {
    right: 12px;
    left: 12px;
    width: auto;
    top: 66px;
    bottom: 70px;
  }
  .status-center-pill,
  .wallet-pill {
    display: none;
  }
}
