/* ═══════════════════════════════════════════════════════════════
   MUNDO OTAKU LATINO — DESIGN SYSTEM v2.0
   Unifica TODOS los estilos en un solo archivo maestro.
   Estética: Dark Anime Streaming (Crunchyroll-inspired)
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Background System */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --bg-elevated: #16162a;
  --bg-glass: rgba(18, 18, 26, 0.85);
  --bg-overlay: rgba(10, 10, 15, 0.7);

  /* Accent Colors — Anime Neon Palette */
  --accent-primary: #ff5cad;
  --accent-secondary: #ff8a80;
  --accent-orange: #ff6b35;
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-gradient: linear-gradient(135deg, #ff5cad, #ff6b35);
  --accent-gradient-purple: linear-gradient(135deg, #8b5cf6, #6366f1);
  --accent-gradient-cyber: linear-gradient(135deg, #ff5cad, #8b5cf6, #3b82f6);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-accent: #ff5cad;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(255, 92, 173, 0.3);
  --border-glow: rgba(255, 92, 173, 0.5);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 92, 173, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(255, 92, 173, 0.3);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 1100px;
  --header-height: 64px;
  --sidebar-width: 280px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 500;
  --z-overlay: 800;
  --z-modal: 1000;
  --z-toast: 1200;
  --z-max: 9999;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ── UTILITY: CONTAINER ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── NAVBAR — GLASSMORPHISM ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: var(--z-header);
  transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  border-bottom-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  position: relative;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #ff5cad 0%, #ff8a80 25%, #ff6b35 50%, #ff5cad 75%, #ff8a80 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: logoTextShimmer 3s ease-in-out infinite;
}

.navbar__logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1;
  animation: logoIconGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 92, 173, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar__logo:hover img {
  transform: scale(1.15) rotate(-3deg);
  filter: drop-shadow(0 0 14px rgba(255, 92, 173, 0.8)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.4));
  animation: logoIconGlowIntense 1s ease-in-out infinite;
}

.navbar__logo span {
  background: linear-gradient(90deg, #ff5cad 0%, #ff8a80 25%, #ff6b35 50%, #ff5cad 75%, #ff8a80 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoTextShimmer 3s ease-in-out infinite;
}

.navbar__logo:hover {
  animation-play-state: paused;
}

/* ── LOGO ANIMATIONS ──────────────────────────────────────── */
@keyframes logoIconGlow {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 92, 173, 0.3)) drop-shadow(0 0 12px rgba(255, 107, 53, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(255, 92, 173, 0.6)) drop-shadow(0 0 24px rgba(255, 107, 53, 0.3));
  }
}

@keyframes logoIconGlowIntense {
  0%, 100% {
    filter: drop-shadow(0 0 14px rgba(255, 92, 173, 0.7)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.4)) drop-shadow(0 0 50px rgba(139, 92, 246, 0.2));
    transform: scale(1.15) rotate(-3deg);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 92, 173, 0.9)) drop-shadow(0 0 40px rgba(255, 107, 53, 0.6)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.3));
    transform: scale(1.18) rotate(0deg);
  }
}

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

/* ── LOGO HOVER SPARK EFFECT ──────────────────────────────── */
.navbar__logo::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: calc(100% + 4px);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 92, 173, 0.08) 40%,
    rgba(255, 140, 128, 0.15) 50%,
    rgba(255, 92, 173, 0.08) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  pointer-events: none;
  opacity: 0;
  animation: logoSpark 4s ease-in-out infinite;
}

.navbar__logo:hover::after {
  opacity: 1;
  animation: logoSpark 1.5s ease-in-out infinite;
}

@keyframes logoSpark {
  0% { background-position: 200% center; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { background-position: -200% center; opacity: 0; }
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar__link {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-primary);
  background: rgba(255, 92, 173, 0.1);
}

.navbar__link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

.navbar__search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  transition: all var(--duration-fast) var(--ease-out);
}

.navbar__search:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 173, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.navbar__search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 200px;
}

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

