.peliyseries{margin:0 auto;padding:0;max-width:1200px}
.single-hero{position:relative;color:#fff;padding:120px 40px 0;overflow:hidden;height:450px;display:flex;align-items:flex-end}
.hero-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-video{position:absolute;inset:0;width:115%;height:123%;margin:-76px -50px;object-fit:cover}
.hero-background{
    position:absolute;
    inset:0;
    z-index:1;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
    transition:opacity 1.2s ease;
}
.hero-video {
    z-index: 2;
    opacity: 0;
    transition: opacity 1.2s ease;
    position: absolute;
    top: 65%;
    left: 54%;
    width: 165%;
    height: 140%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
    object-position: center;
}
.single-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: -webkit-linear-gradient(to top, var(--fondo-sitio) 0%, rgba(var(--fondo-sitio-rgb), 0.85) 7%, rgba(var(--fondo-sitio-rgb), 0.35) 20%, rgba(var(--fondo-sitio-rgb), 0.00) 100%);
	background: -moz-linear-gradient(to top, var(--fondo-sitio) 0%, rgba(var(--fondo-sitio-rgb), 0.85) 7%, rgba(var(--fondo-sitio-rgb), 0.35) 20%, rgba(var(--fondo-sitio-rgb), 0.00) 100%); 
	background: linear-gradient(to top, var(--fondo-sitio) 0%, rgba(var(--fondo-sitio-rgb), 0.85) 7%, rgba(var(--fondo-sitio-rgb), 0.35) 20%, rgba(var(--fondo-sitio-rgb), 0.00) 100%);
	cursor: ;
}
.single-hero-content{position:relative;display:flex;align-items:flex-end;gap:25px;z-index:3;margin-top:-150px;padding:20px}
.single-hero-poster img{width:100px;border-radius:8px;box-shadow:0 0 25px rgba(0,0,0,0.5);height:auto}
.single-hero-content h1 {
    display: block;
    width: 100%;
    color: var(--texto-general);
    font-size: 30px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.detallpos{display:inline-grid}
.btns{margin-top:25px}
.btns button{margin-right:10px;padding:10px 20px;border:none;border-radius:4px;font-weight:600;cursor:pointer;transition:0.2s;position: relative;}
button.btn-like small.like-count {
    top: 6px;
    font-size: 10px;
    right: 10px;
}
.btn-play{background:var(--boton-principal-fondo);color:var(--boton-principal-texto)}
.btn-play:hover{background:#f6121d}
.sinfon {
    background: transparent;
    border: solid 1px var(--acciones-texto) !important;
    color: var(--acciones-texto);
}
.btn-play:hover{background:var(--boton-principal-fondo);opacity: .8;}
.single-info{display:flex;gap:40px;margin-top:5px;flex-wrap:wrap;font-size:15px;padding: 14px;}
.single-info-left,.single-info-right{flex:1 1 300px}
.single-sinopsis{margin-top:20px;font-size:1.1em}
.episodes {border-top: 2px solid #2222222e;margin-top: 60px;border-bottom: 2px solid #2222222e;margin-bottom: 40px;}
.episode-item{display:flex;align-items:center;border-bottom:1px solid #222;padding:15px 20px;background:rgb(0 0 0 / 10%);border-radius:8px;margin-bottom:5px}
.numeepiso{color:var(--texto-general);display:flex;flex:0 0 6%;font-size:1.5em;justify-content:center}
.episode-details h4{margin:0;color:var(--texto-general)}
.episode-details p{margin:4px 0;color:#aaa}
.episode-duration{margin-left:auto;color:var(--texto-general);font-weight:bold;opacity: .7;}
.botvolumvideo #mute-toggle{position:absolute;bottom:20px;right:30px;z-index:5;background:#00000033;border:none;color:var(--texto-general);padding:10px 11px;border-radius:50%;font-size:18px;cursor:pointer;transition:background 0.3s;width: 40px;height: 40px;}
#mute-toggle i{pointer-events:none}
.leftone{display:flex;gap:14px}
.calipost{border:1px solid var(--texto-general);border-radius:3px;color:var(--texto-general);font-size:.7em;padding:0 .5em;white-space:nowrap;line-height:16px}
.single-sinopsis p{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.doslineabaj{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.topepitit{display:flex;align-items:center}
p.episinopst{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.toptemposec{align-items:baseline;display:grid;grid-template-columns:2fr 1fr;grid-gap:2rem}
.selecttomp{justify-self:end}
select#select-temporada{display:flex;-webkit-box-align:center;align-items:center;min-width:4em;position:relative;font-size:1.2em;background-color:var(--fondo-sitio);padding:0.5em 1em;color:var(--texto-general);cursor:pointer;border: 0.1em solid rgb(18 18 18 / 17%);border-radius:0.2em}
/* === Hover con icono de Play === */
.episode-thumb{position:relative;display:inline-block;overflow: hidden;}
.episode-thumb img{display:block;width:140px;height:80px;object-fit:cover;border-radius:6px;transition:filter 0.3s ease,transform 0.3s ease}
/* Overlay de play */
.play-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.5);border-radius:6px;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(0.9);transition:opacity 0.3s ease,transform 0.3s ease}
.play-overlay i{font-size:24px;color:white;border:2px solid white;border-radius:50%;padding:10px 13px;background:rgba(0,0,0,0.4)}
/* Efecto hover */
.episode-item:hover img{filter:brightness(0.7)}
.episode-item:hover .play-overlay{opacity:1;transform:scale(1)}
.episode-details{margin-left:20px;flex: 1;}
/* === POPUP REPRODUCTOR === */
.player-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.95);z-index:9999;display:none;align-items:center;justify-content:center;flex-direction:column;animation:fadeIn 0.4s ease forwards}
.player-content{position:relative;width:90%;max-width:960px;height:540px;background:#000;border-radius:8px;overflow:hidden}
.player-content iframe{width:100%;height:100%;border:none}
.close-player{position:absolute;top:10px;right:15px;background:transparent;border:none;color:white;font-size:24px;cursor:pointer;z-index:10}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
span.badge-gratis {
    position: absolute;
    background: var(--boton-principal-fondo);
    color: var(--boton-principal-texto);
    font-size: 13px;
    top: 9px;
    left: -22px;
    padding: 1px 25px;
    transform: rotate(316deg);
}
#contenido-single,
#reproductor-dinamico {
  transition: opacity 0.4s ease;
}

#contenido-single.oculto {
  opacity: 0;
  pointer-events: none;
}

.doslineabaj a {
    color: var(--texto-general);
}
#reproductor-dinamico {
  opacity: 0;
}
#reproductor-dinamico.activo {
  opacity: 1;
}
/* === Contenedor de carga === */
#reproductor-dinamico .loading-screen {
    position: fixed;             /* Mantenerlo centrado aunque se haga scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;               /* Ocupa toda la altura visible */
    background-color: #000;      /* Fondo negro */
    display: flex;               /* Centrado perfecto con Flexbox */
    flex-direction: column;      /* Spinner arriba, texto abajo */
    justify-content: center;     /* Centrar verticalmente */
    align-items: center;         /* Centrar horizontalmente */
    color: #fff;
    z-index: 9999;               /* Asegurarse de que esté encima de todo */
}
.secsinglebo {
    padding: 10px;
    padding-top: 0;
}
/* === Spinner circular === */
.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #3498db; /* Color del spinner */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px; /* Espacio entre spinner y texto */
}

