/* ===== UNIVERSAL CROSS-BROWSER RESET & HIGH-RES ASSET CONSTRAINTS ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  touch-action: pan-y pinch-zoom;
}

/* Prevent accidental horizontal scrolling & element alignment clipping on mobiles */
@media (max-width: 767px) {
  body {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  /* Prevent text selection and aggressive touch scaling on general buttons */
  button, a, .movie-card-hover {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Prevent accidental iOS / Android zoom on inputs with small font sizes */
input, textarea, select {
  font-size: 16px !important;
}

@media (min-width: 768px) {
  input, textarea, select {
    font-size: 12px !important;
  }
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Strict fallback for high-res logo assets across all browsers */
img[src*="logo.png"],
img[src*="logoo.png"],
.site-logo,
.brand-logo {
  max-height: 48px !important;
  width: auto !important;
  object-fit: contain !important;
  display: inline-block;
}

header img[src*="logo"],
nav img[src*="logo"] {
  max-height: 38px !important;
  width: auto !important;
}

/* ===== MOVIESELECT STRICT BLACK & WHITE MONOCHROME ROOT & THEME ===== */
:root {
  --ms-bg: #000000;
  --ms-surface: #0a0a0a;
  --ms-surface-2: #121212;
  --ms-surface-hover: #1c1c1c;
  --ms-line: rgba(255, 255, 255, 0.12);
  --ms-text: #ffffff;
  --ms-muted: #a3a3a3;
  --ms-muted-2: #737373;
  --ms-accent: #ffffff;
  --ms-accent-cyan: #ffffff;
  --ms-accent-rose: #ffffff;
  --ms-accent-glow: rgba(255, 255, 255, 0.2);
}

/* GLOBAL FONT & SMOOTH RENDERING */
html {
  scroll-behavior: smooth !important;
  background-color: var(--ms-bg);
}

body, html {
  font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--ms-bg);
  color: var(--ms-text);
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: smooth !important;
}

/* ===== FULL-PAGE MOVIESELECT MODERN BLACK & WHITE BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    url('/images/kakashi-hatake-in-naruto-xs-3840x2160.jpg') center center / cover no-repeat;
  filter: brightness(0.2) grayscale(100%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.90) 35%, rgba(0, 0, 0, 0.98) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ===== MOBILE BOTTOM NAV BAR ===== */
@media (max-width: 767px) {
  body {
    padding-bottom: 76px;
  }

  footer {
    margin-bottom: 0 !important;
    padding-bottom: 90px !important;
  }
}

/* Hide standalone floating button on mobile phones (since it is already in the mobile bottom navigation bar) */
@media (max-width: 767px) {
  #floatingCommunityBtn {
    display: none !important;
  }
}

/* Glassy bottom bar styling */
.mobile-bottom-bar {
  background: rgba(10, 12, 18, 0.45);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#mobileBottomNav {
  -webkit-tap-highlight-color: transparent;
}

#mobileBottomNav .mobile-nav-item {
  -webkit-tap-highlight-color: transparent;
  min-width: 56px;
}

#mobileBottomNav .mobile-nav-item:active {
  transform: scale(0.88);
}

/* Hide mobile bottom nav on desktop */
@media (min-width: 768px) {
  #mobileBottomNav {
    display: none !important;
  }
}

/* THEME BACKGROUNDS */
html[data-theme="dark"] body { 
  background: transparent;
  background-attachment: fixed;
  color: #f1f5f9; 
}

html[data-theme="light"] body { 
  background: transparent !important;
  background-attachment: fixed;
  color: #0f172a; 
}

/* Light mode - background image behind the page clearly visible through translucent glass */
html[data-theme="light"] body::before {
  filter: brightness(0.95) saturate(1.15) !important;
  opacity: 0.55 !important;
}

html[data-theme="light"] body::after {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.76) 0%, rgba(241, 245, 249, 0.65) 50%, rgba(248, 250, 252, 0.80) 100%) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

/* ── LIGHT THEME COMPREHENSIVE OVERRIDES ───────────────────────────────── */