.navbar__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.navbar__menu-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ── HERO SECTION ──────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: var(--space-3xl);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-primary) 0%, transparent 50%),
    linear-gradient(to right, rgba(10, 10, 15, 0.8) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10, 10, 15, 0.3) 0%, transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 0 var(--space-lg);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  background: rgba(255, 92, 173, 0.15);
  border: 1px solid rgba(255, 92, 173, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero__title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero__meta-item strong {
  color: var(--accent-primary);
}

.hero__tags {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 550px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 92, 173, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 92, 173, 0.5);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

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

.btn--sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ── SECTION HEADERS ───────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.section__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section__title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section__see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap var(--duration-fast);
}

.section__see-all:hover {
  gap: 10px;
}

/* ── ANIME CARDS ───────────────────────────────────────────── */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.anime-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.anime-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 800px;
}

.anime-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow-strong);
}

.anime-card__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.anime-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.anime-card:hover .anime-card__poster img {
  transform: scale(1.08);
}

.anime-card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.anime-card:hover .anime-card__poster::after {
  opacity: 1;
}

.anime-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-spring);
  box-shadow: 0 4px 20px rgba(255, 92, 173, 0.5);
}

.anime-card:hover .anime-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.anime-card__play svg {
  width: 24px;
  height: 24px;
  fill: #000;
  margin-left: 3px;
}

.anime-card__info {
  padding: var(--space-md);
}

.anime-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anime-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.anime-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 3;
}

.anime-card__badge--new {
  background: var(--accent-gradient);
  color: #000;
}

.anime-card__badge--sub {
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
}

.anime-card__badge--hd {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

/* ── HORIZONTAL SCROLL CAROUSEL ────────────────────────────── */
.carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-md);
}

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

.carousel__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.carousel__item--card {
  width: 200px;
}

.carousel__item--wide {
  width: 340px;
}

/* ── EPISODE CARDS ─────────────────────────────────────────── */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.episode-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.episode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.episode-card__thumb {
  width: 120px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.episode-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-card__duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.episode-card__info {
  flex: 1;
  min-width: 0;
}

.episode-card__number {
  font-size: 0.7rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.episode-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── TAG CHIPS ─────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.tag:hover {
  background: rgba(255, 92, 173, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tag--active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #000;
}

/* ── SEARCH BAR (CATALOG) ─────────────────────────────────── */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  transition: all var(--duration-normal) var(--ease-out);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.search-bar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255, 92, 173, 0.1), var(--shadow-glow);
  background: var(--bg-elevated);
}

.search-bar__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: var(--space-sm);
  flex-shrink: 0;
}

.search-bar__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

.search-bar__clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast);
  opacity: 0;
  pointer-events: none;
}

.search-bar--has-value .search-bar__clear {
  opacity: 1;
  pointer-events: all;
}

.search-bar__clear:hover {
  background: rgba(255, 92, 173, 0.15);
  color: var(--accent-primary);
}

/* ── FILTER BAR ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
}

.filter-btn:hover {
  background: rgba(255, 92, 173, 0.08);
  border-color: rgba(255, 92, 173, 0.3);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 92, 173, 0.3);
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

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

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
}

.footer__social:hover {
  background: rgba(255, 92, 173, 0.15);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer__social img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── LOADING SKELETON ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── SCROLLBAR CUSTOM ──────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 92, 173, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 92, 173, 0.5);
}

/* ── AD CONTAINERS — CLEAN ─────────────────────────────────── */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-xl) auto;
  padding: var(--space-md);
  min-height: 90px;
  max-width: 728px;
  width: 100%;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ad-slot--sidebar {
  max-width: 300px;
  min-height: 250px;
}

.ad-slot--banner {
  max-width: 728px;
  min-height: 90px;
}

.ad-slot--sticky-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  min-height: auto;
  max-width: 100%;
  margin: 0;
  padding: 4px 0;
}

/* ═══════════════════════════════════════════════════════════════
   ANIME LANDING PAGE — Series Hero + Season Grid
   ═══════════════════════════════════════════════════════════════ */
.series-hero {
  position: relative;
  min-height: 60vh;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center top;
}

.series-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.6) 40%, rgba(10,10,15,0.92) 100%);
  z-index: 1;
}

.series-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 5rem var(--space-lg) 3rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.series-hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.series-hero__meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.series-hero__meta .tag-chip {
  font-size: 0.8rem;
}

