/* ═══════════════════════════════════════════════════════════
   CINEHUB — REDESIGNED STYLES
   Aesthetic: Dark Luxury Cinema / Editorial Noir
   Fonts: Cormorant Garamond (display) + DM Sans (body)
═══════════════════════════════════════════════════════════ */

:root {
  /* Core palette */
  --bg:          #08080b;
  --surface:     #0f0f14;
  --surface2:    #161620;
  --surface3:    #1d1d28;
  --border:      rgba(255,255,255,0.06);
  --border-soft: rgba(255,255,255,0.04);

  /* Accent system */
  --accent:      #c8102e;
  --accent-glow: rgba(200,16,46,0.25);
  --accent2:     #e8304a;
  --gold:        #d4a843;
  --gold-soft:   rgba(212,168,67,0.15);

  /* Typography */
  --text:        #e8e8ec;
  --text-dim:    #7a7a8e;
  --text-muted:  #444455;
  --text-bright: #f5f5fa;

  /* Spacing & Shape */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   5px;
  --nav-h:       64px;
  --trans:       0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow:  0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════════
   BACKGROUND PARTICLES
══════════════════════════════════════════ */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(8,8,11,0.92) 0%, rgba(8,8,11,0.6) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--trans-slow), box-shadow var(--trans-slow);
}

.main-nav.scrolled {
  background: rgba(8,8,11,0.97);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 5px;
  line-height: 1;
  position: relative;
  cursor: default;
  user-select: none;
}

.logo-cine { color: var(--text-bright); }
.logo-hub  {
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
}

.logo-pulse {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
  position: relative;
}

.nav-btn i {
  font-size: 12px;
  transition: var(--trans);
}

.nav-btn:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.05);
}

.nav-btn.active {
  color: var(--text-bright);
  background: rgba(200,16,46,0.1);
}

.nav-btn.active i { color: var(--accent); }

.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-dim);
  transition: var(--trans);
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8,8,11,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 16px 20px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--trans);
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════
   HEADER / HERO
══════════════════════════════════════════ */
#dynamic-header {
  position: relative;
  height: 90vh;
  min-height: 560px;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
  padding-top: var(--nav-h);
  /* script.js sets backgroundImage directly on this element */
  background-color: var(--surface);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: background-image 1.5s ease;
}

/* Animated scale layer sits on top and inherits the bg from parent via JS copy */
.header-bg {
  position: absolute;
  inset: -8%;
  background: inherit;
  background-size: cover;
  background-position: center top;
  animation: header-ken-burns 22s ease-in-out infinite alternate;
  /* ensures the bg div is always behind overlays */
  z-index: 0;
}

@keyframes header-ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, -0.5%); }
}

.header-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,11,0.95) 0%, rgba(8,8,11,0.5) 50%, rgba(8,8,11,0.1) 100%),
    linear-gradient(to top, rgba(8,8,11,1) 0%, rgba(8,8,11,0.6) 30%, transparent 70%);
  z-index: 1;
}

/* Film grain overlay */
.header-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.header-content {
  position: relative;
  z-index: 3;
  padding: 0 60px;
  max-width: 680px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.25);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--accent);
}

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

.header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-bright);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.header-title em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(135deg, #e8e8ec 0%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
}

.header-tagline {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.3px;
  margin-bottom: 32px;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.header-play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  cursor: pointer;
  transition: var(--trans);
  box-shadow: 0 8px 32px rgba(200,16,46,0.35);
  letter-spacing: 0.3px;
}

.header-play-btn:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200,16,46,0.45);
}

.header-play-btn i { font-size: 11px; }

.header-info-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  cursor: pointer;
  transition: var(--trans);
  backdrop-filter: blur(10px);
  letter-spacing: 0.3px;
}

.header-info-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.header-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%       { transform: scaleY(1); opacity: 1; }
}

/* ══════════════════════════════════════════
   ADBLOCK NOTICE
══════════════════════════════════════════ */
.adblock-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15,15,20,0.8);
  border: 1px solid rgba(212,168,67,0.2);
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
  z-index: 10;
}

.adblock-icon {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}

.adblock-notice strong { color: var(--text); }

.adblock-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 4px;
  transition: var(--trans);
}
.adblock-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ══════════════════════════════════════════
   CONTENT SECTIONS
