/* ═══════════════════════════════════════════════════════════
   SubCine — Premium Dark Glassmorphism CSS
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --bg:           #08050f;
  --bg-2:         #0d0919;
  --surface:      rgba(15, 10, 25, 0.65);
  --surface-2:    rgba(30, 20, 50, 0.7);
  --surface-hover:rgba(40, 28, 65, 0.8);

  --primary:      #e11d48;
  --primary-dark: #be123c;
  --primary-glow: rgba(225, 29, 72, 0.25);
  --secondary:    #f59e0b;

  --text:         #f0eaf8;
  --text-secondary:#b8aac8;
  --text-muted:   #6b5f7a;

  --border:       rgba(255, 255, 255, 0.07);
  --border-accent:rgba(225, 29, 72, 0.4);

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-full:  9999px;

  --transition:      all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.18s ease;

  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 30px rgba(225, 29, 72, 0.3);

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --navbar-h:     68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Radial background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(225, 29, 72, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

.hidden { display: none !important; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: var(--radius-full); }

/* ── Utility ─────────────────────────────────────────────── */
.title-accent { color: var(--primary); }

/* ════════════════════════════════════════════════════════════
   NAVBAR
════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 1000;
  background: transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.navbar.scrolled {
  background: rgba(8, 5, 15, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

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

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-sub  { color: var(--text); }
.logo-cine { background: linear-gradient(135deg, var(--primary), #f43f5e, #fb923c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.07);
}
.nav-link.active { color: var(--primary); }

/* Search */
.search-wrapper {
  position: relative;
  margin-left: auto;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  transition: var(--transition);
  width: 220px;
}
.search-bar:focus-within {
  border-color: var(--border-accent);
  background: rgba(255,255,255,0.08);
  width: 280px;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  min-width: 0;
}
.search-bar input::placeholder { color: var(--text-muted); }

.search-clear { padding: 0; color: var(--text-muted); display: flex; }
.search-clear svg { width: 14px; height: 14px; }
.search-clear:hover { color: var(--text); }

/* Suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-height: 480px;
  overflow-y: auto;
  background: rgba(10, 6, 20, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  z-index: 1001;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: slideDown 0.15s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover,
.suggestion-item.highlighted {
  background: rgba(225,29,72,0.08);
  border-left: 2px solid var(--primary);
  padding-left: calc(1rem - 2px);
}

.suggestion-poster { width: 38px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--surface-2); }
.suggestion-title { font-size: 0.875rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.suggestion-meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 3px; flex-wrap: wrap; }
.suggestion-type {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 6px; border-radius: var(--radius-full);
  background: rgba(225,29,72,0.15); color: var(--primary); border: 1px solid var(--border-accent);
}
.suggestion-meta span { font-size: 0.72rem; color: var(--text-muted); }
.suggestion-rating { color: #fbbf24 !important; font-weight: 600 !important; }

/* Search results meta + load more */
.search-meta { font-size: 0.78rem; color: var(--text-muted); margin-left: auto; }

.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.search-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.empty-search svg { width: 48px; height: 48px; opacity: 0.3; margin-bottom: 0.5rem; }
.empty-search h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); }
.empty-search p { font-size: 0.875rem; }

.load-more-wrap { display: flex; justify-content: center; padding: 2rem 0 1rem; }
.load-more-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 2rem; font-size: 0.875rem;
}
.load-more-btn svg { width: 16px; height: 16px; }
.load-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}


/* Mobile hamburger */
.mobile-menu-btn { display: none; color: var(--text); padding: 0.4rem; }
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* ════════════════════════════════════════════════════════════
   HERO BANNER
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.06);
  transition: background-image 0.8s ease;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.12); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(8,5,15,0.6) 40%, rgba(8,5,15,0.1) 75%, transparent 100%),
    linear-gradient(to right, rgba(8,5,15,0.8) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 3rem 4rem;
  max-width: 700px;
}

.hero-badge-wrap { margin-bottom: 1rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(225,29,72,0.15);
  border: 1px solid var(--border-accent);
  color: #f43f5e;
  backdrop-filter: blur(8px);
}
.hero-badge svg { width: 12px; height: 12px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--secondary);
  font-weight: 600;
}
.star-svg { width: 14px; height: 14px; }

.hero-dot { color: var(--text-muted); }

.hero-overview {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  outline: none;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 24px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 36px rgba(225,29,72,0.5);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.hero-btn { padding: 0.85rem 2rem; }

/* pulse animation for stream button */
.pulse-btn {
  animation: pulseBtn 2.5s ease infinite;
}
@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 4px 24px var(--primary-glow); }
  50%       { box-shadow: 0 4px 40px rgba(225,29,72,0.7); }
}