.series-hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.series-hero__actions .btn--primary {
  font-size: 1rem;
  padding: var(--space-md) var(--space-xl);
}

.series-hero__actions .btn--ghost {
  font-size: 1rem;
  padding: var(--space-md) var(--space-xl);
}

/* ── SEASON SELECTOR ─────────────────────────────────────────── */
.season-selector {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
  margin: var(--space-xl) 0 var(--space-lg);
}

.season-selector__label {
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.8;
}

.season-selector__select {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.season-selector__select:focus {
  border-color: var(--accent-primary);
  outline: none;
}

/* ── EPISODE GRID (Anime Landing) ─────────────────────────────── */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.ep-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.ep-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 92, 173, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
  border-color: var(--accent-primary);
}

.ep-card__thumb {
  height: 120px;
  overflow: hidden;
}

.ep-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ep-card:hover .ep-card__thumb img {
  transform: scale(1.08);
}

.ep-card__info {
  padding: var(--space-sm) var(--space-md);
  position: relative;
  z-index: 2;
}

.ep-card__title {
  font-weight: 700;
  font-size: 0.95rem;
}

.ep-card__meta {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

.ep-card__link {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════
   PLAYER PAGE — Server Selector + Player + Episode List
   ═══════════════════════════════════════════════════════════════ */
.page-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-xl);
}

.page-layout__main {
  flex: 3;
  min-width: 0;
}

.page-layout__sidebar {
  flex: 1;
  min-width: 250px;
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

/* ── BACK BUTTON ──────────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ── PLAYER HEADER ────────────────────────────────────────────── */
.player-header {
  margin-bottom: var(--space-lg);
}

.player-header__anime {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.player-header__episode {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.player-header__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
}

/* ── LANGUAGE TOGGLE ──────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  border: 2px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.lang-btn img {
  width: 22px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.lang-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.lang-btn.active,
.lang-btn[aria-selected="true"] {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(255,92,173,0.15), rgba(255,107,53,0.1));
  color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(255,92,173,0.2);
}

/* ── SERVER GRID ──────────────────────────────────────────────── */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.server-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.server-card img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.server-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,92,173,0.15);
}

.server-card.active {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(255,92,173,0.1), rgba(139,92,246,0.08));
  color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(255,92,173,0.2);
}

/* ── PLAYER FRAME ─────────────────────────────────────────────── */
.player-frame-wrap {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  margin-bottom: var(--space-lg);
}

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

/* ── EPISODE NAV BUTTONS ──────────────────────────────────────── */
.ep-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.ep-nav__btn {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ep-nav__btn:hover:not(:disabled) {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.ep-nav__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ep-nav__btn--center {
  justify-self: center;
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.ep-nav__btn--center:hover {
  filter: brightness(1.15);
}

/* ── EPISODES LIST (Player Page) ──────────────────────────────── */
.episodes-list {
  margin-bottom: var(--space-lg);
}

.episodes-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: var(--space-xs);
}

.episode-btn {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.episode-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.episode-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(255,92,173,0.3);
}

/* ── SIDEBAR POPULAR ──────────────────────────────────────────── */
.sidebar-popular__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.popular-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.popular-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.popular-item img {
  width: 100px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.popular-item__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD PAGE — Language Toggle + Download Grid
   ═══════════════════════════════════════════════════════════════ */
.download-section {
  margin-bottom: var(--space-xl);
}

.download-section__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.download-section__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.25s ease;
}

.download-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(255,92,173,0.1);
}

.download-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.download-card__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.download-card .btn--small {
  font-size: 0.82rem;
  padding: var(--space-xs) var(--space-md);
}

/* ── RESPONSIVE ANIME PAGES ───────────────────────────────────── */
@media (max-width: 768px) {
  .series-hero {
    min-height: 50vh;
  }

  .series-hero__title {
    font-size: 1.6rem;
  }

  .page-layout {
    flex-direction: column;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .page-layout__sidebar {
    position: static;
    min-width: 0;
    width: 100%;
  }

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

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

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

  .ep-nav {
    grid-template-columns: 1fr 1fr;
  }

  .ep-nav__btn--center {
    grid-column: 1 / -1;
  }
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .navbar__nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-sm);
    z-index: var(--z-header);
  }

  .navbar__nav.active {
    display: flex;
  }

  .navbar__search {
    display: none;
  }

  .navbar__menu-btn {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .anime-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .anime-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .anime-card__info {
    padding: var(--space-sm);
  }

  .anime-card__title {
    font-size: 0.8rem;
  }
}

/* ── SELECTION ─────────────────────────────────────────────── */
::selection {
  background: rgba(255, 92, 173, 0.3);
  color: #fff;
}

/* ── NO SCROLL LOCK ────────────────────────────────────────── */
body.no-scroll {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM UPGRADE v3.0 — Player + Landing Pages
   ═══════════════════════════════════════════════════════════════ */

/* ── PREMIUM PLAYER FRAME ───────────────────────────────────── */
.player-frame-wrap {
  position: relative;
  border: 2px solid rgba(255, 92, 173, 0.2);
  box-shadow:
    0 0 30px rgba(255, 92, 173, 0.08),
    0 0 60px rgba(139, 92, 246, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.6);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.player-frame-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,92,173,0.3), rgba(139,92,246,0.2), rgba(59,130,246,0.15));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.player-frame-wrap:hover::before {
  opacity: 1;
}
.player-frame-wrap:hover {
  border-color: rgba(255, 92, 173, 0.4);
  box-shadow:
    0 0 40px rgba(255, 92, 173, 0.15),
    0 0 80px rgba(139, 92, 246, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.7);
}
.player-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  min-height: 420px;
}

