* { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      
      
  height: auto;
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Roboto', sans-serif;
  max-width: 100vw; /* Máximo ancho: ancho de la ventana */
  overflow-x: hidden; /* Nunca permitir scroll lateral */
  overscroll-behavior-y: contain; /* bloquea el "pull-to-refresh" */
  background-color: #000000; /* Fondo negro general */
  color: white;
    }
  

    body, html {
      
      
        background-color: #01011d;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: contain; /* bloquea el "pull-to-refresh" */
  z-index: 9999;
}




/* Solución Realme / notch / status bar */
body {
  
  background-clip: padding-box;
  background-color: #01011d ;
}

/* Ocultar barra de scroll en toda la app */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* Evitar que aparezca en algunos navegadores */
body {
    -ms-overflow-style: none;
}

.swiper-container, .swiper-wrapper, .swiper-slide {
  background-color: #000;
}


.swiper {
  width: 100%;
  height: 100dvh;

  padding-top: 0px;

  position: relative;
  z-index: 0;
}


.swiper-slide {
  height: 100%;
  background-image: var(--bg);
  background-size: var(--bg-size, contain); /* contain como valor por defecto */
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: black;
  overflow: hidden;
}


@media screen and (orientation: landscape) {
  .swiper-slide {
    background-image: var(--bg-land) !important;
    background-size: cover !important;
    background-position: center top !important;
    position: relative; /* Aseguramos que los hijos posicionados absolutos se acomoden bien */
  }

  /* ⚡ Ajustamos el overlay vertical */
  .swiper-slide .overlay {
    top: 10%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      to top,
      #010122,
      rgba(0, 0, 0, 0.562),
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.26),
      rgb(0, 0, 0),
      rgba(0, 0, 0, 0.897),
      rgba(0, 0, 0, 0.959),
      transparent
    ) !important;
    padding: 10px;
    transition: background 0.3s ease, padding 0.3s ease, top 0.3s ease;
    z-index: 2;
  }

  /* 🚀 Nuevo overlay que cubre TODO de arriba a abajo */
  .swiper-slide .slide-overlay-top {
    position: absolute;
    top: 0; /* Desde arriba */
    left: 0; /* Desde la izquierda */
    width: 60%; /* O ajusta a gusto: 25%, 40%, etc */
    height: 100%; /* 👈 Esto hace que abarque TODO el alto */
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.884) 0%,
      rgba(0, 0, 0, 0.2) 70%,
      transparent 100%
    );
    z-index: 1; /* Un nivel debajo del overlay principal */
    pointer-events: none;
    transition: background 0.3s ease;
  }
}



.slide-overlay-top {
  position: fixed; /* <-- también necesitas fijarla para que esté sincronizada */
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom,  #01011daf, #01011d98, #01011d85, rgba(0, 0, 0, 0.151), transparent);
  z-index: 999; /* justo debajo del .top-bar */
  pointer-events: none;
}
/* Overlay ajustado para asegurarse que quede encima de la imagen */
.swiper-slide .overlay {
  position: absolute;
  top: -150%; /* Sale desde arriba */
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, #01011d 0%,
   #01011d, 
   #01011d, 
   #01011d, 
   #01011d,
   #01011d,
  #000000ef, 
  #000000ef, 
  #000000ef, 
  #000000e0, 
  #000000c7, 
  #00000098, 
  #00000073, 
  #00000000 25%,
  transparent 10%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  z-index: 2;
  transition: all 0.3s ease;
}

/* Por defecto ocultamos las flechas */
.swiper-button-prev, .swiper-button-next {
  display: none;
}

/* Solo las mostramos en pantallas grandes */
@media (min-width: 1024px) {
  .swiper-button-prev, .swiper-button-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }

  .swiper-button-prev:hover, .swiper-button-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
  }

  .swiper-button-prev::after, .swiper-button-next::after {
    font-size: 24px; /* tamaño de la flecha */
    font-weight: bold;
  }

  .swiper-button-prev {
    left: 20px;
  }

  .swiper-button-next {
    right: 20px;
  }
}

/* Estilo base (móviles y pantallas pequeñas) */


/* Tablets en horizontal (>=768px) */
@media (min-width: 768px) {
  

  .swiper-slide {
    background-size: cover; /* que llene mejor la pantalla */
    background-position: center;
  }

  .swiper-button-prev, .swiper-button-next {
    display: flex;
    width: 40px;
    height: 40px;
  }
}

/* Pantallas grandes (>=1024px, laptops, monitores) */
@media (min-width: 1024px) {
  

  .swiper-button-prev, .swiper-button-next {
    width: 50px;
    height: 50px;
  }
}

/* Monitores muy grandes (>=1440px) */
@media (min-width: 1440px) {
  

  .swiper-button-prev, .swiper-button-next {
    width: 60px;
    height: 60px;
  }
}

/* 📱 Samsung Fold / tablets plegables abiertas */
@media (min-aspect-ratio: 0.7/1) and (max-aspect-ratio: 1.1/1) {

  .swiper {
    height: 100dvh;
  }


  .swiper-slide {

    background-image: var(--bg) !important;

    background-size: cover !important;

    background-position: center center !important;

  }


  .swiper-slide .overlay {

    top: 0;
    
    background: linear-gradient(
      to top,
      #01011d 0%,
      #01011d 20%,
      rgba(0,0,0,.8) 45%,
      transparent 100%
    );

  }


  .swiper-slide .slide-overlay-top {

    width:100%;
    height:40%;

    background:linear-gradient(
      to bottom,
      rgba(0,0,0,.8),
      transparent
    );

  }


  .swiper-slide .content {

    padding:25px;

  }


}


.content {
  position: absolute;
  bottom: 200px;
  left: 0;
  width: 100%;
  box-sizing: border-box;

  z-index: 3;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 20px;
}

/* =========================================================
   LOGOS TMDB - SISTEMA AUTOMÁTICO
   ========================================================= */

.title {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 115px;
  margin-bottom: 12px;
}

.title-logo {
  display: block;

  width: auto;
  height: auto;

  /* Tamaño automático */
  max-width: min(75%, 420px);
  max-height: 115px;

  object-fit: contain;
  object-position: center bottom;

  margin: 0 auto 8px auto;

  filter: drop-shadow(0 3px 6px rgba(0,0,0,.75));
}


/* =========================================================
   META
   ========================================================= */