/* ════════════════════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════════════════════ */
.main-content {
  position: relative;
  z-index: 1;
  padding: 2rem 0 4rem;
}

/* ── Content Section ─────────────────────────────────────── */
.content-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  margin-bottom: 1.2rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Carousel ────────────────────────────────────────────── */
.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 2rem 1rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(15,10,25,0.88);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-50%) scale(1.1);
}
.arrow-left  { left: 0.4rem; }
.arrow-right { right: 0.4rem; }

/* ── Movie Card ──────────────────────────────────────────── */
.movie-card {
  flex: 0 0 175px;
  scroll-snap-align: start;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  outline: none;
}
.movie-card:hover, .movie-card:focus-visible {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px var(--border-accent);
}
.movie-card:hover .card-poster { transform: scale(1.06); }

.card-poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-2);
}

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

.card-rating {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(0,0,0,0.75);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-full);
  color: var(--secondary);
  backdrop-filter: blur(4px);
}
.card-rating svg { width: 10px; height: 10px; }

.card-type-tag {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(225,29,72,0.85);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.card-info { padding: 0.65rem 0.7rem; }
.card-title { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-year  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Content Grid (Category/Search) ─────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  padding: 0 2rem;
}

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton-card { flex: 0 0 175px; border-radius: var(--radius-md); overflow: hidden; }
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease infinite;
}
@keyframes skeletonPulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-poster  { aspect-ratio: 2/3; width: 100%; }
.skeleton-text    { height: 14px; margin: 8px 8px 0; border-radius: 4px; }
.skeleton-text-sm { height: 10px; margin: 4px 8px 8px; width: 60%; border-radius: 4px; }

/* ── Error / Empty State ─────────────────────────────────── */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-muted);
  text-align: center;
}
.error-state svg { width: 48px; height: 48px; color: var(--primary-dark); }

/* ════════════════════════════════════════════════════════════
   DETAIL MODAL
════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  position: relative;
  max-width: 1300px;
  margin: 2rem auto;
  background: rgba(10, 6, 20, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.9);
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: calc(100vh - 4rem);
}
@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-backdrop-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.12;
  filter: blur(40px);
}

.modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
  backdrop-filter: blur(6px);
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }

/* Modal Layout */
.modal-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: calc(100vh - 4rem);
}

/* LEFT — Info Panel */
.modal-info-panel {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(100vh - 4rem);
  scrollbar-width: thin;
  scrollbar-color: var(--primary-dark) transparent;
  display: flex;
  gap: 1.5rem;
}

.modal-poster-wrap {
  flex-shrink: 0;
  width: 160px;
}
.modal-poster {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
  border: 1px solid var(--border);
}

