/* ==========================================================================
   DIANA CINEMA • HAUTE CINÉMA & ULTRA-LUXURY DESIGN SYSTEM
   Palette: Velvet Obsidian Noir • Champagne Gold • Royal Rose • Frosted Glass
   ========================================================================== */

:root {
  /* Ultra-Luxury Obsidian Palette */
  --bg-core: #050508;
  --bg-surface: rgba(18, 16, 24, 0.7);
  --bg-surface-elevated: rgba(26, 22, 34, 0.85);
  --bg-surface-glass: rgba(14, 12, 20, 0.65);

  /* Haute Champagne & Amethyst Accents */
  --gold-primary: #D4AF37;
  --gold-light: #F5D77F;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --rose-primary: #FB7185;
  --rose-dark: #E11D48;
  --rose-glow: rgba(251, 113, 133, 0.35);

  /* Platinum Typography */
  --text-platinum: #FBF9F5;
  --text-secondary: #C8C2D3;
  --text-muted: #827B91;

  /* TV Focus Tokens */
  --focus-ring: #D4AF37;
  --focus-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 28px rgba(212, 175, 55, 0.4);
  --focus-scale: 1.07;
  --transition-luxury: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);

  /* Geometry & TV Safe Area */
  --tv-padding-x: 56px;
  --tv-padding-y: 42px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & TV Root */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-drag: none;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-core);
  color: var(--text-platinum);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Subtle Lighting */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(160px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}

.ambient-gold {
  top: -10vw;
  right: -5vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.ambient-amethyst {
  bottom: -15vw;
  left: -10vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, #701A75 0%, transparent 70%);
}

.ambient-mesh {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 1;
}

/* Layout */
.tv-container {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  padding: var(--tv-padding-y) var(--tv-padding-x);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Luxury Header */
.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  transition: var(--transition-luxury);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(251, 113, 133, 0.25));
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #FFFFFF 0%, var(--gold-light) 60%, var(--rose-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  display: block;
}

/* Luxury Header Search Bar */
.header-search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
  min-width: 240px;
}

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(14, 12, 22, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: var(--radius-full);
  padding: 0 16px;
  height: 42px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--transition-luxury);
}

.search-input-box:focus-within,
.search-input-box.focused {
  border-color: var(--gold-primary);
  background: rgba(18, 15, 28, 0.95);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35), inset 0 2px 8px rgba(0, 0, 0, 0.8);
  transform: scale(1.02);
}

.search-icon {
  font-size: 15px;
  color: var(--gold-light);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-platinum);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: var(--rose-primary);
}

.search-kbd-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Instant Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(12, 10, 18, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.2);
  z-index: 10000;
  overflow: hidden;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  animation: searchDropdownFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes searchDropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.search-results-count {
  color: var(--gold-light);
  font-weight: 700;
}

.search-hint-esc {
  color: var(--text-muted);
}

.search-results-list {
  overflow-y: auto;
  padding: 8px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-luxury);
  border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item:focus,
.search-result-item.focused {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
  outline: none;
  transform: translateX(4px);
}

.search-item-poster {
  width: 38px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

.search-item-title {
  color: var(--text-platinum);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-meta {
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-item-badge {
  background: rgba(251, 113, 133, 0.2);
  color: var(--rose-primary);
  border: 1px solid rgba(251, 113, 133, 0.4);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}

.search-item-rating {
  color: #FBBF24;
  font-weight: 700;
}

.search-item-play-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #050508;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.9;
  transition: transform 0.2s;
}

.search-result-item:hover .search-item-play-btn {
  transform: scale(1.08);
  opacity: 1;
  box-shadow: 0 0 12px var(--gold-glow);
}

.search-empty-state {
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.search-custom-kinopoisk {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-search-kp-play {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.3), rgba(251, 113, 133, 0.4));
  border: 1px solid var(--rose-primary);
  color: #FFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-luxury);
}

.btn-search-kp-play:hover {
  background: var(--rose-primary);
  transform: scale(1.05);
}

/* Mood Nav Ribbon (Sub-header) */
.mood-nav-ribbon {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.mood-nav-ribbon::-webkit-scrollbar {
  display: none;
}

.mood-nav-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  white-space: nowrap;
  opacity: 0.9;
}

.mood-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.mood-pill {
  background: rgba(26, 22, 34, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-luxury);
}

.mood-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(225, 29, 72, 0.25));
  border-color: var(--gold-primary);
  color: #FFF;
  box-shadow: 0 0 16px var(--gold-glow);
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-torrserve-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 12, 22, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-platinum, #F8FAFC);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: var(--transition-luxury);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-torrserve-status:hover,
.btn-torrserve-status:focus,
.btn-torrserve-status.focused {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(245, 215, 127, 0.35));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 8px 25px rgba(0, 0, 0, 0.8);
}

