/* ==============================================================================
   Sirius OTT Cloud - Tier-1 Production Streaming Design System
   Engineered to standards of Netflix, Apple TV+, and Disney+
   ============================================================================== */

:root {
  /* Obsidian Dark Palette */
  --bg-obsidian: #07070a;
  --bg-surface: #12131a;
  --bg-elevated: #1a1c27;
  --bg-card: rgba(18, 19, 26, 0.75);
  --bg-card-hover: rgba(28, 30, 44, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-elevated: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(99, 102, 241, 0.4);

  /* Brand Accents - Sirius Electric Indigo / Violet Theme */
  --brand-crimson: #6366f1;
  --brand-violet: #6366f1;
  --brand-purple: #8b5cf6;
  --brand-cyan: #06b6d4;
  --brand-pink: #ec4899;
  --brand-gold: #f59e0b;
  --brand-emerald: #10b981;

  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-violet-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --accent-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);

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

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Geometry & Shadows */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.9), 0 0 25px rgba(99, 102, 241, 0.25);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.35);

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-xs);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Tabular Numerals for Time Displays */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* App Container */
.app-container {
  position: relative;
  min-height: 100vh;
}

/* ==============================================================================
   Navbar & Full-Depth Solid Header Section
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 68px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  background: #08090e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: #08090e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.4));
  flex-shrink: 0;
}

.brand-text-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--brand-violet);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.7);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Debounced Search Input */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 220px;
  padding: 0.45rem 1.85rem 0.45rem 2.2rem;
  background: rgba(18, 19, 26, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.825rem;
  outline: none;
  transition: width var(--transition-normal), border-color var(--transition-fast);
  font-family: var(--font-sans);
}

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

.search-input:focus {
  width: 280px;
  border-color: var(--brand-violet);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: none;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
}

.search-clear:hover {
  color: #fff;
}

/* Profile Switcher & Avatar in Nav */
.profile-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  position: relative;
}

.profile-avatar-thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast);
  background: linear-gradient(135deg, #6366f1, #a855f7);
  flex-shrink: 0;
}

.profile-switcher-btn:hover .profile-avatar-thumb {
  transform: scale(1.08);
}

.profile-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.75rem;
  width: 220px;
  background: var(--bg-surface);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  z-index: 70;
  animation: fadeIn 0.15s ease-out;
}

.profile-dropdown-menu.active {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  font-size: 0.825rem;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-fast);
  font-family: var(--font-sans);
}

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

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

/* Mobile Bottom Navigation Bar (Hidden by default on Desktop) */
.mobile-bottom-nav {
  display: none;
}

/* ==============================================================================
   Hero Billboard Showcase
   ============================================================================== */
.hero-billboard {
  position: relative;
  height: 78vh;
  min-height: 480px;
  max-height: 740px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 3rem 3.5rem 3.5rem;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: brightness(1.2) contrast(1.05) saturate(1.12);
  transition: opacity 0.4s ease-in-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-vignette-mask {
  position: absolute;
  inset: 0;
  background:
    /* Soft, light side vignette so actors stay clear & vibrant */
    linear-gradient(90deg, rgba(7, 7, 10, 0.7) 0%, rgba(7, 7, 10, 0.25) 35%, transparent 62%),
    /* Smooth bottom fade into page background */
    linear-gradient(0deg, rgba(7, 7, 10, 1) 0%, rgba(7, 7, 10, 0.4) 10%, transparent 28%),
    /* Gentle top fade behind navbar */
    linear-gradient(180deg, rgba(7, 7, 10, 0.4) 0%, transparent 18%);
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  max-width: 680px;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-billboard.hero-crossfading .hero-content-wrap {
  opacity: 0;
  transform: translateY(12px);
}

.hero-billboard.hero-crossfading .hero-backdrop-img {
  opacity: 0.2;
  transform: scale(1.02);
}

.hero-title-main {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.hero-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Micro Badges (4K UHD, HDR10, DOLBY VISION, DOLBY ATMOS, TV-MA, Year, Runtime) */
.micro-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  background: rgba(14, 16, 24, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

.badge-runtime,
.ott-card-runtime {
  text-transform: lowercase !important;
  font-variant: normal;
  letter-spacing: 0.02em;
}

.badge-match-score {
  color: #4ade80;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: 0.35rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.85);
}

.badge-maturity {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.85);
}

.badge-uhd {
  background: rgba(245, 158, 11, 0.28);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fef08a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.85);
}

.badge-vision {
  background: rgba(99, 102, 241, 0.32);
  border-color: rgba(99, 102, 241, 0.6);
  color: #e0e7ff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.85);
}

.badge-atmos {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.6);
  color: #bae6fd;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.85);
}

.hero-synopsis {
  font-size: 1rem;
  color: #e2e8f0;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-audio-toggle {
  position: absolute;
  right: 3.5rem;
  bottom: 4.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-audio-mute {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-audio-mute:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.08);
}

.hero-maturity-tag {
  background: rgba(0, 0, 0, 0.6);
  border-left: 3px solid #fff;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

/* ==============================================================================
   Button Components
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.02);
}

.btn-primary {
  background: var(--brand-violet);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
}

.btn-primary:hover {
  background: #4f46e5;
  transform: scale(1.03) translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.65);
}

/* All Play Buttons Across Platform Unified with Sirius Brand Theme */
.hero-btn-play,
#hero-btn-play,
#detail-btn-play,
.play-btn-card,
.btn-title-primary {
  background: var(--brand-violet) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45) !important;
}

.hero-btn-play:hover,
#hero-btn-play:hover,
#detail-btn-play:hover,
.play-btn-card:hover,
.btn-title-primary:hover {
  background: #4f46e5 !important;
  transform: scale(1.06) translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.7) !important;
}

