:root {
  /* PALETA 35MM / ÁMBAR CINEMATOGRÁFICO */
  --bg-primary: #101114;
  --bg-card: #181a20;
  --bg-card-hover: #1f222a;
  --text-main: #f5f5f7;
  --text-secondary: #9ea3ae;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --rating: #fbbf24;
  --emerald: #10b981;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   BARRA SUPERIOR (NAVBAR GLASSMORPHISM)
   ========================================= */
.navbar {
  background: rgba(13, 14, 18, 0.88);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.navbar-inner {
  max-width: 1750px;
  margin: 0 auto;
  padding: 0.85rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.38rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  user-select: none;
  cursor: pointer;
  position: relative;
  padding: 4px 4px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.03);
}

.logo-icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
  transition: filter 0.3s ease, transform 0.3s ease;
  animation: logoFlickerIcon 1.2s ease-out 1;
}

.logo:hover .logo-icon {
  transform: rotate(-4deg) scale(1.1);
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.8));
}

.logo-title-text,
.logo-accent,
.logo-white {
  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #ffffff 35%,
    #fbbf24 50%,
    #ffffff 65%,
    #ffffff 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: projectorBeam 1.2s cubic-bezier(0.25, 1, 0.5, 1) 1;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.logo:hover .logo-title-text,
.logo:hover .logo-accent,
.logo:hover .logo-white {
  animation: projectorBeam 0.9s cubic-bezier(0.25, 1, 0.5, 1) 1;
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.6);
}

@keyframes projectorBeam {
  0% {
    background-position: 150% 0;
    opacity: 0.6;
    letter-spacing: 0.5px;
    filter: blur(1.5px);
  }
  30% {
    opacity: 0.85;
    filter: blur(0.5px);
  }
  50% {
    opacity: 1;
    filter: blur(0);
    text-shadow: 0 0 28px rgba(245, 158, 11, 0.7);
  }
  100% {
    background-position: -50% 0;
    opacity: 1;
    letter-spacing: 1.5px;
    filter: blur(0);
  }
}

@keyframes logoFlickerIcon {
  0% {
    opacity: 0.4;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.1));
  }
  20% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.9));
  }
  40% {
    opacity: 0.7;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.3));
  }
  60% {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.7));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
  }
}

/* BUSCADOR ESTILO GLASS */
.search-box {
  flex: 1;
  max-width: 380px;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 0.9rem;
  width: 15px;
  height: 15px;
  color: #6b7280;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-box:focus-within .search-input-icon {
  color: var(--accent);
}

.search-box input {
  width: 100%;
  padding: 0.56rem 2.3rem 0.56rem 2.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
  color: #6b7280;
}

.search-box input:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.search-box input:focus {
  border-color: rgba(245, 158, 11, 0.55);
  background: #171922;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.search-kbd {
  position: absolute;
  right: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  pointer-events: none;
  font-family: inherit;
}

.search-box:focus-within .search-kbd {
  opacity: 0;
}

/* MENÚ DESPLEGABLE EN VIVO */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.search-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.search-drop-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.15s ease;
}

.search-drop-item:last-child {
  border-bottom: none;
}

.search-drop-item:hover {
  background: #1e222d;
}

.search-drop-thumb {
  width: 38px;
  height: 56px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: #090a0d;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-drop-info {
  flex: 1;
  min-width: 0;
}

.search-drop-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.search-drop-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.search-drop-empty {
  padding: 1.4rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.search-drop-empty strong {
  color: var(--accent);
}

/* CONTENEDOR DE NAVEGACIÓN JERÁRQUICA */
.filters {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.nav-segmented-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 11px;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
  flex-shrink: 0;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.42rem 0.88rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  touch-action: manipulation;
}

.filter-btn:active {
  transform: scale(0.96);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.filter-btn.active {
  background: var(--accent);
  color: #101114;
  border-color: var(--accent);
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

.filter-btn-new {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
  font-weight: 700;
}

.filter-btn-new:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: #a7f3d0;
}

.filter-btn-new.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #052e22;
  font-weight: 800;
  box-shadow: 0 2px 14px rgba(16, 185, 129, 0.4);
}

.new-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
  animation: newDotPulse 2s infinite;
}