.meta {
  margin-top: 4px;
  margin-bottom: 12px;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.description {
  margin-top: 0;
}


/* =========================================================
   LANDSCAPE
   ========================================================= */

@media screen and (orientation: landscape) {

  .title {
    justify-content: flex-start;
    min-height: 105px;
    margin-bottom: 10px;
  }

  .title-logo {
    max-width: 60%;
    max-height: 90px;

    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8px;
  }

}


/* =========================================================
   DESKTOP / TV
   ========================================================= */

@media (min-width: 1200px) {

  .title {
    min-height: 150px;
    margin-bottom: 10px;
  }

  .title-logo {
    max-width: 50%;
    max-height: 150px;

    margin-bottom: 10px;
  }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

  .title {
    min-height: 95px;
    margin-bottom: 8px;
  }

  .title-logo {
    max-width: 78%;
    max-height: 95px;

    margin-bottom: 8px;
  }

}


@media (min-width: 1200px) {

  .content {
    bottom: 130px;
    padding: 0 70px;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
  }

  .description {
    max-width: 63%;
    font-size: 18px;
    font-weight: bold;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .meta {
    font-size: 14px;
    margin-top: 0;
  }

}



.description,
.meta {
  text-align: center;
}

/* ✅ Ajustes solo en modo horizontal */
@media screen and (orientation: landscape) {
  .content {
    bottom:70px; /* un poco más arriba */
    align-items: flex-start;
    text-align: left;
    padding-left: 60px;
  }

  

  .description,
  .meta {
    text-align: left;
    max-width: 60%;
  }
}


@media (min-width: 1200px) {
  /* TABS más grandes */
  .tabs {
    gap: 40px;
    padding: 16px 40px;
  }

  .tab {
    font-size: 22px;
    padding: 12px 10px 8px;
  }

  .tab.active::after {
    height: 4px;
  }

  /* BLOQUE CONTENT más grande */
  .content {
    bottom: 130px;
    padding-left: 70px;
  }

 

  .meta {
    font-size: 14px;
    margin-top: -30px;
  }

  .description {
    font-size: 18px;
    max-width: 63%;
    font-weight: bold;

    display: -webkit-box;          /* 🔹 Activa el modo flexible */
    -webkit-line-clamp: 3;         /* 🔹 Muestra solo 3 líneas */
    -webkit-box-orient: vertical;  /* 🔹 Dirección vertical */
    overflow: hidden;              /* 🔹 Oculta el texto sobrante */
  }
}

.button-wrapper {
  margin-top: 20px;
  text-align: center;
}

.cta-button {
  background-color: #363636;
  color: white;
  padding: 10px 34px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #504f4f;
}

/* Solo mostrar en desktop */
@media (max-width: 1023px) {
  .button-wrapper {
    display: none;
  }
}


.content a {
  text-decoration: none;
  color: inherit;
  cursor: default;
}


@media (min-width: 1200px) {
  header {
    padding: 20px 40px; /* un poco más de padding para PC/TV */
  }

  .logo {
    height: 50px !important; /* el doble de tamaño original */
    width: auto;
  }

  .icons {
    gap: 25px; /* mayor separación entre iconos */
  }

  .icons span {
    font-size: 30px !important; /* iconos más grandes */
  }
}

/* =========================================================
   AJUSTE FINAL DE TEXTO DEL SWIPER
   ========================================================= */

/* ---------------------------------------------------------
   MÓVIL / VERTICAL
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .meta {
    font-size: 12px;
    line-height: 1.35;
    margin-top: 2px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.72);
  }

  .description {
    font-size: 12px;
    line-height: 1.4;
    max-width: 88%;
    color: rgba(255,255,255,.86);
  }

}


/* ---------------------------------------------------------
   LANDSCAPE
   --------------------------------------------------------- */

@media screen and (orientation: landscape) {

  .title {
    margin-bottom: 18px;
  }

  .title-logo {
    margin-bottom: 14px;
  }

  .meta {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
    margin-bottom: 9px;
    color: rgba(255,255,255,.78);
  }

  .description {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,.88);
  }

}


/* ---------------------------------------------------------
   DESKTOP / TV
   --------------------------------------------------------- */

@media (min-width: 1200px) {

  .meta {
    font-size: 14px;
    color: rgba(255,255,255,.78);
  }

  .description {
    font-size: 18px;
    color: rgba(255,255,255,.90);
  }

}


.swiper-pagination {
  bottom:150px !important;
  z-index: 2;
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.3;
  width: 8px;
  height: 8px;
  margin: 0 8px !important; /* 🔥 Esto fuerza la separación entre los bullets */
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

/* ✅ En landscape lo bajamos un poco */
@media screen and (orientation: landscape) {
  .swiper-pagination {
    bottom: 40px !important; /* o ajusta el valor a tu gusto */
  }
}

.swiper {
    overflow: hidden !important;
}

.swiper-wrapper {
    overflow: hidden !important;
}

.swiper-slide {
    overflow: hidden !important;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: calc(env(safe-area-inset-top) + 8px); /* 🔥 aquí bajas todo */
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 10px;

  background: rgba(0, 0, 0, 0);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;

  transition: transform 0.6s ease, opacity 0.6s ease;
  will-change: transform, opacity;
}



.logo {
  height: 25px; /* ajuste fino si es necesario */
  width: auto;
  margin-top: 7px;
}

.icons {
  display: flex;
  gap: 15px;
  margin-top: 3px;
}

.icons span {
  font-size: 28px;
  color: white;
  cursor: pointer;
}



/* BASE PARA AMBOS ICONOS */
.notification-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* ICONO NOTIFICACIONES (normal) */
.notification-icon:not(.download-icon) .material-icons-outlined {
  font-size: 30px;
}

/* ICONO DESCARGAS (un poco más pequeño) */
.download-icon .material-icons-outlined {
  font-size: 23px; /* 👈 ajuste clave */
  margin-top: -2px; /* 👈 ajuste fino para centrar verticalmente */
}

/* BADGE */
.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-size: 10px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}



    .tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0);
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  z-index: 999;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.3s ease-in-out; /* Agregamos animación para el desplazamiento */
}

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

header.hidden,
.tabs.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.tab {
  color: #ccc;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding: 10px 8px 6px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.tab.active {
  color: white;
}

.tab:active {
  background-color: rgba(255, 255, 255, 0.322);
  border-radius: 0px; /* opcional, para suavizar los bordes */
  transition: background-color 0.2s ease;
}


.tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 3px;
  background: white;
}

.tab-content {
  display: none;
  height: 0 !important;
  overflow: hidden;
}

.tab-content.active {
  display: block;
  height: auto !important;
}

