/* =====================================================================
   ROPHIM 4K SPATIAL CINEMA PRO - NEXT-GEN DESIGN SYSTEM
   Inspired by Apple VisionOS, Linear, and Cyberpunk Aesthetics
   ===================================================================== */

:root {
  --bg-void: #030508;
  --bg-deep: #070a12;
  --bg-surface: rgba(13, 18, 30, 0.75);
  --bg-glass: rgba(18, 26, 44, 0.65);
  --bg-glass-hover: rgba(28, 40, 68, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.14);
  --border-neon: rgba(0, 242, 254, 0.45);
  --border-neon-glow: rgba(0, 242, 254, 0.8);

  --accent-cyan: #00f2fe;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-emerald: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-spatial: 0 30px 80px rgba(0, 0, 0, 0.85);
  --shadow-glow-cyan: 0 0 30px rgba(0, 242, 254, 0.35);
  --shadow-glow-amber: 0 0 30px rgba(245, 158, 11, 0.35);

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Critical Utility: Hidden & Modal Overlays */
.hidden,
[hidden],
.modal-overlay.hidden,
#downloadAppModal.hidden,
#adminModal.hidden,
#feedbackModal.hidden,
#editKeyExpiryModal.hidden,
#forceUpdateModal.hidden,
#activationGate.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-void);
}

body.spatial-app {
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background Light Mesh */
.spatial-bg-glow {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.spatial-dust-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Theater Mode Dimming (Tắt Đèn) */
body.theater-mode-dim .spatial-spotlight-section,
body.theater-mode-dim .spatial-filter-section,
body.theater-mode-dim .spatial-catalog-section,
body.theater-mode-dim .spatial-split-section,
body.theater-mode-dim .spatial-footer {
  opacity: 0.12;
  filter: blur(3px);
  pointer-events: none;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

body.theater-mode-dim .spatial-theater-section {
  position: relative;
  z-index: 500;
  box-shadow: 0 0 160px rgba(0, 242, 254, 0.3);
}

.theater-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 10;
}

/* =====================================================================
   1. FLOATING SPATIAL GLASS DOCK (HEADER)
   ===================================================================== */
.spatial-dock-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 24px;
  pointer-events: none;
}

.spatial-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(10, 14, 24, 0.8);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.12);
  transition: var(--ease-spring);
  max-width: 1440px;
  width: 100%;
}

.spatial-dock:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.2);
}

/* Brand */
.dock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-orb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-cyan);
}

.orb-icon {
  width: 18px;
  height: 18px;
  fill: #000;
  color: #000;
  transform: translateX(1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.cyan-glow {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px var(--accent-cyan);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

/* Dock Nav Pills */
.dock-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-spring);
}

.dock-pill i {
  width: 15px;
  height: 15px;
}

.dock-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dock-pill.active {
  color: #000;
  background: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* Dock Actions */
.dock-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search Box */
.dock-search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  width: 240px;
  transition: all 0.3s var(--ease-spring);
}

.dock-search:focus-within {
  width: 320px;
  border-color: var(--accent-cyan);
  background: rgba(14, 20, 34, 0.95);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.search-ico {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
  margin-right: 8px;
}

#global-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
}

#global-search-input::placeholder {
  color: var(--text-dim);
}

.dock-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-dim);
}

.search-drop-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: rgba(12, 16, 26, 0.98);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  max-height: 380px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 3000;
}

.search-drop-results.show {
  display: flex;
}

.search-sug-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-sug-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-sug-thumb {
  width: 42px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
}

.search-sug-info h4 {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.search-sug-info span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Icon Buttons */
.dock-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.dock-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.dock-icon-btn.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.dock-icon-btn i {
  width: 17px;
  height: 17px;
}

.dock-counter {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-void);
}

.dock-user-chip {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-amber);
  object-fit: cover;
}