══════════════════════════════════════════ */
.content-section {
  display: none;
  padding: 36px 0 80px;
  position: relative;
  z-index: 1;
}

.content-section.active { display: block; animation: section-fade 0.4s ease; }

@keyframes section-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section header / Sub-nav ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-nav {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
}

.snav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

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

.snav-btn.active {
  background: var(--surface3);
  color: var(--text-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.snav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── Telegram Join Button ── */
.telegram-join-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a2740 0%, #162032 100%);
  border: 1px solid rgba(41,182,246,0.25);
  border-radius: var(--radius);
  padding: 9px 14px 9px 12px;
  text-decoration: none;
  transition: var(--trans);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.telegram-join-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,182,246,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: var(--trans);
}

.telegram-join-btn:hover {
  border-color: rgba(41,182,246,0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(41,182,246,0.12);
}

.telegram-join-btn:hover::before { opacity: 1; }

.tg-icon {
  width: 28px;
  height: 28px;
  color: #29b6f6;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(41,182,246,0.4));
}

.tg-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tg-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #e8e8ec;
  white-space: nowrap;
  line-height: 1.3;
}

.tg-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: rgba(41,182,246,0.7);
  white-space: nowrap;
  line-height: 1.3;
}

.tg-arrow {
  color: rgba(41,182,246,0.5);
  font-size: 10px;
  margin-left: 2px;
  transition: var(--trans);
}

.telegram-join-btn:hover .tg-arrow {
  color: #29b6f6;
  transform: translateX(2px);
}

/* ── Filters bar ── */
.filters-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Search zone */
.search-zone {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-field-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  transition: var(--trans);
}

.search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 44px 10px 40px;
  outline: none;
  transition: var(--trans);
}

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

.search-input:focus {
  border-color: rgba(200,16,46,0.4);
  background: var(--surface3);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.06);
}

.search-input:focus + .search-icon,
.search-field-wrap:focus-within .search-icon { color: var(--accent); }

.search-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
  transition: var(--trans);
}
.search-clear:hover { color: var(--text); }

.search-btn {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(200,16,46,0.25);
}

.search-btn:hover {
  background: var(--accent2);
  box-shadow: 0 6px 20px rgba(200,16,46,0.35);
}

/* Filter chips row */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
  transition: var(--trans);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555566'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-select.compact { min-width: 110px; }
.filter-select:focus { border-color: rgba(200,16,46,0.35); color: var(--text); }
.filter-select option { background: var(--surface2); }

.filter-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.pill-btn {
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
}

.pill-btn.accent {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(200,16,46,0.2);
}

.pill-btn.accent:hover {
  background: var(--accent2);
  box-shadow: 0 6px 20px rgba(200,16,46,0.3);
}

.pill-btn.ghost {
  background: var(--surface2);
  border-color: var(--border);
  color: var(--text-dim);
}

.pill-btn.ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: var(--surface3);
}

.pill-btn.icon-only { padding: 7px 12px; }

/* ── Suggestions dropdown ── */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  z-index: 500;
  display: none;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--trans);
  font-size: 13.5px;
}

.suggestion-item:hover { background: var(--surface3); }

.suggestion-item i {
  color: var(--accent);
  font-size: 11px;
  width: 14px;
  flex-shrink: 0;
}

.suggestion-name { color: var(--text); font-weight: 500; flex: 1; }
.suggestion-year { color: var(--text-muted); font-size: 12px; }

/* ══════════════════════════════════════════
   LOADING STATES
══════════════════════════════════════════ */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* Script calls loadEl.classList.add('hidden') to hide it */
.loading-state.hidden { display: none !important; }

/* script.js calls loadEl.classList.add('hidden') to hide */
.loading-state.hidden { display: none !important; }

.loader-ring {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 44px;
}

.loader-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 36px;
  height: 36px;
  margin: 4px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: loader-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring div:nth-child(1) { animation-delay: -0.45s; }
.loader-ring div:nth-child(2) { animation-delay: -0.3s; border-top-color: rgba(200,16,46,0.5); }
.loader-ring div:nth-child(3) { animation-delay: -0.15s; border-top-color: rgba(200,16,46,0.25); }

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