.play-btn-card {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-glass {
  background: rgba(109, 109, 110, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(109, 109, 110, 0.35);
  transform: scale(1.02);
}

.btn-crimson {
  background: var(--brand-crimson);
  color: #fff;
}

.btn-crimson:hover {
  background: #4f46e5;
  transform: scale(1.02);
}

.btn-round-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 42, 42, 0.6);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-round-action:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.btn-round-action.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ==============================================================================
   Badge Component (Generic)
   ============================================================================== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ==============================================================================
   Form Components (Edit Profile, Modals)
   ============================================================================== */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: var(--font-sans);
}

.form-control:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control option {
  background: var(--bg-surface);
  color: #fff;
}

/* ==============================================================================
   Info Box (Gateway Status)
   ============================================================================== */
.info-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.info-box.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.info-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.info-box.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* ==============================================================================
   Modal Overlay Layering Architecture
   Detail Modal: z-index 100
   Account/Settings Modal: z-index 120
   Profile Gate: z-index 150
   Edit Profile Modal: z-index 200 (must be in front of Gate and Settings)
   PIN Lock Modal: z-index 210 (must be in front of Gate)
   Cinema Player: z-index 250
   Toast Notifications: z-index 999
   ============================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

/* Modal Stacking Precedence */
#account-modal {
  z-index: 120;
}

#edit-profile-modal {
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
}

#pin-modal {
  z-index: 210;
  background: rgba(0, 0, 0, 0.88);
}

/* Generic Modal Dialog Shell */
.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-lg);
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: slideInUp 0.25s ease-out;
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 1.5rem 1.75rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.profile-avatar-box {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  user-select: none;
}

.avatar-palette-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-palette-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.avatar-palette-swatch:hover {
  transform: scale(1.18);
}

.avatar-palette-swatch.active {
  border-color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   Tabs (Account Modal)
   ============================================================================== */
.tabs-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-sans);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--brand-crimson);
  font-weight: 700;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ==============================================================================
   Toast Notification System
   ============================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideInUp 0.3s ease-out;
  min-width: 260px;
  max-width: 380px;
  border-left: 3px solid var(--brand-violet);
}

.toast.success {
  border-left-color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
}

.toast.error {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.toast.info {
  border-left-color: var(--brand-cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* ==============================================================================
   Horizontal Media Carousels (Netflix / Tier-1 OTT Style)
   ============================================================================== */
.carousel-section {
  position: relative;
  margin-bottom: 2.75rem;
  padding: 0 4.25rem;
}

.carousel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.carousel-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #e5e5e5;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
}

.carousel-title:hover {
  color: #fff;
}

.carousel-track-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1.25rem 0 1.5rem;
  margin: -1.25rem 0 -1.5rem;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 23, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  z-index: 35;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
}

.carousel-arrow svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  pointer-events: none;
}

.carousel-arrow.left svg {
  margin-right: 2px;
}

.carousel-arrow.right svg {
  margin-left: 2px;
}

.carousel-section:hover .carousel-arrow {
  opacity: 0.95;
}

.carousel-arrow:hover {
  opacity: 1 !important;
  background: var(--brand-violet);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.65);
}

.carousel-arrow.left {
  left: -3.75rem;
}

.carousel-arrow.right {
  right: -3.75rem;
}

/* ==============================================================================
   Card Variant A: Standard 16:9 / 2:3 Poster Card with Expand Preview
   ============================================================================== */
.ott-card {
  position: relative;
  flex: 0 0 210px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.ott-card:hover {
  transform: scale(1.06) translateY(-4px);
  z-index: 30;
  box-shadow: var(--shadow-hover);
}

.ott-card-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-elevated);
}

.ott-card-content {
  padding: 0.75rem 0.85rem;
  background: var(--bg-surface);
}