.filter-btn-new.active .new-live-dot {
  background: #052e22;
  box-shadow: none;
}

@keyframes newDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.nav-utils-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-nav-util {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-nav-util:active {
  transform: scale(0.96);
}

.btn-nav-request {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

.btn-nav-request:hover {
  background: var(--accent);
  color: #101114;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
}

.btn-nav-changelog {
  border-color: rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
}

.btn-nav-changelog:hover {
  background: #38bdf8;
  color: #101114;
  border-color: #38bdf8;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
}

.btn-nav-share:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* =========================================
   HERO BANNER CINEMATOGRÁFICO V4.7
   ========================================= */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 610px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #090a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-backdrop-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  z-index: 1;
  filter: saturate(1.18) contrast(1.06) brightness(0.85);
  transform: scale(1.02);
  will-change: transform;
}

.hero-slide.active .hero-backdrop-bg {
  animation: heroKenBurns 9s ease-out forwards;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(-1%, -0.8%, 0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, transparent 15%, rgba(16, 17, 20, 0.72) 85%),
    linear-gradient(95deg, #101114 0%, rgba(16, 17, 20, 0.94) 34%, rgba(16, 17, 20, 0.55) 64%, rgba(16, 17, 20, 0.25) 100%),
    linear-gradient(0deg, #101114 0%, rgba(16, 17, 20, 0.85) 14%, transparent 50%),
    linear-gradient(180deg, rgba(16, 17, 20, 0.65) 0%, transparent 18%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1750px;
  padding: 3.2rem 2.5rem 5.2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-poster-stage {
  position: relative;
  flex-shrink: 0;
  perspective: 900px;
}

.hero-poster-glow {
  position: absolute;
  inset: -14px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.8) brightness(0.8);
  opacity: 0.65;
  border-radius: 18px;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-poster-box {
  position: relative;
  z-index: 1;
  width: 235px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.16);
  background: var(--bg-card);
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.35s ease;
}

.hero-slide.active .hero-poster-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.hero-poster-stage:hover .hero-poster-box {
  transform: rotateY(5deg) rotateX(2deg) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(245, 158, 11, 0.55);
}

.hero-poster-stage:hover .hero-poster-glow {
  opacity: 0.95;
}

.hero-poster-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 35%, transparent 60%);
  pointer-events: none;
}

.hero-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-info-box {
  flex: 1;
  max-width: 780px;
}

.hero-badges-row,
.hero-title,
.hero-meta,
.hero-genres-row,
.hero-synopsis,
.hero-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.active .hero-badges-row { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.hero-slide.active .hero-title      { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.hero-slide.active .hero-meta       { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.hero-slide.active .hero-genres-row { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.hero-slide.active .hero-synopsis   { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.hero-slide.active .hero-actions    { opacity: 1; transform: translateY(0); transition-delay: 0.36s; }

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.hero-badge-destacado {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.92);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: #d1d5db;
  margin-bottom: 0.85rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.hero-meta-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.hero-meta .rating {
  color: #101114;
  background: var(--rating);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.82rem;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
}

.hero-genres-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-genre-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(16, 17, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

.hero-synopsis {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-btn-play {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #101114;
  border: none;
  padding: 0.92rem 2rem;
  font-size: 0.96rem;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-btn-play:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.65);
  filter: brightness(1.06);
}

.hero-btn-trailer {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  padding: 0.92rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-btn-trailer:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fbbf24;
  color: #fbbf24;
  transform: translateY(-2px);
}

.hero-btn-fav {
  background: rgba(16, 17, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.92rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-btn-fav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}

.hero-btn-fav.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent);
  color: #fbbf24;
}

.hero-arrow {
  position: absolute;
  top: 46%;
  transform: translateY(-50%);
  background: rgba(13, 14, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 10;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.hero-banner:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: var(--accent);
  color: #101114;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.hero-arrow.prev { left: 1.4rem; }
.hero-arrow.next { right: 1.4rem; }

.hero-thumbs-dock {
  position: absolute;
  bottom: 1.35rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 12;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 13, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-thumb-btn {
  position: relative;
  width: 78px;
  height: 46px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #14161c;
  cursor: pointer;
  padding: 0;
  opacity: 0.55;
  transform: scale(0.96);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-thumb-btn:hover {
  opacity: 0.9;
  transform: scale(1);
}

.hero-thumb-btn.active {
  opacity: 1;
  transform: scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.hero-thumb-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fde047);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
}

.hero-thumb-btn.active .hero-thumb-progress {
  animation: heroThumbProgress 6s linear forwards;
}

@keyframes heroThumbProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* =========================================
   CONTENEDOR GLOBAL Y BARRA DE GÉNEROS V4.2
   ========================================= */
.container {
  max-width: 1750px;
  margin: 2rem auto 4rem;
  padding: 0 2.5rem;
}

.genre-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.48rem;
  margin-top: 1.4rem;
  margin-bottom: 1.15rem;
  padding: 0.25rem 0;
}

.genre-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.4rem 0.88rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  letter-spacing: 0.2px;
  touch-action: manipulation;
}

.genre-pill:active {
  transform: scale(0.95);
}

.genre-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.genre-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.14));
  border-color: var(--accent);
  color: #fbbf24;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.22);
}

/* SUB-BARRA DE RECIÉN AGREGADO CON TRANSICIÓN SUAVE */
.recent-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.recent-subbar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.recent-subbar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6ee7b7;
}

.recent-subpills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.recent-pill {
  background: rgba(16, 17, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 0.36rem 0.9rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
  touch-action: manipulation;
}

.recent-pill:active {
  transform: scale(0.95);
}

.recent-pill:hover {
  color: #fff;
  border-color: rgba(16, 185, 129, 0.45);
}

.recent-pill.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #052e22;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

/* BADGE "NUEVO" EN TARJETAS RECIÉN AGREGADAS */
.badge-new-arrival {
  background: rgba(6, 78, 59, 0.94) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.65) !important;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  line-height: 1.2;
}

/* =========================================
   SUB-BARRA DE CONTROLES UNIFICADA (GLASS)
   ========================================= */
.catalog-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.1rem;
  padding: 0.75rem 1.15rem;
  background: rgba(22, 24, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}

.catalog-status-text {
  font-size: 0.84rem;
  color: #d1d5db;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.catalog-status-text::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  display: inline-block;
}

.catalog-filters-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.filter-select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-select-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.catalog-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #101217;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%239ea3ae' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 0.42rem 2.1rem 0.42rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.catalog-select:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background-color: #151820;
}

.catalog-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* =========================================
   CUADRÍCULA Y CARRUSELES HORIZONTALES V4.7
   ========================================= */
.catalog-section {
  margin-bottom: 3.8rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.45rem;
  min-height: 420px;
}

.nuvio-row-section {
  margin-bottom: 2.8rem;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 1px 395px;
}

.nuvio-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.nuvio-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.nuvio-row-title-wrap::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.nuvio-row-title {
  font-size: 1.24rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nuvio-row-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nuvio-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
  user-select: none;
}

.nuvio-nav-btn:hover {
  background: var(--accent);
  color: #101114;
  border-color: var(--accent);
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.nuvio-row-viewport {
  position: relative;
  width: 100%;
}

.nuvio-row-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 10px;
  width: 58px;
  background: linear-gradient(to right, transparent, var(--bg-primary));
  pointer-events: none;
  z-index: 4;
}

.nuvio-carousel-track {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.nuvio-carousel-track.is-dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
  cursor: grabbing;
}

.nuvio-carousel-track .nuvio-card-item {
  flex: 0 0 202px;
  width: 202px;
  scroll-snap-align: start;
  user-select: none;
}

/* =========================================
   TARJETAS CINEMATOGRÁFICAS ULTRA FLUIDAS
   ========================================= */
.card {
  background: #15171d;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  content-visibility: auto;
  contain-intrinsic-size: 202px 350px;
}

.card:hover {
  background: #1b1e27;
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.poster-wrapper {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  background: #0d0f14;
  overflow: hidden;
}

.poster-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 17, 20, 0.85) 0%, rgba(16, 17, 20, 0.15) 45%, transparent 100%);
  opacity: 0.45;
  z-index: 1;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.poster-wrapper::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.75);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.94);
  color: #101114;
  font-size: 1.15rem;
  font-weight: 900;
  padding-left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 0 6px rgba(245, 158, 11, 0.22);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.card:hover .poster-wrapper::before {
  opacity: 0.9;
}