.modal-details { flex: 1; min-width: 0; }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.modal-tagline {
  font-size: 0.85rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

/* Rating */
.modal-rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.rating-stars { display: flex; gap: 3px; }
.star-filled  { color: #fbbf24; }
.star-half    { color: #fbbf24; opacity: 0.6; }
.star-empty   { color: var(--text-muted); }
.rating-star  { width: 16px; height: 16px; }

.rating-value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Meta row */
.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Genres */
.modal-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.genre-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(225,29,72,0.1);
  border: 1px solid rgba(225,29,72,0.25);
  color: #f43f5e;
}

/* Overview */
.modal-overview-section { margin-bottom: 1.2rem; }
.modal-overview-section h4,
.modal-cast-section h4,
.modal-similar-section h4,
.episode-header h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.modal-overview { font-size: 0.875rem; line-height: 1.7; color: var(--text-secondary); }

/* Cast */
.modal-cast-section { margin-bottom: 1.2rem; }

.cast-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.cast-carousel::-webkit-scrollbar { display: none; }

.cast-card {
  flex: 0 0 70px;
  text-align: center;
}
.cast-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.4rem;
  border: 2px solid var(--border);
  transition: var(--transition-fast);
}
.cast-card:hover .cast-avatar { border-color: var(--primary); }
.cast-name { font-size: 0.62rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cast-character { font-size: 0.58rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Similar */
.modal-similar-section { margin-bottom: 1rem; }

.similar-carousel {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.similar-carousel::-webkit-scrollbar { display: none; }

.similar-card {
  flex: 0 0 90px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition-fast);
}
.similar-card img { aspect-ratio: 2/3; width: 100%; object-fit: cover; }
.similar-card:hover { transform: scale(1.07); box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
.similar-title { font-size: 0.65rem; padding: 0.25rem 0.2rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* RIGHT — Player Panel */
.modal-player-panel {
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.5);
  border-left: 1px solid var(--border);
  position: sticky;
  top: 0;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.player-container {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  flex-shrink: 0;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(0.3);
  transform: scale(1.1);
}

.player-placeholder-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.stream-btn { padding: 0.9rem 2rem; font-size: 1rem; }
.stream-btn svg { width: 22px; height: 22px; }

/* Artplayer */
.artplayer-wrap {
  position: absolute;
  inset: 0;
  background: #000;
}

/* Stream Status */
.stream-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.status-dot.searching { background: var(--secondary); animation: pulseDot 1s ease infinite; }
.status-dot.found     { background: #22c55e; }
.status-dot.error     { background: var(--primary); }

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ════════════════════════════════════════════════════════════
   CATEGORY HERO — shared base (Movies / TV / Anime)
════════════════════════════════════════════════════════════ */
.cat-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  transition: background 2s ease;
}
.cat-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 70%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

/* 🎬 Movies — deep crimson / amber cinematic */
.cat-hero--movie .cat-hero-bg {
  background: linear-gradient(135deg, #1a0808 0%, #2d1200 40%, #1a0f00 100%);
}
.cat-hero--movie .cat-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(225, 75, 20, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
}
.cat-hero--movie .cat-hero-title {
  background: linear-gradient(135deg, #fff 20%, #fb923c 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cat-hero--movie .cat-badge { color: #fb923c; border-color: rgba(251,146,60,0.4); background: rgba(251,146,60,0.1); }
.cat-hero--movie .cat-search-bar:focus-within { border-color: rgba(251,146,60,0.5); box-shadow: 0 0 0 3px rgba(251,146,60,0.12); }

/* 📺 TV Series — deep ocean blue / teal */
.cat-hero--tv .cat-hero-bg {
  background: linear-gradient(135deg, #040f1f 0%, #071a2e 40%, #051520 100%);
}
.cat-hero--tv .cat-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 40%, rgba(14, 165, 233, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(99, 102, 241, 0.10) 0%, transparent 60%);
}
.cat-hero--tv .cat-hero-title {
  background: linear-gradient(135deg, #fff 20%, #38bdf8 60%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cat-hero--tv .cat-badge { color: #38bdf8; border-color: rgba(56,189,248,0.4); background: rgba(56,189,248,0.08); }
.cat-hero--tv .cat-search-bar:focus-within { border-color: rgba(56,189,248,0.4); box-shadow: 0 0 0 3px rgba(56,189,248,0.10); }

/* Shared content layout */
.cat-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2.5rem;
  width: 100%;
  text-align: center;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(225,29,72,0.10);
  border: 1px solid var(--border-accent);
  color: #f43f5e;
  margin-bottom: 1rem;
}

.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, #f43f5e 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.cat-hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cat-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}
.cat-search-bar:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.cat-search-bar svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.cat-search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.9rem; font-family: var(--font-body);
}
.cat-search-bar input::placeholder { color: var(--text-muted); }
.cat-sections-wrap { padding-bottom: 2rem; }

/* ════════════════════════════════════════════════════════════
   ANIME SECTION
════════════════════════════════════════════════════════════ */
.anime-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0;
}

.anime-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0533 0%, #0d1a33 50%, #1a1a0d 100%);
  transition: background 2s ease;
}
.anime-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(225,29,72,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(99,102,241,0.1) 0%, transparent 70%);
}
/* Floating sakura particle effect */
.anime-hero::before {
  content: '🌸 ✨ 🎌 ⚔️ 🌸 ✨ 🎴 🌸';
  position: absolute;
  top: 10px; left: 0; right: 0;
  text-align: center;
  font-size: 1.5rem;
  opacity: 0.06;
  letter-spacing: 2rem;
  pointer-events: none;
}

.anime-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2.5rem;
  width: 100%;
  text-align: center;
}

.anime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(225,29,72,0.12);
  border: 1px solid var(--border-accent);
  color: #f43f5e;
  margin-bottom: 1rem;
}

.anime-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, #f43f5e 70%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.anime-hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.anime-search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}
.anime-search-bar:focus-within {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.anime-search-bar svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.anime-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.anime-search-bar input::placeholder { color: var(--text-muted); }

.anime-sections-wrap { padding-bottom: 2rem; }

/* Episode Section */
.episode-section {
  border-top: 1px solid var(--border);
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
}

/* ── Dub / Audio Selector ────────────────────────────────── */
.dub-section {
  border-top: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.2);
}

.dub-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.dub-header svg { width: 14px; height: 14px; color: var(--primary); }

.dub-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}
.dub-pill:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: rgba(225, 29, 72, 0.1);
}
.dub-pill.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
}
.dub-pill .dub-flag {
  font-size: 0.9rem;
  line-height: 1;
}


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

