*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Poppins',sans-serif;
    background:#0f172a;
    color:white;

}

.header{

    background:#111827;
    padding:20px 30px;
    border-bottom:1px solid #222;

}

.logo{

    display:none;
    align-items:center;
    gap:15px;

}

.logo img{

    width:55px;
    height:55px;
    object-fit:contain;

}

.logo h1{

    font-size:36px;
    font-weight:700;

}

.hero{

    padding:30px;

}

.hero h2{

    font-size:34px;
    margin-bottom:8px;

}

.hero p{

    color:#94a3b8;

}

.buscador{

    padding:0 30px 25px;

}

#buscar{

    width:100%;
    height:55px;

    border:none;

    outline:none;

    border-radius:12px;

    padding:0 20px;

    font-size:18px;

    background:#1e293b;

    color:white;

}

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));

    gap:22px;

    padding:30px;

}



.card{

    background:#1e293b;

    border-radius:14px;

    overflow:hidden;

    cursor:pointer;

    transition:.25s;
    flex-shrink:0;

    will-change:transform;
    position:relative;

}

.relacionadas .card{

    width:180px;

    min-width:180px;

}

.card:hover{

    transform:scale(1.08) translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.45),
        0 0 25px rgba(229,9,20,.35);

}

.card img{

    width:100%;

    height:260px;

    object-fit:cover;

}

.info{

    padding:12px;

}

.info h3{

    font-size:15px;

    line-height:22px;

    height:44px;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    text-overflow:ellipsis;

}

.player{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:999;

}

.player-box{

    width:90%;

    max-width:1000px;

}

.player video{

    width:100%;

    border-radius:12px;

}

#cerrar{

    float:right;

    margin-bottom:15px;

    background:red;

    color:white;

    border:none;

    width:45px;

    height:45px;

    border-radius:50%;

    font-size:20px;

    cursor:pointer;

}

.oculto{

    display:none !important;

}


/*==========================
PLAYER
==========================*/

.player-modal{

    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);

    display:none;

    justify-content:center;
    align-items:center;

    z-index:9999;

}

.player-modal.activo{

    display:flex;

}

.player-box{

    position:relative;

    width:90%;
    max-width:1200px;

}

.player-box video{

    width:100%;
    border-radius:15px;
    background:#000;

}

#cerrarPlayer{

    float:right;

    margin-bottom:15px;

    border:none;

    background:#ff2d55;

    color:white;

    font-size:22px;

    width:45px;
    height:45px;

    border-radius:50%;

    cursor:pointer;

}

#cerrarPlayer:hover{

    background:red;

}
/*==========================
LOADING PLAYER
==========================*/

.loading-player{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:20px;
    background:#000;
    color:white;
    z-index:5;
}

.spinner{
    width:70px;
    height:70px;
    border:6px solid rgba(255,255,255,.2);
    border-top:6px solid #ff2b2b;
    border-radius:50%;
    animation:girar .8s linear infinite;
}

.loading-player p{
    font-size:18px;
    font-weight:600;
}

@keyframes girar{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

/*==========================
NAVEGACIÓN TV
==========================*/

.card.focus{

    outline:4px solid #ff2d55;

    transform:scale(1.08);

    box-shadow:0 0 25px #ff2d55;

    z-index:99;

}

/*==========================
PANTALLA DE DETALLE
==========================*/

.detalle{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,.96);

    display:none;

    justify-content:center;
    align-items:center;

    overflow-y:auto;

    z-index:99999;

}

.detalle.activo{

    display:flex;

}



.detalle-box{

    width:90%;
    max-width:1200px;

    background:#111827;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 0 40px rgba(0,0,0,.6);

}

.banner{

    width:100%;
    height:420px;

    object-fit:cover;

    background:#000;

}

.detalle-info{

    padding:30px;

}

.detalle-info h1{

    font-size:38px;
    margin-bottom:15px;

}

.meta{

    display:flex;
    gap:20px;

    color:#ffc107;

    margin-bottom:20px;

    font-size:18px;

}

#sinopsisTMDB{

    color:#d1d5db;

    line-height:1.8;

    margin-bottom:30px;

    font-size:18px;

}