/* Text colors */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6 { color: #0f172a !important; }

html[data-theme="light"] p { color: #334155; }
html[data-theme="light"] .text-slate-100:not(.admin-panel *) { color: #1e293b !important; }
html[data-theme="light"] .text-slate-200:not(.admin-panel *) { color: #334155 !important; }
html[data-theme="light"] .text-slate-300:not(.admin-panel *) { color: #475569 !important; }
html[data-theme="light"] .text-slate-400:not(.admin-panel *) { color: #64748b !important; }
html[data-theme="light"] .text-white:not(.admin-panel *):not(#heroDetails *):not(.hero-btn-glow):not(.hero-btn-glow *):not(.bg-blue-600):not(.bg-blue-600 *):not([class*="bg-blue-600"]):not([class*="bg-blue-600"] *):not(.bg-emerald-600 *):not(.bg-rose-600 *):not([class*="bg-orange"]):not([class*="bg-orange"] *):not([class*="bg-red"]):not([class*="bg-red"] *):not(.keep-white):not(.keep-white *):not(.carousel-vertical-title):not(.carousel-vertical-title *):not(.anime-sub-pill):not(.anime-sub-pill *):not(.wishlist-filter-btn):not(.wishlist-filter-btn *):not(#miniFilterToggleBtn):not(#miniFilterToggleBtn *):not(#miniFilterToggleBtnMobile):not(#miniFilterToggleBtnMobile *) { color: #0f172a !important; }

/* Navigation Header */
html[data-theme="light"] header.glass-panel {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] header .text-white:not(.keep-white):not(.keep-white *):not(#miniFilterToggleBtn):not(#miniFilterToggleBtn *):not(#miniFilterToggleBtnMobile):not(#miniFilterToggleBtnMobile *) { color: #0f172a !important; }
html[data-theme="light"] header .text-slate-300:not(.keep-white):not(.keep-white *) { color: #64748b !important; }
html[data-theme="light"] header .hover\:text-white:hover { color: #0f172a !important; }

/* Logo */
html[data-theme="light"] .site-logo-accent { color: #0f172a !important; }

/* Search bar */
html[data-theme="light"] header input[type="text"] {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] header input::placeholder { color: #94a3b8 !important; }

/* Cards */
html[data-theme="light"] .glass-panel,
html[data-theme="light"] [class*="bg-slate-900"],
html[data-theme="light"] [class*="bg-slate-800"],
html[data-theme="light"] [class*="bg-\[#0b0c15\]"],
html[data-theme="light"] [class*="bg-\[#111"] {
  background: rgba(255,255,255,0.95) !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Section headings */
html[data-theme="light"] .section-heading { color: #0f172a !important; }

/* Media cards */
html[data-theme="light"] .media-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .media-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
html[data-theme="light"] .media-card .text-white { color: #0f172a !important; }
html[data-theme="light"] .media-card .text-slate-300 { color: #64748b !important; }

/* Mobile bottom nav */
html[data-theme="light"] .mobile-bottom-bar {
  background: rgba(255,255,255,0.97) !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .mobile-bottom-bar .text-white { color: #0f172a !important; }
html[data-theme="light"] .mobile-bottom-bar .text-slate-300 { color: #64748b !important; }

/* Light mode header buttons */
html[data-theme="light"] .light-btn-secondary {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .light-btn-guest {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

/* Section backgrounds */
html[data-theme="light"] section:not(#hero),
html[data-theme="light"] .bg-slate-900\/40,
html[data-theme="light"] .bg-slate-900\/60 {
  background: transparent !important;
}

/* Sidebar */
html[data-theme="light"] #sideMenu,
html[data-theme="light"] [id*="sidebar"] {
  background: rgba(255,255,255,0.98) !important;
  border-color: #e2e8f0 !important;
}

/* Dropdowns */
html[data-theme="light"] [class*="dropdown"],
html[data-theme="light"] .bg-slate-900\/95 {
  background: rgba(255,255,255,0.99) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}
html[data-theme="light"] [class*="dropdown"] button,
html[data-theme="light"] [class*="dropdown"] a {
  color: #334155 !important;
}

/* Footer */
html[data-theme="light"] footer {
  background: rgba(255,255,255,0.95) !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
html[data-theme="light"] footer .text-white { color: #334155 !important; }
html[data-theme="light"] footer .text-slate-300 { color: #64748b !important; }

/* Scrollbar light */
html[data-theme="light"] ::-webkit-scrollbar { width: 6px; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #f1f5f9; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* DARK MODE TEXT POLISHING (Zero-specificity :where defaults so Tailwind/button text classes never clash) */
:where(html[data-theme="dark"]) h1,
:where(html[data-theme="dark"]) h2,
:where(html[data-theme="dark"]) h3,
:where(html[data-theme="dark"]) h4,
:where(html[data-theme="dark"]) h5,
:where(html[data-theme="dark"]) h6 {
  color: #ffffff;
}

:where(html[data-theme="dark"]) p,
:where(html[data-theme="dark"]) label,
:where(html[data-theme="dark"]) select {
  color: #cbd5e1;
}

:where(html[data-theme="dark"]) span:not(.force-color):not(button span):not(a span):not([class*="text-"]) {
  color: #cbd5e1;
}

:where(html[data-theme="dark"]) input,
:where(html[data-theme="dark"]) button:not(.btn-reset):not(.active):not([class*="text-"]) {
  color: #ffffff;
}

/* GLASSMORPHISM PANELS */
html[data-theme="dark"] .glass-panel {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

html[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s ease;
}

/* HERO SLIDER, FROSTED GLASS EDGES & BLURRED DARK DYNAMIC SITE BACKGROUND */
.hero-backdrop-layer {
  position: absolute;
  inset: -4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  will-change: opacity;
  transform: scale(1.02);
}
.hero-backdrop-layer.active {
  opacity: 0.86;
}

.hero-glass-card {
  background: rgba(7, 9, 14, 0.25);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(255, 255, 255, 0.10),
    inset 0 0 34px rgba(255, 255, 255, 0.05);
}

.home-site-bg-layer {
  position: absolute;
  inset: -32px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(22px) saturate(1.12) brightness(0.80);
  transform: scale(1.10);
  transition: opacity 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.home-site-bg-layer.active {
  opacity: 0.78;
}

html[data-theme="dark"] .hero-bg,
html[data-theme="dark"] .hero-gradient-mask { 
  background: linear-gradient(to right, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.92) 36%, rgba(2, 6, 23, 0.55) 68%, rgba(2, 6, 23, 0.18) 100%),
              linear-gradient(to top, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.45) 35%, transparent 100%),
              linear-gradient(to bottom, rgba(2, 6, 23, 0.7) 0%, transparent 25%); 
}

/* IN LIGHT MODE: Keep Hero Backdrop Cinematic, Crisp and Saturated */
html[data-theme="light"] .hero-bg,
html[data-theme="light"] .hero-gradient-mask { 
  background: linear-gradient(to right, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.9) 36%, rgba(15, 23, 42, 0.5) 68%, rgba(15, 23, 42, 0.18) 100%),
              linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 35%, transparent 100%),
              linear-gradient(to bottom, rgba(15, 23, 42, 0.65) 0%, transparent 25%) !important; 
}

html[data-theme="light"] #hero {
  border-bottom: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
}

/* Preserve high-contrast white text on the Hero Spotlight */
#heroDetails #heroTitle,
#heroDetails #heroOverview,
#heroDetails #heroMeta span:not(#heroRating),
#heroDetails span:not(#heroRating),
#heroDetails #heroTypeBadge,
#heroDetails #heroWatchBtn,
#heroDetails #heroWatchBtn *,
#heroDetails .hero-btn-glow,
#heroDetails #heroTrailerBtn,
#heroDetails a,
#heroDetails button {
  color: #ffffff !important;
}

#heroDetails {
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
#heroDetails.slide-updating {
  opacity: 0;
  transform: translateY(8px);
}

/* Add To List Button on Hero (Frosted Glass Finish matching Hero Edges) */
#heroAddToListBtn {
  background-color: rgba(10, 12, 18, 0.42) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
#heroAddToListBtn * {
  color: #ffffff !important;
}
#heroAddToListBtn:hover {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Hero Slider Dots */
.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.slider-dot.active {
  width: 22px;
  background: #2563eb;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
}

.hero-btn-glow {
  background-color: #2563eb; 
  box-shadow: 0 0 16px 3px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-btn-glow:hover { 
  background-color: #1d4ed8; 
  box-shadow: 0 0 25px 8px rgba(59, 130, 246, 0.7); 
  transform: translateY(-2px); 
}

.active-tab { 
  color: #60a5fa !important; 
  font-weight: 700; 
  position: relative;
}

.active-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #3b82f6;
  border-radius: 9999px;
  box-shadow: 0 0 8px #3b82f6;
}

html[data-theme="light"] .active-tab { 
  color: #2563eb !important; 
}

.top10-tab-active { 
  background-color: rgba(37, 99, 235, 0.9) !important; 
  color: white !important; 
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

/* NAVBAR DROPDOWNS */
.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-menu {
  position: absolute; 
  top: 100%; 
  left: 0; 
  width: 200px; 
  background-color: #0d1527; 
  border: 1px solid rgba(255, 255, 255, 0.12); 
  border-radius: 0.85rem; 
  padding: 0.5rem 0;
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.6); 
  opacity: 0; 
  visibility: hidden;
  transform: translateY(10px); 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
  z-index: 60;
}

html[data-theme="light"] .nav-dropdown-menu { 
  background-color: #ffffff !important; 
  border: 1px solid #cbd5e1 !important; 
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important; 
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu { 
  opacity: 1; 
  visibility: visible; 
  transform: translateY(0); 
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem; 
  font-size: 0.825rem; 
  font-weight: 500; 
  color: #ffffff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; 
  cursor: pointer;
}

html[data-theme="light"] .nav-dropdown-item { color: #334155 !important; }
.nav-dropdown-item:hover { 
  background-color: rgba(37, 99, 235, 0.25); 
  color: #ffffff; 
  padding-left: 1.25rem; 
}
html[data-theme="light"] .nav-dropdown-item:hover { 
  background-color: #eff6ff !important; 
  color: #1d4ed8 !important; 
  padding-left: 1.25rem; 
}

/* QUICK GENRE PILLS (BLACK & BLUE) */
.quick-genre-pill {
  background: #0f172a !important; 
  color: #ffffff !important;
  border: 1px solid #334155 !important; 
  font-weight: 600; 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .quick-genre-pill { 
  background: #0f172a !important; 
  border: 1px solid #1e293b !important; 
  color: #ffffff !important; 
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15) !important;
}

.quick-genre-pill:hover, .quick-genre-pill.active { 
  background: #2563eb !important; 
  color: #ffffff !important; 
  border-color: #3b82f6 !important; 
  transform: translateY(-2px) scale(1.02); 
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.45) !important; 
}

/* PAGINATION (BLACK & BLUE) */
.pagination-btn {
  width: 42px; 
  height: 42px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  border-radius: 9999px; 
  background-color: #0f172a !important; 
  color: #ffffff !important; 
  font-size: 14px; 
  font-weight: 700; 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
  cursor: pointer; 
  border: 1px solid #334155 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .pagination-btn { 
  background-color: #0f172a !important; 
  color: #ffffff !important; 
  border: 1px solid #1e293b !important; 
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.15) !important;
}

.pagination-btn:hover:not(:disabled) { 
  background-color: #2563eb !important; 
  color: #ffffff !important; 
  border-color: #3b82f6 !important;
  transform: translateY(-2px); 
  box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.4) !important; 
}

.pagination-active { 
  background-color: #2563eb !important; 
  color: #ffffff !important; 
  border-color: #3b82f6 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.7) !important; 
}

html[data-theme="light"] .pagination-btn:hover:not(:disabled) {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

.pagination-active { 
  background-color: #3b82f6 !important; 
  color: #ffffff !important; 
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.7); 
}

/* CARDS AND HOVERS */
.movie-card-hover { 
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease; 
}

@media (hover: hover) and (pointer: fine) {
  .movie-card-hover:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.45); 
    border-color: rgba(59, 130, 246, 0.6);
  }
}

/* Touch screen devices: no jittering scale on touch/tap */
@media (hover: none) and (pointer: coarse) {
  .movie-card-hover:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
  .movie-card-hover:hover {
    transform: none;
    box-shadow: none;
  }
}

.glass-lock-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.movie-card-hover:hover .glass-lock-badge {
  background: rgba(37, 99, 235, 0.85);
  border-color: rgba(59, 130, 246, 0.8);
  transform: scale(1.05);
}

/* HOVER PREVIEW POPUP (Completely Disabled) */
#movieHoverPopup {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#movieHoverPopup.active { 
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* SIDEBAR MOBILE MENU */
#sideMenu { 
  background: rgba(3, 7, 18, 0.96); 
  backdrop-filter: blur(24px) saturate(180%); 
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.menu-open { 
  transform: translateX(0) !important; 
}

/* ==========================================================================
   SCROLLBAR CUSTOMIZATION (Visible, Modern & Easy-to-drag)
   ========================================================================== */
html {
  scrollbar-width: thin;
  scrollbar-color: #2563eb #0f172a;
}

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 9999px;
  border: 2px solid #0f172a;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  border-color: #0b0f19;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

::-webkit-scrollbar-thumb:active {
  background: #1d4ed8;
}

/* Light Mode Scrollbar */
html[data-theme="light"],
html:not([data-theme="dark"]) {
  scrollbar-color: #2563eb #e2e8f0;
}

html[data-theme="light"] ::-webkit-scrollbar-track,
html:not([data-theme="dark"]) ::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb,
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border: 2px solid #f1f5f9;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover,
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
}

/* ==========================================================================
   ✨ COMPREHENSIVE LIGHT / WHITE MODE COMPLETE FIXES
   High contrast text, vivid sharp images, elegant white glass styling
   ========================================================================== */

/* 1. Global Headings & Section Titles */
html[data-theme="light"] h1:not(#heroTitle):not(.keep-white),
html[data-theme="light"] h2:not(#heroTitle):not(.keep-white),
html[data-theme="light"] h3:not(#heroTitle):not(.keep-white),
html[data-theme="light"] h4:not(#heroTitle):not(.keep-white),
html[data-theme="light"] h5:not(#heroTitle):not(.keep-white),
html[data-theme="light"] h6:not(#heroTitle):not(.keep-white) {
  color: #0f172a !important;
}

/* 2. Text Content & Paragraphs */
html[data-theme="light"] p:not(#heroOverview):not(.keep-white) {
  color: #334155 !important;
}

html[data-theme="light"] .text-slate-100:not(#heroDetails *):not(.keep-white),
html[data-theme="light"] .text-slate-200:not(#heroDetails *):not(.keep-white),
html[data-theme="light"] .text-slate-300:not(#heroDetails *):not(.keep-white) {
  color: #334155 !important;
}

html[data-theme="light"] .text-slate-400:not(#heroDetails *):not(.keep-white) {
  color: #64748b !important;
}

html[data-theme="light"] .text-slate-500:not(#heroDetails *):not(.keep-white) {
  color: #475569 !important;
}

/* 3. Text White on Light Panels (excluding colored buttons/badges) */
html[data-theme="light"] a.text-white:not([class*="bg-blue"]):not([class*="bg-indigo"]):not([class*="bg-red"]):not([class*="bg-amber"]):not([class*="bg-emerald"]):not([class*="bg-purple"]):not([class*="bg-orange"]):not([class*="hero-"]):not(#heroDetails *):not(.keep-white),
html[data-theme="light"] span.text-white:not([class*="bg-blue"]):not([class*="bg-indigo"]):not([class*="bg-red"]):not([class*="bg-amber"]):not([class*="bg-emerald"]):not([class*="bg-purple"]):not([class*="bg-orange"]):not([class*="hero-"]):not(#heroDetails *):not(.keep-white) {
  color: #0f172a !important;
}

/* 4. Movie Cards in Light Mode: Crisp White Frame, Sharp Images */
html[data-theme="light"] .movie-card-hover {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .movie-card-hover:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 16px 24px -4px rgba(37, 99, 235, 0.18), 0 6px 10px -4px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="light"] .movie-card-hover .aspect-\[2\/3\] {
  background-color: #f1f5f9 !important;
}

html[data-theme="dark"] .movie-card-hover h5 {
  color: #f8fafc !important;
}

html[data-theme="light"] .movie-card-hover h5 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .movie-card-hover:hover h5 {
  color: #60a5fa !important;
}

html[data-theme="light"] .movie-card-hover:hover h5 {
  color: #2563eb !important;
}

html[data-theme="light"] .movie-card-hover span.text-slate-400 {
  color: #64748b !important;
}

/* 5. Top 10 Live List on Home Page */
html[data-theme="dark"] #top10List h5 {
  color: #f8fafc !important;
}

html[data-theme="light"] #top10List h5 {
  color: #0f172a !important;
  font-weight: 800 !important;
}

#top10List a {
  border-radius: 0.75rem;
}

html[data-theme="dark"] #top10List a:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="light"] #top10List a:hover {
  background-color: #f1f5f9 !important;
}

html[data-theme="dark"] #top10List a:hover h5 {
  color: #60a5fa !important;
}

html[data-theme="light"] #top10List a:hover h5 {
  color: #2563eb !important;
}

#top10List .top10-rank-num {
  color: #3b82f6 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] #top10List .top10-rank-num {
  color: #2563eb !important;
  font-weight: 900 !important;
}

html[data-theme="dark"] #top10List img {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background-color: #0b0f19 !important;
}

html[data-theme="light"] #top10List img {
  border: 1px solid #e2e8f0 !important;
  background-color: #f1f5f9 !important;
}

html[data-theme="dark"] .top10-btn {
  color: #cbd5e1 !important;
}

html[data-theme="light"] .top10-btn {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.top10-btn.top10-tab-active { 
  background-color: #2563eb !important; 
  color: #ffffff !important; 
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

html[data-theme="dark"] .top10-btn:not(.top10-tab-active) {
  color: #94a3b8 !important;
  background-color: transparent !important;
}

html[data-theme="light"] .top10-btn:not(.top10-tab-active) {
  color: #0f172a !important;
  background-color: transparent !important;
}

html[data-theme="dark"] .top10-btn:not(.top10-tab-active):hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="light"] .top10-btn:not(.top10-tab-active):hover {
  color: #2563eb !important;
  background-color: #dbeafe !important;
}

/* 6. Dark Container Class Conversion to Clean White Glass */
html[data-theme="light"] .bg-black\/30,
html[data-theme="light"] .bg-black\/40,
html[data-theme="light"] .bg-black\/50,
html[data-theme="light"] .bg-black\/60,
html[data-theme="light"] .bg-black\/70,
html[data-theme="light"] .bg-black\/80,
html[data-theme="light"] div:not(.min-h-screen):not(.admin-panel):not(.admin-panel *)[class*="bg-[#"],
html[data-theme="light"] .bg-\[\#0c1017\]\/40:not(.admin-panel *),
html[data-theme="light"] .bg-slate-900\/60:not(.admin-panel *),
html[data-theme="light"] .bg-slate-900\/80:not(.admin-panel *) {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02) !important;
}

/* Admin panel always dark - never affected by light mode overrides */
.admin-panel,
.admin-panel div,
.admin-panel span,
.admin-panel p,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-panel button,
.admin-panel a,
.admin-panel input,
.admin-panel textarea,
.admin-panel select {
  color-scheme: dark;
}
html[data-theme="light"] .admin-panel div[class*="bg-[#0b0c15]"] {
  background-color: rgba(11, 12, 21, 0.85) !important;
  border-color: rgba(255,255,255,0.1) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}
html[data-theme="light"] .admin-panel div[class*="bg-white/"] {
  background-color: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
}
html[data-theme="light"] .admin-panel .text-white { color: #ffffff !important; }
html[data-theme="light"] .admin-panel .text-slate-300 { color: #cbd5e1 !important; }
html[data-theme="light"] .admin-panel .text-slate-400 { color: #94a3b8 !important; }
html[data-theme="light"] .admin-panel .text-slate-500 { color: #64748b !important; }

html[data-theme="light"] div.min-h-screen,
html[data-theme="light"] body.bg-slate-950,
html[data-theme="light"] .min-h-screen[class*="bg-[#"] {
  background-color: transparent !important;
}

html[data-theme="light"] .border-white\/10,
html[data-theme="light"] .border-white\/15,
html[data-theme="light"] .border-white\/20,
html[data-theme="light"] .border-slate-800,
html[data-theme="light"] .border-slate-700,
html[data-theme="light"] .border-slate-700\/60,
html[data-theme="light"] .border-slate-700\/80,
html[data-theme="light"] .border-slate-800\/60,
html[data-theme="light"] .border-slate-800\/80 {
  border-color: #e2e8f0 !important;
}

/* 7. Fullscreen Background Image Overlays (Settings, Profile, Wishlist, Continue, Community, About) */
html[data-theme="light"] [class*="from-[#0d0f12]"] {
  background: linear-gradient(to top, rgba(248, 250, 252, 0.82) 0%, rgba(248, 250, 252, 0.68) 60%, rgba(248, 250, 252, 0.50) 100%) !important;
}

html[data-theme="light"] .fixed.inset-0.z-0 img {
  opacity: 0.65 !important;
  filter: contrast(1.05) saturate(1.15) !important;
}

/* 8. Header & Navigation in Light Mode */
html[data-theme="light"] header.glass-panel {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] header nav a {
  color: #334155 !important;
}

html[data-theme="light"] header nav a:hover,
html[data-theme="light"] header nav a.active-tab {
  color: #2563eb !important;
}

html[data-theme="light"] #miniSearchInput {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset !important;
}

html[data-theme="light"] #miniSearchInput::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] #miniSearchInput + i {
  color: #64748b !important;
}

html[data-theme="light"] #miniFilterToggleBtn {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="light"] #miniFilterToggleBtn:hover {
  background-color: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

html[data-theme="light"] #miniFilterDropdownMenu,
html[data-theme="light"] #miniSearchResults {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] #miniFilterDropdownMenu button {
  color: #334155 !important;
}

html[data-theme="light"] #miniFilterDropdownMenu button:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="light"] #miniSearchResults a {
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] #miniSearchResults a:hover {
  background-color: #f8fafc !important;
}

html[data-theme="light"] #miniSearchResults .text-white {
  color: #0f172a !important;
}

html[data-theme="light"] #miniSearchResults .text-slate-400 {
  color: #64748b !important;
}

html[data-theme="light"] button[onclick="toggleTheme()"],
html[data-theme="light"] #notifBellBtn {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] button[onclick="toggleTheme()"]:hover,
html[data-theme="light"] #notifBellBtn:hover {
  background-color: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* 9. Form Inputs, Select Boxes, and Textareas */
html[data-theme="light"] select {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

html[data-theme="light"] input[type="text"]:not(#miniSearchInput),
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] textarea {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] label {
  color: #1e293b !important;
}

/* 10. Hover Preview Popup (#movieHoverPopup) */
html[data-theme="light"] #movieHoverPopup {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="light"] #movieHoverPopup #popupTitle {
  color: #0f172a !important;
}

html[data-theme="light"] #movieHoverPopup #popupOverview {
  color: #334155 !important;
}

html[data-theme="light"] #movieHoverPopup .text-slate-200 {
  color: #1e293b !important;
}

html[data-theme="light"] #movieHoverPopup .text-slate-400,
html[data-theme="light"] #movieHoverPopup .text-slate-500 {
  color: #64748b !important;
}

html[data-theme="light"] #movieHoverPopup div.border-t {
  border-top-color: #e2e8f0 !important;
}

/* 11. Mobile Sidebar Menu (#sideMenu) */
html[data-theme="light"] #sideMenu {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #1e293b !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] #sideMenu .text-white {
  color: #0f172a !important;
}

html[data-theme="light"] #sideMenu a {
  color: #334155 !important;
}

html[data-theme="light"] #sideMenu a:hover {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}

html[data-theme="light"] #sideMenu .bg-black\/30,
html[data-theme="light"] #sideMenu .bg-black\/40 {
  background-color: #f8fafc !important;
}

/* 12. User Profile Dropdown (#userDropdownMenu) */
html[data-theme="light"] #userDropdownMenu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] #userDropdownMenu h3 {
  color: #0f172a !important;
}

html[data-theme="light"] #userDropdownMenu p.text-slate-400 {
  color: #64748b !important;
}

html[data-theme="light"] #userDropdownMenu a {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #userDropdownMenu a:hover {
  background-color: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}

/* 13. Footer in Light Mode */
html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] footer h4 {
  color: #0f172a !important;
}

html[data-theme="light"] footer a {
  color: #475569 !important;
}

html[data-theme="light"] footer a:hover {
  color: #2563eb !important;
}

html[data-theme="light"] footer span.text-white {
  color: #0f172a !important;
}

html[data-theme="light"] footer .text-slate-300 {
  color: #475569 !important;
}

html[data-theme="light"] footer .text-slate-400 {
  color: #64748b !important;
}

html[data-theme="light"] footer .bg-slate-900\/90 {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

/* 14. Subcategory Pills & Specific Widgets (BLACK & BLUE) */
.anime-sub-pill:not(.bg-white):not([class*="bg-cyan-500"]):not([class*="bg-orange"]),
.anime-sub-pill:not(.bg-white):not([class*="bg-cyan-500"]):not([class*="bg-orange"]) *,
html[data-theme="light"] .anime-sub-pill:not([class*="bg-orange"]):not(.bg-white):not([class*="bg-cyan-500"]),
html[data-theme="light"] .anime-sub-pill:not([class*="bg-orange"]):not(.bg-white):not([class*="bg-cyan-500"]) * {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

.anime-sub-pill:not(.bg-white):not([class*="bg-cyan-500"]):not([class*="bg-orange"]):hover,
.anime-sub-pill:not(.bg-white):not([class*="bg-cyan-500"]):not([class*="bg-orange"]):hover *,
html[data-theme="light"] .anime-sub-pill:not(.bg-white):not([class*="bg-cyan-500"]):not([class*="bg-orange"]):hover,
html[data-theme="light"] .anime-sub-pill:not(.bg-white):not([class*="bg-cyan-500"]):not([class*="bg-orange"]):hover * {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

html[data-theme="light"] .anime-sub-pill[class*="bg-orange"],
html[data-theme="light"] .anime-sub-pill[class*="bg-orange"] *,
.anime-sub-pill[class*="bg-orange"],
.anime-sub-pill[class*="bg-orange"] * {
  background-color: #ea580c !important;
  color: #ffffff !important;
  border-color: #f97316 !important;
}

.wishlist-filter-btn,
.wishlist-filter-btn *,
html[data-theme="light"] .wishlist-filter-btn:not(.bg-blue-600),
html[data-theme="light"] .wishlist-filter-btn:not(.bg-blue-600) * {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

.wishlist-filter-btn:hover,
.wishlist-filter-btn:hover *,
html[data-theme="light"] .wishlist-filter-btn:hover,
html[data-theme="light"] .wishlist-filter-btn:hover * {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

.wishlist-filter-btn.bg-blue-600,
.wishlist-filter-btn.bg-blue-600 *,
html[data-theme="light"] .wishlist-filter-btn.bg-blue-600,
html[data-theme="light"] .wishlist-filter-btn.bg-blue-600 * {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

/* 15. Cinema Stream Player (#cinemaContainer) in Light Mode (BLACK & BLUE BUTTONS) */
html[data-theme="light"] #pageBackdrop {
  opacity: 0.35 !important;
  filter: contrast(1.05) saturate(1.1) !important;
}

html[data-theme="light"] #pageBackdrop + div.fixed {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.8) 0%, rgba(248, 250, 252, 0.92) 50%, #f8fafc 100%) !important;
}

html[data-theme="light"] #cinemaContainer .glass-panel {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] #cinemaContainer .bg-slate-950\/95,
html[data-theme="light"] #cinemaContainer .bg-slate-950\/75 {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

html[data-theme="light"] #cinemaContainer #streamTitle,
html[data-theme="light"] #cinemaContainer h3 {
  color: #0f172a !important;
}

#cinemaContainer #serverBtn2,
#cinemaContainer #serverBtn3,
#cinemaContainer #prevEpBtn,
#cinemaContainer #nextEpBtn,
html[data-theme="light"] #cinemaContainer #serverBtn2,
html[data-theme="light"] #cinemaContainer #serverBtn3,
html[data-theme="light"] #cinemaContainer #prevEpBtn,
html[data-theme="light"] #cinemaContainer #nextEpBtn {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

#cinemaContainer #serverBtn2:hover,
#cinemaContainer #serverBtn3:hover,
#cinemaContainer #prevEpBtn:hover,
#cinemaContainer #nextEpBtn:hover,
html[data-theme="light"] #cinemaContainer #serverBtn2:hover,
html[data-theme="light"] #cinemaContainer #serverBtn3:hover,
html[data-theme="light"] #cinemaContainer #prevEpBtn:hover,
html[data-theme="light"] #cinemaContainer #nextEpBtn:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

#episodesPillsGrid,
html[data-theme="light"] #episodesPillsGrid {
  background-color: rgba(15, 23, 42, 0.05) !important;
  border-color: #cbd5e1 !important;
}

#episodesPillsGrid button,
html[data-theme="light"] #episodesPillsGrid button {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#episodesPillsGrid button:hover,
#episodesPillsGrid button.active-ep,
html[data-theme="light"] #episodesPillsGrid button:hover,
html[data-theme="light"] #episodesPillsGrid button.active-ep {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

#theaterModeBtn,
html[data-theme="light"] #theaterModeBtn {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

#theaterModeBtn:hover,
html[data-theme="light"] #theaterModeBtn:hover {
  background-color: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* 16. Media Details Page (BLACK & BLUE BUTTONS) */
html[data-theme="light"] #detailBackdropFull {
  opacity: 0.35 !important;
  filter: contrast(1.05) saturate(1.1) !important;
}

html[data-theme="light"] #detailBackdropFull + div,
html[data-theme="light"] #detailBackdropFull ~ div {
  background: linear-gradient(to top, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.8) 60%, rgba(248, 250, 252, 0.6)) !important;
}

html[data-theme="light"] #detailTitle {
  color: #0f172a !important;
}