/* ══════════════════════════════════════════
   CONTENT GRID & CARDS
══════════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 18px;
}

.content-card {
  background: #18181f;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.28s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.09);
}

/* ── Poster ── */
.poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: #1d1d28;
  flex-shrink: 0;
}
.content-card:hover .poster { transform: scale(1.05); }

/* Poster wrapper */
.card-poster-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #1d1d28;
}
.card-poster-wrap img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.content-card:hover .card-poster-wrap img { transform: scale(1.05); }

/* Bookmark / watchlist button — top-right of poster */
.watchlist-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 5;
  background: rgba(10,10,14,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: var(--trans);
}
.watchlist-btn:hover {
  color: var(--gold);
  border-color: rgba(212,168,67,0.5);
  background: rgba(212,168,67,0.12);
}
.watchlist-btn.added,
.watchlist-btn.in-watchlist {
  color: var(--gold);
  border-color: rgba(212,168,67,0.45);
  background: rgba(212,168,67,0.12);
}

/* ── Info panel ── */
.card-info {
  padding: 11px 12px 4px;
  background: #18181f;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title — full width, up to 2 lines */
.card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #e8e8ec;
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Year (left) + Star rating (right) on same row */
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 4px;
}

.card-year {
  font-size: 11px;
  color: #6b6b80;
  font-weight: 400;
}

.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}
.card-rating i { font-size: 10px; }

.card-dot { display: none; }

/* Language label on card */
.card-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.card-lang i { font-size: 9px; color: var(--accent); }

/* Genre tags row */
.card-genres {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.genre-tag {
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 700;
  color: #e8304a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Fix 6 — clickable genre tags */
.clickable-genre {
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}
.clickable-genre:hover {
  background: rgba(200,16,46,0.28);
  border-color: rgba(200,16,46,0.55);
  color: #fff;
}

/* Fix 4 — poster click hint */
.poster { cursor: pointer; }

/* Fix 3 & 8 — red back button */
.back-btn {
  background: var(--accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(200,16,46,0.3);
}
.back-btn:hover {
  background: #f02040 !important;
  transform: translateY(-1px);
}

/* Fix 7 — card highlight pulse when More Info clicked */
@keyframes card-highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent), 0 16px 40px rgba(0,0,0,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(200,16,46,0.3), 0 16px 40px rgba(0,0,0,0.6); }
}
.card-highlight {
  animation: card-highlight-pulse 0.7s ease 3;
  border-color: var(--accent) !important;
}

/* ── Action row: [▶ Watch / Episodes] [🎬] [👥] ── */
.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 12px;
  margin-top: auto;
}

.btn-watch {
  flex: 1;
  min-width: 0;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  height: 36px;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--trans), box-shadow var(--trans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 3px 14px rgba(200,16,46,0.35);
  letter-spacing: 0.1px;
}
.btn-watch i { font-size: 10px; flex-shrink: 0; }
.btn-watch:hover {
  background: #f02040;
  box-shadow: 0 5px 18px rgba(200,16,46,0.45);
}

.btn-icon,
.btn-similar,
.btn-cast {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
  flex-shrink: 0;
}
.btn-icon:hover,
.btn-similar:hover,
.btn-cast:hover {
  color: #e8e8ec;
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
}

/* ── Continue watching bar ── */
.continue-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px 6px;
}

.progress-bar-mini {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-mini-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.continue-ep-label {
  font-size: 11px;
  color: #555566;
  padding: 0 12px 4px;
}

.continue-source {
  font-size: 10px;
  color: #444455;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 4px;
}

/* ── Load More ── */
.load-more-wrap {
  margin-top: 48px;
  text-align: center;
}

.load-more-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 40px;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--trans);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.load-more-btn i { font-size: 12px; animation: bounce-down 2s ease infinite; }

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0);
  transition: background var(--trans-slow);
}

/* Similar modal sits above streaming modal */
#similar-modal { z-index: 2100; }

.modal.open {
  display: flex;
  animation: modal-backdrop 0.3s ease forwards;
}

@keyframes modal-backdrop {
  from { background: rgba(0,0,0,0); }
  to   { background: rgba(0,0,0,0.75); }
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  animation: modal-slide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
}