.torr-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #94A3B8;
  transition: all 0.3s ease;
}

.torr-dot.online {
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 18px rgba(16, 185, 129, 0.6);
  animation: pulseGreenDot 2s infinite;
}

.torr-dot.offline {
  background: #94A3B8;
  opacity: 0.7;
}

@keyframes pulseGreenDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-diana-whim {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(245, 215, 127, 0.3));
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 16px var(--gold-glow);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-luxury);
}

.vip-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--rose-primary);
  outline: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: max-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--rose-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--rose-primary);
  animation: pulse-dot-anim 1.8s infinite ease-in-out;
}

@keyframes pulse-dot-anim {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

/* Main Content */
.tv-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-width: none;
}

.tv-main::-webkit-scrollbar {
  display: none;
}

/* Hero Showcase */
.hero-showcase {
  position: relative;
  width: 100%;
  height: 410px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 38px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  background-color: #0B0A10;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  transition: background-image 0.6s ease;
  filter: brightness(0.85);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(5, 5, 8, 0.96) 0%, 
    rgba(5, 5, 8, 0.88) 45%, 
    rgba(5, 5, 8, 0.3) 80%,
    transparent 100%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.95) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 55%;
  height: 100%;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-diana {
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-dark));
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--rose-glow);
}

.badge-quality {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-rating {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-platinum);
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--text-platinum);
}

.hero-tagline {
  font-size: 15px;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hero Carousel Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 14, 23, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  font-size: 26px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  user-select: none;
}

.hero-arrow:hover, .hero-arrow:focus {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  outline: none;
}

.hero-arrow-prev {
  left: 18px;
}

.hero-arrow-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(212, 175, 55, 0.6);
}

.hero-dot.active {
  width: 28px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Luxury Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  border: none;
  transition: var(--transition-luxury);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  color: #121016;
  box-shadow: 0 4px 18px var(--gold-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-platinum);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Rails & Movie Cards */
.rails-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 24px;
}

.rail-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rail-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rail-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-platinum);
}

.rail-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.rail-cards-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 8px 24px 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.rail-cards-track::-webkit-scrollbar {
  display: none;
}

.movie-card {
  flex: 0 0 196px;
  height: 295px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: var(--transition-luxury);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, 
    rgba(5, 5, 8, 0.96) 0%, 
    rgba(5, 5, 8, 0.65) 40%, 
    transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-platinum);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-badge-diana {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--rose-primary), var(--rose-dark));
  color: #FFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Universal Focus States for TV Navigation */
.focusable:focus,
.focusable.focused {
  transform: scale(var(--focus-scale)) translateY(-4px);
  border-color: var(--focus-ring) !important;
  box-shadow: var(--focus-shadow) !important;
  z-index: 10;
  position: relative;
}

.movie-card:focus,
.movie-card.focused {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 20px 45px rgba(0,0,0,0.95), 0 0 28px var(--gold-glow) !important;
}

.movie-card:focus .movie-poster,
.movie-card.focused .movie-poster {
  transform: scale(1.06);
}

/* Footer Hints */
.tv-footer-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hint-item kbd {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  margin-right: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 82vw;
  max-width: 1080px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(212, 175, 55, 0.15);
  overflow: hidden;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-body {
  display: flex;
  padding: 44px;
  gap: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  outline: none;
}

.modal-poster-wrap {
  flex: 0 0 280px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.modal-poster {
  width: 100%;
  height: 410px;
  object-fit: cover;
  display: block;
}

.modal-diana-rating {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(212, 175, 55, 0.95));
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.diana-crown {
  font-size: 26px;
}

.diana-verdict-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #FFF;
  opacity: 0.9;
  display: block;
}

.diana-verdict-text {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
}

.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-platinum);
}