html[data-theme="light"] #detailOverview {
  color: #334155 !important;
}

html[data-theme="light"] #detailGenres span {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

#detailWatchlistBtn,
html[data-theme="light"] #detailWatchlistBtn {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}

#detailWatchlistBtn:hover,
html[data-theme="light"] #detailWatchlistBtn:hover {
  background-color: #2563eb !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* 17. User Profile & Settings Drawer and Badges */
html[data-theme="light"] #avatarDrawer {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] #avatarDrawer p {
  color: #0f172a !important;
}

html[data-theme="light"] #avatarDrawer img {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
}

label[for="firebaseAvatarUpload"],
html[data-theme="light"] label[for="firebaseAvatarUpload"] {
  background-color: #2563eb !important;
  border: 1px solid #3b82f6 !important;
  color: #ffffff !important;
}

label[for="firebaseAvatarUpload"]:hover,
html[data-theme="light"] label[for="firebaseAvatarUpload"]:hover {
  background-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

button[onclick="toggleAvatarDrawer()"],
html[data-theme="light"] button[onclick="toggleAvatarDrawer()"] {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

button[onclick="toggleAvatarDrawer()"]:hover,
html[data-theme="light"] button[onclick="toggleAvatarDrawer()"]:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

html[data-theme="light"] div[class*="overflow-x-auto"] a:not([class*="from-blue"]) {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

html[data-theme="light"] div[class*="overflow-x-auto"] a:not([class*="from-blue"]):hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

/* 18. About Us Highlights and Info Cards */
html[data-theme="light"] .fixed.inset-0.z-0 > div[style*="radial-gradient"] {
  background: radial-gradient(circle, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0.8) 70%, rgba(248, 250, 252, 0.95) 100%) !important;
}

/* 19. Download Page Subtitle Links (BLACK & BLUE) */
a[id*="subLink"],
html[data-theme="light"] a[id*="subLink"] {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}

a[id*="subLink"]:hover,
html[data-theme="light"] a[id*="subLink"]:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}




/* ==========================================================================
   20. WHITE THEME POLISH & SIDEBAR WIDGETS
   ========================================================================== */

/* Sections in Light Theme - Transparent so the page's translucent background shows through with NO dark gaps */
html[data-theme="light"] #trendingSection,
html[data-theme="light"] #newToMovieSelectSection,
html[data-theme="light"] #trendingAnimeTrack,
html[data-theme="light"] #trendingMoviesTrack,
html[data-theme="light"] #trendingTvTrack,
html[data-theme="light"] #newMoviesTrack {
  background: transparent !important;
  border-color: rgba(226, 232, 240, 0.75) !important;
}

