/* Estilos para la página On Demand (ID: 26771) */

/* Títulos de videos del feed de YouTube */
.page-id-26771 span.sby_video_title {
    font-size: .85rem;
    text-align: left;
    font-weight: 400!important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Número de líneas máximo */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   HEADER DE VIDEO ESTILO NETFLIX
   ======================================== */

.on-demand-header {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Overlay oscuro sobre la imagen de fondo */
.on-demand-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

/* Degradado adicional en la parte inferior */
.on-demand-header-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.9) 80%,
        #000 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Contenedor del contenido */
.on-demand-header-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px 120px;
}

/* Información del video */
.on-demand-header-info {
    max-width: 650px;
}

/* Título principal */
.on-demand-header-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Descripción */
.on-demand-header-description {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    margin: 0 0 30px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Contenedor de botones */
.on-demand-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Botón de reproducir */
.on-demand-play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px 12px 28px;
    background-color: #e5ff80;
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.on-demand-play-button svg {
    width: 28px;
    height: 28px;
}

/* Hover solo en dispositivos que lo soportan (no touch) */
@media (hover: hover) {
    .on-demand-play-button:hover {
        background-color: #cbff00;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 1024px) {
    .on-demand-header {
        height: 70vh;
        min-height: 450px;
    }
    
    .on-demand-header-content {
        padding: 0 40px 80px;
    }
    
    .on-demand-header-title {
        font-size: 2.8rem;
    }
    
    .on-demand-header-description {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 768px) {
    /* En mobile: layout vertical - imagen arriba, contenido abajo */
    .on-demand-header {
        height: auto;
        min-height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        background-color: #000;
        overflow: visible;
    }
    
    /* Pseudo-elemento para mostrar la imagen */
    .on-demand-header::before {
        content: '';
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: inherit;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    /* Ocultar overlay y fade en mobile */
    .on-demand-header-overlay {
        display: none;
    }
    
    .on-demand-header-fade {
        display: none;
    }
    
    /* Contenido debajo de la imagen */
    .on-demand-header-content {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 24px 20px 30px;
        background-color: #000;
        z-index: 5;
        box-sizing: border-box;
    }
    
    .on-demand-header-info {
        max-width: 100%;
        width: 100%;
    }
    
    .on-demand-header-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
        text-shadow: none;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .on-demand-header-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
        text-shadow: none;
        color: rgba(255, 255, 255, 0.85);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .on-demand-header-buttons {
        width: 100%;
    }
    
    .on-demand-play-button {
        padding: 12px 24px 12px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .on-demand-play-button svg {
        width: 24px;
        height: 24px;
    }
}

@media screen and (max-width: 480px) {
    .on-demand-header-content {
        padding: 20px 16px 24px;
    }
    
    .on-demand-header-title {
        font-size: 1.3rem;
    }
    
    .on-demand-header-description {
        font-size: 0.9rem;
    }
}