.modal-meta {
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 600;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.diana-quote-box {
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.quote-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

.quote-content {
  font-size: 14px;
  font-style: italic;
  color: var(--text-platinum);
}

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

.source-card {
  width: 620px;
  background: #0B0A12;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px var(--gold-glow);
  position: relative;
  text-align: center;
  border: 2px solid var(--gold-primary);
}

.source-header {
  margin-bottom: 24px;
}

.source-crown {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}

.source-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.source-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-platinum);
  cursor: pointer;
  outline: none;
  transition: var(--transition-luxury);
  text-align: left;
}

.source-item:focus,
.source-item.focused {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: scale(1.03);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.source-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-platinum);
}

.source-item-meta {
  font-size: 12px;
  color: var(--gold-light);
}

.source-item-arrow {
  font-size: 18px;
  color: var(--gold-primary);
}

/* ==========================================================================
   DIANA ROYAL ROULETTE & WHIM MODAL (HAUTE COUTURE EDITION)
   ========================================================================== */

.whim-card {
  width: 900px;
  max-width: 92vw;
  background: radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.22) 0%, rgba(13, 11, 20, 0.98) 65%), #0A0812;
  border-radius: 24px;
  padding: 32px 40px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.96), 0 0 70px rgba(212, 175, 55, 0.28), inset 0 0 50px rgba(212, 175, 55, 0.05);
  position: relative;
  text-align: center;
  border: 2px solid rgba(212, 175, 55, 0.55);
  backdrop-filter: blur(30px);
  transform: scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .whim-card {
  transform: scale(1);
}

.whim-header {
  margin-bottom: 20px;
}

.whim-crown {
  font-size: 36px;
  letter-spacing: 8px;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
  animation: crownPulse 3s infinite ease-in-out;
}

@keyframes crownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(251, 113, 133, 0.8)); }
}

.whim-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #FFF9D2 0%, var(--gold-primary) 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.whim-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 0;
  font-weight: 400;
}

/* Mood Filter Pills */
.whim-moods {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 22px 0;
  flex-wrap: wrap;
}

.whim-mood-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-platinum);
  border: 1px solid rgba(212, 175, 55, 0.25);
  cursor: pointer;
  outline: none;
  transition: var(--transition-luxury);
}

.whim-mood-pill:hover,
.whim-mood-pill:focus,
.whim-mood-pill.focused {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: scale(1.06);
  box-shadow: 0 0 16px var(--gold-glow);
  color: #FFF;
}

.whim-mood-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(225, 29, 72, 0.3));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* The Grand Visual Showcase & Reel */
.whim-showcase {
  display: flex;
  gap: 28px;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.whim-poster-wrap {
  flex: 0 0 190px;
  height: 275px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 30px rgba(212, 175, 55, 0.2);
  background: #000;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.whim-showcase.spinning .whim-poster-wrap {
  border-color: var(--rose-primary);
  box-shadow: 0 0 40px rgba(244, 63, 94, 0.6);
}

.whim-showcase.winner .whim-poster-wrap {
  border-color: var(--gold-primary);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.8);
  animation: winnerGlow 1.2s ease-in-out;
}

@keyframes winnerGlow {
  0% { transform: scale(0.96); filter: brightness(1.6); }
  50% { transform: scale(1.04); filter: brightness(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

.whim-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.whim-showcase.spinning .whim-poster {
  filter: blur(2px) brightness(1.25);
  transform: scale(1.06);
}

.whim-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--gold-primary), #B38F26);
  color: #050508;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.whim-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  padding: 4px 0;
}

.whim-meta {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whim-movie-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 27px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.whim-genres {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.whim-genre-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
}

.whim-verdict-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border-left: 3px solid var(--gold-primary);
  padding: 8px 14px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}

.whim-verdict-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.whim-verdict-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-platinum);
}