/* Carousel Item Links: 100% transparent wrappers with no black box */
#trendingSection a,
#newToMovieSelectSection a,
html[data-theme="light"] #trendingSection a,
html[data-theme="light"] #newToMovieSelectSection a,
html[data-theme="dark"] #trendingSection a,
html[data-theme="dark"] #newToMovieSelectSection a {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Carousel poster cards in Light Mode - Crisp light border and clean background */
html[data-theme="light"] #trendingSection a > div:last-child,
html[data-theme="light"] #newToMovieSelectSection a > div:last-child {
  border-color: #e2e8f0 !important;
  background-color: #ffffff !important;
}

/* Movie, Anime, TV & Episode Cards in Light Theme */
html[data-theme="light"] [class*="bg-[#0c0d14]"],
html[data-theme="light"] [class*="bg-[#0b0f19]"],
html[data-theme="light"] [class*="bg-[#080c14]"],
html[data-theme="light"] [class*="bg-[#06070a]"],
html[data-theme="light"] .movie-card-hover,
html[data-theme="light"] #latestEpisodesGrid a,
html[data-theme="light"] #scheduleCardsGrid a,
html[data-theme="light"] #myListsContent a {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] [class*="bg-[#0c0d14]"]:hover,
html[data-theme="light"] .movie-card-hover:hover,
html[data-theme="light"] #latestEpisodesGrid a:hover,
html[data-theme="light"] #scheduleCardsGrid a:hover,
html[data-theme="light"] #myListsContent a:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.09) !important;
}