@media screen and (orientation: landscape) {
  .tabs {
    justify-content: center;
    overflow-x: hidden;
    gap: 10px;
    top: 0;
    margin-top: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
  }

  header {
    z-index: 1001;
    pointer-events: none; /* 🚫 No intercepta clics */
  }

  .icons, .logo {
    pointer-events: auto; /* ✅ Pero sí permiten clics */
  }

  .logo {
    height: 10px;
    margin-top: 10px;
  }

  .icons span {
    font-size: 22px;
    margin-top: 10px;
  }
}


    /* Ejemplo básico de estilos para el overlay */
    #transitionOverlay {
  position: fixed;
  inset: 0;
  background: #01011d;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998; /* <- justo debajo de las tabs */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}


#transitionOverlay.show {
  opacity: 1;
  pointer-events: all;
}

#transitionOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* Inicia desde pequeño */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(
    from 90deg,
    #0066ff21 0%,
    #0066ff 60%,
    #ffffff 80%,
    #afafaf00 30%
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), black);
  animation: spin 1.2s linear infinite, shine 2s ease-in-out infinite;
  opacity: 1;
  transition: transform 0.2s ease-out; /* Animación rápida de entrada */
  z-index: 801;
}

@keyframes spin {
      0% { transform: translate(-50%, -50%) rotate(0deg); }
      100% { transform: translate(-50%, -50%) rotate(360deg); }
  }

  /* Animación de brillo */
  @keyframes shine {
      0%, 100% { filter: brightness(1); }
      50% { filter: brightness(1.8); } /* Aumenta el brillo */
  }

  @media screen and (orientation: portrait) {
  .swiper-slide {
    background-color: #000 !important; /* Fondo negro solo en portrait */
    background-image: var(--bg) !important; /* Imagen portrait */
    background-size: contain !important;
    background-position: top center !important;
  }
}

@media screen and (orientation: landscape) {
  .swiper-slide {
    background-image: var(--bg-land) !important;
    background-size: cover !important;
    background-position: center top !important;
  }
}

/* =========================================================
   AJUSTE FINAL - DESCRIPCIÓN DEL SWIPER
   ========================================================= */

.description {
  width: 100%;
  max-width: 92%;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  overflow: hidden;
  text-overflow: ellipsis;

  line-height: 1.45;
  box-sizing: border-box;

  margin-left: auto;
  margin-right: auto;
}


/* 📱 MÓVIL */
@media (max-width: 600px) {

  .description {
    width: 100%;
    max-width: 92%;
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 4;
  }

}


/* 📱 TABLET */
@media (min-width: 601px) and (max-width: 1199px) {

  .description {
    width: 100%;
    max-width: 90%;
    font-size: 14px;
    line-height: 1.45;
    -webkit-line-clamp: 4;
  }

}


/* 🖥️ PANTALLAS GRANDES */
@media (min-width: 1200px) {

  .description {
    width: 100%;
    max-width: 80%;

    font-size: 18px;
    line-height: 1.45;

    -webkit-line-clamp: 4;

    margin-left: auto;
    margin-right: auto;

    text-align: center;
  }

}


/* 📺 LANDSCAPE */
@media screen and (orientation: landscape) {

  .description {
    width: 100%;
    max-width: 65%;

    -webkit-line-clamp: 4;
  }

}


/* 🖥️ LANDSCAPE GRANDE */
@media (min-width: 1200px) and (orientation: landscape) {

  .description {
    width: 65%;
    max-width: 65%;

    margin-left: 0;
    margin-right: 0;

    text-align: left;
  }

}

/* Contenedor general de cada sección - más cerca del carrusel */
.section-content {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: -170px;
  margin-left: -7px;
  background-color: #01011d;;
  margin-right: 0px;
  z-index: 10;
  margin-bottom: 50px;
}

/* ✅ En landscape, bajamos también el .section-content */
@media screen and (orientation: landscape) {
  .section-content {
    margin-top: -50px; /* Antes tenías -70px, ahora subimos 30px */
  }
}

@media screen and (min-width: 1024px) and (orientation: landscape) {
  .section-content {
    margin-top: -70px; /* Súbelo más agresivamente en pantallas grandes */
  }
}


/* Cada bloque de contenido con título (como "Colecciones") */
.movie-section {
  margin-bottom: 0px;
  padding-left: 10px;
  margin-top: 45px;
  z-index: 1; /* Asegúrate de que el contenido esté encima del swiper */
  position: relative; /* Necesario para que el z-index tenga efecto */
}



.movie-section h2 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 10px;
}

/* Scroll horizontal estilo HBO Max */
.scroll-container {
  display: flex;
  padding-left: 10px;
  overflow-x: auto;
  padding-top: 0; /* Elimina el espacio superior del contenedor de imágenes */
  padding-bottom: 10px; /* Ajusta el espacio inferior según sea necesario */
  gap: 10px; /* Espacio entre las imágenes */
}



.scroll-container {
  overflow-x: auto;
  white-space: nowrap;
}

/* Ocultar scrollbar solo en móviles */
@media (max-width: 768px) {
  .scroll-container {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;     /* Firefox */
  }

  .scroll-container::-webkit-scrollbar {
    display: none;             /* Chrome, Safari y Opera */
  }
}


.scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  display: none; /* Ocultas por defecto */
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

@media (min-width: 1024px) {
  .scroll-btn {
    display: block; /* Muestras solo en pantallas grandes */
  }
}




/* Imágenes en scroll horizontal */
.scroll-container img {
  width: 130px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease;
  margin-right: 0;
}

.scroll-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ---------- ESTILOS BASE (móvil) ---------- */

.movie-item {
  position: relative;
  width: 210px;
  margin-right: 10px;
  text-align: left;
  font-size: 12px;
  display: inline-block;
  vertical-align: top;
}

.movie-item img.poster {
  width: 210px;
  height: 120px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  transition: border 0.3s ease;
}

.image-wrapper {
  position: relative;
}

.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 210px;
  height: 4px;
  background-color: #ebebeb4f;
  overflow: hidden;
  /* Debajo del botón de menú (5) y del menú (10), pero POR ENCIMA del
     fade inferior de la tarjeta (imagen-wrapper::after, z-index: 2),
     de modo que el fade quede tras la barra pero delante de la miniatura. */
  z-index: 4;
}

.progress-bar {
  height: 100%;
  background-color: #00aeff;
  transition: width 0.3s ease;
}

.continue-info {
  margin-top: 5px;
  font-size: 12px;
  color: #fdf6f6;
  text-align: left;
}