@keyframes modal-slide {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-box.wide { max-width: 940px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--trans);
  z-index: 5;
}

.modal-close:hover { color: var(--text); background: var(--surface3); border-color: rgba(255,255,255,0.1); }

.modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-heading i { color: var(--accent); font-size: 18px; }

.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--text-bright);
  letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════
   STREAMING MODAL
══════════════════════════════════════════ */
.streaming-modal .modal-box.streaming-box {
  max-width: 1060px;
}

.streaming-info {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Hero section built by buildStreamingInfo() */
.streaming-hero {
  position: relative;
  min-height: 120px;
  background: var(--surface2) center/cover no-repeat;
}

/* Streaming hero — stronger overlay for text readability (Fix 5) */
.streaming-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,11,0.98) 0%, rgba(8,8,11,0.85) 55%, rgba(8,8,11,0.6) 100%),
    linear-gradient(to bottom, transparent 0%, rgba(8,8,11,0.5) 100%);
}

.streaming-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  padding: 20px;
  align-items: flex-start;
}

.streaming-poster {
  width: 72px;
  min-width: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.streaming-details { flex: 1; }

.streaming-details h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 6px;
  line-height: 1.2;
}

.streaming-year {
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 400;
}

.streaming-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
  align-items: center;
  margin-bottom: 8px;
}

.streaming-meta span { display: flex; align-items: center; gap: 4px; }
.streaming-meta .gold { color: var(--gold); font-weight: 700; }

.streaming-overview {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.streaming-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 6px;
}

/* Episode Nav */
.episode-nav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 20px;
}