/* ── PREMIUM LANGUAGE TOGGLE ─────────────────────────────────── */
.lang-btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.04);
}
.lang-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,92,173,0.1), rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lang-btn:hover::before {
  opacity: 1;
}
.lang-btn.active,
.lang-btn[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(255,92,173,0.2), rgba(139,92,246,0.12));
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow:
    0 0 20px rgba(255, 92, 173, 0.2),
    0 0 40px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* ── PREMIUM SERVER CARDS ────────────────────────────────────── */
.server-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.server-card:hover::before {
  opacity: 1;
}
.server-card:hover {
  border-color: rgba(255, 92, 173, 0.4);
  background: rgba(255, 92, 173, 0.06);
  color: var(--text-primary);
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 8px 24px rgba(255, 92, 173, 0.15),
    0 0 40px rgba(139, 92, 246, 0.08);
}
.server-card.active {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(255,92,173,0.12), rgba(139,92,246,0.08));
  color: var(--accent-primary);
  box-shadow:
    0 0 24px rgba(255, 92, 173, 0.25),
    0 0 48px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.server-card.active::before {
  opacity: 1;
}
.server-card img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
.server-card:hover img {
  filter: drop-shadow(0 2px 8px rgba(255, 92, 173, 0.3));
  transform: scale(1.1);
}

/* ── PREMIUM EPISODE NAV BUTTONS ─────────────────────────────── */
.ep-nav__btn,
.navigation-buttons .nav-btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ep-nav__btn:hover:not(:disabled),
.navigation-buttons .nav-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 92, 173, 0.25);
}
.ep-nav__btn--center,
.navigation-buttons .nav-btn[style*="6c63ff"] {
  background: linear-gradient(135deg, #ff5cad, #8b5cf6) !important;
  border: none !important;
  color: #fff !important;
  box-shadow:
    0 4px 16px rgba(255, 92, 173, 0.3),
    0 0 30px rgba(139, 92, 246, 0.15);
}
.ep-nav__btn--center:hover,
.navigation-buttons .nav-btn[style*="6c63ff"]:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(255, 92, 173, 0.4),
    0 0 40px rgba(139, 92, 246, 0.2);
}