html[data-theme="light"] [class*="bg-[#0c0d14]"] h4,
html[data-theme="light"] .movie-card-hover h4,
html[data-theme="light"] #latestEpisodesGrid h4,
html[data-theme="light"] #scheduleCardsGrid h4,
html[data-theme="light"] #myListsContent h4 {
  color: #0f172a !important;
}

/* Sidebar Widgets: TOP RATED & JUST FINISHED */
.sidebar-widget-box {
  transition: all 0.2s ease;
}

html[data-theme="light"] .sidebar-widget-box {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .sidebar-widget-title {
  color: #0f172a !important;
}

/* Sidebar Item Cards - Dark Navy Glass with high-contrast White Text in BOTH Themes */
.sidebar-item-card,
html[data-theme="light"] .sidebar-item-card,
html[data-theme="dark"] .sidebar-item-card {
  background: #0c0d14 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.sidebar-item-card:hover,
html[data-theme="light"] .sidebar-item-card:hover,
html[data-theme="dark"] .sidebar-item-card:hover {
  background: #172554 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
}

/* Titles: ALWAYS pure white and bold with text shadow so it is 100% visible over the image */
.sidebar-item-title,
.sidebar-item-card .sidebar-item-title,
html[data-theme="light"] .sidebar-item-title,
html[data-theme="dark"] .sidebar-item-title,
html[data-theme="light"] .sidebar-item-card .sidebar-item-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.sidebar-item-card:hover .sidebar-item-title,
html[data-theme="light"] .sidebar-item-card:hover .sidebar-item-title,
html[data-theme="dark"] .sidebar-item-card:hover .sidebar-item-title {
  color: #60a5fa !important;
}

.sidebar-item-meta,
.sidebar-item-meta *,
html[data-theme="light"] .sidebar-item-meta,
html[data-theme="light"] .sidebar-item-meta *,
html[data-theme="dark"] .sidebar-item-meta,
html[data-theme="dark"] .sidebar-item-meta * {
  color: #cbd5e1 !important;
}

.sidebar-item-meta .meta-type-badge,
html[data-theme="light"] .sidebar-item-meta .meta-type-badge,
html[data-theme="dark"] .sidebar-item-meta .meta-type-badge {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.sidebar-item-meta .meta-score,
.sidebar-item-meta .meta-score *,
html[data-theme="light"] .sidebar-item-meta .meta-score,
html[data-theme="light"] .sidebar-item-meta .meta-score *,
html[data-theme="dark"] .sidebar-item-meta .meta-score,
html[data-theme="dark"] .sidebar-item-meta .meta-score * {
  color: #facc15 !important;
}

.sidebar-secondary-bg,
html[data-theme="light"] .sidebar-secondary-bg,
html[data-theme="dark"] .sidebar-secondary-bg {
  filter: grayscale(100%) !important;
  opacity: 0.22 !important;
}

/* Search Filter Pill (All ˅) - Always crisp white text on dark button */
#miniFilterToggleBtn,
#miniFilterToggleBtn *,
#miniFilterToggleBtnMobile,
#miniFilterToggleBtnMobile *,
#miniFilterLabel,
#miniFilterLabelMobile,
html[data-theme="light"] #miniFilterToggleBtn,
html[data-theme="light"] #miniFilterToggleBtn *,
html[data-theme="light"] #miniFilterToggleBtnMobile,
html[data-theme="light"] #miniFilterToggleBtnMobile * {
  color: #ffffff !important;
  background-color: #0f172a !important;
}

/* Vertical Carousel Title Strip:
   Light Mode: Clean White Shape (#ffffff) + Bold Black Text (#0f172a) + Vibrant Blue Number
   Dark Mode: Dark Navy Shape (#0c0d14) + Crisp White Text (#ffffff) + Cyan Number
*/
.carousel-vertical-strip {
  transition: all 0.2s ease;
}

/* Light Theme: White Shape & Black Text */
html[data-theme="light"] .carousel-vertical-strip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .carousel-vertical-title,
html[data-theme="light"] .carousel-vertical-title * {
  color: #0f172a !important;
  text-shadow: none !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .group:hover .carousel-vertical-title {
  color: #2563eb !important;
}

html[data-theme="light"] .carousel-vertical-num {
  color: #2563eb !important;
  font-weight: 900 !important;
}

/* Dark Theme: Dark Shape & White Text */
html[data-theme="dark"] .carousel-vertical-strip,
.carousel-vertical-strip {
  background: #0c0d14 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .carousel-vertical-title,
html[data-theme="dark"] .carousel-vertical-title *,
.carousel-vertical-title,
.carousel-vertical-title * {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95) !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .group:hover .carousel-vertical-title,
.group:hover .carousel-vertical-title {
  color: #60a5fa !important;
}

html[data-theme="dark"] .carousel-vertical-num,
.carousel-vertical-num {
  color: #60a5fa !important;
  font-weight: 900 !important;
}

/* Continue Watching - Resume Button in Light & Dark Mode */
a[href*="/details/"][class*="bg-orange"],
a[href*="/details/"][class*="bg-orange"] *,
html[data-theme="light"] a[href*="/details/"][class*="bg-orange"],
html[data-theme="light"] a[href*="/details/"][class*="bg-orange"] *,
html[data-theme="dark"] a[href*="/details/"][class*="bg-orange"],
html[data-theme="dark"] a[href*="/details/"][class*="bg-orange"] * {
  background-color: #ea580c !important;
  color: #ffffff !important;
}

a[href*="/details/"][class*="bg-orange"]:hover,
html[data-theme="light"] a[href*="/details/"][class*="bg-orange"]:hover,
html[data-theme="dark"] a[href*="/details/"][class*="bg-orange"]:hover {
  background-color: #c2410c !important;
  color: #ffffff !important;
}

/* Spotlight Hero Badges and Buttons - High Contrast Visible Colors */
#heroDetails #heroMeta span,
#heroDetails #heroMeta .hero-meta-badge,
#heroDetails #heroType,
html[data-theme="light"] #heroDetails #heroMeta span,
html[data-theme="light"] #heroDetails #heroType {
  background: rgba(0, 0, 0, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

#heroDetails #heroRating,
html[data-theme="light"] #heroDetails #heroRating {
  color: #facc15 !important;
}

#heroDetails #heroTrailerBtn,
html[data-theme="light"] #heroDetails #heroTrailerBtn {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
#heroDetails #heroTrailerBtn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

/* Hero Section text visibility in light mode */
html[data-theme="light"] #heroTitle,
html[data-theme="light"] #heroDetails h2,
html[data-theme="light"] #heroDetails p,
html[data-theme="light"] #heroDetails .hero-btn-glow,
html[data-theme="light"] #heroDetails .hero-btn-glow * {
  color: #ffffff !important;
}

html[data-theme="light"] #heroOverview {
  color: #e2e8f0 !important;
}

/* Schedule & My Lists tab buttons in light mode */
html[data-theme="light"] .schedule-day-btn:not(.schedule-tab-active) {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .schedule-day-btn.schedule-tab-active {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="light"] .my-list-tab:not([class*="bg-blue-600"]) {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .my-list-tab[class*="bg-blue-600"] {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* Hover popup in light theme */
html[data-theme="light"] #movieHoverPopup {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

html[data-theme="light"] #movieHoverPopup #popupTitle {
  color: #0f172a !important;
}

html[data-theme="light"] #movieHoverPopup #popupOverview {
  color: #334155 !important;
}

html[data-theme="light"] #movieHoverPopup div.border-t {
  border-color: #e2e8f0 !important;
}

/* ==========================================================================
   21. MOVIESELECT STRICT BLACK & WHITE ANIME STREAMING UI STYLES
   ========================================================================== */

/* Modern Anime Card Structure (Black & White) */
.anime-card-modern {
  background: #0f0f11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.anime-card-modern:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 36px -8px rgba(255, 255, 255, 0.12);
}

/* Hover Circular Play Button Overlay (Monochrome) */
.card-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.anime-card-modern:hover .card-play-overlay {
  opacity: 1;
}

.card-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.6);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anime-card-modern:hover .card-play-circle {
  transform: scale(1.08);
}

/* Dual Sub & Dub Pill Badges (Monochrome) */
.badge-sub-pill {
  background: #ffffff;
  color: #000000;
  font-weight: 900;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
}

.badge-dub-pill {
  background: #1e1e1e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-left: none;
  font-weight: 900;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 0 4px 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
}

/* Rank Number Badge for Top 10 (Monochrome Outline) */
.rank-numeral {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.85;
  font-style: italic;
  font-family: 'Sora', 'Inter', sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
}

.group:hover .rank-numeral {
  -webkit-text-stroke: 1.5px #ffffff;
  color: rgba(255, 255, 255, 0.3);
}

.rank-gold,
.rank-silver,
.rank-bronze {
  -webkit-text-stroke: 1.5px #ffffff !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

/* Light Mode Overrides for Modern Anime UI */
html[data-theme="light"] .anime-card-modern {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .anime-card-modern:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 28px -6px rgba(56, 189, 248, 0.25) !important;
}

html[data-theme="light"] .anime-card-modern h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .rank-numeral {
  -webkit-text-stroke: 1.5px rgba(15, 23, 42, 0.3) !important;
}



/* ---- Watch History Section (Reference AniWatch / MovieSelect Style) ---- */
#watchHistorySection {
  background: transparent;
}

/* Section Header Title (Always White) */
.history-section-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  margin: 0;
}
html[data-theme="light"] .history-section-title {
  color: #ffffff !important;
}