.continue-info .series-title {
  font-weight: bold;
  font-size: 12px;
  color: #fdf6f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-info .episode-title {
  font-size: 12px;
  color: #fdf6f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 20px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}


.continue-menu {
  position: absolute;
  top: 45px;
  right: 8px;
  background: rgba(20,20,20,0.95);
  border-radius: 6px;
  min-width: 180px;
  z-index: 10;
  display: none;
  overflow: hidden;
}


.menu-option {
  color: white;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
}


.menu-option:hover {
  background: rgba(255,255,255,0.15);
}

/* Scroll horizontal */
.scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* ---------- ESTILOS PARA PANTALLAS GRANDES ---------- */
@media screen and (min-width: 1024px) {
  .movie-item {
    margin-right: 20px;
    flex: 0 0 auto;
    width: 400px !important; /* igual que la imagen */
  }

  .movie-item img.poster {
    width: 400px !important;
    height: 210px !important;
  }

  .progress-bar-container {
    width: 400px !important;
    height: 8px !important;
  }

  .progress-bar {
    height: 100% !important;
  }

  .continue-info {
    font-size: 28px !important;
  }

  .movie-item .continue-info {
    width: 100% !important; /* hereda de .movie-item */
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
  }
  

  .continue-info .series-title,
.continue-info .episode-title {
  font-size: 17px !important;
  font-weight: 500;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  width: 100% !important;
  display: block;
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
}



  .delete-button {
    width: 28px !important;
    height: 28px !important;
    font-size: 18px !important;
    top: 20px;
    right: 20px;
  }
}



@media screen and (min-width: 1024px) {
  .progress-bar-container {
    height: 6px !important;  /* más gruesa */
    width: 400px !important;
    border-radius: 0px; /* bordes redondeados para mejor look */
  }

  .progress-bar {
    height: 100% !important;
    background-color: #00aeff; /* deja el color blanco que tienes */
    border-radius: 0px;
  }
}


.scroll-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto; /* empuja las flechas a la derecha */
}

.scroll-buttons button {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  transition: 0.3s;
}

.scroll-buttons button:hover {
  background: rgba(255,255,255,0.8);
  color: black;
}

.top-10 {
  position: relative;
}



.top-10 .scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}

.top-10 .scroll-btn.left {
  left: 5px;
}

.top-10 .scroll-btn.right {
  right: 5px;
}



/* Botones de scroll */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.scroll-btn:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
}

.scroll-btn.left {
  left: 5px;
}

.scroll-btn.right {
  right: 5px;
}


.container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 20px;
}

.top-10 {
background: linear-gradient(to bottom, #11217913, #11217959, #1121796c, #112179a1, #112179b9, #112079);
width: 100%;
max-width: 600px;
padding: 0px 0;
position: relative;
margin-bottom: 20px;
}

/* Contenedor horizontal para los títulos */
.top-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 1px 10px;
}

.top-logo{
    width: 190px;
    height: auto;
    display: block;
    flex-shrink: 0;
}



.top-10 h2 {
  color: #c5c5c5;
  font-size: 15px;
  margin: 0;
  font-weight: 300;      /* Más delgado */
  letter-spacing: 3px;   /* Aumenta la separación entre letras */
}


.scrollable {
display: flex;
overflow-x: auto;
white-space: nowrap;
scroll-behavior: smooth;

gap: -10px;          /* separación entre tarjetas */
padding: 10px 1px; /* espacio de los lados */

padding-bottom: 10px;

scrollbar-width: thin;
scrollbar-color: #666 #333;
}

.scrollable::-webkit-scrollbar {
height: 8px;
background-color: #333;
}

.scrollable::-webkit-scrollbar-thumb {
background-color: #666;
}

@media (max-width: 767px) {
.scrollable::-webkit-scrollbar {
  display: none;
}
}

@media (min-width: 1024px) {
  .top-10 h2 {
    font-size: 30px;
  }
}

@media (min-width: 1024px) {
  .top-10 {
    max-width: 100%; /* En lugar de un límite fijo como 600px */
  }
}


.card {
background-color: #00000000;
padding: 0px;
margin-right: 10px;
display: inline-block;
position: relative;
vertical-align: top;
left: 20px;
margin-left: 30px;

}

.card img {
width: 110px;
height: 170px;
border-radius: 7px;
transition: transform 0.3s ease-in-out; /* Transición para el hover */
z-index: 2;
}

.card img:hover {
  transform: scale(1.1); /* Efecto de zoom */
  cursor: pointer;
}

.rank-number {
position: absolute;
font-size: 80px;
font-weight: bold;

background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #dfe8f1 25%,
    #8b9aaa 50%,
    #eef4fa 75%,
    #6d7f91 100%
);

-webkit-background-clip: text;
-webkit-text-fill-color: transparent;

/* Brillo suave y difuminado DETRÁS del número para que resalte
   sobre cualquier fondo (claro u oscuro), sin trazos de unión
   de la fuente (no usamos text-stroke). */
filter: drop-shadow(0 2px 4px rgba(0,0,21,.7))
        drop-shadow(0 0 20px rgba(4,12,38,.45));

/* Halo luminoso azulado alrededor del número + sombra de apoyo */
text-shadow:
    0 2px 3px rgba(0,0,0,.45),
    0 0 12px rgba(120,170,255,.55),
    0 0 26px rgba(80,140,255,.4);

left: -25px;
top: 75%;
transform: translateY(-50%);
z-index: 1;
}

.horizontal-scroll-container {
  display: flex;
  overflow-x: auto; /* Scroll horizontal */
  white-space: nowrap; /* Evitar que los elementos se rompan en varias líneas */
  padding: 5px;
  border: 2px solid #66666600;
  background-color: #00000000;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #666 #333; /* Firefox */
}



/* Estilos para escritorio */
@media (min-width: 768px) {
  .horizontal-scroll-container::-webkit-scrollbar {
      height: 8px; /* Altura del scrollbar */
      background-color: #333;
  }

  .horizontal-scroll-container::-webkit-scrollbar-thumb {
      background-color: #666;
  }
}

/* Estilos para móvil (opcional: ocultar completamente el scrollbar) */
@media (max-width: 767px) {
  .horizontal-scroll-container::-webkit-scrollbar {
      display: none; /* Ocultar scrollbar en dispositivos móviles */
  }
}

.horizontal-scroll-container a {
  display: inline-block; /* Elementos en línea */
  margin-right: 10px; /* Espaciado entre imágenes */
}

.horizontal-scroll-container img {
  width: 250px; /* Tamaño fijo para las imágenes */
  height: auto;
  border-radius: 7px; /* Bordes redondeados */
  transition: transform 0.3s ease-in-out;
}

.horizontal-scroll-container img:hover {
  transform: scale(1.1); /* Efecto de zoom */
  cursor: pointer;
}
/* ===== Estilo base para todas las secciones especiales ===== */