/* ── PREMIUM EPISODE BUTTONS ─────────────────────────────────── */
.episode-btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.episode-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,92,173,0.1), rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.episode-btn:hover {
  border-color: rgba(255, 92, 173, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 92, 173, 0.15);
}
.episode-btn:hover::after {
  opacity: 1;
}
.episode-btn.active {
  background: linear-gradient(135deg, #ff5cad, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 4px 16px rgba(255, 92, 173, 0.35),
    0 0 30px rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

/* ── PREMIUM EPISODE CARDS (Landing) ─────────────────────────── */
.ep-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ep-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff5cad, #8b5cf6, #3b82f6);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}
.ep-card:hover::before {
  opacity: 1;
}
.ep-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(255, 92, 173, 0.15),
    0 0 40px rgba(139, 92, 246, 0.08),
    0 0 60px rgba(59, 130, 246, 0.05);
  border-color: rgba(255, 92, 173, 0.3);
}
.ep-card__thumb {
  position: relative;
  overflow: hidden;
}
.ep-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,15,0.8) 100%);
  pointer-events: none;
}
.ep-card:hover .ep-card__thumb img {
  transform: scale(1.1);
  filter: brightness(1.1) saturate(1.2);
}
.ep-card__info {
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.95));
  backdrop-filter: blur(4px);
}
.ep-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PREMIUM SERIES HERO ─────────────────────────────────────── */
.series-hero {
  position: relative;
  min-height: 65vh;
  overflow: hidden;
}
.series-hero::before {
  background: linear-gradient(
    180deg,
    rgba(10,10,15,0.2) 0%,
    rgba(10,10,15,0.4) 30%,
    rgba(10,10,15,0.7) 60%,
    rgba(10,10,15,0.95) 100%
  );
}
.series-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--bg-primary));
  z-index: 1;
  pointer-events: none;
}
.series-hero__content {
  padding-bottom: 5rem;
}
.series-hero__title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}
.series-hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff5cad, #8b5cf6);
  border-radius: 2px;
  margin-top: 16px;
}
.series-hero__meta {
  margin-top: 12px;
}
.series-hero__meta .tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.series-hero__meta .tag:hover {
  background: rgba(255, 92, 173, 0.15);
  border-color: rgba(255, 92, 173, 0.3);
}
.series-hero__meta .tag--active {
  background: linear-gradient(135deg, rgba(255,92,173,0.25), rgba(139,92,246,0.15));
  border-color: rgba(255, 92, 173, 0.4);
  color: var(--accent-primary);
}
.series-hero__actions {
  margin-top: 20px;
}
.series-hero__actions .btn--primary {
  background: linear-gradient(135deg, #ff5cad, #ff6b35);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  box-shadow:
    0 4px 20px rgba(255, 92, 173, 0.35),
    0 0 40px rgba(255, 107, 53, 0.15);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.series-hero__actions .btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.series-hero__actions .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(255, 92, 173, 0.45),
    0 0 60px rgba(255, 107, 53, 0.2);
}
.series-hero__actions .btn--primary:hover::before {
  opacity: 1;
}
.series-hero__actions .btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s ease;
}
.series-hero__actions .btn--ghost:hover {
  border-color: rgba(255, 92, 173, 0.4);
  background: rgba(255, 92, 173, 0.1);
  color: var(--accent-primary);
  transform: translateY(-1px);
}

/* ── PREMIUM SEASON SELECTOR ─────────────────────────────────── */
.season-selector {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}
.season-selector select,
.season-selector__select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ff5cad' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.season-selector select:hover,
.season-selector__select:hover {
  border-color: rgba(255, 92, 173, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}
.season-selector select:focus,
.season-selector__select:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 16px rgba(255, 92, 173, 0.15);
}
.season-selector label,
.season-selector__label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── PREMIUM BACK BUTTON ─────────────────────────────────────── */
.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  font-weight: 600;
}
.back-btn:hover {
  background: rgba(255, 92, 173, 0.1);
  border-color: rgba(255, 92, 173, 0.3);
  color: var(--accent-primary);
  transform: translateX(-4px);
}

/* ── PREMIUM POPULAR SIDEBAR ─────────────────────────────────── */
.popular-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.popular-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ff5cad, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popular-item:hover {
  background: rgba(255, 92, 173, 0.06);
  border-color: rgba(255, 92, 173, 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 20px rgba(255, 92, 173, 0.1);
}
.popular-item:hover::before {
  opacity: 1;
}
.popular-item img {
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  filter: brightness(0.9);
}
.popular-item:hover img {
  filter: brightness(1.1) saturate(1.2);
  transform: scale(1.05);
}

/* ── PREMIUM DOWNLOAD BUTTON ─────────────────────────────────── */
a[href*="descargar"] {
  position: relative;
  overflow: hidden;
}
a[href*="descargar"]:not(.dl-btn):not(.footer__link):not(.navbar__link) {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
}
a[href*="descargar"]:not(.dl-btn):not(.footer__link):not(.navbar__link):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 174, 96, 0.4);
  filter: brightness(1.1);
}