.whim-reason-box {
  background: rgba(225, 29, 72, 0.08);
  border: 1px dashed rgba(225, 29, 72, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
}

.whim-reason {
  font-size: 14px;
  font-style: italic;
  color: #FFD2DC;
  line-height: 1.5;
  margin: 0;
}

/* Actions Bar */
.whim-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.whim-actions .btn {
  height: 48px;
  padding: 0 24px;
  font-size: 14px;
}

/* ==========================================================================
   ULTRA-LUXURY VIDEO PLAYER (FROSTED GLASS DOCK & ZERO BLACK-SCREEN)
   ========================================================================== */

.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.player-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tv-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Full Movie Cinema Balancer Iframe */
.cinema-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  z-index: 201;
  display: none;
}

/* Floating Back Button for Iframe Mode */
.btn-player-floating-back {
  position: absolute;
  top: 28px;
  left: 36px;
  z-index: 220;
  background: rgba(14, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 15px var(--gold-glow);
  display: none;
  transition: var(--transition-luxury);
}

.btn-player-floating-back:focus,
.btn-player-floating-back.focused,
.btn-player-floating-back:hover {
  background: var(--gold-primary);
  color: #121016;
  border-color: #FFF;
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px var(--gold-primary);
}

/* Luxury Loader */
.player-luxury-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 205;
}

.player-luxury-loader.active {
  opacity: 1;
}

.luxury-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(212, 175, 55, 0.15);
  border-top-color: var(--gold-primary);
  animation: luxury-spin 1s linear infinite;
}

@keyframes luxury-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.luxury-loader-text {
  text-align: center;
}

.luxury-loader-crown {
  font-size: 26px;
  display: block;
  margin-bottom: 4px;
}

.luxury-loader-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  display: block;
}

.luxury-loader-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.player-watermark {
  position: absolute;
  top: 36px;
  right: 56px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(251, 249, 245, 0.4);
  letter-spacing: 1px;
  pointer-events: none;
}

.companion-mute-toast {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.96), rgba(244, 63, 94, 0.96));
  color: #FFF;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(225, 29, 72, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  display: none;
}

.companion-mute-toast.show {
  display: flex;
  align-items: center;
  top: 24px;
  opacity: 1;
  pointer-events: auto;
}

/* Luxury Floating Center Exit Pill (Zero overlap with player audio/settings) */
.player-top-hud {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Crucial: clicks anywhere outside the pill go directly to player iframe */
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-top-hud.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-floating-center-exit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 12, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 16px rgba(212, 175, 55, 0.25);
  pointer-events: auto; /* Only this button intercepts clicks */
  transition: var(--transition-luxury);
}

.btn-floating-center-exit:hover,
.btn-floating-center-exit:focus,
.btn-floating-center-exit.focused {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-color: var(--gold-primary);
  color: #050508;
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 25px var(--gold-primary);
}

.btn-floating-center-exit .exit-arrow {
  font-size: 15px;
  color: inherit;
  font-weight: 900;
}

.btn-floating-center-exit .exit-kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11px;
  color: inherit;
  font-weight: 700;
}

.btn-floating-center-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 12, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  pointer-events: auto;
  transition: var(--transition-luxury);
  margin-left: 10px;
}

.btn-floating-center-action:hover,
.btn-floating-center-action:focus,
.btn-floating-center-action.focused {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  border-color: var(--gold-primary);
  color: #050508;
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 25px var(--gold-primary);
}

/* 4K TorrServer Modal Card */
.torr-modal-card {
  background: rgba(14, 12, 20, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 620px;
  width: 90%;
  position: relative;
  text-align: center;
}

.torr-modal-header {
  margin-bottom: 20px;
}

.torr-modal-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.torr-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.torr-modal-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.torr-status-badge-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
}

.status-online {
  color: #10B981;
}

.status-offline {
  color: #F87171;
}

.status-checking {
  color: var(--gold-primary);
}

.torr-server-form {
  text-align: left;
  margin-bottom: 20px;
}

.torr-input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.torr-input-group {
  display: flex;
  gap: 10px;
}

.torr-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #FFF;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: var(--transition-luxury);
}

.torr-input:focus,
.torr-input.focused {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.torr-quick-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12px;
}