.ott-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.ott-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.ott-card-runtime {
  color: var(--text-secondary);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.ott-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.ott-card-btn-group {
  display: flex;
  gap: 0.35rem;
}

/* ==============================================================================
   Card Variant B: Continue Watching with Progress Bar & Remove
   ============================================================================== */
.continue-card-ott {
  position: relative;
  flex: 0 0 280px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.continue-card-ott:hover {
  transform: scale(1.05) translateY(-3px);
  z-index: 30;
  box-shadow: var(--shadow-hover);
}

.continue-thumb-ott {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.continue-play-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.continue-card-ott:hover .continue-play-hover {
  opacity: 1;
}

.continue-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.continue-progress-bar {
  height: 100%;
  background: var(--brand-crimson);
}

.continue-meta-ott {
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.continue-title-ott {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.continue-remaining-ott {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.btn-remove-continue {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-remove-continue:hover {
  color: #fff;
}

/* ==============================================================================
   Card Variant C: Top 10 Ranked Cards (Shiny Metallic Textured Numerals)
   ============================================================================== */
.top-ten-card {
  position: relative;
  flex: 0 0 250px;
  display: flex;
  align-items: flex-end;
  height: 180px;
  cursor: pointer;
  transition: transform var(--transition-normal);
}

.top-ten-card:hover {
  transform: scale(1.06) translateY(-4px);
  z-index: 30;
}

/* Base Shiny Metallic Textured Numeral */
.top-ten-numeral {
  font-family: 'Impact', 'Arial Black', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11rem;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  user-select: none;
  margin-right: -25px;
  z-index: 5;
  display: inline-block;

  /* Brushed metallic micro-grain & specular reflections */
  background-image:
    linear-gradient(125deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0.8) 35%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.6) 76%,
      transparent 90%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.12) 0px,
      rgba(255, 255, 255, 0.12) 1.5px,
      rgba(15, 23, 42, 0.25) 1.5px,
      rgba(15, 23, 42, 0.25) 3px),
    linear-gradient(180deg,
      #ffffff 0%,
      #e0e7ff 12%,
      #a5b4fc 24%,
      #6366f1 38%,
      #312e81 46%,
      #0f172a 49%,
      #1e1b4b 51%,
      #4f46e5 55%,
      #818cf8 64%,
      #ffffff 74%,
      #6366f1 86%,
      #1e1b4b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* 3D Chiseled Bevel Rim & Drop Shadows */
  filter:
    drop-shadow(1px 2px 0px rgba(224, 231, 255, 0.55)) drop-shadow(-1px -1px 0px rgba(15, 23, 42, 0.95)) drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 14px rgba(99, 102, 241, 0.4));

  transition: transform var(--transition-normal), filter var(--transition-normal);
}

/* Rank 1: Radiant Imperial Gold Chrome */
.top-ten-numeral.rank-1 {
  background-image:
    linear-gradient(125deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0.85) 35%,
      transparent 40%,
      transparent 62%,
      rgba(255, 255, 255, 0.65) 78%,
      transparent 90%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1.5px,
      rgba(113, 63, 18, 0.25) 1.5px,
      rgba(113, 63, 18, 0.25) 3px),
    linear-gradient(180deg,
      #ffffff 0%,
      #fef08a 12%,
      #facc15 24%,
      #eab308 36%,
      #a16207 46%,
      #422006 49%,
      #713f12 51%,
      #ca8a04 55%,
      #fde047 66%,
      #ffffff 75%,
      #eab308 86%,
      #713f12 100%);
  filter:
    drop-shadow(1px 2px 0px rgba(254, 240, 138, 0.65)) drop-shadow(-1px -1px 0px rgba(66, 32, 6, 0.95)) drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(234, 179, 8, 0.5));
}

/* Rank 2: Diamond Platinum & Silver Mirror Chrome */
.top-ten-numeral.rank-2 {
  background-image:
    linear-gradient(125deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0.9) 35%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.7) 76%,
      transparent 90%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.15) 0px,
      rgba(255, 255, 255, 0.15) 1.5px,
      rgba(30, 41, 59, 0.25) 1.5px,
      rgba(30, 41, 59, 0.25) 3px),
    linear-gradient(180deg,
      #ffffff 0%,
      #f8fafc 12%,
      #e2e8f0 24%,
      #94a3b8 38%,
      #475569 46%,
      #0f172a 49%,
      #1e293b 51%,
      #64748b 55%,
      #e2e8f0 64%,
      #ffffff 74%,
      #94a3b8 86%,
      #334155 100%);
  filter:
    drop-shadow(1px 2px 0px rgba(255, 255, 255, 0.75)) drop-shadow(-1px -1px 0px rgba(15, 23, 42, 0.95)) drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(226, 232, 240, 0.5));
}

/* Rank 3: Radiant Rose Bronze & Burnished Copper */
.top-ten-numeral.rank-3 {
  background-image:
    linear-gradient(125deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0.85) 35%,
      transparent 40%,
      transparent 60%,
      rgba(255, 255, 255, 0.65) 76%,
      transparent 90%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.14) 0px,
      rgba(255, 255, 255, 0.14) 1.5px,
      rgba(67, 20, 7, 0.25) 1.5px,
      rgba(67, 20, 7, 0.25) 3px),
    linear-gradient(180deg,
      #ffffff 0%,
      #ffedd5 12%,
      #fdba74 24%,
      #f97316 36%,
      #9a3412 46%,
      #431407 49%,
      #7c2d12 51%,
      #c2410c 55%,
      #fdba74 65%,
      #ffffff 74%,
      #ea580c 86%,
      #431407 100%);
  filter:
    drop-shadow(1px 2px 0px rgba(254, 215, 170, 0.65)) drop-shadow(-1px -1px 0px rgba(67, 20, 7, 0.95)) drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(249, 115, 22, 0.5));
}

/* Tight spacing for two-digit number 10 */
.top-ten-numeral.rank-10 {
  letter-spacing: -0.14em;
  margin-right: -32px;
}

/* Interactive Hover: Intensified Specular Lustre */
.top-ten-card:hover .top-ten-numeral {
  transform: scale(1.03);
  filter:
    drop-shadow(1px 2px 0px rgba(255, 255, 255, 0.85)) drop-shadow(-1px -1px 0px rgba(0, 0, 0, 0.95)) drop-shadow(3px 5px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.6));
}

.top-ten-poster {
  position: relative;
  z-index: 10;
  width: 130px;
  height: 100%;
  border-radius: var(--radius-xs);
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

/* ==============================================================================
   Phase 2: Neural Gateway Profile Nexus ("Who's Watching?")
   Hyper-Futuristic Holographic Identity Uplink
   ============================================================================== */
.profile-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #030408;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 1200px;
}

/* Background Canvas (Warp Field) */
.nexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* 3D Perspective Hologram Grid Floor */
.nexus-grid-plane {
  position: absolute;
  inset: -50% -50% 0 -50%;
  height: 150%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(68deg) translateZ(-180px);
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 2;
  mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 70%);
  animation: gridFloat 12s linear infinite;
}

@keyframes gridFloat {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 60px;
  }
}

/* Rotating Reactor Core Rings in Center */
.nexus-warp-core {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.warp-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.05);
}

.warp-ring-1 {
  animation: rotateWarp 25s linear infinite;
  border-color: rgba(99, 102, 241, 0.3);
}

.warp-ring-2 {
  inset: 50px;
  animation: rotateWarpRev 18s linear infinite;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-left-color: transparent;
  border-right-color: transparent;
}

.warp-ring-3 {
  inset: 120px;
  animation: rotateWarp 12s linear infinite;
  border: 2px dotted rgba(168, 85, 247, 0.3);
}

@keyframes rotateWarp {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateWarpRev {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Telemetry Header */
.nexus-hud-header {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-bottom: 3.5rem;
  max-width: 650px;
}

.nexus-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-xs);
  margin-bottom: 1.25rem;
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.nexus-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
  animation: blinkDot 1.2s infinite ease-in-out;
}

@keyframes blinkDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.nexus-status-text {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-cyan);
}