.card:hover .poster-wrapper::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.card:hover .poster-wrapper img {
  transform: scale(1.05);
}

.badge-group {
  position: absolute;
  top: 9px;
  left: 9px;
  display: flex;
  gap: 5px;
  z-index: 2;
  flex-wrap: wrap;
}

.badge-type {
  font-size: 0.63rem;
  text-transform: uppercase;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  display: inline-block;
  line-height: 1.2;
}

.badge-type.badge-pelicula {
  background: rgba(14, 16, 22, 0.9) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
}

.badge-type.badge-serie {
  background: rgba(14, 16, 22, 0.9) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.55) !important;
}

.badge-quality,
.modal-quality-badge {
  font-size: 0.63rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  display: inline-block;
  line-height: 1.2;
}

.badge-quality.p1080, .modal-quality-badge.p1080 {
  background: rgba(24, 29, 40, 0.92) !important;
  color: #e2e8f0 !important;
  border: 1px solid #475569 !important;
}

.badge-quality.p4k, .modal-quality-badge.p4k {
  background: rgba(32, 22, 48, 0.92) !important;
  color: #f1f5f9 !important;
  border: 1px solid #8b5cf6 !important;
}

.badge-quality.p720, .modal-quality-badge.p720 {
  background: rgba(18, 25, 36, 0.92) !important;
  color: #cbd5e1 !important;
  border: 1px solid #334155 !important;
}