/* ── PREMIUM DESCRIPTION BOX ─────────────────────────────────── */
.description {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-md) 0;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,92,173,0.3), transparent);
}
.description p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── PREMIUM TITLE CONTAINER ─────────────────────────────────── */
.title-container {
  margin-bottom: var(--space-lg);
}
.season-title {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.episode-title {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* ── PREMIUM EPISODES CONTAINER ──────────────────────────────── */
.episodes-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  backdrop-filter: blur(6px);
}
.episodes-container h3 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1.5rem;
}
.episodes-container .episodes-grid {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
}

/* ── PREMIUM CONTEXTO-VIDEO ──────────────────────────────────── */
.contenedor-video {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(12px);
}

/* ── PREMIUM PLAYER SELECTOR ─────────────────────────────────── */
.player-selector {
  margin-bottom: var(--space-lg);
}
.player-selector .language-toggle {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

/* ── PREMIUM DOWNLOAD SECTION ────────────────────────────────── */
section[aria-label="Enlaces de descarga"] {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  backdrop-filter: blur(8px);
}
section[aria-label="Enlaces de descarga"] > div:first-child {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

/* ── PREMIUM SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 10, 15, 0.5);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,92,173,0.4), rgba(139,92,246,0.3));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,92,173,0.6), rgba(139,92,246,0.5));
}

/* ── RESPONSIVE PREMIUM ──────────────────────────────────────── */
@media (max-width: 768px) {
  .series-hero {
    min-height: 55vh;
  }
  .series-hero__title::after {
    width: 50px;
  }
  .player-frame-wrap iframe {
    min-height: 260px;
  }
  .contenedor-video {
    padding: var(--space-md);
  }
  .server-card {
    padding: var(--space-sm);
  }
  .server-card img {
    width: 28px;
    height: 28px;
  }
  .season-selector {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .series-hero {
    min-height: 50vh;
  }
  .series-hero__title {
    font-size: 1.5rem;
  }
  .series-hero__title::after {
    width: 40px;
    height: 3px;
  }
  .player-frame-wrap iframe {
    min-height: 220px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NETFLIX-STYLE EPISODE NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.netflix-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 92, 173, 0.15);
}

.netflix-nav__btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid rgba(255, 92, 173, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 0;
  max-width: 48%;
  backdrop-filter: blur(10px);
}

.netflix-nav__btn:hover {
  background: rgba(255, 92, 173, 0.15);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 92, 173, 0.2);
}

.netflix-nav__btn:active {
  transform: translateY(0);
}

.netflix-nav__btn--prev {
  flex-direction: row;
}

.netflix-nav__btn--next {
  flex-direction: row-reverse;
  text-align: right;
  margin-left: auto;
}

.netflix-nav__arrow {
  font-size: 1.4rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.netflix-nav__btn:hover .netflix-nav__arrow {
  transform: translateX(4px);
}

.netflix-nav__btn--prev:hover .netflix-nav__arrow {
  transform: translateX(-4px);
}

.netflix-nav__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.netflix-nav__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  font-weight: 700;
}

.netflix-nav__title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netflix-nav__disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD BUTTON — INSIDE PLAYER
   ═══════════════════════════════════════════════════════════════ */
.player-download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(255, 92, 173, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 92, 173, 0.15);
  border-radius: 12px;
  margin-top: var(--space-md);
  backdrop-filter: blur(10px);
}

.player-download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 92, 173, 0.3);
}

.player-download-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 92, 173, 0.4);
}

.player-download-btn:active {
  transform: translateY(0) scale(0.98);
}

.player-download-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-download-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-download-info strong {
  color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════════════
   EPISODE NAV RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .netflix-nav {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .netflix-nav__btn {
    max-width: 100%;
    width: 100%;
  }
  .player-download-bar {
    flex-direction: column;
    text-align: center;
  }
}