.nexus-gate-title {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
  font-family: var(--font-sans);
}

.nexus-gate-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Profiles Matrix Grid */
.nexus-matrix-grid {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  max-width: 1200px;
}

/* Individual Holographic Pod Card */
.nexus-pod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexus-pod-card:hover {
  transform: translateY(-10px) scale(1.04);
}

/* Hologram Scanning Ring Outer */
.nexus-pod-hud {
  position: relative;
  width: 155px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nexus-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.ring-scan {
  fill: none;
  stroke: var(--brand-violet);
  stroke-width: 2.5;
  stroke-dasharray: 40 420;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: stroke 0.3s ease, filter 0.3s ease;
  animation: radarSweep 6s linear infinite;
}

.ring-tick {
  fill: none;
  stroke: rgba(6, 182, 212, 0.3);
  stroke-width: 2;
}

@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
    transform-origin: center;
  }

  100% {
    transform: rotate(360deg);
    transform-origin: center;
  }
}

.nexus-pod-card:hover .ring-scan {
  stroke: var(--brand-cyan);
  filter: drop-shadow(0 0 8px var(--brand-cyan));
  animation-duration: 2s;
}

/* Core Avatar inside HUD */
.nexus-avatar-core {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.85rem;
  font-weight: 900;
  color: #fff;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.9),
    inset 0 0 25px rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nexus-pod-card:hover .nexus-avatar-core {
  border-color: #fff;
  box-shadow:
    0 0 40px rgba(99, 102, 241, 0.7),
    inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.nexus-avatar-glyph {
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  font-family: var(--font-sans);
}

/* Shimmer Light Bar across avatar */
.nexus-core-glimmer {
  position: absolute;
  inset: -100% -100% -100% -100%;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  transform: rotate(45deg);
  pointer-events: none;
  transition: transform 0.6s ease;
}

.nexus-pod-card:hover .nexus-core-glimmer {
  transform: rotate(45deg) translate(80px, 80px);
}

/* Cyber Badges */
.nexus-kids-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(6, 182, 212, 0.9);
  color: #030408;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
  z-index: 5;
}

.nexus-pin-seal {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Telemetry Plate Under Avatar */
.nexus-pod-telemetry {
  text-align: center;
}

.nexus-node-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--brand-cyan);
  letter-spacing: 0.15em;
  margin-bottom: 0.2rem;
  opacity: 0.7;
}

.nexus-pod-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.nexus-pod-card:hover .nexus-pod-name {
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.nexus-pod-sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

/* Manage Profiles Pulse State */
.manage-profiles-active .nexus-avatar-core::after {
  content: '⚡';
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 8, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--brand-cyan);
  border: 2px dashed var(--brand-cyan);
  border-radius: 50%;
  z-index: 10;
  animation: pulseNeon 1.5s infinite alternate;
}

@keyframes pulseNeon {
  0% {
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    border-color: var(--brand-cyan);
  }

  100% {
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.8);
    border-color: var(--brand-pink);
  }
}

/* Add Node (Profile) Pod Card */
.nexus-pod-add .nexus-avatar-add {
  background: rgba(6, 182, 212, 0.06);
  border: 2px dashed rgba(6, 182, 212, 0.4);
  transition: all 0.3s ease;
}

.nexus-pod-add:hover .nexus-avatar-add {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--brand-cyan);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  transform: scale(1.05);
}

.nexus-pod-add .ring-scan-add {
  stroke: var(--brand-cyan) !important;
}

/* Bottom Controls Terminal Bar */
.nexus-controls-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.nexus-decor-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25));
}

.nexus-decor-line.right {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent);
}

.nexus-btn-cmd {
  position: relative;
  background: rgba(18, 19, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.nexus-btn-cmd:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--brand-violet);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.nexus-btn-cmd.active {
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: #030408;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
}

.btn-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--brand-cyan);
}

.btn-corner.tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.btn-corner.br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.nexus-btn-abort {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nexus-btn-abort:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

/* 4-Digit PIN Entry Modal */
.pin-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: slideInUp 0.25s ease-out;
}