.badge-quality.cam, .modal-quality-badge.cam {
  background: rgba(38, 24, 16, 0.92) !important;
  color: #fed7aa !important;
  border: 1px solid #9a3412 !important;
}

.btn-card-fav {
  position: absolute;
  top: 9px;
  right: 9px;
  background: rgba(14, 16, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.btn-card-fav:hover {
  background: rgba(31, 35, 48, 0.96);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.btn-card-fav.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(36, 29, 16, 0.94);
}

.card-info {
  padding: 0.85rem 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  transition: color 0.18s ease;
}

.card:hover .card-title {
  color: #fbbf24;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: auto;
  font-weight: 600;
  gap: 0.35rem;
}

.card-meta span {
  white-space: nowrap;
}

.rating {
  color: var(--rating);
  font-weight: 800;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 3.5rem 1rem;
  font-size: 1rem;
}

/* =========================================
   MODALES GLOBALES GLASSMORPHISM V4.7
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex !important;
}

.modal {
  background: linear-gradient(180deg, rgba(25, 28, 36, 0.97) 0%, rgba(17, 19, 25, 0.99) 100%);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  position: relative;
  padding: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-height: 92vh;
  overflow-y: auto;
  transition: max-width 0.3s ease, padding 0.3s ease;
  animation: modalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), transparent);
  pointer-events: none;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  z-index: 30;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s ease;
}

.close-btn:hover {
  background: var(--accent);
  color: #101114;
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* =========================================
   MODAL DE REPRODUCCIÓN V4.7
   ========================================= */
.modal-detail-grid {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 1.6rem;
  margin-bottom: 1.35rem;
  transition: all 0.3s ease;
}

.modal-detail-grid img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
}

.modal-detail-text {
  padding-right: 0;
}

.modal-detail-text h2 {
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: #ffffff;
  padding-right: 45px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.modal-meta-data {
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modal-genres-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.modal-genre-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.modal-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-right: 48px !important;
}

.modal-btn-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.modal-btn-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.modal-btn-action.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent);
  color: #fbbf24;
}

.modal-btn-trailer {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fbbf24;
}
.modal-btn-trailer:hover {
  background: var(--accent);
  color: #101114;
}

.modal-btn-report {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
}

.modal-btn-report:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.modal-synopsis {
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

/* =========================================
   SELECTOR DE SERVIDORES UNIFICADO
   ========================================= */
.server-selector-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.95rem;
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  flex-wrap: wrap;
}