.nick,
.terror,
.mexico,
.novelas,
.vampiros,
.mexicanas-clasicas {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 10px;
  padding: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Título */
.nick h2,
.terror h2,
.mexico h2,
.novelas h2,
.vampiros h2,
.mexicanas-clasicas h2 {
  font-size: 30px;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* Subtítulo */
.subtitulo {
  font-size: 14px;
  color: #fff;
  margin-top: 10px;
}

/* Logo de Nickelodeon */
.nick-logo {
  width: 250px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px #000);
}

/* ===== Fondos de cada sección ===== */

.nick {
  background:
    linear-gradient(to bottom, #fa7000, #00001094);
}

.terror {
  background:
    linear-gradient(to bottom, #020220e0, #00001094),
    url("https://od.lk/s/M18zMTg5NDY2MzRf/fondo-terror_173387-1447.avif");
}

.mexico {
  background:
    linear-gradient(to bottom, #020220e0, #00001094),
    url("https://od.lk/s/M18zMzE4Nzc4MTJf/cine%20mexicano%20fondo.png");
}

.novelas {
  background:
    linear-gradient(to bottom, #c5025363, #00001094);
}

.vampiros {
  background:
    linear-gradient(to bottom, #350303, #000010d7);
}

.mexicanas-clasicas {
  background:
    linear-gradient(to bottom, #00001094, #00001094),
    url("https://od.lk/s/M18zMTIyMDkyNjBf/Mexicanas%20section%20background.jpg");
}

/* ===== Scroll ===== */

.mexicanas-scroll-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  width: 98%;
  margin: 0 auto;
  padding-top: 20px;
  scroll-behavior: smooth;
}

.mexicanas-scroll-container a img {
  width: 130px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.mexicanas-scroll-container a:hover img {
  transform: scale(1.05);
}

@media (min-width:1024px) {

  .mexicanas-scroll-container {
    gap: 20px;
  }

  .mexicanas-scroll-container a img {
    width: 210px;
    height: 320px;
  }

}




/* Estilo para el botón 'Ver más' */
.ver-mas-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 300; /* Peso más delgado */
  color: white;
  background-color: #333c6e; /* Color del botón */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 2; /* Asegura que se muestre delante de la imagen de fondo */
  position: relative;
}

.ver-mas-btn:hover {
  background-color: #1829c2; /* Color al pasar el cursor */
}
/* Estilo global para scroll horizontal en escritorio */
.scroll-container,
.scrollable,
.horizontal-scroll-container,
.mexicanas-scroll-container {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #666 #333; /* Firefox */
}

.scroll-container::-webkit-scrollbar,
.scrollable::-webkit-scrollbar,
.horizontal-scroll-container::-webkit-scrollbar,
.mexicanas-scroll-container::-webkit-scrollbar {
  height: 8px;
  background-color: #333;
}

.scroll-container::-webkit-scrollbar-thumb,
.scrollable::-webkit-scrollbar-thumb,
.horizontal-scroll-container::-webkit-scrollbar-thumb,
.mexicanas-scroll-container::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
}
@media (max-width: 767px) {
  .scroll-container::-webkit-scrollbar,
  .scrollable::-webkit-scrollbar,
  .horizontal-scroll-container::-webkit-scrollbar,
  .mexicanas-scroll-container::-webkit-scrollbar {
    display: none;
  }

  .scroll-container,
  .scrollable,
  .horizontal-scroll-container,
  .mexicanas-scroll-container {
    scrollbar-width: none; /* Firefox */
  }
}

@media (min-width: 1024px) {
  /* 🔹 Scroll principal: películas, colecciones */
  /* Contenedor debe ser flex o grid para que gap funcione */
  .scroll-container {
    display: flex; /* o grid */
    gap: 20px;
  }
  
  .scroll-container img {
    width: 190px;
    height: 280px;
    /* no pongas gap aquí, solo en el contenedor */
  }

  /* 🔹 movie-item y contenido relacionado */
  .movie-item {
    width: 230px;
  }

  .movie-item img.poster {
    width: 230px;
    height: 140px;
  }

  

  /* 🔹 Top 10 */
  .card img {
    width: 220px;
    height: 300px;
  }

  .rank-number {
    font-size: 120px;
    left: -30px;
  }

}


/* Estilo para el chevron */
.chevron-link {
  float: right; /* Mueve el chevron al extremo derecho */
  margin-right: 15px; /* Espaciado desde el borde derecho */
}

.chevron-link svg {
  width: 18px;
  height: 18px;
  stroke: white; /* Chevron blanco */
  stroke-width: 2.5;
}

/* Agregar en tu archivo CSS */
.active-tab {
  display: block;
}

.hidden {
  display: none;
}

.footer {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background-color: #01011dcb;

  padding: 10px 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)); /* 🔥 CLAVE */

  height: calc(60px + env(safe-area-inset-bottom)); /* 🔥 CLAVE */

  z-index: 1000;
  justify-content: space-around;
  transition: transform 0.3s ease-in-out;
}
  
  .footer.hidden {
    transform: translateY(100%);
  }
  
  .footer.hidden {
    transform: translateY(100%);
  }
  
  .footer-icon {
    color: #bbb; /* Icono gris cuando está inactivo */
    text-align: center;
    text-decoration: none;
    font-size: 35px; /* Tamaño aumentado para los iconos */
    flex: 1; /* Ocupa el mismo espacio cada icono */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease; /* Animación suave al pasar el cursor */
  }
  
  /* Para asegurarnos de que los iconos aumenten correctamente */
  .footer-icon .material-icons, .footer-icon .material-icons-outlined {
    font-size: inherit; /* Heredar el tamaño de fuente del contenedor */
    transition: font-size 0.3s ease;
  }
  
  .footer-icon:hover {
    color: #fff; /* Cambia a blanco al pasar el cursor */
  }
  
  .footer-icon.active {
    color: #fff; /* Cambiar a blanco cuando está activo */
  }
  
  .footer-icon.active .material-icons-outlined {
    display: none; /* Oculta el icono outline cuando está activo */
  }
  
  .footer-icon.active .material-icons {
    display: inline-block; /* Muestra el icono normal cuando está activo */
  }
  
  /* Oculta los iconos normales por defecto */
  .footer-icon .material-icons {
    display: none;
  }
  
  /* Iconos outline por defecto */
  .footer-icon .material-icons-outlined {
    display: inline-block;
  }
  
  /* Estilos para el icono de perfil */
  .profile-icon-footer {
    width: 35px; /* Tamaño de la imagen de perfil */
    height: 35px; /* Tamaño de la imagen de perfil */
    border-radius: 50%; /* Hacer la imagen circular */
    border: 2px solid #fff; /* Borde blanco alrededor de la imagen */
    object-fit: cover; /* Asegura que la imagen se recorte bien */
  }
  
  /* Cambiar color de iconos inactivos */
  .footer-icon.inactive .material-icons-outlined,
  .footer-icon.inactive .material-icons {
    color: #bbb; /* Gris para iconos inactivos */
  }
  
  .nav__icon {
    font-size: 20px; /* Ajusta el tamaño del icono aquí */
  }

  .footer-icon.download-footer {
    position: relative;
    height: 40px;
    justify-content: center;
}

.footer-icon.download-footer::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background: #bbb;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    border-radius: 2px;
}


/* Ocultar búsqueda del header en pantallas grandes */
@media (min-width: 768px) {
    .search-icon-mobile {
        display: none;
    }
}
  
/* === Desactivar selección de texto globalmente === */
body, img, a, button, select, textarea {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE10+/Edge */
}

/* === Quitar resaltado al tocar elementos interactivos en móviles === */
a, button, select, textarea {
  -webkit-tap-highlight-color: transparent;
}


/* === Prevenir arrastre e interacciones con imágenes === */
img {
  
  -webkit-user-drag: none; /* WebKit: desactiva arrastre de imágenes */
  
}

html, body {
        margin: 0;
    padding: 0;
    background: #000;
      background-color: #01011d !important;
      touch-action: auto; /* Mejora la respuesta en botones en móviles */
}


/* Desactivar resaltado azul al tocar elementos */
a, button, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

.scroll-container a {
  text-decoration: none;
  color: inherit;
}

.tab {
  -webkit-tap-highlight-color: transparent;
}


/* Por defecto: mostrar footer, ocultar íconos del header */
.header-only {
  display: none;
}

/* Pantallas grandes: mostrar header completo y ocultar footer */
@media screen and (min-width: 1024px) {
  .footer {
    display: none !important;
  }

  .header-only {
    display: flex !important;
    align-items: center;
  }

  /* Íconos más grandes en el header */
  .icons span,
  .header-only span {
    font-size: 36px !important;
  }

  /* Ícono de perfil del header más grande y con borde blanco */
  #headerProfileIcon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
  }
/* Visible por defecto (móviles) */
.mobile-profile{
    display: flex;
    align-items: center;
}

/* Ocultarlo en pantallas grandes */
@media screen and (min-width: 1024px){
    .mobile-profile{
        display: none !important;
    }
}

}

/* Evita líneas moradas o subrayados debajo de íconos/enlaces */
.icons a,
.header-only a {
  text-decoration: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ---------- Pantallas grandes ---------- */
@media screen and (min-width: 1024px) {
  .horizontal-scroll-container {
    gap: 20px; /* espacio entre imágenes */
  }
  
  .horizontal-scroll-container img {
    width: 400px;
    height: 220px;
    /* opcional: para que no haya margen extra al final */
    /* margin-right: 0; */
  }
}


.custom-top-bar {
  background-color: #000;
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: flex-start; /* <- Cambio aquí */
  align-items: center;
  gap: 12px; /* <- Espacio entre los botones */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.custom-top-bar button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.custom-top-bar .material-icons {
  font-size: 28px;
}

/* Ocultar en pantallas pequeñas */
@media screen and (max-width: 1024px) {
  .custom-top-bar {
    display: none;
  }
}



#opening-screen.fade-out {
  opacity: 0;
  transition: opacity .8s ease;
}


/* ===== PRELOADER FIJO POR ENCIMA DE TODO ===== */
#opening {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #0a0a2a, #000);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  z-index: 999999999;
  overflow: hidden;
  transition: opacity 1s ease;
}

#opening img {
  width: 280px;
  opacity: 0;
  animation:
    introShow 1.2s forwards,
    introExit 1s ease-out 6s forwards,
    glow 2.5s ease-in-out infinite alternate;
}
    
@keyframes introShow {
  0% {
    opacity: 0;
    transform: scale(.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introExit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(7);
  }
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 6px #00f7ff55);
  }
  to {
    filter: drop-shadow(0 0 18px #00f7ffaa);
  }
}
    
    #loader-opening {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      margin-top: 25px;
      background: conic-gradient(
        from 90deg,
        #0066ff21 0%,
        #0066ff 60%,
        #ffffff 80%,
        #afafaf00 30%
      );
      -webkit-mask: radial-gradient(
        farthest-side,
        transparent calc(100% - 8px),
        black
      );
      animation: spinIntro 1.1s linear infinite;
    }
    
    @keyframes spinIntro {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
    
    #snow {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }
    
    #logo-opening,
    #loader-opening {
      position: relative;
      z-index: 2;
    }

/* 🎬 Transición intro → login */
.login-box {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

body.show-login .login-box {
  opacity: 1;
  transform: translateY(0);
}


.lazy-img {
  background: linear-gradient(
    90deg,
    #121212 25%,
    #1a1a1a 50%,
    #121212 75%
  );
  background-size: 200% 100%;
  animation: loading 1.2s infinite;
  opacity: .6; /* más barato que blur(2px): el blur en cientos de imágenes pesa en el scroll */
  transition: opacity .4s ease;
}

.lazy-img.loaded {
  animation: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

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



.lazy-img.loaded {
  opacity: 1;
}

.badge-estreno {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

#dynamicFloatingNotification {
    display: none;
}

/* ===========================
   Próximamente
=========================== */

.upcoming-section{
    margin-top:35px;
}

.upcoming-section h2{
    margin-bottom:1px;
}

/* Tarjeta */

.upcoming-scroll .upcoming-card{

    position:relative;

    display:block;

    width:250px;

    flex:none;

    color:#fff;

    text-decoration:none;

}

/* Imagen */

.upcoming-scroll .poster-wrapper{

    position:relative;

    overflow:hidden;

    border-radius:8px;

}

.upcoming-scroll img{

    display:block;

    width:250px;

    border-radius:8px;

}

/* ===========================
   Botón Play
=========================== */

.play-icon{

    position:absolute;

    left:14px;

    bottom:14px;

    width:42px;

    height:42px;

    border-radius:50%;

    border:2px solid #fff;

    background:rgba(0,0,0,.35);

    backdrop-filter:blur(5px);

    color:#fff;

    font-size:18px;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:20;

    cursor:pointer;

}

/* ===========================
   Tres puntos
=========================== */

.card-menu{

    position:absolute;

    top:10px;

    right:10px;

    width:34px;

    height:34px;

    border:none;

    background:none;

    color:white;

    font-size:26px;

    line-height:1;

    z-index:20;

    cursor:pointer;

}

/* ===========================
   Texto
=========================== */

.upcoming-info{

    padding-top:5px;

}

.upcoming-info h3{

    margin:0;

    font-size:13px;

    font-weight:700;

    line-height:1.3;

    white-space:normal;

}

.upcoming-info span{

    display:block;

    margin-top:6px;

    color:#aaa;

    font-size:10px;

}

/* Fondo oscuro */

#bottomSheetOverlay{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.25s;

    z-index:9998;

}

/* Bottom Sheet */

#bottomSheet{

    position:fixed;

    left:0;
    right:0;
    bottom:-100%;

    background:#1d1d1d;

    border-radius:24px 24px 0 0;

    padding:20px;

    transition:bottom .28s ease;

    z-index:9999;

}

/* abierto */

#bottomSheet.show{

    bottom:0;

}