.presets-label {
  color: var(--text-muted);
  margin-right: 4px;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-platinum);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-luxury);
}

.preset-pill:hover,
.preset-pill:focus,
.preset-pill.focused {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  transform: scale(1.05);
}

.torr-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.anti-theft-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(14, 12, 20, 0.96);
  border: 2px solid var(--rose-primary);
  box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 50px var(--rose-glow);
  padding: 36px 44px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 520px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 220;
}

.anti-theft-box.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.anti-theft-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.anti-theft-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--rose-primary);
  margin-bottom: 10px;
}

.anti-theft-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Luxury OSD (Floating Frosted Dock) */
.player-osd {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 60px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.92) 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.player-osd.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-osd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-player-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-platinum);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: var(--transition-luxury);
}

.player-now-playing {
  text-align: center;
}

.player-now-playing h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.player-quality-pill {
  font-size: 11px;
  color: var(--gold-light);
  letter-spacing: 1px;
  font-weight: 700;
}

.btn-player-mute-companion {
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid var(--rose-primary);
  color: #FFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

/* Floating Glass Dock */
.player-dock {
  background: rgba(14, 12, 20, 0.75);
  backdrop-filter: blur(36px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.15);
  max-width: 900px;
  margin: 0 auto;
}

.player-timeline-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.player-timeline {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.timeline-played {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rose-primary), var(--gold-primary));
  border-radius: var(--radius-full);
}

.player-time-display {
  font-size: 13px;
  color: var(--gold-light);
  font-weight: 600;
  min-width: 130px;
  text-align: right;
  letter-spacing: 0.5px;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-platinum);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition-luxury);
}

.ctrl-play {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #121016;
  font-weight: 800;
  padding: 12px 32px;
  border-color: var(--gold-light);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* Easter Egg 1: Royal Decree Scroll */
.empress-scroll-card {
  width: 600px;
  background: #FFFDF9;
  color: #291E14;
  border-radius: 12px;
  padding: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  position: relative;
  text-align: center;
  border: 8px double #C4984F;
  background-image: radial-gradient(#F7EED9 1px, transparent 1px);
  background-size: 16px 16px;
}

.royal-crest {
  font-size: 40px;
  margin-bottom: 12px;
}

.empress-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #8C2230;
  margin-bottom: 4px;
}

.empress-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  color: #A37938;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.empress-decree-text {
  font-size: 16px;
  line-height: 1.6;
  color: #382B20;
  margin-bottom: 28px;
  font-style: italic;
}

.royal-seal {
  display: inline-block;
  margin-bottom: 24px;
}

.seal-inner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px dashed #B82B3E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B82B3E;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transform: rotate(-10deg);
}

.empress-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.tea-delivery-toast {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #10B981;
  display: none;
}

.tea-delivery-toast.show {
  display: block;
}

/* Confetti Canvas */
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

/* Toast Message */
.toast-message {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 16, 26, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--text-platinum);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--gold-glow);
  z-index: 300;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   DIANA PRIVÉ • SLEEP MODE & RESUME SHELF STYLING
   ========================================================================== */

/* Resume Progress Bar on Movie Card */
.resume-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 5;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  overflow: hidden;
}

.resume-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--rose-primary));
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Sleep Timer Button in Player */
.btn-player-sleep {
  background: rgba(26, 22, 38, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--text-platinum);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-luxury);
  margin-right: 12px;
}

.btn-player-sleep.focused, .btn-player-sleep:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #050508;
  box-shadow: 0 0 20px var(--gold-glow);
  transform: scale(1.08);
}

/* Sleep Mode Overlay (Zero Light OLED) */
.sleep-overlay {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sleep-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sleep-content {
  text-align: center;
  max-width: 600px;
  padding: 40px;
}

.sleep-moon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: sleepFloat 4s ease-in-out infinite alternate;
}

@keyframes sleepFloat {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); }
  100% { transform: translateY(-12px) scale(1.05); filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6)); }
}

.sleep-title {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.sleep-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.sleep-hint {
  font-size: 14px;
  color: var(--text-muted);
}

.sleep-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--gold-primary);
  font-weight: 700;
}