#btnReproducir{

    background:#e50914;

    color:#fff;

    border:none;

    padding:16px 40px;

    border-radius:14px;

    font-size:22px;

    font-weight:700;

    cursor:pointer;
    margin-top:25px;

    transition:.25s;

    box-shadow:0 10px 30px rgba(229,9,20,.45);

}

#btnReproducir:hover{

    transform:scale(1.05);

    background:#ff2d2d;

}

#cerrarDetalle{

    position:fixed;

    top:90px;

    right:40px;

    width:60px;
    height:60px;

    border:none;

    border-radius:50%;

    background:#ff2d2d;

    color:white;

    font-size:28px;

    cursor:pointer;

    z-index:9999999;

    box-shadow:0 0 20px rgba(0,0,0,.5);

}

#actoresTMDB{

    margin-top:20px;

    color:#cbd5e1;

    font-size:17px;

    line-height:1.7;

}

#directorTMDB{

    margin-top:10px;

    color:#facc15;

    font-size:17px;

    font-weight:600;

}


#btnTrailer{

    margin-left:15px;

    background:#2563eb;

    color:white;

    border:none;

    padding:16px 35px;

    font-size:20px;

    border-radius:12px;

    cursor:pointer;

    margin-top:25px;

    font-weight:bold;

    transition:.25s;

}




#btnFavorito{

    margin-left:15px;

    background:#16a34a;

    color:white;

    border:none;

    padding:16px 35px;

    font-size:20px;

    border-radius:12px;

    cursor:pointer;

    margin-top:25px;

    font-weight:bold;

    transition:.25s;

}

#btnFavorito:hover{

    background:#15803d;

}

#btnFavorito:focus{

    outline:4px solid #ff2d55;

    transform:scale(1.08);

    box-shadow:0 0 25px #ff2d55;

}

#btnTrailer:hover{

    background:#1d4ed8;

}

.tituloRelacionadas{

    margin-top:40px;

    margin-bottom:20px;

    font-size:24px;

}

.relacionadas{

    display:flex;

    gap:20px;

    overflow-x:auto;

    overflow-y:hidden;

    padding:15px;

    scroll-behavior:smooth;

}


.relacionadas img{

    width:140px;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;

}

.relacionadas img:hover{

    transform:scale(1.08);

}

.fondo-detalle{

    position:absolute;

    inset:0;

    background-size:cover;

    background-position:center;

    filter:blur(25px);

    transform:scale(1.15);

    opacity:.35;

    z-index:1;

}

.detalle-box{

    position:relative;

    z-index:2;

}

#peliculasRelacionadas img.focus{

    outline:4px solid #ff2d55;

    border-radius:12px;

    transform:scale(1.10);

    box-shadow:0 0 25px #ff2d55;

}

#btnReproducir:focus,
#btnTrailer:focus,
#cerrarDetalle:focus{

    outline:4px solid #ff2d55;

    transform:scale(1.08);

    box-shadow:0 0 25px #ff2d55;

}



.modalTrailer{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:99999999;

}

.modalTrailer.activo{

    display:flex;

}

.trailerBox{

    position:relative;

    width:90%;

    max-width:1100px;

}

.trailerBox iframe{

    width:100%;

    aspect-ratio:16/9;

    border:none;

    border-radius:15px;

}

#cerrarTrailer{

    position:absolute;

    top:-20px;

    right:-20px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#ff2d2d;

    color:#fff;

    font-size:24px;

    cursor:pointer;

}

.eliminarFavorito{

    position:absolute;

    top:8px;

    right:8px;

    width:34px;

    height:34px;

    border:none;

    border-radius:50%;

    background:#e50914;

    color:#fff;

    font-size:18px;

    cursor:pointer;

    z-index:20;

    transition:.25s;

}

.eliminarFavorito:hover{

    transform:scale(1.15);

}

#misFavoritos .card{

    position:relative;

}


#misFavoritos .card{

    position:relative;

}