.pin-inputs-row {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.pin-digit-box {
  width: 52px;
  height: 60px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: var(--font-sans);
}

.pin-digit-box:focus {
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Shake Animation on Wrong PIN */
.shake-error {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {

  10%,
  90% {
    transform: translate3d(-2px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(4px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-6px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(6px, 0, 0);
  }
}

/* ==============================================================================
   Phase 4: Rich Media Detail Modal (Two-Column + Episodic Selector)
   ============================================================================== */
.detail-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: slideInUp 0.25s ease-out;
}

.detail-hero-preview {
  position: relative;
  height: 380px;
  width: 100%;
  overflow: hidden;
  background: var(--bg-elevated);
}

.detail-preview-video,
.detail-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18, 19, 26, 0.8) 75%, var(--bg-surface) 100%);
}

.detail-hero-actions {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.detail-modal-body {
  padding: 1.5rem 2.5rem 2.5rem;
}

.detail-metadata-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.detail-cast-list {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.detail-cast-list span {
  color: var(--text-secondary);
  cursor: pointer;
}

.detail-cast-list span:hover {
  text-decoration: underline;
}

/* Episode List Rows */
.season-selector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.season-dropdown-select {
  background: var(--bg-surface-elevated, rgba(255, 255, 255, 0.08));
  color: var(--text-main, #f1f5f9);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: var(--radius-sm, 6px);
  padding: 0.45rem 2.2rem 0.45rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.season-dropdown-select:hover,
.season-dropdown-select:focus {
  border-color: var(--brand-crimson);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.25);
}

.season-dropdown-select option {
  background: #11131a;
  color: #fff;
  padding: 0.5rem;
}

.episode-row-ott {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.episode-row-ott:hover {
  background: rgba(255, 255, 255, 0.05);
}

.episode-number-badge {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dim);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.episode-thumb-ott {
  position: relative;
  width: 135px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xs);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
  flex-shrink: 0;
  overflow: hidden;
}

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

.episode-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.episode-title-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-runtime-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.episode-synopsis-ott {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================================================================
   Phase 5: Custom Adaptive Cinema Video Player & Smart Timestamp Triggers
   ============================================================================== */

/* Full-screen Cinema Player Modal (not using .modal-overlay base) */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: none;
}

.player-modal.active {
  display: flex;
  align-items: stretch;
}

.player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

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

/* Cinema Player HUD overlay */
.cinema-player-hud {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 3rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.9) 100%);
  transition: opacity var(--transition-normal);
  pointer-events: auto;
}

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

/* Player Close / Back Button */
.player-close-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.player-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Scrubber / Progress Bar */
.scrubber-container {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: height var(--transition-fast);
}

.scrubber-container:hover {
  height: 7px;
}

.scrubber-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.scrubber-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--brand-crimson);
  border-radius: var(--radius-full);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.scrubber-handle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  transform: translateX(50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.scrubber-container:hover .scrubber-handle {
  opacity: 1;
}

/* Control Buttons Bar */
.control-buttons-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Cinema Control Buttons */
.ctrl-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.ctrl-btn svg {
  width: 24px;
  height: 24px;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

/* Time Display */
.time-display {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  padding: 0 0.35rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Volume Group */
.volume-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

/* Stream Mode / Speed Selector */
.stream-mode-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
  max-width: 160px;
}

.stream-mode-select option {
  background: var(--bg-surface);
  color: #fff;
}

/* Floating Smart Timestamp Triggers */
.smart-trigger-skip-intro {
  position: absolute;
  bottom: 7.5rem;
  right: 3.5rem;
  z-index: 60;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
  display: none;
  font-family: var(--font-sans);
}

.smart-trigger-skip-intro:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

.smart-trigger-next-ep {
  position: absolute;
  bottom: 7.5rem;
  right: 3.5rem;
  z-index: 60;
  background: rgba(18, 19, 26, 0.9);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  max-width: 340px;
  backdrop-filter: blur(12px);
  display: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  animation: slideInUp 0.3s ease-out;
}

/* ==============================================================================
   Phase 6: Account Management & Subscription Billing Dashboard
   ============================================================================== */
.account-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-elevated);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideInUp 0.25s ease-out;
}

.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.pricing-plan-card {
  background: var(--bg-elevated);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.pricing-plan-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.pricing-plan-card.active {
  border-color: var(--brand-violet);
  background: rgba(99, 102, 241, 0.08);
}

.device-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
  gap: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive & Mobile Optimizations */
@media (max-width: 900px) {

  .navbar,
  .hero-billboard,
  .carousel-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-billboard {
    height: 72vh;
    min-height: 460px;
    padding-bottom: 3rem;
  }

  .hero-title-main {
    font-size: 2.25rem;
  }

  .hero-synopsis {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .detail-metadata-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-plans-grid {
    grid-template-columns: 1fr;
  }

  .cinema-player-hud {
    padding: 1rem 1.25rem;
  }

  .volume-slider {
    width: 55px;
  }

  .stream-mode-select {
    max-width: 110px;
    font-size: 0.65rem;
  }

  .detail-modal-dialog {
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Dedicated Mobile Breakpoint (Phones & Small Tablets) */
@media (max-width: 768px) {

  /* Top Navbar adjustments: Hide desktop nav links, compact branding */
  .navbar {
    height: 56px;
    padding: 0.65rem 1rem;
    background: #08090e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  }

  .navbar nav {
    display: none;
    /* Hidden on mobile — handled by bottom navigation bar */
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-text-img {
    height: 22px;
  }

  /* On mobile, remove search bar and desktop profile button from top navbar */
  .navbar .search-box {
    display: none !important;
  }

  .navbar #profile-switcher-btn {
    display: none !important;
  }

  .nav-actions {
    display: none !important;
  }

  /* Padding for page content so bottom navigation never overlaps content */
  #content-container {
    padding-bottom: 5.5rem !important;
  }

  /* Hero Billboard mobile fine-tuning */
  .hero-billboard {
    height: 68vh !important;
    min-height: 480px !important;
    padding: 2rem 1.25rem 2.25rem !important;
    align-items: flex-end !important;
  }

  .hero-backdrop-img {
    background-position: 75% center !important;
    background-size: cover !important;
  }

  .hero-vignette-mask {
    background:
      linear-gradient(0deg, rgba(7, 7, 10, 1) 0%, rgba(7, 7, 10, 0.88) 28%, rgba(7, 7, 10, 0.35) 60%, transparent 85%),
      linear-gradient(180deg, rgba(7, 7, 10, 0.8) 0%, transparent 35%) !important;
  }

  .hero-title-main {
    font-size: 1.75rem !important;
    margin-bottom: 0.45rem !important;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95) !important;
  }

  .hero-synopsis {
    display: none;
    /* Hide long synopsis on phone screens for clean billboard */
  }

  .hero-badges-row {
    margin-bottom: 0.75rem;
    gap: 0.35rem;
  }

  .hero-actions-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .hero-actions-row .btn.hero-btn-play {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .hero-actions-row .btn.btn-glass {
    flex: 1 !important;
    justify-content: center !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  .hero-audio-toggle {
    right: 1.25rem !important;
    top: calc(56px + 1rem) !important;
    bottom: auto !important;
  }

  .btn-audio-mute {
    width: 34px !important;
    height: 34px !important;
    background: rgba(14, 16, 24, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  /* Hide carousel dots and arrow navigation buttons completely on mobile */
  .hero-carousel-dots,
  .hero-carousel-nav {
    display: none !important;
  }

  /* Carousel rows on mobile */
  .carousel-section {
    padding: 0 1rem;
    margin-bottom: 1.75rem;
  }

  .carousel-title {
    font-size: 1.1rem;
  }

  .carousel-arrow {
    display: none !important;
    /* Touch swipe preferred on mobile */
  }

  .carousel-track {
    gap: 0.65rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0 1rem;
  }

  .ott-card {
    flex: 0 0 125px;
    height: 180px;
    scroll-snap-align: start;
  }

  .ott-card-content {
    padding: 0.45rem;
  }

  .ott-card-title {
    font-size: 0.75rem;
  }

  .continue-card-ott {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }

  .top-ten-card {
    flex: 0 0 190px;
    height: 140px;
    scroll-snap-align: start;
  }

  .top-ten-numeral {
    font-size: 7.5rem;
    margin-right: -18px;
  }

  .top-ten-numeral.rank-10 {
    letter-spacing: -0.14em;
    margin-right: -24px;
  }

  .top-ten-poster {
    width: 95px;
  }

  /* Detail Modal full-screen on mobile */
  .modal-overlay {
    padding: 0;
  }

  .detail-modal-dialog {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
  }

  .detail-hero-preview {
    height: 230px;
  }

  .detail-hero-actions {
    bottom: 1.25rem;
    left: 1.25rem;
  }

  .detail-modal-body {
    padding: 1.25rem;
  }

  /* Mobile More Like This & Recommendations Grid: Clean 3-Column Posters */
  .recommendations-grid,
  .detail-recommendations-grid,
  #title-recommendations-grid,
  #detail-recommendations-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .recommendations-grid .ott-card,
  .detail-recommendations-grid .ott-card,
  #title-recommendations-grid .ott-card,
  #detail-recommendations-grid .ott-card {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 165px !important;
    aspect-ratio: 2 / 3 !important;
    margin: 0 !important;
  }

  .recommendations-grid .ott-card-poster,
  .detail-recommendations-grid .ott-card-poster,
  #title-recommendations-grid .ott-card-poster,
  #detail-recommendations-grid .ott-card-poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--radius-xs) !important;
  }

  .recommendations-grid .ott-card-content,
  .detail-recommendations-grid .ott-card-content,
  #title-recommendations-grid .ott-card-content,
  #detail-recommendations-grid .ott-card-content {
    padding: 0.4rem 0.35rem !important;
  }

  .recommendations-grid .ott-card-title,
  .detail-recommendations-grid .ott-card-title,
  #title-recommendations-grid .ott-card-title,
  #detail-recommendations-grid .ott-card-title {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .recommendations-grid .ott-card-actions,
  .detail-recommendations-grid .ott-card-actions,
  #title-recommendations-grid .ott-card-actions,
  #detail-recommendations-grid .ott-card-actions {
    display: none !important;
  }

  .episode-thumb-ott {
    width: 105px;
  }

  /* Profile Gate on mobile */
  .profile-gate-title {
    font-size: 2rem;
    margin-bottom: 1.75rem;
  }

  .profile-cards-grid {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .profile-avatar-box {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .profile-name {
    font-size: 0.95rem;
  }

  /* Cinema Video Player mobile HUD */
  .cinema-player-hud {
    padding: 1rem;
  }

  #player-title {
    font-size: 1rem !important;
  }

  .ctrl-btn {
    width: 36px;
    height: 36px;
  }

  .ctrl-btn svg {
    width: 20px;
    height: 20px;
  }

  .time-display {
    font-size: 0.7rem;
    padding: 0 0.2rem;
  }

  .smart-trigger-skip-intro {
    right: 1rem;
    bottom: 6rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .smart-trigger-next-ep {
    right: 1rem;
    left: 1rem;
    bottom: 6rem;
    max-width: none;
  }

  /* Mobile Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(12, 13, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 80;
    align-items: center;
    justify-content: space-around;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  }

  /* Upward User Menu Dropdown on Mobile */
  .profile-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 68px;
    right: 12px;
    left: auto;
    margin-top: 0;
    z-index: 120;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.85);
  }

  .profile-dropdown-menu.active {
    display: flex !important;
  }

  /* Mobile Search Hub: 3-column Grid & Exactly 4 Equal Visible Filters in Single Line */
  .search-hub-view {
    padding: calc(56px + 1.25rem) 0.85rem 5rem !important;
  }

  .search-hub-input-wrap {
    margin-bottom: 0.85rem;
  }

  .search-hub-input {
    font-size: 0.95rem !important;
    padding: 0.65rem 2.25rem 0.65rem 2.3rem !important;
  }

  .search-hub-icon {
    left: 0.85rem !important;
    width: 16px !important;
    height: 16px !important;
  }

  .search-filters-bar {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.35rem !important;
    width: 100% !important;
    padding: 0.25rem 0 0.5rem !important;
    overflow: visible !important;
  }

  .filter-pill-wrapper {
    flex: 1 1 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.35rem 0.25rem 0.35rem 0.45rem !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  .filter-pill-select {
    width: 100% !important;
    padding: 0 1rem 0 0 !important;
    font-size: 0.72rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .search-hub-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .search-hub-grid .ott-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 165px !important;
  }

  .search-hub-grid .ott-card-poster {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .search-hub-grid .ott-card-title {
    font-size: 0.72rem !important;
  }

  .search-hub-grid .ott-card-meta {
    font-size: 0.65rem !important;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-xs);
    transition: color var(--transition-fast), transform var(--transition-fast);
    flex: 1;
    font-family: var(--font-sans);
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
  }

  .mobile-nav-item:hover,
  .mobile-nav-item:active {
    color: var(--text-secondary);
  }

  .mobile-nav-item.active {
    color: #fff;
  }

  .mobile-nav-item.active svg {
    color: var(--brand-crimson);
    transform: translateY(-1px);
  }

  #content-container {
    padding-bottom: 5.5rem !important;
  }

  /* When player or profile gate is active, hide mobile bottom bar */
  body.gate-open .mobile-bottom-nav,
  body:has(#profile-gate:not([style*="display: none"])) .mobile-bottom-nav,
  body:has(.player-modal.active) .mobile-bottom-nav,
  body:has(#cinema-player-modal.active) .mobile-bottom-nav {
    display: none !important;
  }
}

/* ==============================================================================
   Page Content Header Clearance (Header takes natural flow depth)
   ============================================================================== */
#content-container,
.content-container {
  padding-top: 0 !important;
  padding-bottom: 4rem;
}

#content-container.has-hero,
.content-container.has-hero,
body.in-title-view #content-container,
body.in-title-view .content-container {
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  #content-container,
  .content-container {
    padding-top: 0 !important;
    padding-bottom: 5.5rem !important;
  }
}

/* ==============================================================================
   Dedicated Search Hub View & Minimalistic Visible Filters
   ============================================================================== */
.search-hub-view {
  padding: 5.5rem 3.5rem 4rem;
  max-width: 1600px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-out;
}

.search-hub-header {
  margin-bottom: 1.5rem;
}

.search-hub-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 850px;
  margin-bottom: 1.25rem;
}

.search-hub-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  pointer-events: none;
}

.search-hub-input {
  width: 100%;
  background: rgba(22, 25, 35, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 0.85rem 3rem 0.85rem 2.5rem;
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.search-hub-input:focus {
  outline: none;
  border-color: var(--brand-violet);
  background: rgba(28, 32, 45, 0.9);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 10px 40px rgba(0, 0, 0, 0.6);
}

.search-hub-clear {
  position: absolute;
  right: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  /* Hidden by default when empty */
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.search-hub-clear:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Minimalist Visible Filters Bar */
.search-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

/* Active filter highlight state */
.filter-pill-wrapper.active-filter {
  border-color: rgba(99, 102, 241, 0.6) !important;
  background: rgba(99, 102, 241, 0.16) !important;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3) !important;
}

.filter-pill-select.active-filter {
  color: #fff !important;
  font-weight: 700 !important;
}

/* Reset Filters Pill */
.search-reset-bar {
  display: flex;
  align-items: center;
  margin-top: 0.65rem;
}

.btn-reset-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-full);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-pill:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: var(--brand-violet);
  color: #fff;
  transform: translateY(-1px);
}

.filter-pill-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.3), inset 0 1px 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem 0.35rem 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-pill-wrapper:hover,
.filter-pill-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 28px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.filter-pill-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-right: 0.45rem;
  user-select: none;
}

.filter-pill-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  padding-right: 0.6rem;
}