.vip-glow-tag {
  position: absolute;
  bottom: -4px;
  right: -5px;
  background: var(--accent-amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* =====================================================================
   2. SPATIAL SPOTLIGHT HERO & 3D FILM DECK
   ===================================================================== */
.spatial-spotlight-section {
  position: relative;
  min-height: 90vh;
  padding-top: 130px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.spotlight-backdrop-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.spotlight-backdrop {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.65) saturate(1.15);
  transition: background-image 0.6s var(--ease-spring);
  transform: scale(1.03);
}

.spotlight-overlay-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(0deg, var(--bg-void) 0%, rgba(3, 5, 8, 0.7) 45%, rgba(3, 5, 8, 0.2) 75%, rgba(3, 5, 8, 0.85) 100%),
    linear-gradient(90deg, var(--bg-void) 0%, rgba(3, 5, 8, 0.9) 35%, transparent 75%);
}

.spotlight-particles-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 35%, rgba(0, 242, 254, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.spotlight-container {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 5;
  width: 100%;
}

/* Left: Film Master Info */
.spotlight-meta-block {
  max-width: 780px;
}

.spotlight-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.badge-holo-gold, .badge-holo-cyan, .badge-holo-purple {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.badge-holo-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
}

.badge-holo-cyan {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
}

.badge-holo-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
}

.badge-status-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.spotlight-film-title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.spotlight-specs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.spec-score {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.spec-score i {
  width: 16px;
  height: 16px;
  fill: var(--accent-amber);
  color: var(--accent-amber);
}

.spec-dot {
  color: var(--text-dim);
}

.spec-tag-age {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 12px;
}

.spec-match {
  color: var(--accent-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-match i {
  width: 14px;
  height: 14px;
}

.spotlight-tags-cluster {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.genre-capsule {
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.spotlight-synopsis-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 680px;
}

/* Action Buttons */
.spotlight-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-laser-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), #38bdf8);
  color: #000;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  padding: 15px 32px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.45);
  transition: all 0.25s var(--ease-spring);
  overflow: hidden;
}

.btn-laser-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 242, 254, 0.65);
}

.btn-laser-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-laser-primary:hover .btn-laser-glow {
  opacity: 0.3;
}

.btn-play-ico {
  width: 18px;
  height: 18px;
  fill: #000;
}

.btn-frosted-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  padding: 15px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-frosted-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-circle-glass {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-circle-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

/* Right: 3D Horizon Coverflow Deck */
.spotlight-coverflow-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coverflow-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.coverflow-title-bar i {
  color: var(--accent-amber);
}

.hint-slide {
  font-size: 10px;
  color: var(--accent-cyan);
}

.coverflow-cards-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  perspective: 1200px;
}

.deck-item-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.deck-item-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-spring);
}

.deck-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 5, 8, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.deck-item-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck-item-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-amber);
}

.deck-item-card:hover {
  transform: translateY(-8px) scale(1.05) rotateY(-5deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 45px rgba(0, 242, 254, 0.35);
}

.deck-item-card.active {
  border-color: var(--accent-cyan);
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

/* =====================================================================
   3. PHÒNG CHIẾU 4K KHÔNG GIAN (SPATIAL THEATER STAGE)
   ===================================================================== */
.spatial-theater-section {
  padding: 40px 0 70px 0;
  position: relative;
}

.theater-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.telemetry-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.beacon-dot {
  width: 9px;
  height: 9px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: beaconPulse 1.4s infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.telemetry-film-name {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.telemetry-ep-name {
  color: var(--accent-cyan);
  font-weight: 700;
}

.live-spectators-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
}

.live-spectators-pill i {
  width: 13px;
  height: 13px;
  color: #ef4444;
}

.telemetry-right {
  display: flex;
  gap: 8px;
}

.theater-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theater-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.theater-action-btn.highlight {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
}

.theater-action-btn i {
  width: 14px;
  height: 14px;
}

/* Screen Wrapper & Dynamic Ambilight */
.theater-screen-wrapper {
  position: relative;
  width: 100%;
}

.screen-ambilight-aura {
  position: absolute;
  inset: -15px -30px;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.45) 0%, rgba(59, 130, 246, 0.2) 45%, transparent 70%);
  filter: blur(65px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
  transition: background 0.6s var(--ease-spring);
  animation: ambilightBreathing 5s infinite alternate;
}

@keyframes ambilightBreathing {
  0% { transform: scale(0.98); opacity: 0.7; }
  100% { transform: scale(1.02); opacity: 0.95; }
}

.theater-stage-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68);
}

.stage-stream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.stage-stream-canvas.active {
  opacity: 1;
}