/* === Animación de giro === */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
body.reproductor header#main-header {
    display: none;
}
/* ===COMPRA EXITOSA PELICULA - SERIE - EPISODIO === */	
#overlay-compra-exitosa {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

#overlay-compra-exitosa .overlay-box {
    text-align: center;
    color: #fff;
}

#overlay-compra-exitosa .spinner {
    width: 90px;
    height: 90px;
    border: 8px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#overlay-compra-exitosa .check {
    font-size: 80px;
    color: #4CAF50;
    display: none;
}

#overlay-compra-exitosa p {
    font-size: 22px;
    margin-top: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.mensaje-serie {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.9;
    text-align: center;
    background: #fbfbfb1a;
    padding: 1px;
    margin-bottom: 15px;
    border-radius: 8px;
}
	
/* === Loader del HERO === */
.hero-loader {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.5s ease;
}

.hero-loader.oculto {
    opacity: 0;
    pointer-events: none;
}
.hero-loader .spinner {
    border: 20px solid rgba(255, 255, 255, 0.2);
    border-top: 20px solid var(--boton-principal-fondo);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    animation: spin 1s linear infinite;
    opacity: .3;
}
.hero-loader{
    position:absolute;
    inset:0;
    z-index:0;
}

.planes-pelicula {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 6px 16px;
    margin-bottom: 15px;
    border: 1px solid #e5e5e51c;
    border-radius: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.planes-titulo {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 100;
}

.planes-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 16px;
    margin-bottom: 10px;
    border: 1px solid #e5e5e51c;
    border-radius: 8px;
    background: #ffffff0d;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.plan-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 10PX;
}

.plan-nombre {
    font-weight: 600;
    font-size: 1rem;
}

.plan-precio {
    font-size: 0.9rem;
}

.btn-suscribir {
    background: var(--boton-principal-fondo);
    color: var(--boton-principal-texto);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-suscribir:hover {
    background: var(--boton-principal-fondo);
}

/* HERO EXPANDIDO */
.single-hero.hero-expanded{
    position:relative;
    z-index:9999;
}

.single-hero.hero-expanded .hero-video{
    z-index:10000;
    opacity:1 !important;
}

.single-hero.hero-expanded::after{
    display:none;
}

section.relacionados-section.container {
    margin-bottom: 20px;
}

/* === HERO POPUP === */

.hero-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    z-index:9998;
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
}