.filter-pill-select option {
  background: #111422;
  color: #f1f5f9;
  padding: 0.6rem;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.btn-reset-filters:hover {
  background: rgba(248, 113, 113, 0.25);
  color: #fff;
}

.search-results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-results-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.search-active-tags {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.search-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ==============================================================================
   Dedicated Title Detail Page (Full Immersive View)
   ============================================================================== */
.title-page-view {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg-app);
  animation: fadeIn 0.3s ease-out;
  padding-bottom: 6rem;
}

.title-nav-bar {
  position: absolute;
  top: 1.5rem;
  left: 3.5rem;
  z-index: 60;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}

.btn-title-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(18, 19, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.btn-title-back:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #fff;
  transform: scale(1.08) translateX(-2px);
  box-shadow: 0 0 22px rgba(99, 102, 241, 0.65);
}

.title-hero-header {
  position: relative;
  height: 68vh;
  min-height: 460px;
  max-height: 640px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 3.5rem 2rem;
}

.title-hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.95) contrast(1.05) saturate(1.1);
  transition: background-image 0.4s ease-in-out;
}

.title-hero-vignette {
  position: absolute;
  inset: 0;
  background:
    /* Deep directional scrim on the left ensures 100% legibility on light/white backdrops */
    linear-gradient(90deg, rgba(8, 10, 16, 0.96) 0%, rgba(8, 10, 16, 0.88) 35%, rgba(8, 10, 16, 0.5) 62%, transparent 90%),
    /* Rich bottom fade into page background */
    linear-gradient(0deg, var(--bg-app) 0%, rgba(8, 10, 16, 0.85) 15%, rgba(8, 10, 16, 0.3) 35%, transparent 60%),
    /* Top fade behind navbar */
    linear-gradient(180deg, rgba(8, 10, 16, 0.85) 0%, rgba(8, 10, 16, 0.35) 15%, transparent 30%);
  pointer-events: none;
}