.eliminarFavorito{

    position:absolute;

    top:8px;

    right:8px;

    width:32px;

    height:32px;

    border:none;

    border-radius:50%;

    background:#e50914;

    color:white;

    font-size:18px;

    cursor:pointer;

    z-index:100;

}

/*==========================
CONTINUAR VIENDO
==========================*/

.modalContinuar{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.75);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:999999999;

}

.modalContinuar.activo{

    display:flex;

}

.continuarBox{

    width:90%;

    max-width:520px;

    background:#111827;

    border-radius:18px;

    padding:35px;

    text-align:center;

    box-shadow:0 20px 50px rgba(0,0,0,.6);

}

.continuarBox h2{

    font-size:30px;

    margin-bottom:20px;

}

#textoContinuar{

    color:#cbd5e1;

    font-size:18px;

    margin-bottom:30px;

    line-height:1.6;

}

.botonesContinuar{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

#btnContinuar{

    background:#e50914;

    color:white;

    border:none;

    padding:15px 28px;

    border-radius:12px;

    font-size:18px;

    font-weight:bold;

    cursor:pointer;

}

#btnEmpezar{

    background:#2563eb;

    color:white;

    border:none;

    padding:15px 28px;

    border-radius:12px;

    font-size:18px;

    font-weight:bold;

    cursor:pointer;

}

#btnContinuar:hover{

    background:#ff2d2d;

}

#btnEmpezar:hover{

    background:#1d4ed8;

}

.posterContinuar{

    width:180px;

    border-radius:15px;

    margin:20px auto;

    display:block;

    box-shadow:0 15px 35px rgba(0,0,0,.5);

}

#tituloContinuarPelicula{

    font-size:28px;

    margin-bottom:15px;

}

.barraProgreso{

    width:100%;

    height:10px;

    background:#334155;

    border-radius:30px;

    overflow:hidden;

    margin:25px 0;

}

#progresoContinuar{

    width:0%;

    height:100%;

    background:#e50914;

    transition:.4s;

}


/*==========================
HERO
==========================*/

.heroBanner{

    position:relative;

    height:520px;

    margin:30px;

    border-radius:25px;

    overflow:hidden;

    background-size:cover;

    background-position:center;

}

.heroBanner::before{

    content:"";

    position:absolute;
    inset:0;

    background:
    linear-gradient(
        to top,
        #0f172a 5%,
        rgba(15,23,42,.4) 45%,
        rgba(0,0,0,.25) 100%
    );

}

.heroOverlay{

    width:100%;
    height:100%;

    display:flex;
    align-items:flex-end;
    justify-content:space-between;

    padding:70px;

    background:linear-gradient(...);

    position:relative;
    z-index:10;

}



#heroTitulo{

    width:500px;

    font-size:72px;

    font-weight:700;

    line-height:1;

    margin-bottom:25px;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

#heroDescripcion{

    width:600px;

    font-size:20px;

    color:#d1d5db;

    line-height:1.6;

    display:-webkit-box;

    -webkit-line-clamp:5;

    -webkit-box-orient:vertical;

    overflow:hidden;

}

.heroTexto{

    max-width:700px;

}

.heroBotones{

    display:flex;

    gap:20px;

    margin-bottom:40px;

}


.heroBotones{

    display:flex;

    gap:15px;

}

.heroBotones button{

    border:none;

    padding:18px 35px;

    border-radius:12px;

    font-size:20px;

    font-weight:bold;

    cursor:pointer;

}

#heroPlay{

    background:#e50914;

    color:#fff;

}

#heroInfo{

    background:#ffffff33;

    color:white;

    backdrop-filter:blur(10px);

}

.heroPoster{

    width:220px;

    border-radius:18px;

    margin-bottom:30px;

    box-shadow:0 20px 50px rgba(0,0,0,.55);

}

/*==========================
CATEGORÍAS HOME
==========================*/

.tituloCategoria{

    font-size:28px;

    margin:0;

    font-weight:700;

}


.encabezadoCategoria{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:35px 30px 15px;

}

