/* ==========================================================================
   CineSafe - Ultra-Cinematic Netflix 2026 Edition
   World-Class Streaming Platform Interface Design System
   Features: Onyx Dark Palette, Glassmorphism, 4K Poster Cards,
   3D Pop-out Hover Physics, Shimmer Loading, Metallic Badges, and Hero Vignettes
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Ultra-Premium Onyx & Crimson Palette */
  --bg-void: #06070a;
  --bg-surface: #0e0f15;
  --bg-card: #141620;
  --bg-card-hover: #1c1e2b;
  --bg-glass: rgba(10, 11, 16, 0.78);
  
  /* Netflix Signature Crimson & Accents */
  --crimson-red: #E50914;
  --crimson-glow: #ff2a34;
  --match-green: #46d369;
  --gold-star: #ffc107;
  --cyan-accent: #00f2fe;
  
  /* Gradients */
  --gradient-red: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  --gradient-red-glow: linear-gradient(135deg, rgba(229, 9, 20, 0.5) 0%, rgba(255, 42, 52, 0.2) 100%);
  --gradient-vignette-hero: linear-gradient(180deg, rgba(6, 7, 10, 0.3) 0%, rgba(6, 7, 10, 0.7) 65%, #06070a 100%);
  --gradient-vignette-side: linear-gradient(90deg, rgba(6, 7, 10, 0.96) 0%, rgba(6, 7, 10, 0.8) 35%, rgba(6, 7, 10, 0.15) 100%);
  --gradient-card-overlay: linear-gradient(180deg, rgba(6, 7, 10, 0) 20%, rgba(6, 7, 10, 0.95) 100%);
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --text-primary: #ffffff;
  --text-secondary: #c0c4d0;
  --text-muted: #80869a;
  --text-dim: #505668;
  
  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.22);
  --border-red-glow: rgba(229, 9, 20, 0.6);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.75);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 30px rgba(229, 9, 20, 0.35);
  --shadow-glow-red: 0 0 35px rgba(229, 9, 20, 0.45);
  --shadow-modal: 0 30px 80px rgba(0, 0, 0, 0.98);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-pop: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

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

h1, h2, h3, h4, h5, h6, .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #252836;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson-red);
}

/* Background Ambient Lighting */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-blob-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(120px);
}

/* Main Container */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   Frosted Glass Netflix Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 4%;
  background: linear-gradient(180deg, rgba(6, 7, 10, 0.95) 0%, rgba(6, 7, 10, 0) 100%);
  transition: all 0.35s ease;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.8rem 4%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--border-glass);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}

.brand-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-name {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--crimson-red);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--gradient-red);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 4px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

/* Nav Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
  opacity: 0.85;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--text-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--crimson-red);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--crimson-red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Expandable Glass Search Bar */
.nav-search-container {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 220px;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.search-input:focus {
  width: 330px;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--crimson-red);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

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

/* Nav Action Buttons */
.btn-nav-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-nav-icon:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.badge-count {
  background: var(--crimson-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(229, 9, 20, 0.5);
}

/* ==========================================================================
   Full-Bleed Cinematic Hero Banner
   ========================================================================== */
.hero-spotlight {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 580px;
  max-height: 850px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  margin-bottom: -5rem; /* Seamless overlap with rows */
  overflow: hidden;
}

.hero-backdrop-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
  filter: brightness(0.85);
  transition: opacity 0.8s ease-in-out;
}

.hero-side-shade {
  position: absolute;
  inset: 0;
  background: var(--gradient-vignette-side);
  z-index: 2;
}

.hero-bottom-shade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--gradient-vignette-hero);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin-top: 5rem;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gradient-red-glow);
  border: 1px solid var(--border-red-glow);
  color: #ff4d56;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.25);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
  color: #ffffff;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.meta-match {
  color: var(--match-green);
  font-weight: 800;
}

.meta-rating {
  color: var(--gold-star);
  font-weight: 700;
}

