 :root {
   --bg: #000000;
   --text: #f0f0f0;
   --muted: #b5b7ba;
   --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
 }

 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
   font-family: 'Montserrat';
   font-style: normal;
   font-weight: 400;
   font-display: swap;
   src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw0aXpsog.woff2) format('woff2');
   unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
 }

 body {
   background: var(--bg);
   font-family: 'Inter', 'Segoe UI', sans-serif;
   color: var(--text);
   overflow-y: auto;
 }

 .section {
   padding: 20px 24px;
   position: relative;
 }

 .section h2 {
   font-size: 17px;
   margin-bottom: 26px;
 }

 .row-wrapper {
   position: relative;
 }

 .row {
   display: flex;
   gap: 15px;
   overflow-x: auto;
   scroll-snap-type: x mandatory;
   scroll-behavior: smooth;

 }

 .row::-webkit-scrollbar {
   height: 0;
 }

 .card {
   flex: 0 0 360px;
   aspect-ratio: 16 / 9;
   position: relative;
   border-radius: 8px;
   overflow: hidden;
   background: #1a1d21;
   scroll-snap-align: start;


   transition: transform 0.2s ease;
 }

 .card:hover {
   transform: scale(1.05);
   z-index: 1;
 }


 .card img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   transform: scale(1.52);

 }


 .card::after {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15) 60%, transparent);
 }

 .caption {
   position: absolute;
   left: 15px;
   right: 15px;
   bottom: 10px;
   font-family: 'Montserrat', sans-serif;
   color: #fff;


   font-weight: bold;
   text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
   font-size: 13px;
   color: #ffffff;
   z-index: 5;
 }

 .sub {
   display: block;
   font-size: 10px;
   text-align: right;
   font-weight: 500;
   color: var(--muted);
   margin-top: 2px;
 }

 .subdescriptcion {
   display: block;
   font-size: 10px;
   text-align: left;
   font-weight: 500;
   color: var(--muted);
   margin-top: 2px;
 }

 .ad-card {
   display: flex;
   align-items: center;
   justify-content: center;
   background: #242424;
   color: #ffffff;
   font-weight: bold;
   font-size: 16px;
   text-align: center;
 }

 .scroll-btn {
   position: absolute;
   top: 50%;
   width: 50px;
   transform: translateY(-50%);
   background: rgba(0, 0, 0, 0.6);
   color: white;
   border: none;
   padding: 10px;
   z-index: 3;
   cursor: pointer;
   font-size: 22px;
   border-radius: 50%;
 }

 .scroll-btn:hover {
   background: rgba(255, 255, 255, 0.2);
 }

 .scroll-left {
   left: -10px;
 }

 .scroll-right {
   right: -10px;

 }


 @media (max-width: 700px) {
   .card {
     flex: 0 0 300px;
   }


 }


 #background_IOP {
   position: relative;
   width: 100%;
 

   padding: 15px;
   border-radius: 12px 12px 0 0;
   background-color: var(--bg);

   background-size: cover;
   background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.2) 80%);
   background-position: center top;
   background-repeat: no-repeat;
   background-size: calc(100% + 360px);
   background-position-y: -105px;

   display: flex;
   flex-direction: row;

 }

 #background_IOP2 {
   position: relative;
   width: 100%;
 

   padding: 15px;
   border-radius: 12px 12px 0 0;
   background-color: var(--bg);

   background-size: cover;
   background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.2) 80%);
   background-position: center top;
   background-repeat: no-repeat;
   background-size: calc(100% + 360px);
   background-position-y: -0px;

   display: flex;
   flex-direction: row;

 }

 .modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(0, 0, 0, 0.7);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 9999;
   padding: 1em;
   overflow-y: scroll;
   transition: opacity 0.3s ease, transform 0.3s ease;

 }

 .modal-content {

   position: relative;
   width: 920px;
   max-width: 100%;
   max-height: 90vh;
   /* Limita la altura máxima */

   /* Scroll interno si se desborda */


   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

 }

 #reproducirdorama {
   background-color: #ffffff;
   padding: 15px;
   border-radius: 8px;
   border: none;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 10px;
 }

 #vermastarde {
   background-color: #ffffff;
   padding: 15px;
   border-radius: 8px;
   border: none;
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 10px;
 }


 #title_ss {
   font-size: 2.3vw;
   font-weight: bold;
 }

 @media (max-width: 600px) {

   #title_ss {
     font-size: 5.3vw;
     font-weight: bold;
   }

   .modal-content {

     position: relative;
     max-width: 100%;
     max-height: 100%;


   }



   #modal {
     padding: 0;
   }

   #reproducirdorama {
     background-color: #ffffff;
     padding: 15px;
     border-radius: 8px;
     border: none;
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 10px;
     color: var(--bg);
     width: 100%;
   }
 }







 #progress-bar {
   height: 4px;
   margin-top: 15px;
   background-color: red;
   /* color por defecto */
   transition: width 0.3s ease;

 }


 .hero {
   position: relative;
   width: 100%;
   min-height: 70vh;

   display: flex;
   align-items: flex-end;
   background: center/cover no-repeat;
   padding: 2rem;
   box-sizing: border-box;

   color: white;
 }

 .overlay {
   background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.2) 80%);
   position: absolute;
   top: 0;
   bottom: 0;
   left: 0;
   right: 0;
 }

 .content {
   position: relative;
   z-index: 2;
   padding: 5vw;
   max-width: 600px;
 }

 .logo {
   font-size: 1.2rem;
   font-weight: bold;
   color: #ffb400;
   display: flex;
   align-items: center;
   gap: 8px;
 }

 .logo span:first-child {
   color: #e50914;
   font-size: 1.5rem;
 }

 .title {
   font-size: 2.2rem;
   line-height: 1.1;
   font-weight: bold;
   margin: 0.6em 0 0.3em;
   color: #f5c518;
 }

 .title .icon {
   font-size: 1.5rem;
   color: #ff5c5c;
 }

 .subtitle {
   font-size: 0.9rem;
   line-height: 1.5;
   margin-bottom: 1.5em;
   color: #ddd;
 }

 .buttons {
   display: flex;
   gap: 15px;
   flex-wrap: wrap;
   flex-direction: row;
 }

 .btn {
   background: white;
   color: black;
   border: none;
   padding: 12px 24px;
   border-radius: 9px;
   font-size: rem;
   font-weight: bold;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 10px;
   transition: background 0.3s ease;
 }

 .btn:hover {
   background: #e6e6e6;
 }

 .btn.secondary {
   background: rgba(109, 109, 110, 0.7);
   color: white;
 }

 .btn.secondary:hover {
   background: rgba(109, 109, 110, 0.9);
 }

 .rating {
   position: absolute;
   bottom: 20px;
   right: 30px;
   background: rgba(0, 0, 0, 0.6);
   padding: 6px 10px;
   border-radius: 4px;
   font-weight: bold;
   font-size: 0.9rem;
 }

 @media (max-width: 768px) {
   .title {
     font-size: 1.3rem;
   }

   .subtitle {
     font-size: 0.6rem;
   }

   .btn {
     padding: 10px 20px;
     font-size: 0.95rem;
   }

   .content {
     padding: 20px;
   }

   .rating {
     right: 20px;
     bottom: 15px;
     font-size: 10px;
   }


 }

 @media (max-width: 480px) {
   .title {
     font-size: 1.5rem;
   }

   .subtitle {
     font-size: 0.65rem;
   }




 }

 .list-search-9832-container {
   position: relative;
   display: flex;
   flex: 1;
   width: 100%;
   min-height: 120px;
   border-radius: 8px;
   overflow: hidden;
   align-items: center;
   padding: 25px;
   background-position: center;
   background-size: cover;
 }

 .list-search-9832-overlay {
   position: absolute;
   inset: 0;
   background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
   pointer-events: none;
 }

 .list-search-9832-content {
   position: relative;
   color: white;
   font-size: 16px;
   display: flex;
   flex-direction: column;
   gap: 10px;
 }

 .list-search-9832-title {
   font-weight: bold;
 }

 .list-search-9832-desc {
   font-size: 12px;
   line-height: 1.4;
 }

 .card {
   position: relative;
   display: block;
   border-radius: 14px;
   overflow: hidden;
   background: #0b0b0b;
   box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
   cursor: pointer;
   transition: transform .2s ease, box-shadow .2s ease;
   outline: none;
 }

 .card:focus-visible {
   box-shadow: 0 0 0 3px #ff3b3bAA, 0 6px 18px rgba(0, 0, 0, .25);
 }

 .card:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
 }

 .card-figure {
   margin: 0;
   position: relative;
   /* Mantén proporción tipo portada (no “empuja” nada) */
   aspect-ratio: 16 / 9;
 }

 .card-img {
   width: 100%;
   height: 100%;
   display: block;
   object-fit: cover;

 }


 /* Badge TOP */
 .card-top-badge {
   position: absolute;
   top: 8px;
   right: 8px;
   background: #0084ff;;
   color: #fff;
   padding: 5px 10px;
   font-size: 12px;
   font-weight: bold;
   border-radius: 6px;
   letter-spacing: .2px;
 }

 /* Degradado inferior para legibilidad del texto */
 .card-gradient {
   content: 'AD';
   position: absolute;
   inset: -10px;
   background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15) 60%, transparent);
 }

 /* Ribbon estado + CTA */
 .card-ribbon {
   position: absolute;

   font-size: 12px;


   display: inline-flex;
   align-items: stretch;

   overflow: hidden;
   font-size: 12px;
   font-weight: 800;
   z-index: 2;
   /* sobre la imagen */
   box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
 }

 .card-ribbon-tag {
   background: #0084ff;;
   color: #fff;
   padding: 6px 10px;
 }

 .card-ribbon-cta {
   border: 0;
   background: #fff;
   color: #0084ff;;
   padding: 6px 10px;
   font-weight: 800;
   font-size: 10px;
   cursor: pointer;
   border-radius: 0px 8px 9px 0px;
 }

 /* Caption (título y sub) */
 .card-caption {
   position: absolute;
   left: 12px;
   right: 12px;
   bottom: 10px;
   z-index: 1;
   display: flex;

   flex-direction: column;
   gap: 2px;
   pointer-events: none;
   /* no bloquea clic al card */
 }

 .card-title {
   color: #fff;
   font-weight: 800;
   font-size: 15px;
   line-height: 1.25;
   display: -webkit-box;

   -webkit-box-orient: vertical;
   overflow: hidden;
   text-overflow: ellipsis;
 }

 .card-sub {
   color: #e2e2e2;
   font-size: 12px;
   font-weight: 600;
   opacity: .9;
 }



 .toolbar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   height: var(--toolbar-h);
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 20px;
   background: transparent;
   /* completamente transparente */
   color: white;
   z-index: 1000;
   transition: background-color .3s ease;
 }

 .toolbar.scrolled {
   background: var(--bg);
   /* se vuelve negra al hacer scroll */
 }

 /* (Opcional) estilos del buscador/ logo, si los usas */
 .toolbar img {
   height: 40px;
 }






 .toolbar .search-container {
   padding: 25px;
   display: flex;
   justify-content: end;
   width: 100%;
 }

 .toolbar .search-box {
   position: relative;
   width: 100%;
   max-width: 500px;

   padding: 10px 15px 10px 15px;
   border-radius: 8px;


   color: #fff;
   display: flex;
   align-items: center;
   background: rgba(255, 255, 255, 0.1);
   font-size: 16px;

 }

 .toolbar .search-box input {
   width: 100%;
   border: none;
   outline: none;
   background: transparent;
   color: #fff;
   font-size: 16px;
 }

 .toolbar .search-box input::placeholder {
   color: #bbb;
 }



 /* ==========================================================
   🔹 Barra de herramientas móvil fija (bottom)
   ========================================================== */



 .toolsbarmovil {
   position: fixed;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: 20;
   height: 80px;
   background: #0b0d0f;
   display: flex;
   justify-content: space-around;
   align-items: center;
   box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
   padding: 0 10px;
 }

 @media (min-width: 700px) {
   .toolsbarmovil {
     display: none;
   }


 }



 /* 🔹 Botones */
 .toolsbarmovil button {
   background: none;
   border: none;
   display: flex;
   flex-direction: column;
   align-items: center;
   flex: 1;
   color: #949494;
   font-family: Montserrat, sans-serif;
   font-size: 13px;
   gap: 5px;
   cursor: pointer;
   transition: color 0.2s ease, transform 0.2s ease;
 }

 /* 🔹 Iconos */
 .toolsbarmovil svg {
   width: 24px;
   height: 24px;
   fill: #949494;
   transition: fill 0.2s ease;
 }

 /* 🔹 Efecto hover */
 .toolsbarmovil button:hover {
   color: #ffffff;
   /* verde estilo Spotify, cámbialo al color que prefieras */
   transform: scale(1.05);
 }

 .toolsbarmovil button:hover svg {
   fill: #ffffff;
 }

 /* 🔹 Estado activo (ej. página actual) */
 .toolsbarmovil button.active {
   color: #ffffff;
 }

 .toolsbarmovil button.active svg {
   fill: #ffffff;
 }

 /* Color base de iconos */
 .toolsbarmovil svg path {
   fill: #949494;
   /* blanco por defecto */
   transition: fill 0.2s ease;
 }

 /* Hover cambia color */
 .toolsbarmovil button:hover svg path {
   fill: #ffffff;
   /* verde */
 }

 /* Estado activo */
 .toolsbarmovil button.active svg path {
   fill: #ffffff;
 }



 #subtitlehero {

   display: -webkit-box;
   -webkit-line-clamp: 4;
   /* número de líneas visibles */
   -webkit-box-orient: vertical;
   overflow: hidden;
 }



 #subtitleherotop {

   font-size: 20px;
   padding: 10px;
   padding-left: 0px;
 }





 @media (max-width: 768px) {


   .hero {

     min-height: 0px;
     padding: 15px;
     max-height: 600px;
     flex: 1;
     height: 400px;
     background-position: center;
     background-size: cover;
     background-size: calc(100% + 660px);
   }



   .buttons {
     display: flex;
     flex-direction: row;
   }





 }