.server-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.server-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.server-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.44rem 0.95rem;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.server-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.45);
}

.server-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(217, 119, 6, 0.14));
  border-color: var(--accent);
  color: #fbbf24;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.22);
}

/* BOTÓN DE PANTALLA COMPLETA PARA MÓVIL / IOS */
.mobile-fullscreen-bar {
  display: none;
  margin-top: 0.65rem;
  justify-content: center;
}

.btn-mobile-fullscreen {
  width: 100%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  padding: 0.62rem 1rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-mobile-fullscreen:active {
  background: #38bdf8;
  color: #090d16;
}

/* =========================================
   REGLAS DEL MODO CINE (THEATER MODE)
   ========================================= */
.modal.theater-mode {
  max-width: 96vw;
  width: 96vw;
  max-height: 97vh;
  padding: 1.15rem 1.6rem 1.4rem;
  background: #08090c;
  border-color: rgba(245, 158, 11, 0.35);
}

.modal.theater-mode .modal-detail-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal.theater-mode .modal-detail-grid img,
.modal.theater-mode .modal-synopsis,
.modal.theater-mode .modal-genres-row {
  display: none !important;
}

.modal.theater-mode .modal-detail-text {
  padding-right: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal.theater-mode .modal-detail-text h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
  padding-right: 0;
}

.modal.theater-mode .modal-meta-row {
  margin-bottom: 0;
}

.modal.theater-mode .modal-actions-group {
  margin-right: 48px !important;
}

.modal.theater-mode .server-selector-bar {
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
}

.modal.theater-mode .player-container {
  aspect-ratio: auto;
  height: 76vh;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
  border-color: rgba(245, 158, 11, 0.22);
}

.modal.theater-mode .ambient-glow-bg {
  filter: blur(65px) brightness(0.85) saturate(1.7);
  opacity: 0.9;
}

.modal-btn-theater {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.42);
  color: #38bdf8;
}

.modal-btn-theater:hover,
.modal-btn-theater.active {
  background: #38bdf8;
  color: #090d16;
  border-color: #38bdf8;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

/* =========================================
   LUZ AMBIENTAL (AMBIENT GLOW)
   ========================================= */
.player-glow-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1.4rem;
  border-radius: 12px;
}

.ambient-glow-bg {
  position: absolute;
  inset: -14px;
  background-size: cover;
  background-position: center;
  filter: blur(42px) brightness(0.68) saturate(1.45);
  opacity: 0.68;
  z-index: 0;
  border-radius: 18px;
  pointer-events: none;
  transition: background-image 0.5s ease;
}

.player-container {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090a0d;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  transition: all 0.35s ease;
}

.player-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   ESPACIO RESERVADO PARA CAPA DE REPRODUCTOR FUTURA
   ========================================= */
.player-ad-overlay {
  display: none;
}

.episodes-section {
  position: relative;
  z-index: 1;
  background: rgba(16, 18, 24, 0.88);
  border-radius: 12px;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.episodes-header span {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.episodes-header select {
  background: #1b1e26;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.42rem 0.9rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 0.55rem;
  max-height: 165px;
  overflow-y: auto;
  padding-right: 4px;
}

.ep-btn {
  background: #1b1e26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.48rem 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.18s ease;
}

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

.ep-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #101114;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

/* =========================================
   MODAL DE TRÁILER OFICIAL
   ========================================= */
.modal-trailer {
  max-width: 840px;
  padding: 1.5rem;
}

.trailer-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.05rem;
  color: #ffffff;
  padding-right: 45px;
}

.trailer-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85);
}

.trailer-video-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   MODAL DE COMPARTIR SOCIAL
   ========================================= */
.modal-share {
  max-width: 540px;
  padding: 1.8rem;
}

.share-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

.share-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.share-card-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.share-social-icon {
  width: 20px;
  height: 20px;
}