.title-hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
}

.title-name-main {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.title-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 16px rgba(0, 0, 0, 0.9);
}

.title-meta-line .meta-item {
  display: inline-flex;
  align-items: center;
}

.title-meta-line .meta-dot {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  user-select: none;
}

.title-overview-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f1f5f9;
  font-weight: 500;
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.title-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-title-primary {
  padding: 0.85rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand-violet) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-title-primary:hover {
  background: #4f46e5 !important;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.65);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-title-action {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.title-body-container {
  width: 100%;
  max-width: 100%;
  padding: 2rem 3.5rem 5rem;
  box-sizing: border-box;
}

.title-section-header {
  margin-bottom: 1rem;
  text-align: left;
}

.title-section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  text-align: left;
}

.title-section-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: left;
}

/* 🌟 Available Versions & Audio Options (Android App Feature) */
.title-versions-section {
  margin-bottom: 2.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
}

.title-variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
  align-items: stretch;
}

.variant-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 135px;
  height: 60px;
  padding: 0.5rem 1.25rem;
  box-sizing: border-box;
  background: rgba(26, 28, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  text-align: center;
}

.variant-card:hover {
  background: rgba(42, 45, 68, 0.9);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.variant-card.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 2px var(--brand-violet), 0 6px 18px rgba(99, 102, 241, 0.4);
}