#bottomSheetOverlay.show{

    opacity:1;

    visibility:visible;

}





/* Fondo oscuro */

#bottomSheetOverlay{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;

    visibility:hidden;

    transition:.25s;

    z-index:9998;

}

/* Bottom Sheet */

#bottomSheet{

    position:fixed;

    left:0;
    right:0;
    bottom:-100%;

    background:#1d1d1d;

    border-radius:24px 24px 0 0;

    padding:20px;

    transition:bottom .28s ease;

    z-index:9999;

}

/* abierto */

#bottomSheet.show{

    bottom:0;

}

#bottomSheetOverlay.show{

    opacity:1;

    visibility:visible;

}

/* Barra superior */

.sheet-handle{

    width:55px;
    height:5px;

    background:#8a8a8a;

    border-radius:30px;

    margin:0 auto 22px;

}

#sheetTitle{

    font-size:20px;

    margin-bottom:18px;

}

#sheetDescription{

    color:#cfcfcf;

    font-size:15px;

    line-height:1.5;

    margin-bottom:25px;

}

.sheet-btn{

    width:100%;

    border:none;

    background:none;

    color:white;

    font-size:15px;

    text-align:left;

    padding:18px 0;

    cursor:pointer;

}

body.sheet-open{
    overflow: hidden;
    overscroll-behavior: contain;
}