.share-wa { background: linear-gradient(135deg, #25d366, #1ebe5d); color: #052210; }
.share-tg { background: linear-gradient(135deg, #0088cc, #0077b5); }
.share-fb { background: linear-gradient(135deg, #1877f2, #1464d2); }
.share-tw { background: #14171a; border: 1px solid rgba(255, 255, 255, 0.22); }

.share-copy-box {
  background: rgba(12, 14, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.05rem;
}

.share-copy-box label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
}

.share-input-row {
  display: flex;
  gap: 0.55rem;
}

.share-input-row input {
  flex: 1;
  background: #0b0d11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  outline: none;
}

.btn-copy-link {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #101114;
  border: none;
  padding: 0 1.3rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.btn-copy-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* =========================================
   MODAL DE BITÁCORA (CHANGELOG)
   ========================================= */
.modal-changelog {
  max-width: 680px;
}

.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.1rem;
  padding-left: 0.5rem;
}

.changelog-entry {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(245, 158, 11, 0.35);
}

.changelog-entry::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.changelog-badge-date {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.changelog-entry-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #c9cdd6;
  line-height: 1.5;
}

.changelog-list li strong {
  color: #ffffff;
}

.changelog-list code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  color: #fbbf24;
}

/* =========================================
   FOOTER CINEMATOGRÁFICO V4.1
   ========================================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0c0d11 0%, #08090c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2.5rem 2.2rem;
  margin-top: 5.5rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), transparent);
}

.footer-container {
  max-width: 1750px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 2.8rem;
}

.footer-brand .footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 0.95rem;
  max-width: 460px;
}

.footer-tech-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.footer-tech-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.footer-nav h4,
.footer-legal-links h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-nav h4::before,
.footer-legal-links h4::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 3px;
  background: var(--accent);
}

.footer-nav ul,
.footer-legal-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a,
.footer-legal-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav a:hover,
.footer-legal-links a:hover {
  color: #fbbf24;
  transform: translateX(3px);
}

.footer-disclaimer-box {
  background: rgba(20, 22, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(245, 158, 11, 0.5);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.2rem;
}

.footer-disclaimer-box p {
  font-size: 0.79rem;
  color: #8b92a2;
  line-height: 1.65;
}

.footer-disclaimer-box strong {
  color: #cbd5e1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-contact-direct code {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
}

/* =========================================
   MODALES DE FORMULARIO Y LEGAL
   ========================================= */
.modal-form,
.modal-legal {
  max-width: 620px;
  padding: 1.9rem;
}

.form-modal-header {
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 42px;
}

.form-modal-header h2 {
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.form-modal-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group-field label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 800;
  color: #9ea3ae;
  margin-bottom: 0.4rem;
}

.form-group-field input,
.form-group-field select,
.form-group-field textarea {
  width: 100%;
  background: #0e1015;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  padding: 0.72rem 0.95rem;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-group-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ea3ae' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 16px;
  padding-right: 2.8rem;
  cursor: pointer;
}

.form-group-field select:focus {
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.form-group-field input:focus,
.form-group-field textarea:focus {
  border-color: var(--accent);
  background-color: #12151c;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.btn-submit-form {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #101114;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.32);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
  margin-top: 0.4rem;
}

.btn-submit-form:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.45);
}

.btn-submit-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.32);
}

.btn-submit-danger:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.45);
}

.legal-modal-content h2 {
  font-size: 1.38rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  padding-right: 42px;
}

.legal-modal-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 1.25rem 0 0.45rem;
}

.legal-modal-content p,
.legal-modal-content ul {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.legal-modal-content ul {
  padding-left: 1.2rem;
  margin: 0.65rem 0;
}

.legal-contact-highlight {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.32);
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  margin: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-contact-highlight span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.legal-contact-highlight strong {
  color: #fbbf24;
  font-size: 0.92rem;
}

/* AVISO TOAST FLOTANTE */
.site-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #101114;
  padding: 0.8rem 1.45rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  display: none;
  z-index: 1000;
}

/* =========================================
   RESPONSIVO AVANZADO
   ========================================= */