.btnVerMas{

    background:none;

    border:none;

    color:#94a3b8;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}

.btnVerMas:hover{

    color:white;

}

.btnVerMas:focus{

    color:white;

    outline:2px solid #e50914;

    border-radius:6px;

}

.carruselPeliculas{

    display:flex;

    gap:20px;

    overflow-x:auto;

    padding:0 30px 30px;

    scroll-behavior:smooth;

}

.carruselPeliculas::-webkit-scrollbar{

    display:none;

}

.carruselPeliculas .card{

    flex:0 0 240px;

    width:240px;

    min-width:240px;

    max-width:240px;

}

.carruselPeliculas .info{

    height:90px;

}


.carruselPeliculas .card img{

    width:100%;

    height:330px;

    object-fit:cover;

}

.carruselPeliculas .info{

    height:110px;
}
/*==========================
PANTALLA CATEGORÍA
==========================*/

.pantallaCategoria{

    position:fixed;
    inset:0;

    background:#0f172a;

    z-index:999999;

    overflow-y:auto;

    padding:30px;

}

.cabeceraCategoria{

    display:flex;

    align-items:center;

    gap:25px;

    margin-bottom:35px;

}

#cerrarCategoria{

    background:#e50914;

    color:white;

    border:none;

    padding:12px 25px;

    border-radius:10px;

    font-size:18px;

    font-weight:bold;

    cursor:pointer;

}

#tituloCategoriaCompleta{

    font-size:42px;

    font-weight:700;

}

#buscarCategoria{

    width:100%;

    max-width:500px;

    margin:25px 0 35px;

    padding:16px 22px;

    background:#1e293b;

    color:white;

    border:none;

    border-radius:12px;

    font-size:17px;

    outline:none;

    transition:.3s;

}

#buscarCategoria::placeholder{

    color:#94a3b8;

}

#buscarCategoria:focus{

    box-shadow:0 0 0 2px #e50914;

}

#ordenCategoria{

    margin:0 0 35px 15px;

    padding:16px 20px;

    background:#1e293b;

    color:white;

    border:none;

    border-radius:12px;

    font-size:16px;

    cursor:pointer;

    outline:none;

}

#ordenCategoria:focus{

    box-shadow:0 0 0 2px #e50914;

}

.herramientasCategoria{

    display:flex;

    gap:20px;

    align-items:center;

    margin-bottom:35px;

    flex-wrap:wrap;

}

#buscarCategoria{

    flex:1;

    margin:0;

}

#ordenCategoria{

    margin:0;

    min-width:220px;

}

.contadorCategoria{

    font-size:18px;

    font-weight:600;

    color:#cbd5e1;

    margin-bottom:25px;

    margin-left:5px;

}
.buscador{

    width:100%;

    display:flex;

    justify-content:center;

    margin:35px 0;

}

.buscadorBox{

    display:flex;

    align-items:center;

    width:100%;

    height:52px;

    padding:0 18px;

    border-radius:15px;

}

.buscadorBox:focus-within{

    border-color:#e50914;

    box-shadow:0 0 25px rgba(229,9,20,.35);

}

.iconoBuscar{

    font-size:22px;

    margin-right:15px;

    opacity:.8;

}

.buscadorBox input{

    flex:1;

    height:100%;

    padding:0;

    margin:0;

    border:none;

    outline:none;

    background:transparent;

    color:#fff;

    font-size:18px;

    line-height:52px;

    caret-color:#e50914;

    display:flex;

    align-items:center;

}

.buscadorBox input::placeholder{

    color:#94a3b8;

}

.limpiarBusqueda{

    background:none;

    border:none;

    color:#94a3b8;

    font-size:22px;

    cursor:pointer;

    flex-shrink:0;

}

.limpiarBusqueda:hover{

    color:white;

    transform:scale(1.15);

}

.sugerenciasBusqueda{

    width:min(900px,95%);
    margin:8px auto 0;
    background:#111827;
    border-radius:14px;
    overflow:hidden;
    display:none;
    box-shadow:0 15px 35px rgba(0,0,0,.45);

}

.sugerencia{

    display:flex;
    align-items:center;
    gap:15px;
    padding:12px 16px;
    cursor:pointer;
    transition:.2s;

}