.stage-ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* HUD Watermark */
.stage-hud-watermark {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.hud-brand-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hud-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.hud-specs-row {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  gap: 6px;
}

/* Center Play Button */
.center-play-portal {
  position: absolute;
  z-index: 7;
}

.center-orb-btn {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #38bdf8);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 45px var(--accent-cyan);
  transition: transform 0.25s var(--ease-spring);
  position: relative;
}

.center-orb-btn:hover {
  transform: scale(1.14);
  background: #fff;
  box-shadow: 0 0 60px #fff;
}

.center-orb-pulse {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  animation: orbRipples 2s infinite;
}

@keyframes orbRipples {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.center-orb-btn i {
  width: 40px;
  height: 40px;
  fill: #000;
  transform: translateX(3px);
}

/* Loader */
.theater-loader-shield {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--accent-cyan);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.theater-loader-shield.active {
  opacity: 1;
}

.spatial-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0, 242, 254, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Floating Controls Strip */
.theater-controls-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(6, 9, 16, 0.92);
  backdrop-filter: blur(25px);
  padding: 14px 28px 18px 28px;
  border-top: 1px solid var(--border-subtle);
}

.spatial-timeline-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 12px;
}

.timeline-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), #38bdf8);
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.timeline-tooltip {
  position: absolute;
  top: -30px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}

.spatial-timeline-bar:hover .timeline-tooltip {
  opacity: 1;
}

.spatial-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-group-left, .ctrl-group-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spatial-ctrl-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.spatial-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.spatial-ctrl-btn i {
  width: 18px;
  height: 18px;
}

.volume-slider-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spatial-range-slider {
  width: 75px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.spatial-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
}

.spatial-time-clock {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}

.spatial-time-clock strong {
  color: #fff;
}

.thx-sub-bass-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thx-sub-bass-btn:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(245, 158, 11, 0.4));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  color: #fff;
}

.thx-sub-bass-btn i {
  width: 14px;
  height: 14px;
}

.quality-selector-pill {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* 4. SERVER PICKER & EPISODES REEL */
.theater-addons-hub {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-deck-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.deck-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
}

.deck-title i {
  color: var(--accent-cyan);
  width: 16px;
  height: 16px;
}

.server-nodes-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.server-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.server-node-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.server-node-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.node-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.node-ping {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.node-ping.green {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-emerald);
}

.node-ping.yellow {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-amber);
}

/* Episodes Reel */
.episodes-reel-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
}

.episodes-reel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.reel-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-title-meta i {
  color: var(--accent-cyan);
  width: 18px;
  height: 18px;
}

.reel-title-meta h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.reel-badge-total {
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-dim);
}

.reel-tabs {
  display: flex;
  gap: 8px;
}

.reel-tab {
  background: var(--accent-cyan);
  border: none;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.episodes-tactile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.episode-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s var(--ease-spring);
}

.episode-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.episode-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), #38bdf8);
  color: #000;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
  transform: translateY(-2px);
}

.ep-subtext {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
}

/* =====================================================================
   5. TACTILE SEGMENTED ADVANCED FILTER (KHÔNG DÙNG SELECT)
   ===================================================================== */
.spatial-filter-section {
  padding: 30px 0;
}

.spatial-filter-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-spatial);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.panel-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.panel-title-wrap i {
  color: var(--accent-cyan);
  width: 17px;
  height: 17px;
}

.panel-counter {
  font-size: 12px;
  color: var(--text-dim);
}

.filter-segment-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.segment-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  width: 90px;
  flex-shrink: 0;
}

.segment-pills-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.seg-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.seg-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.seg-pill.active {
  background: var(--accent-cyan);
  border-color: transparent;
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

/* =====================================================================
   6. SPATIAL CATALOGS (SERIES & CINEMA CARDS)
   ===================================================================== */
.spatial-catalog-section {
  padding: 50px 0;
}

.catalog-top-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 14px;
}

.neon-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.neon-pill-badge.red {
  color: #f87171;
}

.neon-pill-badge.cyan {
  color: var(--accent-cyan);
}

.section-big-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.catalog-category-switchers {
  display: flex;
  gap: 8px;
}