@media (max-width: 1320px) {
  .navbar-inner {
    padding: 0.85rem 1.8rem;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .filters {
    order: 2;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 2px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.8rem;
  }
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
  }
  .nuvio-carousel-track .nuvio-card-item {
    flex: 0 0 175px;
    width: 175px;
  }
  .hero-banner {
    min-height: 560px;
  }
  .hero-container {
    padding: 2.5rem 1.8rem 5rem;
    gap: 2rem;
  }
  .hero-poster-box {
    width: 195px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-thumbs-dock {
    right: 1.8rem;
  }
  .hero-thumb-btn {
    width: 66px;
    height: 40px;
  }
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }
  .logo {
    font-size: 1.2rem;
  }
  .search-kbd {
    display: none;
  }
  .search-box input,
  .form-group-field input,
  .form-group-field select,
  .form-group-field textarea,
  .share-input-row input,
  .catalog-select {
    font-size: 16px !important;
  }
  .filters {
    order: 2;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .recent-subbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .catalog-subbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
  }
  .catalog-filters-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .filter-select-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .catalog-select {
    width: 100%;
  }
  .container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .card {
    contain-intrinsic-size: 160px 285px;
  }
  .card-info {
    padding: 0.65rem 0.65rem 0.72rem;
  }
  .card-title {
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
  }
  .card-meta {
    font-size: 0.67rem;
    gap: 0.25rem;
  }
  .card-meta .rating {
    font-size: 0.67rem;
    padding: 1px 5px;
  }
  .nuvio-row-section {
    margin-bottom: 2rem;
    contain-intrinsic-size: 1px 315px;
  }
  .nuvio-row-title {
    font-size: 1.05rem;
  }
  .nuvio-row-viewport::after {
    width: 28px;
  }
  .nuvio-carousel-track {
    gap: 0.8rem;
  }
  .nuvio-carousel-track .nuvio-card-item {
    flex: 0 0 148px;
    width: 148px;
  }

  /* =========================================
     HERO MÓVIL REDISEÑADO (LIMPIO Y AIREADO)
     ========================================= */
  .hero-banner {
    min-height: 465px;
    padding: 0;
  }
  .hero-backdrop-bg {
    width: 100%;
    height: 100%;
    background-position: center 15%;
    opacity: 0.72;
    filter: saturate(1.15) brightness(0.75);
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(16, 17, 20, 0.45) 0%, rgba(16, 17, 20, 0.35) 35%, rgba(16, 17, 20, 0.92) 72%, #101114 100%);
  }
  .hero-poster-stage {
    display: none !important;
  }
  .hero-container {
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 6.5rem 1.25rem 4.3rem;
    text-align: center;
    gap: 0;
    height: 100%;
  }
  .hero-info-box {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-badges-row {
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-bottom: 0.65rem;
    letter-spacing: -0.5px;
  }
  .hero-meta {
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
  }
  .hero-genres-row {
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
  }
  .hero-synopsis {
    -webkit-line-clamp: 2;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 1.15rem;
    color: #cbd5e1;
    max-width: 95%;
  }
  .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 390px;
  }
  .hero-btn-play {
    flex: 1.35;
    justify-content: center;
    padding: 0.78rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }
  .hero-btn-trailer {
    flex: 1;
    justify-content: center;
    padding: 0.78rem 0.85rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .hero-btn-fav {
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.78rem 0.85rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .hero-arrow {
    display: none;
  }
  .hero-thumbs-dock {
    right: 50%;
    transform: translateX(50%);
    bottom: 0.75rem;
    gap: 0.4rem;
    padding: 4px 6px;
    max-width: 92vw;
  }
  .hero-thumb-btn {
    width: 42px;
    height: 26px;
    border-radius: 5px;
  }

  /* MODAL Y REPRODUCTOR EN MÓVIL */
  .mobile-fullscreen-bar {
    display: flex;
  }
  .modal-overlay {
    padding: 0.5rem;
  }
  .modal {
    padding: 1.2rem 0.95rem;
    max-height: 94dvh;
  }
  .close-btn {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .modal-detail-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.85rem;
  }
  .modal-detail-text h2 {
    padding-right: 0;
    font-size: 1.35rem;
  }
  .modal-meta-row {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .modal-actions-group {
    justify-content: center;
    margin-right: 0 !important;
  }
  .modal-genres-row {
    justify-content: center;
  }
  .modal-detail-grid img {
    max-width: 118px;
    margin: 0 auto;
  }
  .share-social-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .site-footer {
    padding: 2.5rem 1.2rem 1.5rem;
    margin-top: 3.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   AJUSTES RESPONSIVE DEL MODAL Y MODO CINE IOS/MÓVIL
   ========================================== */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0.45rem !important;
  }

  .modal {
    padding: 1.1rem 0.85rem !important;
    border-radius: 14px !important;
    max-height: 94dvh !important;
  }

  /* 1. Barra de reproductores en una sola fila limpia */
  .server-selector-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    padding: 0.55rem 0.65rem !important;
  }

  .server-label {
    font-size: 0.68rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .server-btn {
    flex: 1 !important;
    padding: 0.42rem 0.35rem !important;
    font-size: 0.74rem !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* 2. Botones de acción simétricos */
  .modal-actions-group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    width: 100% !important;
  }

  .modal-btn-action {
    font-size: 0.74rem !important;
    padding: 0.42rem 0.68rem !important;
  }
}

/* MODO CINE / PANTALLA COMPLETA 100% REAL EN MÓVIL Y IPHONE (VERTICAL Y HORIZONTAL) */
@media (max-width: 960px) {
  .modal.theater-mode {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: env(safe-area-inset-top, 8px) env(safe-area-inset-right, 8px) env(safe-area-inset-bottom, 8px) env(safe-area-inset-left, 8px) !important;
    background: #000000 !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .modal.theater-mode .modal-detail-grid,
  .modal.theater-mode .episodes-section {
    display: none !important;
  }

  .modal.theater-mode .server-selector-bar {
    margin-bottom: 6px !important;
    padding: 0.35rem 0.5rem !important;
    padding-right: 42px !important;
  }

  .modal.theater-mode .player-glow-wrapper {
    margin-bottom: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  .modal.theater-mode .ambient-glow-bg {
    display: none !important;
  }

  .modal.theater-mode .player-container {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100dvh - 92px) !important;
    aspect-ratio: auto !important;
    border-radius: 8px !important;
    border: none !important;
  }

  .modal.theater-mode .mobile-fullscreen-bar {
    display: flex !important;
    margin-top: 6px !important;
  }

  .modal.theater-mode .close-btn {
    top: 8px !important;
    right: 8px !important;
    background: rgba(239, 68, 68, 0.85) !important;
    color: #fff !important;
    border: none !important;
  }
}

/* ==========================================
   BOTÓN TELEGRAM CON ANIMACIÓN DE CLAQUETA (¡CORTE!)
   ========================================== */
.filter-btn-telegram,
.filter-btn-telegram.active,
.filter-btn-telegram:focus,
.filter-btn-telegram:visited {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #e0f2fe !important;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.28), rgba(14, 165, 233, 0.16)) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  animation: clapperBtnImpact 4.4s ease-in-out infinite;
}

.filter-btn-telegram::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: clapperFlashSweep 4.4s ease-in-out infinite;
}

.filter-btn-telegram:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.45), rgba(14, 165, 233, 0.3)) !important;
  border-color: #7dd3fc !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.5) !important;
}

.clapper-icon {
  width: 17px;
  height: 17px;
  color: #fbbf24;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.55));
}

.clapper-top {
  transform-origin: 3px 11px;
  animation: clapperTopSnap 4.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.filter-btn-telegram:hover .clapper-top {
  animation: clapperTopHover 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1;
}

@keyframes clapperTopSnap {
  0%, 70%, 100% {
    transform: rotate(0deg);
  }
  76% {
    transform: rotate(-28deg);
  }
  82% {
    transform: rotate(3deg);
  }
  86% {
    transform: rotate(0deg);
  }
}

@keyframes clapperTopHover {
  0% { transform: rotate(0deg); }
  45% { transform: rotate(-28deg); }
  80% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes clapperBtnImpact {
  0%, 80%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  82% {
    transform: translateY(1.5px) scale(0.97);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.65), 0 0 10px rgba(251, 191, 36, 0.45);
  }
  87% {
    transform: translateY(-1px) scale(1.02);
  }
}

@keyframes clapperFlashSweep {
  0%, 80% {
    left: -120%;
    opacity: 0;
  }
  83% {
    opacity: 1;
  }
  94%, 100% {
    left: 150%;
    opacity: 0;
  }
}