.ep-nav-btn {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ep-nav-btn:hover:not(:disabled) { color: var(--text); border-color: rgba(255,255,255,0.15); }
.ep-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.ep-label {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Sources */
.sources-section {
  margin-bottom: 20px;
}

.sources-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sources-header h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sources-header h3 i { color: var(--accent); }

.badge {
  background: rgba(200,16,46,0.12);
  border: 1px solid rgba(200,16,46,0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 10px;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.source-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 12px;
  cursor: pointer;
  transition: var(--trans);
  text-align: center;
}

.source-card:hover {
  border-color: rgba(200,16,46,0.4);
  background: rgba(200,16,46,0.06);
  transform: translateY(-2px);
}

.source-card.last-used {
  border-color: rgba(212,168,67,0.5);
  background: var(--gold-soft);
}

.source-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.source-card-cta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Player */
.player-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

/* Outer wrap holds iframe + subtitle overlay together */
.player-iframe-wrap-outer {
  position: relative;
}

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

/* ── Subtitle Overlay ── */
.subtitle-overlay {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  padding: 0 10%;
}

.subtitle-text {
  display: inline-block;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  padding: 6px 16px;
  border-radius: 4px;
  max-width: 100%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ── Subtitle Floating Panel ── */
.subtitle-panel-float {
  position: absolute;
  bottom: 50px;
  right: 16px;
  width: 280px;
  background: rgba(14,14,20,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 20;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  animation: subtitle-pop 0.18s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes subtitle-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.subtitle-panel-header {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subtitle-panel-header i { color: var(--accent); }

.subtitle-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subtitle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-row label {
  font-size: 11.5px;
  color: var(--text-dim);
  min-width: 74px;
  flex-shrink: 0;
}

.subtitle-time-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.subtitle-time-input {
  background: var(--surface3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 5px 8px;
  width: 68px;
  outline: none;
}
.subtitle-time-input:focus { border-color: var(--accent); }

.offset-display {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  min-width: 32px;
  text-align: center;
}

.sub-load-btn {
  width: 100%;
  justify-content: center;
  font-size: 12px;
  padding: 7px 10px;
}

.subtitle-status {
  font-size: 11px;
  color: var(--text-muted);
  min-height: 16px;
  line-height: 1.4;
}

/* ── CC Button in player meta bar ── */
.cc-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xs);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--trans);
  letter-spacing: 0.3px;
}

.cc-btn:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.cc-btn.active {
  color: var(--accent);
  border-color: rgba(200,16,46,0.4);
  background: rgba(200,16,46,0.1);
}

.player-meta {
  background: var(--surface2);
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
}

.source-name-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 8px;
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.source-name-badge:empty { display: none; }

/* ══════════════════════════════════════════
   EPISODE MODAL INTERNALS
══════════════════════════════════════════ */
.episode-header {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.episode-show-poster {
  width: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.episode-show-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--text-bright);
}

.episode-show-info p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.resume-notice {
  margin-top: 12px;
  padding: 9px 13px;
  background: rgba(200,16,46,0.08);
  border: 1px solid rgba(200,16,46,0.2);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-select-wrap {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-select-wrap label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.season-select-wrap select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.episode-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
  display: flex;
  gap: 12px;
  padding: 10px;
  align-items: flex-start;
}

.episode-card:hover { border-color: rgba(200,16,46,0.35); background: rgba(200,16,46,0.04); }
.episode-card.resume-ep { border-color: rgba(212,168,67,0.4); }

.episode-still {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.episode-info-text h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.4;
}

.episode-info-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ep-rating {
  font-size: 10px;
  color: var(--gold);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-soft);
  border: 1px solid rgba(212,168,67,0.3);
  color: var(--gold);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ── Continue Watching ── */
.continue-card .progress-bar-mini {
  height: 2px;
  background: var(--surface2);
  border-radius: 2px;
  margin: 6px 0;
  overflow: hidden;
}

.progress-bar-mini-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.continue-ep-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.continue-source {
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

/* ── Cast ── */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

.cast-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--trans);
  text-align: center;
}

.cast-card:hover { border-color: rgba(200,16,46,0.3); transform: translateY(-3px); }
.cast-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }

.cast-card-info { padding: 9px 8px 11px; }
.cast-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.cast-character { font-size: 11px; color: var(--text-muted); }
.cast-search-hint { font-size: 10px; color: var(--accent); display: block; margin-top: 4px; }

/* ── Actor detail ── */
.actor-header { display: flex; gap: 24px; margin-bottom: 28px; }
.actor-photo {
  width: 120px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.actor-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.actor-info p { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; }

/* ══════════════════════════════════════════
   NOTIFICATION
══════════════════════════════════════════ */
.notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 30px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
}

.notification.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.notification.success { border-color: rgba(76,187,92,0.35); color: #5ec96a; }
.notification.error   { border-color: rgba(200,16,46,0.35); color: var(--accent2); }
.notification.warning { border-color: rgba(212,168,67,0.35); color: var(--gold); }
.notification.info    { border-color: rgba(100,160,255,0.35); color: #6eaaff; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

/* footer brand column — inherits layout from grid */

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 5px;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-logo span { color: var(--accent); }

.footer-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: var(--trans);
}

.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  text-align: right;
}

.footer-copy p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ══════════════════════════════════════════
   EXISTING SCRIPT.JS COMPATIBILITY CLASSES
══════════════════════════════════════════ */

/* Cards built by script.js */
.card-poster-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Inline rating stars */
.star-rating { color: var(--gold); font-size: 11px; }

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.no-results h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.no-results p { font-size: 14px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .footer-copy { text-align: left; }
  .footer-tmdb { justify-content: flex-start; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-drawer { display: flex; }

  #dynamic-header {
    height: 60vh;
    min-height: 420px;
    padding-bottom: 52px;
  }

  .header-content { padding: 0 24px; }

  .header-title { font-size: clamp(36px, 9vw, 60px); }

  .header-play-btn, .header-info-btn { padding: 11px 20px; font-size: 13px; }

  .container { padding: 0 16px; }

  .section-nav { flex-wrap: wrap; }

  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 12px;
  }

  .filters-bar { padding: 14px 16px; }

  .filter-chips { gap: 6px; }

  .filter-select { font-size: 12px; padding: 6px 10px; }

  .player-iframe-wrap iframe { height: 240px; }

  .modal-box { padding: 20px 18px; }

  .episodes-grid { grid-template-columns: 1fr; }

  .cast-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-copy { text-align: left; }
  .footer-tmdb { justify-content: flex-start; }

  .footer-nav { justify-content: flex-start; gap: 16px; }

  .sources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .content-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .header-badge { font-size: 10px; }
  .filter-actions { flex-wrap: wrap; }
  .streaming-info { flex-direction: column; }
  .actor-header { flex-direction: column; }
  .actor-photo { width: 100px; }
}