.season-select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}
.season-select:focus { border-color: var(--border-accent); }

.episode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-dark) transparent;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
}
.episode-card:hover, .episode-card.active {
  background: rgba(225,29,72,0.12);
  border-color: var(--border-accent);
}

.episode-number { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.episode-title  { font-size: 0.72rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(0,0,0,0.3);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.footer-brand .logo-sub, .footer-brand .logo-cine {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); opacity: 0.6; }

/* ════════════════════════════════════════════════════════════
   LIVE IPTV TV
════════════════════════════════════════════════════════════ */
.livetv-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: calc(var(--navbar-h) + 1.5rem);
  height: 100vh;
  min-height: 500px;
  box-sizing: border-box;
}

.livetv-sidebar {
  display: flex;
  flex-direction: column;
  background: rgba(15, 10, 25, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  padding: 1.25rem;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.livetv-section-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.livetv-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.livetv-category-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.livetv-category-btn:hover {
  border-color: var(--border-accent);
  color: var(--text);
  background: rgba(225, 29, 72, 0.08);
}

.livetv-category-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.livetv-channels {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-dark) transparent;
}

.livetv-channel-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.livetv-channel-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.livetv-channel-card.active {
  background: rgba(225, 29, 72, 0.12);
  border-color: var(--border-accent);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.15);
}

.livetv-channel-logo-sm {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.livetv-channel-card-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.livetv-player-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
  overflow: hidden;
}

.livetv-player-container {
  flex: 1;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 240px;
}

.livetv-player-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #08050f;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.livetv-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.livetv-placeholder-icon svg { width: 32px; height: 32px; }

.livetv-player-placeholder h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.livetv-player-placeholder p {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 320px;
}

.livetv-artplayer-wrap {
  width: 100%;
  height: 100%;
}

.livetv-channel-details {
  background: rgba(15, 10, 25, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  padding: 1.25rem;
  flex-shrink: 0;
}

.livetv-channel-info-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.livetv-channel-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px;
}

.livetv-channel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.livetv-channel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.livetv-channel-category {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  align-self: flex-start;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-player-panel {
    position: static;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .player-container { aspect-ratio: 16/9; }
}

@media (max-width: 992px) {
  .navbar-inner { gap: 1rem; }
  .nav-links { gap: 0; }
  .nav-link { padding: 0.4rem 0.65rem; font-size: 0.8rem; }
  .search-bar { width: 180px; }
  .search-bar:focus-within { width: 230px; }
  .hero-content { padding: 2rem 2rem 3rem; }
  
  .livetv-container {
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    padding-top: calc(var(--navbar-h) + 1.25rem);
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--navbar-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(8,5,15,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    display: none;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-link { width: 100%; padding: 0.65rem 1rem; border-radius: var(--radius-sm); }

  .search-wrapper { margin-left: 0; }
  .search-bar { width: 160px; }
  .search-bar:focus-within { width: 200px; }
  .search-suggestions { right: 0; left: auto; width: 280px; }

  .modal-info-panel { flex-direction: column; padding: 1.5rem; gap: 1rem; }
  .modal-poster-wrap { width: 130px; }
  .movie-card { flex: 0 0 155px; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }

  .livetv-container {
    grid-template-columns: 1fr;
    height: auto;
    min-height: none;
    gap: 1.5rem;
    padding-top: calc(var(--navbar-h) + 1rem);
  }
  .livetv-sidebar {
    height: 320px;
  }
  .livetv-player-container {
    aspect-ratio: 16/9;
    flex: none;
    height: auto;
  }
}

@media (max-width: 600px) {
  .hero { height: 80vh; }
  .hero-content { padding: 1.5rem 1.5rem 2.5rem; }
  .hero-title { font-size: 1.8rem; }
  .hero-overview { -webkit-line-clamp: 2; }
  .hero-actions { flex-direction: column; gap: 0.6rem; }
  .hero-btn { width: 100%; justify-content: center; }

  .section-header, .content-grid { padding: 0 1rem; }
  .carousel-track { padding: 0.5rem 1rem 1rem; }

  .movie-card { flex: 0 0 135px; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 0.85rem; }

  .modal-container { margin: 0; border-radius: 0; min-height: 100vh; }
  .modal-info-panel { padding: 1.2rem; }
  .modal-poster-wrap { width: 110px; }
  .modal-title { font-size: 1.25rem; }

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