/* "View Full History >" Button (Always White Text) */
.history-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
}
.history-view-all-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

html[data-theme="light"] .history-view-all-btn {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .history-view-all-btn:hover {
  background: rgba(15, 23, 42, 0.95) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}

/* History Card Container (Dark Navy card in both themes for crisp white text) */
.history-card-box {
  background: #11141c;
  border: 1px solid #1f293d;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none !important;
}
.history-card-box:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .history-card-box {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
html[data-theme="light"] .history-card-box:hover {
  transform: translateY(-2px);
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25) !important;
}

/* History Card Title text (Crisp White in ALL themes) */
.history-card-title {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html[data-theme="light"] .history-card-title {
  color: #ffffff !important;
}

/* "View More" Card */
.history-view-more-card {
  background: #11141c;
  border: 1px solid #1f293d;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.history-view-more-card:hover {
  border-color: #3b82f6;
  color: #3b82f6 !important;
  background: #151a24;
}

html[data-theme="light"] .history-view-more-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
html[data-theme="light"] .history-view-more-card:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  color: #3b82f6 !important;
}

/* Trending & Carousel Section Headings in Light Theme - Force White */
html[data-theme="light"] #trendingSection h3,
html[data-theme="light"] #trendingSection h2:not(.text-blue-500),
html[data-theme="light"] #newToMovieSelectSection h2 {
  color: #ffffff !important;
}