.cat-pill-switch {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill-switch:hover {
  color: #fff;
}

.cat-pill-switch.active {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 800;
  border-color: transparent;
}

.catalog-count-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* Cards Grid with 3D Gyro Perspective */
.spatial-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.catalog-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
}

.catalog-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.25);
}

.card-poster-box {
  position: relative;
  width: 100%;
  padding-top: 142%;
  overflow: hidden;
  background: #090d16;
}

.card-poster-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-spring);
}

.catalog-card:hover .card-poster-box img {
  transform: scale(1.08);
}

/* Holographic Sheen on hover */
.card-poster-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.catalog-card:hover .card-poster-box::after {
  opacity: 1;
}

.card-tag-status {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(239, 68, 68, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.card-tag-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
}

.card-hover-box {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 5, 8, 0.95) 0%, rgba(3, 5, 8, 0.5) 50%, transparent 100%);
  opacity: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 3;
  transition: opacity 0.25s ease;
}

.catalog-card:hover .card-hover-box {
  opacity: 1;
}

.hover-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-cyan);
  margin-bottom: 8px;
  align-self: flex-start;
}

.hover-play-circle i {
  width: 20px;
  height: 20px;
  fill: #000;
  transform: translateX(1px);
}

.hover-synopsis {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-film-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-film-sub {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-rating {
  color: var(--accent-amber);
  font-weight: 700;
}

/* =====================================================================
   7. BẢNG XẾP HẠNG & CỘNG ĐỒNG (SPLIT TWO COLUMNS)
   ===================================================================== */
.spatial-split-section {
  padding: 40px 0 80px 0;
}

.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
}

.spatial-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-spatial);
}

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.head-title h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.trophy-ico {
  color: var(--accent-amber);
  width: 20px;
  height: 20px;
}

.msg-ico {
  color: var(--accent-cyan);
  width: 20px;
  height: 20px;
}

.ranking-period-buttons {
  display: flex;
  gap: 4px;
}

.period-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.period-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: transparent;
}

.safety-rule-tag {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ranking Items */
.ranking-entries-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateX(6px);
}

.rank-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  width: 28px;
  text-align: center;
}

.rank-item:nth-child(1) .rank-num { color: #f59e0b; text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.rank-item:nth-child(2) .rank-num { color: #94a3b8; }
.rank-item:nth-child(3) .rank-num { color: #d97706; }

.rank-thumb {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.rank-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rank-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.rank-views {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
}

/* Comment Form */
.spatial-comment-compose {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

#comment-textarea {
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

#comment-textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.compose-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.compose-user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.compose-user-badge i {
  width: 14px;
  height: 14px;
}

.btn-send-comment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-cyan);
  color: #000;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-send-comment:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

.spatial-comments-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
}

.comment-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  border-radius: var(--radius-md);
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.c-username {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.c-time {
  font-size: 11px;
  color: var(--text-dim);
}

.c-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 8px;
}

.comment-footer-actions {
  display: flex;
  gap: 14px;
}

.c-act-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.c-act-btn:hover {
  color: var(--accent-cyan);
}

/* =====================================================================
   8. WATCHLIST DRAWER & FLOATING PiP MINI PLAYER
   ===================================================================== */
.spatial-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 390px;
  height: 100vh;
  background: rgba(10, 14, 24, 0.98);
  backdrop-filter: blur(28px);
  border-left: 1px solid var(--border-glass);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease-spring);
}

.spatial-drawer.open {
  right: 0;
}

.drawer-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-ico {
  color: var(--accent-pink);
  width: 18px;
  height: 18px;
}

.drawer-heading h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-film-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.drawer-thumb {
  width: 50px;
  height: 70px;
  border-radius: 4px;
  object-fit: cover;
}