.variant-lang-name {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.variant-resolution-text {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--brand-cyan);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.variant-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.variant-card-quality {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.variant-badge-res {
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.variant-card.active .variant-badge-res {
  background: var(--brand-violet);
}

.variant-card-languages {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.variant-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.variant-card-select-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.variant-card.active .variant-card-select-btn {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #fff;
}

/* Season Pills (Single Line, Scrollable / Swipe) */
.season-pills-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.season-pills-row::-webkit-scrollbar {
  display: none;
}

.season-pill-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.35rem;
  min-width: 130px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  user-select: none;
}

.season-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.season-pill-btn.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--brand-violet);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

.season-pill-btn .season-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.season-pill-btn.active .season-name {
  color: #fff;
}

.season-pill-btn .season-ep-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-top: 0.25rem;
  line-height: 1.2;
}

.season-pill-btn.active .season-ep-count {
  color: #a5b4fc;
}

/* Collapsible Episodes Header Toggle */
.title-episodes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
  color: #fff;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: opacity var(--transition-fast);
}

.title-episodes-toggle:hover {
  opacity: 0.85;
}

.episodes-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.episodes-toggle-left .title-section-heading {
  margin-bottom: 0;
}

.episodes-count-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.episodes-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  transition: transform var(--transition-normal), background var(--transition-fast), color var(--transition-fast);
}

.title-episodes-toggle:hover .episodes-toggle-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.title-episodes-toggle[aria-expanded="false"] .episodes-toggle-icon {
  transform: rotate(180deg);
}

/* Title Episodes Container */
.title-episodes-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  transition: opacity var(--transition-normal);
}

.title-episodes-container.collapsed {
  display: none !important;
}

.title-episode-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.title-episode-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.title-episode-thumb {
  position: relative;
  width: 175px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-surface);
  flex-shrink: 0;
  overflow: hidden;
}

.title-episode-number {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.8);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  color: #fff;
}

.title-episode-info {
  flex: 1;
}

.title-episode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.title-episode-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.title-episode-duration {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.title-episode-synopsis {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* Cast and Crew Row */
.title-cast-section {
  margin-bottom: 3rem;
}

.title-cast-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}

.cast-chip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
  max-width: 120px;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.cast-chip-card:hover {
  transform: translateY(-4px) scale(1.05);
}

.cast-chip-card:hover .cast-avatar-circle {
  border-color: var(--brand-violet);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.cast-chip-card:hover .cast-member-name {
  color: #818cf8;
}

.cast-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-cyan);
  margin-bottom: 0.5rem;
  overflow: hidden;
  object-fit: cover;
  flex-shrink: 0;
}

.cast-member-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.cast-member-role {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.2;
  margin-top: 0.2rem;
}

/* Tech Specs Card */
.title-tech-specs-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.tech-specs-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-specs-grid strong {
  color: #fff;
}

/* Recommendations Grid */
.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .search-hub-view {
    padding: 1.25rem 0.85rem 5rem !important;
  }

  .title-nav-bar {
    top: 1.25rem;
    left: 1.25rem;
  }

  .title-hero-header {
    height: 58vh;
    min-height: 380px;
    padding: 2rem 1.25rem 2rem;
  }

  .title-hero-backdrop {
    background-position: 80% 25% !important;
    background-size: cover !important;
  }

  .title-name-main {
    font-size: 2rem;
  }

  .title-body-container {
    padding: 1.5rem 1.25rem;
  }

  .title-variants-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 0.5rem !important;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .title-variants-grid::-webkit-scrollbar {
    display: none;
  }

  .variant-card {
    flex: 0 0 auto !important;
    min-width: 105px !important;
    height: 52px !important;
    padding: 0.35rem 0.85rem !important;
  }

  .title-episode-card {
    flex-direction: column;
  }

  .title-episode-thumb {
    width: 100%;
  }
}

/* ==============================================================================
   Hero Carousel Navigations & Indicators
   ============================================================================== */
.hero-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 20, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  opacity: 0;
  transition: opacity var(--transition-normal), background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hero-carousel-nav svg {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  pointer-events: none;
}

.hero-carousel-nav.prev svg {
  margin-right: 2px;
}

.hero-carousel-nav.next svg {
  margin-left: 2px;
}

.hero-billboard:hover .hero-carousel-nav {
  opacity: 0.85;
}

.hero-carousel-nav:hover {
  opacity: 1 !important;
  background: var(--brand-violet);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.65);
}

.hero-carousel-nav.prev {
  left: 2rem;
}

.hero-carousel-nav.next {
  right: 2rem;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 25;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-dot.active {
  width: 26px;
  background: var(--brand-violet);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
}

/* ==============================================================================
   Fullscreen & Player HUD Cursor Autohide
   ============================================================================== */
.player-wrapper.hud-hidden,
.player-wrapper.hud-hidden * {
  cursor: none !important;
}

/* ==============================================================================
   Audio & Subtitles Track Selector Panel
   ============================================================================== */
.player-tracks-panel {
  position: absolute;
  bottom: 6.5rem;
  right: 3rem;
  width: 440px;
  max-width: calc(100vw - 2rem);
  background: rgba(14, 16, 24, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  z-index: 60;
  padding: 1.25rem;
  animation: tracksFadeIn 0.2s ease-out;
}

@keyframes tracksFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.player-tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.player-tracks-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-height: 280px;
  overflow-y: auto;
}

.tracks-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.track-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

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

.track-option.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
  font-weight: 600;
}

.track-option-check {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-violet);
  opacity: 0;
}

.track-option.active .track-option-check {
  opacity: 1;
}

/* ==============================================================================
   Search Catalog Pagination (50 items per page)
   ============================================================================== */
.search-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pagination-btn.active {
  background: var(--brand-violet);
  border-color: var(--brand-violet);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.55);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 0.35rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ==============================================================================
   Keyboard Shortcuts Cheat-Sheet Modal
   ============================================================================== */
.shortcuts-dialog {
  max-width: 620px;
}

.shortcuts-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--brand-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.shortcuts-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cyan);
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 0.45rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  background: #1e2230;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .player-tracks-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 5.5rem;
  }
}