.sugerencia:hover{

    background:#1f2937;

}

.sugerencia img{

    width:55px;
    height:80px;
    object-fit:cover;
    border-radius:8px;

}

.sugerencia h4{

    color:white;
    margin:0;
    font-size:17px;

}

.sugerencia p{

    color:#94a3b8;
    margin-top:4px;
    font-size:13px;

}

#sugerenciasBusqueda{

    width:min(900px,95%);
    margin:auto;
    background:#1f2937;
    border-radius:14px;
    overflow:hidden;
    display:none;
    box-shadow:0 10px 30px rgba(0,0,0,.45);

}

.itemBusqueda{

    display:flex;
    align-items:center;
    gap:15px;

    padding:12px 18px;

    cursor:pointer;

    transition:.25s;

}

.itemBusqueda:hover{

    background:#334155;

}

.itemBusqueda img{

    width:45px;

    height:65px;

    object-fit:cover;

    border-radius:8px;

}

.itemBusqueda h4{

    color:white;

    margin:0;

}

.itemBusqueda p{

    color:#94a3b8;

    margin:4px 0 0;

    font-size:13px;

}

/*====================================
RESPONSIVE CELULAR
====================================*/

@media screen and (max-width:768px){

    body{

        overflow-x:hidden;

    }

    .heroBanner{

        height:300px;

        margin:10px;

        border-radius:15px;

    }

    .heroOverlay{

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    align-items:flex-start;

    padding:20px;

}

    .heroPoster{

        width:95px;

        margin-bottom:10px;

    }

    #heroTitulo{

        width:100%;

        font-size:28px;

        line-height:1.15;

        margin-bottom:10px;

    }

    #heroDescripcion{

        width:100%;

        font-size:14px;

        -webkit-line-clamp:2;

    }

    .heroBotones{

        margin-top:15px;

        margin-bottom:0;

        gap:10px;

        flex-wrap:wrap;

    }

    .heroBotones button{

        padding:12px 18px;

        font-size:15px;

    }

/*==========================
BUSCADOR RESPONSIVE
==========================*/

.buscador{

    margin:15px 0;
    padding:0 12px;

}

.buscadorBox{

    display:flex;

    align-items:center;

    gap:12px;

    width:100%;

    height:58px;

    background:#1e293b;

    border-radius:16px;

    padding:0 18px;

}

.buscadorBox input{

    flex:1;

    border:none;

    outline:none;

    background:transparent;

    color:#ffffff;

    font-size:18px;

    font-family:'Poppins',sans-serif;

    font-weight:500;

    padding:0;

    margin:0;

    height:100%;

    line-height:normal;

    display:block;

}

.buscadorBox input::placeholder{

    color:#94a3b8;

}

.iconoBuscar{

    font-size:22px;

    flex-shrink:0;

}

.limpiarBusqueda{

    font-size:20px;

}

/*==========================
SUGERENCIAS
==========================*/

#sugerenciasBusqueda{

    position:absolute;

    left:12px;

    right:12px;

    width:auto;

    z-index:99999;

}

.itemBusqueda{

    padding:12px;

}

.itemBusqueda img{

    width:50px;

    height:70px;

}

.itemBusqueda h4{

    font-size:15px;

}

.itemBusqueda p{

    font-size:12px;

}

/*==========================
CARDS CELULAR
==========================*/

.carruselPeliculas{

    gap:12px;

    padding:0 12px 20px;

}

.carruselPeliculas .card{

    flex:0 0 120px;

    width:120px;

    min-width:120px;

    max-width:120px;

}

.carruselPeliculas .card img{

    height:175px;

}

.carruselPeliculas .info{

    height:auto;

    padding:10px;

}

.carruselPeliculas .info h3{

    font-size:13px;

    line-height:18px;

    height:36px;

}

.tituloCategoria{

    font-size:20px;

    margin-left:12px;

}

.encabezadoCategoria{

    margin:25px 12px 12px;

}

.btnVerMas{

    font-size:14px;

}

.grid{

    grid-template-columns:repeat(2,1fr);

    gap:14px;

    padding:15px;

}

}