.meta-badge {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.hero-overview {
  font-size: 1.05rem;
  color: #d0d4e0;
  margin-bottom: 2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

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

.btn-hero-play {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.btn-hero-play:hover {
  background: #e6e6e6;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.btn-hero-info {
  background: rgba(109, 109, 110, 0.65);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.btn-hero-info:hover {
  background: rgba(109, 109, 110, 0.35);
  border-color: #ffffff;
  transform: scale(1.04) translateY(-2px);
}

/* ==========================================================================
   Horizontal Carousel Sliders (Netflix Track Rows)
   ========================================================================== */
.main-content {
  flex: 1;
  position: relative;
  z-index: 10;
  padding-bottom: 6rem;
}

.row-container {
  margin-bottom: 3.2rem;
  position: relative;
  padding: 0 4%;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.row-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.row-title:hover {
  color: var(--crimson-red);
}

.row-title-icon {
  color: var(--crimson-red);
}

/* Carousel Track & Sliders */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1.2rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

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

/* Slider Scroll Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: calc(100% - 2.4rem);
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid var(--border-glass);
  color: #fff;
  z-index: 50;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.carousel-wrapper:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(229, 9, 20, 0.9);
  border-color: var(--crimson-red);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.slider-arrow.left {
  left: -2.2%;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.slider-arrow.right {
  right: -2.2%;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ==========================================================================
   Ultra-Cinematic 3D Hover Cards
   ========================================================================== */
.netflix-card {
  position: relative;
  flex: 0 0 210px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

@media (min-width: 1400px) {
  .netflix-card {
    flex: 0 0 240px;
  }
}

@media (max-width: 768px) {
  .netflix-card {
    flex: 0 0 150px;
  }
}

.netflix-card:hover {
  transform: scale(1.12) translateY(-10px);
  z-index: 40;
  box-shadow: var(--shadow-hover);
  border-color: var(--border-red-glow);
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.netflix-card:hover .card-poster-img {
  transform: scale(1.05);
}

/* Badges */
.card-top10-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 0 0 0 var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.card-type-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 5;
}

/* Card Hover Information Overlay */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-card-overlay);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 10;
}

.netflix-card:hover .card-hover-overlay {
  opacity: 1;
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.card-btn-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.card-btn-play:hover {
  transform: scale(1.15);
  background: #e6e6e6;
}

.card-btn-bookmark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(30, 32, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.card-btn-bookmark:hover {
  transform: scale(1.15);
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
}

.card-btn-bookmark.saved {
  background: var(--crimson-red);
  border-color: var(--crimson-red);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

.card-title-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.card-info-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

/* Shimmer Skeleton Placeholder Loading */
.skeleton-card {
  flex: 0 0 210px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #141620 25%, #222536 50%, #141620 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Search & Grid View Container */
.media-grid-container {
  padding: 7rem 4% 4rem 4%;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.6rem;
}

@media (min-width: 1200px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.media-grid .netflix-card {
  flex: auto;
  width: 100%;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ==========================================================================
   Modals (Player & Settings Modal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1080px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .modal-window {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.8rem;
  background: var(--bg-void);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 30;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 75%;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--crimson-red);
  border-color: var(--crimson-red);
  box-shadow: var(--shadow-glow-red);
}

/* Security Banner inside Modal */
.security-banner {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.25) 0%, rgba(14, 15, 21, 0.95) 100%);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 1.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.security-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff4d56;
  font-weight: 700;
}

.provider-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.provider-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-hover);
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.provider-select option {
  background: #0e0f15;
  color: #fff;
}

/* Player Frame Container */
.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* TV Controls Panel (Seasons & Episodes) */
.tv-controls-panel {
  padding: 1.4rem 1.8rem;
  background: #0a0b10;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tv-selectors {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.custom-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-hover);
  color: #ffffff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.custom-select option {
  background: #0a0b10;
  color: #ffffff;
}

.episodes-grid {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.episode-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

.episode-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.episode-btn.active {
  background: var(--gradient-red);
  color: #ffffff;
  border-color: var(--crimson-red);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Modal Body Details */
.modal-body-details {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.detail-main {
  display: flex;
  gap: 1.8rem;
}

.detail-poster {
  width: 160px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.detail-info-text {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-synopsis {
  font-size: 0.98rem;
  color: #d0d4e0;
  line-height: 1.65;
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

/* Settings Form */
.settings-form {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--crimson-red);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.btn-primary {
  background: var(--gradient-red);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-glow-red);
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass-hover);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: rgba(14, 15, 21, 0.95);
  border: 1px solid var(--crimson-red);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  animation: slideToast 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 3rem 4%;
  background: #040508;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* Dedicated Watch Page Styling */
.watch-main-container {
  padding: 6.5rem 4% 4rem 4%;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.watch-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.watch-title-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.watch-movie-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
}

.cinema-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), var(--shadow-glow-red);
  border: 1px solid var(--border-glass-hover);
  border-top: none;
  margin-bottom: 1.8rem;
}

.cinema-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.watch-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.watch-info-main {
  display: flex;
  gap: 2.2rem;
}

.watch-poster-img {
  width: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow-card);
}

.watch-details-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.watch-subheading {
  font-size: 1.15rem;
  color: var(--crimson-red);
  margin-top: 0.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .hero-spotlight {
    height: 65vh;
    min-height: 460px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .detail-main, .watch-info-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .slider-arrow {
    display: none;
  }
}