.hero-modal-overlay.active{
    opacity:1;
    pointer-events:auto;
}

.single-hero.hero-modal-active{
    z-index:9999;
}

.single-hero.hero-modal-active .hero-video{
    pointer-events:auto;
    opacity:1 !important;
}
.single-hero.hero-modal-active::after {display:none}
.hero-close{
    position:absolute;
    top:15px;
    right:20px;
    z-index:10000;
    background:rgba(0,0,0,.6);
    border:none;
    color:#fff;
    font-size:22px;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    display:none;
}

.single-hero.hero-modal-active .hero-close{
    display:block;
}
.btn-mostrar-mas{
display:block;
margin:20px auto;
padding:12px 22px;
background:var(--boton-principal-fondo);
color:var(--boton-principal-texto);
border:none;
border-radius:6px;
cursor:pointer;
font-size:14px;
font-weight:600;
transition:0.3s;
}

.btn-mostrar-mas:hover{
background:var(--boton-principal-fondo);opacity: .7;
}

/* ==========================================
   🎬 ICONO EXPANDIR HERO (TIPO FULLSCREEN)
========================================== */

/* Cursor */
/* Solo si tiene trailer */
.single-hero.has-trailer{
    cursor:pointer;
}
.single-hero{
    cursor:pointer;
}

/* Si NO tiene trailer */
.single-hero.no-trailer{
    cursor:default;
}

/* Icono SOLO cuando tiene trailer */
.single-hero::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:80px;
    height:60px;
    transform:translate(-50%,-50%) scale(.85);
    opacity:0;
    transition:all .3s ease;
    z-index:5;

    background:
        linear-gradient(#fff,#fff) top left,
        linear-gradient(#fff,#fff) top left,
        linear-gradient(#fff,#fff) top right,
        linear-gradient(#fff,#fff) top right,
        linear-gradient(#fff,#fff) bottom left,
        linear-gradient(#fff,#fff) bottom left,
        linear-gradient(#fff,#fff) bottom right,
        linear-gradient(#fff,#fff) bottom right;

    background-size:
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px,
        18px 2px, 2px 18px;

    background-repeat:no-repeat;
}

/* Hover solo si hay trailer */
.single-hero:hover::before{
    opacity:1;
    transform:translate(-50%,-50%) scale(1);
}
section.single-hero.no-trailer::before {display:}
.single-hero.hero-modal-active::before {display:none}

@media (max-width: 960px) {
	.single-hero {height: 350px;}
}

@media (max-width: 768px) {
.single-info-left, .single-info-right {
    flex: none;
}
.episodes {
    margin-top: 3px;
    padding: 14px;
}
    /* === HERO === */
    .single-hero {
        height: 260px;
        padding: 80px 20px 0;
    }

    .single-hero-content {
        gap: 14px;
        margin-top: -120px;
        padding: 15px;
    }

    .single-hero-poster img {
        width: 90px;
    }

    .detallpos {
        width: 100%;
    }

    .single-hero-content h1 {
        font-size: 22px;
        white-space: normal;
        line-height: 1.2;
    }

    /* === BOTONES === */
    .btns {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 15px;
    }
button.btn-play.btn-play-serie, button.btn-play.btn-comprar-serie, button#btn-suscribirse-serie {
    flex: 1 1 calc(100% - 5px);
    width: 100%;
}
    .btns button {
        flex: 1 1 calc(10% - 5px);
        justify-content: center;
        font-size: 14px;
        padding: 10px;
        margin-right: 0;
    }
.hero-video {
    top: 65%;
    left: 60%;
    width: 165%;
    height: 140%;
}	
		button.btn-play {
    flex: 1 1 100%;
}
.botvolumvideo #mute-toggle {
    top: -25px;
	right: 4px;}


    /* === MENSAJE SERIE === */
    .mensaje-serie {
        font-size: 13px;
        padding: 6px;
        margin: 10px 10px 0;
    }

    /* === INFO GENERAL === */
    .single-info {
        flex-direction: column;
        gap: 20px;
    }

    .leftone {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }

    .single-sinopsis {
        font-size: 14px;
    }

    .single-info-right p {
        font-size: 14px;
    }

    /* === BOTÓN VOLUMEN === */
    #mute-toggle {
        bottom: 12px;
        right: 15px;
        top: -12px;
        padding: 10px;
        font-size: 16px;
        height: min-content;
    }

}
@media (max-width: 480px) {

    .single-hero {
        height: 230px;
    }

    .single-hero-poster img {
        width: 80px;
    }

    .single-hero-content h1 {
        font-size: 20px;
    }

    .btns button {
        flex: 1 1 10%;
        font-size: 14px;
    }
	button.btn-play {
    flex: 1 1 100%;
}
	

    .mensaje-serie {
        font-size: 12px;
    }
	
}