/* Fondos especiales a ancho completo: el contenido interior conserva su propio espaciado. */
.section-content .special-section.nick,
.section-content .special-section.terror,
.section-content .special-section.mexico,
.section-content .special-section.novelas,
.section-content .special-section.vampiros,
.section-content .special-section.mexicanas-clasicas,
.section-content .container .top-10 {
  width: 100vw !important;
  max-width: none !important;
  align-self: center;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.section-content .special-section.nick,
.section-content .special-section.terror,
.section-content .special-section.mexico,
.section-content .special-section.novelas,
.section-content .special-section.vampiros,
.section-content .special-section.mexicanas-clasicas {
  padding-left: 16px;
  padding-right: 16px;
}

/* ============================= */
/* SECCION GENEROS */
/* ============================= */


.genre-container{

    margin-bottom:0px;

    padding-left:10px;

    margin-top:45px;

    position:relative;

    z-index:2;

}



.genre-title{

    color:white;

    font-size:18px;

    font-weight:bold;

    margin-bottom:10px;

    padding-left:10px;

}



/* Carrusel */

.genre-scroll{

    display:flex;

    padding-left:10px;

    overflow-x:auto;

    gap:10px;

    scroll-behavior:smooth;

}



.genre-scroll::-webkit-scrollbar{

    display:none;

}


.genre-scroll{

    scrollbar-width:none;

}



/* Imagen cuadrada */

.genre-item{
    position: relative;   /* <-- ESTA LÍNEA FALTABA */
    flex: 0 0 auto;
    width:150px;
    height:150px;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    transition:.3s;
}

.genre-item::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.493);
    z-index: 1;
    transition: background .3s;
}

.genre-item::after{
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;

    text-shadow: 0 2px 8px rgba(0,0,0,.8);

    z-index: 2;
    pointer-events: none;
}



.genre-item:hover{

    transform:scale(1.05);

}



.genre-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    position:relative;
    z-index:0;
}




@media(max-width:768px){


.genre-item{

    width:120px;

    height:120px;

}


}

/* Solo el fondo es "full bleed"; las tarjetas conservan la retícula normal. */
.section-content .special-section.nick,
.section-content .special-section.terror,
.section-content .special-section.mexico,
.section-content .special-section.novelas,
.section-content .special-section.vampiros,
.section-content .special-section.mexicanas-clasicas,
.section-content .container .top-10 {
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  isolation: isolate;
}

.section-content .special-section.nick,
.section-content .special-section.terror,
.section-content .special-section.mexico,
.section-content .special-section.novelas,
.section-content .special-section.vampiros,
.section-content .special-section.mexicanas-clasicas {
  background: none !important;
}

