/* =========================================================================
   LIGHT MODE THEME (html.light-mode)
   Keeps #playerModal, #jumpscareOverlay, and .aspect-video overlays dark
   ========================================================================= */
html.light-mode body {
  background-color: #f3f4f6;
  color: #111827;
}

html.light-mode ::-webkit-scrollbar-track {
  background: #e5e7eb;
}
html.light-mode ::-webkit-scrollbar-thumb {
  background: #9ca3af;
}
html.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Navbar */
html.light-mode #navbar {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.85), transparent);
}
html.light-mode #navbar.shadow-lg {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
html.light-mode #navbar nav,
html.light-mode #navbar nav button,
html.light-mode #themeToggleBtn,
html.light-mode #profileBtnName {
  color: #111827 !important;
}
html.light-mode #navbar nav button:hover {
  background-color: rgba(0, 0, 0, 0.06) !important;
}
html.light-mode #themeToggleBtn,
html.light-mode #profileBtn,
html.light-mode #logoutUserBtn {
  background-color: rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  color: #111827 !important;
}
html.light-mode #uploadMediaNavBtn {
  background-color: rgba(16, 185, 129, 0.14) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
}
html.light-mode #searchInput {
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}
html.light-mode #searchInput::placeholder {
  color: #6b7280 !important;
}

/* Hero Section */
html.light-mode .hero-vignette {
  background: linear-gradient(
    to top,
    #f3f4f6 6%,
    rgba(243, 244, 246, 0.9) 34%,
    rgba(243, 244, 246, 0.5) 72%,
    rgba(255, 255, 255, 0.82) 100%
  );
}
html.light-mode .hero-side-vignette {
  background: linear-gradient(
    to right,
    rgba(243, 244, 246, 0.96) 0%,
    rgba(243, 244, 246, 0.72) 50%,
    rgba(243, 244, 246, 0.18) 100%
  );
}
html.light-mode #heroSection #heroShowTitle,
html.light-mode #heroSection #heroSubtitle,
html.light-mode #heroSection #heroProgressContainer {
  color: #111827 !important;
}
html.light-mode #heroSection .inline-flex.bg-black\/60,
html.light-mode #heroSection #heroSeasonCount,
html.light-mode #heroSection #heroEpisodeCount {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #111827 !important;
}
html.light-mode #heroSection #heroBadgeLabel {
  color: #111827 !important;
}
html.light-mode #heroSection .text-emerald-400 {
  color: #047857 !important;
}
html.light-mode #heroSection #heroBrowseBtn,
html.light-mode #heroSection #heroAllShowsBackBtn {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
}
html.light-mode #heroShowSwitcher {
  background-color: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
html.light-mode #heroShowSwitcher button:not(.bg-netflix-red):not(.bg-amber-500) {
  background-color: rgba(0, 0, 0, 0.06) !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
html.light-mode #heroShowSwitcher button:not(.bg-netflix-red):not(.bg-amber-500) span:last-child {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #374151 !important;
}

/* Dashboard Headings, Row Buttons & Cards */
html.light-mode #libraryDashboard h2,
html.light-mode #libraryDashboard h3,
html.light-mode #libraryDashboard h4,
html.light-mode #welcomeScreen h1,
html.light-mode #welcomeScreen h2 {
  color: #111827;
}
html.light-mode #libraryDashboard > div section > div:first-child button,
html.light-mode #continueRow button {
  color: #1f2937 !important;
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
}
html.light-mode #libraryDashboard > div section > div:first-child .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #374151 !important;
}

html.light-mode #libraryDashboard .bg-netflix-card {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1);
}
html.light-mode #libraryDashboard .bg-netflix-card:hover {
  background-color: #f9fafb !important;
}
html.light-mode #libraryDashboard .bg-netflix-card > *:not(.aspect-video) .text-white,
html.light-mode #libraryDashboard .bg-netflix-card > div:last-child h3,
html.light-mode #libraryDashboard .bg-netflix-card > div:last-child .text-white {
  color: #111827 !important;
}
html.light-mode #libraryDashboard .bg-netflix-card .text-neutral-400,
html.light-mode #libraryDashboard .bg-netflix-card .text-neutral-500 {
  color: #4b5563 !important;
}
html.light-mode #libraryDashboard .bg-netflix-card .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.07) !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
html.light-mode #libraryDashboard .bg-netflix-card .bg-netflix-red {
  color: #ffffff !important;
}
html.light-mode #libraryDashboard .bg-netflix-card select {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.16) !important;
}
/* Keep text white inside thumbnail image overlays */
html.light-mode #libraryDashboard .bg-netflix-card .aspect-video h3,
html.light-mode #libraryDashboard .bg-netflix-card .aspect-video h4,
html.light-mode #libraryDashboard .bg-netflix-card .aspect-video p {
  color: #ffffff !important;
}

/* Show Detail View (Glass Panels, Saga & Arc Pills) */
html.light-mode #episodesSection,
html.light-mode #catalogAllModal > div {
  background-color: #f3f4f6 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #111827 !important;
}
html.light-mode #episodesSection .bg-netflix-card,
html.light-mode #catalogAllModal .bg-netflix-card {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light-mode #episodesSection .bg-netflix-card h3,
html.light-mode #catalogAllModal .bg-netflix-card h3,
html.light-mode #catalogAllModal h2 {
  color: #111827 !important;
}
html.light-mode #episodesSection .bg-netflix-card .text-neutral-400,
html.light-mode #episodesSection .bg-netflix-card .text-neutral-500,
html.light-mode #catalogAllModal .bg-netflix-card .text-neutral-400,
html.light-mode #catalogAllModal .bg-netflix-card .text-neutral-500 {
  color: #4b5563 !important;
}
html.light-mode .glass-panel {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #111827;
}
html.light-mode .glass-panel select {
  background-color: #f9fafb !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}
html.light-mode .glass-panel .text-white,
html.light-mode .glass-panel .text-neutral-300,
html.light-mode .glass-panel button.bg-white\/5 {
  color: #111827 !important;
}
html.light-mode .glass-panel button.bg-white\/5 {
  background-color: rgba(0, 0, 0, 0.06) !important;
}
html.light-mode #sagaPills button:not(.bg-netflix-red),
html.light-mode #seasonPills button:not(.bg-emerald-500) {
  background-color: rgba(0, 0, 0, 0.06) !important;
  color: #111827 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
html.light-mode #sagaPills button.bg-netflix-red {
  color: #ffffff !important;
}
html.light-mode #noSearchResults p {
  color: #111827 !important;
}

/* Welcome Screen */
html.light-mode #welcomeScreen p {
  color: #4b5563 !important;
}
html.light-mode #welcomeScreen .bg-white\/5,
html.light-mode #welcomeScreen .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.06) !important;