.drawer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-play-drawer {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-del-drawer {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

.drawer-bottom-bar {
  padding: 20px;
  border-top: 1px solid var(--border-subtle);
}

.btn-clear-all {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-clear-all:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Floating PiP Mini Player */
.spatial-pip-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 360px;
  background: rgba(10, 14, 24, 0.95);
  backdrop-filter: blur(28px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.3);
  transform: translateY(160px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-spring), opacity 0.4s ease;
}

.spatial-pip-widget.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pip-inner-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.pip-media-preview {
  position: relative;
  width: 86px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.pip-poster-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pip-stream-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pip-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.pip-pulse {
  width: 5px;
  height: 5px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: beaconPulse 1s infinite;
}

.pip-meta-content {
  flex: 1;
  overflow: hidden;
}

.pip-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pip-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.pip-action-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pip-tool-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pip-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pip-tool-btn i {
  width: 15px;
  height: 15px;
}

/* Toast */
.spatial-toast-hub {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: rgba(14, 20, 32, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid var(--border-neon);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.25);
  animation: slideToast 0.3s var(--ease-spring) forwards;
  pointer-events: auto;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.spatial-footer {
  background: #020306;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px 0;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-logo .brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 380px;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 14px;
}

.footer-pills-row {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
}

/* Keyframes */
@keyframes stageShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .dock-pills { display: none; }
  .spotlight-container { grid-template-columns: 1fr; }
  .grid-two-columns { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
  .theater-stage-canvas { height: 420px; }
  .spatial-pip-widget { width: calc(100vw - 48px); right: 24px; }
  .spotlight-film-title { font-size: 38px; }
}

/* =====================================================================
   TACTILE PRESS SPRINGS & TOUCH RIPPLE (ĐỘ NẢY VÀ ĐỘ SƯỚNG KHI BẤM)
   ===================================================================== */
button, .episode-btn, .server-node-pill, .seg-pill, .cat-pill-switch, 
.deck-item-card, .catalog-card, .rank-item, .dock-pill, .mob-dock-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  overflow: hidden;
}

button:active, .episode-btn:active, .server-node-pill:active, 
.seg-pill:active, .cat-pill-switch:active, .period-btn:active, .dock-icon-btn:active {
  transform: scale(0.92) !important;
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.catalog-card:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.deck-item-card:active {
  transform: scale(0.94) !important;
}

/* Neon Dynamic Touch Ripple Bloom */
.tactile-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.75) 0%, rgba(56, 189, 248, 0.3) 50%, transparent 80%);
  pointer-events: none;
  transform: scale(0);
  animation: rippleBloom 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
  z-index: 1000;
}

@keyframes rippleBloom {
  to { transform: scale(4.5); opacity: 0; }
}

/* =====================================================================
   MOBILE BOTTOM SPATIAL NAV DOCK & MOBILE TOUCH ENGINE
   ===================================================================== */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  height: 64px;
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 242, 254, 0.2);
  z-index: 1500;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
}

.mob-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.mob-dock-item i {
  width: 20px;
  height: 20px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mob-dock-item.active {
  color: var(--accent-cyan);
}

.mob-dock-item.active i {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.mob-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--accent-pink);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-void);
}

/* Full Mobile Deep Optimization */
@media (max-width: 768px) {
  .spatial-dock-wrap { display: none; }
  .mobile-bottom-dock { display: flex; }
  
  .theater-container { padding: 0 16px; }
  
  .spatial-spotlight-section {
    padding-top: 50px;
    padding-bottom: 40px;
    min-height: auto;
  }
  
  .spotlight-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .spotlight-film-title {
    font-size: 34px;
    line-height: 1.1;
  }
  
  .coverflow-cards-strip {
    grid-template-columns: repeat(4, 130px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  
  .deck-item-card {
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  .theater-stage-canvas {
    height: 250px;
    border-radius: var(--radius-md);
  }
  
  .center-orb-btn {
    width: 65px;
    height: 65px;
  }
  
  .center-orb-btn i {
    width: 28px;
    height: 28px;
  }
  
  .spatial-time-clock {
    display: none;
  }
  
  .server-nodes-list {
    flex-direction: column;
    width: 100%;
  }
  
  .server-node-pill {
    width: 100%;
    justify-content: space-between;
  }
  
  .episodes-tactile-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
  }
  
  .episode-btn {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .filter-segment-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .segment-pills-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  
  .seg-pill {
    flex-shrink: 0;
  }

  .spatial-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .grid-two-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .spatial-drawer {
    width: 100%;
    right: -100%;
  }

  .spatial-pip-widget {
    bottom: 90px;
    width: calc(100vw - 32px);
    left: 16px;
    right: 16px;
  }

  .spatial-footer {
    padding-bottom: 110px;
  }
}