/* ============================================================
   ADMIN PANEL - ALWAYS DARK, IMMUNE TO ALL LIGHT MODE RULES
   ============================================================ */
.admin-panel { color-scheme: dark; }

html[data-theme="light"] .admin-panel *,
html[data-theme="light"] .admin-panel h1,
html[data-theme="light"] .admin-panel h2,
html[data-theme="light"] .admin-panel h3,
html[data-theme="light"] .admin-panel h4,
html[data-theme="light"] .admin-panel h5,
html[data-theme="light"] .admin-panel h6 {
  color: unset;
}
html[data-theme="light"] .admin-panel .text-white,
html[data-theme="light"] .admin-panel [class*="text-white"] { color: #ffffff !important; }
html[data-theme="light"] .admin-panel [class*="text-slate-100"] { color: #f1f5f9 !important; }
html[data-theme="light"] .admin-panel [class*="text-slate-200"] { color: #e2e8f0 !important; }
html[data-theme="light"] .admin-panel [class*="text-slate-300"] { color: #cbd5e1 !important; }
html[data-theme="light"] .admin-panel [class*="text-slate-400"] { color: #94a3b8 !important; }
html[data-theme="light"] .admin-panel [class*="text-slate-500"] { color: #64748b !important; }
html[data-theme="light"] .admin-panel [class*="text-blue-4"] { color: #60a5fa !important; }
html[data-theme="light"] .admin-panel [class*="text-purple-4"] { color: #c084fc !important; }
html[data-theme="light"] .admin-panel [class*="text-pink-4"] { color: #f472b6 !important; }
html[data-theme="light"] .admin-panel [class*="text-amber-4"] { color: #fbbf24 !important; }
html[data-theme="light"] .admin-panel [class*="text-emerald-4"] { color: #34d399 !important; }
html[data-theme="light"] .admin-panel [class*="text-cyan-4"] { color: #22d3ee !important; }
html[data-theme="light"] .admin-panel [class*="text-rose-4"] { color: #fb7185 !important; }
html[data-theme="light"] .admin-panel [class*="text-red-4"] { color: #f87171 !important; }
html[data-theme="light"] .admin-panel [class*="text-green-4"] { color: #4ade80 !important; }

html[data-theme="light"] .admin-panel div[class*="bg-[#0b0c15]"],
html[data-theme="light"] .admin-panel div[class*="bg-[#07080c]"] {
  background-color: rgba(11, 12, 21, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
}
html[data-theme="light"] .admin-panel div[class*="bg-white/[0.0"],
html[data-theme="light"] .admin-panel div[class*="bg-white/5"],
html[data-theme="light"] .admin-panel div[class*="bg-white/[0.1"],
html[data-theme="light"] .admin-panel div[class*="bg-white/10"],
html[data-theme="light"] .admin-panel div[class*="bg-white/[0.2"],
html[data-theme="light"] .admin-panel div[class*="bg-white/20"] {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}
html[data-theme="light"] .admin-panel input,
html[data-theme="light"] .admin-panel textarea,
html[data-theme="light"] .admin-panel select {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
html[data-theme="light"] .admin-panel table { background: transparent !important; }
html[data-theme="light"] .admin-panel th { color: #94a3b8 !important; background: transparent !important; }
html[data-theme="light"] .admin-panel td { color: #cbd5e1 !important; border-color: rgba(255,255,255,0.08) !important; }
html[data-theme="light"] .admin-panel tr { background: transparent !important; }
html[data-theme="light"] .admin-panel tr:hover { background-color: rgba(255,255,255,0.03) !important; }

/* ==========================================================================
   22. STRICT BLACK & WHITE MONOCHROME OVERRIDES (NOIR / LUXURY STREAMING)
   ========================================================================== */

/* Universal Background & Surface Tones (Pure Blacks & Deep Grays) */
body, html {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Primary Action Buttons: Pure White with Black Typography */
.bg-blue-600:not([style*="background"]),
.bg-blue-500:not([style*="background"]),
.bg-cyan-500:not([style*="background"]),
.bg-cyan-400:not([style*="background"]),
.bg-orange-600:not([style*="background"]),
.bg-orange-500:not([style*="background"]),
.bg-purple-600:not([style*="background"]),
.bg-purple-500:not([style*="background"]),
.bg-gradient-to-r.from-blue-600:not([style*="background"]),
.bg-gradient-to-r.from-cyan-400:not([style*="background"]),
.bg-gradient-to-r.from-cyan-500:not([style*="background"]),
a[class*="from-cyan-400"]:not([style*="background"]),
button[class*="from-cyan-400"]:not([style*="background"]),
.pagination-active,
#heroWatchNowBtn {
  background: #ffffff !important;
  background-image: none !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25) !important;
}

.bg-blue-600:not([style*="background"]):hover,
.bg-blue-500:not([style*="background"]):hover,
.bg-cyan-500:not([style*="background"]):hover,
.bg-cyan-400:not([style*="background"]):hover,
.bg-orange-600:not([style*="background"]):hover,
.bg-orange-500:not([style*="background"]):hover,
.bg-purple-600:not([style*="background"]):hover,
.bg-purple-500:not([style*="background"]):hover,
.bg-gradient-to-r.from-blue-600:not([style*="background"]):hover,
.bg-gradient-to-r.from-cyan-400:not([style*="background"]):hover,
.bg-gradient-to-r.from-cyan-500:not([style*="background"]):hover,
a[class*="from-cyan-400"]:not([style*="background"]):hover,
button[class*="from-cyan-400"]:not([style*="background"]):hover,
#heroWatchNowBtn:hover {
  background: #e5e5e5 !important;
  color: #000000 !important;
  transform: scale(1.03);
}

.bg-blue-600:not([style*="background"]) *,
.bg-blue-500:not([style*="background"]) *,
.bg-cyan-500:not([style*="background"]) *,
.bg-cyan-400:not([style*="background"]) *,
.bg-orange-600:not([style*="background"]) *,
.bg-orange-500:not([style*="background"]) *,
.bg-purple-600:not([style*="background"]) *,
.bg-purple-500:not([style*="background"]) *,
.bg-gradient-to-r.from-blue-600:not([style*="background"]) *,
.bg-gradient-to-r.from-cyan-400:not([style*="background"]) *,
.bg-gradient-to-r.from-cyan-500:not([style*="background"]) *,
a[class*="from-cyan-400"]:not([style*="background"]) *,
button[class*="from-cyan-400"]:not([style*="background"]) *,
.pagination-active *,
#heroWatchNowBtn * {
  color: #000000 !important;
}

/* Solid White Buttons, Badges, Dock Icons & Active Tabs: Guarantee Crisp Dark Contrast */
button.bg-white,
a.bg-white,
span.bg-white,
.dock-icon.bg-white,
.bg-white.text-black,
.bg-white\/95,
.bg-white\/90,
.discover-hdr-btn.active {
  color: #000000 !important;
}

button.bg-white *,
a.bg-white *,
span.bg-white *,
.dock-icon.bg-white *,
.bg-white.text-black *,
.bg-white\/95 *,
.bg-white\/90 *,
.discover-hdr-btn.active * {
  color: #000000 !important;
}

/* Secondary Actions & Dark Pills: Pure Black / Deep Neutral with White Border */
.bg-slate-900,
.bg-slate-900\/60,
.bg-slate-900\/80,
.bg-slate-950,
.bg-\[\#121318\],
.bg-\[\#14161f\],
.bg-\[\#161720\],
.bg-\[\#1a1c24\],
.bg-\[\#0b0c0f\] {
  background-color: #0a0a0c !important;
}

/* Colored Text Classes to Crisp White or Silver */
.text-blue-500,
.text-blue-400,
.text-blue-300,
.text-cyan-400,
.text-cyan-300,
.text-orange-500,
.text-orange-400,
.text-purple-400,
.text-purple-300,
.text-pink-400,
.text-pink-300,
.text-indigo-400,
.text-indigo-300,
.text-emerald-400,
.text-emerald-300,
.text-green-400,
.text-amber-400,
.text-amber-300,
.text-yellow-400 {
  color: #ffffff !important;
}

/* Text Hover Micro-interactions: Glow White */
.hover\:text-blue-400:hover,
.hover\:text-cyan-400:hover,
.hover\:text-cyan-300:hover,
.group:hover .group-hover\:text-cyan-400,
.group:hover .group-hover\:text-blue-400,
.group:hover .group-hover\:text-purple-400 {
  color: #ffffff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6) !important;
}

/* Colored Borders to Crisp Silver/White */
.border-blue-500,
.border-blue-400,
.border-cyan-500,
.border-cyan-400,
.border-cyan-400\/30,
.border-cyan-500\/30,
.border-orange-500,
.border-orange-500\/30,
.border-purple-500,
.border-amber-400\/30,
.border-emerald-500\/30,
.border-indigo-500\/30 {
  border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Sub & Dub and Meta Badges (Strict Monochrome High Contrast) */
.badge-sub-pill {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 900 !important;
}
.badge-sub-pill * {
  color: #000000 !important;
}

.badge-dub-pill {
  background: #18181b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-left: none !important;
  font-weight: 900 !important;
}
.badge-dub-pill * {
  color: #ffffff !important;
}

/* Quality HD Badge & Ratings */
.glass-lock-badge,
[class*="text-cyan-400 bg-cyan-500/10"],
[class*="bg-cyan-500/10"] {
  background: rgba(0, 0, 0, 0.75) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Active Filter Tabs & Subcategory Pills (Pure White Active State) */
.anime-sub-pill.bg-white,
.anime-sub-pill.bg-cyan-500,
.anime-sub-pill[class*="bg-cyan-500"],
.anime-sub-pill.bg-orange-600,
.quick-genre-pill.active,
.sched-day-btn.bg-cyan-500 {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2) !important;
}

.anime-sub-pill.bg-white *,
.anime-sub-pill.bg-cyan-500 *,
.anime-sub-pill.bg-orange-600 *,
.quick-genre-pill.active *,
.sched-day-btn.bg-cyan-500 * {
  color: #000000 !important;
}

/* Spotlight Pill */
#animeSpotlightPill,
#homeSpotlightPill,
#heroSpotlightPill,
#discoverSpotlightPill {
  background: rgba(10, 12, 18, 0.38) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

#animeSpotlightPill *,
#homeSpotlightPill *,
#heroSpotlightPill *,
#discoverSpotlightPill * {
  color: #ffffff !important;
}

/* Glowing Circles & Hover Overlays */
.card-play-circle {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.7) !important;
}

.card-play-circle * {
  color: #000000 !important;
}

/* Top 10 Stylized Numerals (Pure White Chrome Stroke) */
.rank-numeral,
.rank-gold,
.rank-silver,
.rank-bronze {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45) !important;
  color: transparent !important;
}

.group:hover .rank-numeral,
.group:hover .rank-gold,
.group:hover .rank-silver,
.group:hover .rank-bronze {
  -webkit-text-stroke: 1.5px #ffffff !important;
  color: rgba(255, 255, 255, 0.25) !important;
}

/* Brand Accent Bar on Section Headers */
span[class*="bg-gradient-to-b from-cyan-400"],
span[class*="bg-gradient-to-b from-blue-500"] {
  background: #ffffff !important;
  color: #ffffff !important;
}

.site-logo-accent {
  background: transparent !important;
  color: #ffffff !important;
}