.section-content .special-section.nick::before,
.section-content .special-section.terror::before,
.section-content .special-section.mexico::before,
.section-content .special-section.novelas::before,
.section-content .special-section.vampiros::before,
.section-content .special-section.mexicanas-clasicas::before,
.section-content .container .top-10::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-content .special-section.nick::before { background: linear-gradient(to bottom, #fa7000, #00001094); }
.section-content .special-section.terror::before { background-image: linear-gradient(to bottom, #020220e0, #00001094), url("https://od.lk/s/M18zMTg5NDY2MzRf/fondo-terror_173387-1447.avif"); }
.section-content .special-section.mexico::before { background-image: linear-gradient(to bottom, #020220e0, #00001094), url("https://od.lk/s/M18zMzE4Nzc4MTJf/cine%20mexicano%20fondo.png"); }
.section-content .special-section.novelas::before { background: linear-gradient(to bottom, #c5025363, #00001094); }
.section-content .special-section.vampiros::before { background: linear-gradient(to bottom, #350303, #000010d7); }
.section-content .special-section.mexicanas-clasicas::before { background-image: linear-gradient(to bottom, #00001094, #00001094), url("https://od.lk/s/M18zMTIyMDkyNjBf/Mexicanas%20section%20background.jpg"); }

.section-content .container .top-10 {
  width: 100% !important;
  max-width: 600px !important;
  background: none !important;
}

.section-content .container .top-10::before {
  background: linear-gradient(to bottom, #11217913, #11217959, #1121796c, #112179a1, #112179b9, #112079);
}

@media (min-width: 1024px) {
  .section-content .container .top-10 { max-width: 100% !important; }
}

/* Transición entre páginas */
body {
    opacity: 1;
    transition: opacity 0.1s ease;
}

body.page-transition {
    opacity: 0;
}

/* Fondo oscuro detrás */
#notificationOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9998;
  display: none;
  backdrop-filter: blur(2px);
}

/* Modal flotante */
.floating-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #01011d; /* color principal de tu app */
  color: #fff;
  padding: 18px 14px 26px;
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  z-index: 9999;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

/* ---- LOGO arriba ---- */
.notification-logo {
  width: 260px;       /* casi ancho completo */
  height: auto;       /* mantiene proporción real */
  max-height: 180px;  /* evita que se deforme */
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  opacity: 1;
}



/* Imagen */
.notification-banner {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* Texto */
.notification-text {
  margin-bottom: 18px;
}

.notification-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.3;
  color: #dfe4ff;
}

.notification-title strong {
  display: inline;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

.notification-description {
  font-size: 14px;
  opacity: 0.85;
  color: #c9d1ff;
  line-height: 1.4;
}

/* Botones */
.notification-button {
  display: block;
  width: 90%;
  max-width: 280px;
  margin: 6px auto;
  padding: 12px;
  border-radius: 24px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

/* Botón principal */
.notification-button.primary {
  background-color: #244dd6;
  color: #ebe9e9;
}

.notification-button.primary:hover {
  background-color: #0066ff;
}

/* Botón secundario */
.notification-button.secondary {
  border: 1.5px solid #244dd6;
  color: #dedee7;
  background-color: transparent;
}

.notification-button.secondary:hover {
  background-color: rgba(55, 115, 226, 0.993);
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  color: #fff;
}

/* =========================================
   FLECHAS DE NAVEGACIÓN PARA CARRUSELES
   PC / TV
   ========================================= */

.scroll-wrapper {
    position: relative;
    width: 100%;
}

/* Flechas ocultas por defecto */
.scroll-wrapper .scroll-btn {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    width: 42px;
    height: 42px;
    padding: 0;
    
    border: none;
    border-radius: 50%;
    
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    
    cursor: pointer;
    z-index: 20;
    
    transition: all 0.2s ease;
}

/* Flecha izquierda */
.scroll-wrapper .scroll-btn.left {
    left: 8px;
}

/* Flecha derecha */
.scroll-wrapper .scroll-btn.right {
    right: 8px;
}

/* Efecto al pasar el mouse */
.scroll-wrapper .scroll-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: translateY(-50%) scale(1.08);
}


/* =========================================
   SOLO PC / TV
   ========================================= */

@media screen and (min-width: 1024px) {

    .scroll-wrapper .scroll-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

}


/* =========================================
   MÓVIL / TABLET
   ========================================= */

@media screen and (max-width: 1023px) {

    .scroll-wrapper .scroll-btn {
        display: none !important;
    }

}

/* Ocultar barras de desplazamiento de los carruseles */
.scroll-container,
.horizontal-scroll-container,
.mexicanas-scroll-container,
.scrollable,
.upcoming-scroll,
#continueWatchingContainer {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Chrome, Edge, Safari y navegadores de TV */
.scroll-container::-webkit-scrollbar,
.horizontal-scroll-container::-webkit-scrollbar,
.mexicanas-scroll-container::-webkit-scrollbar,
.scrollable::-webkit-scrollbar,
.upcoming-scroll::-webkit-scrollbar,
#continueWatchingContainer::-webkit-scrollbar {
    display: none;
}

/* =============================================================
   FADE OSCURO INFERIOR EN CARRUSELES
   Overlay que combina con el color de la app (#01011d)
   Aplica a todas las tarjetas/imágenes de los carruseles
   (verticales y horizontales)
   ============================================================= */

.scroll-container > a,
.horizontal-scroll-container > a,
.mexicanas-scroll-container > a,
.wrapper-movie,
.movie-item,
.image-wrapper {
    position: relative;
}

/* Overlay inferior sobre cada tarjeta en los carruseles normales */
.scroll-container > a::after,
.horizontal-scroll-container > a::after,
.mexicanas-scroll-container > a::after,
.wrapper-movie::after,
.image-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    /* degradado transparente -> marino de la app */
    background: linear-gradient(180deg, transparent, rgba(1, 1, 29, 0) 40%, rgba(1, 1, 29, 0.85) 100%);
    border-radius: 0 0 5px 5px;
    pointer-events: none;
    z-index: 2;
}

/* Sombra/overlay más marcado al pasar el cursor */
.scroll-container > a:hover::after,
.horizontal-scroll-container > a:hover::after,
.mexicanas-scroll-container > a:hover::after,
.wrapper-movie:hover::after,
.image-wrapper:hover::after {
    background: linear-gradient(180deg, transparent, rgba(1, 1, 29, 0) 25%, rgba(1, 1, 29, 0.92) 100%);
}

/* Las imágenes de los carruseles quedan por debajo del overlay */
.scroll-container > a img,
.horizontal-scroll-container > a img,
.mexicanas-scroll-container > a img,
.top-10 .card a img,
.image-wrapper img.poster {
    position: relative;
    z-index: 1;
    display: block;
}

/* -----------------------------------------
   TOP 10 (películas y series)
   La tarjeta .card contiene nº + <a><img>
   ----------------------------------------- */
.top-10 .card a {
    position: relative;
    display: block;
}
.top-10 .card a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(1, 1, 29, 0) 40%, rgba(1, 1, 29, 0.85) 100%);
    border-radius: 0 0 7px 7px;
    pointer-events: none;
    z-index: 3;
}

/* -----------------------------------------
   ARREGLAR EL ZOOM EN HOVER
   El zoom se hace en el contenedor completo
   (imagen + fade), así el overlay acompaña y
   no se descuadra con la imagen al agrandarse.
   ----------------------------------------- */
.scroll-container > a img,
.horizontal-scroll-container > a img,
.mexicanas-scroll-container > a img,
.top-10 .card a img,
.scroll-container img:hover,
.horizontal-scroll-container img:hover,
.mexicanas-scroll-container img:hover,
.card img:hover,
.top-10 .card img:hover {
    transform: none !important;
}

.scroll-container > a,
.horizontal-scroll-container > a,
.mexicanas-scroll-container > a,
.top-10 .card a {
    transition: transform 0.3s ease;
    transform-origin: center;
}

.scroll-container > a:hover,
.horizontal-scroll-container > a:hover,
.mexicanas-scroll-container > a:hover,
.top-10 .card a:hover {
    transform: scale(1.06);
    z-index: 5;
}

/* Los números del Top 10 van POR DELANTE de la imagen y del fade */
.top-10 .rank-number {
    z-index: 8 !important;
    pointer-events: none;
}