/* ============================================================
   PELÍCULAS - ESTILOS ESPECÍFICOS (peliculas.css)
   ============================================================ */

/* Banner de la sección */
#bannerCicloA .header-ciclo-banner { 
    background-color: #41001c; 
    color: #ffffff; 
    text-align: center; 
    padding: 15px 0; 
    margin: 0 auto 10px auto;  
    width: 100%; 
    font-family: 'Marcellus', serif; 
    font-size: 22px; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
}

.contenedor-vacio {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 15px;
    box-sizing: border-box;
}

/* Grilla y tarjetas de películas */
.grilla-videos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.tarjeta-video {
    background: #ffffff;
    border: 3px solid #7b0a0acb;
    border-radius: 7px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.contenedor-portada {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play-falso {
    font-size: 45px;
    color: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.1s ease;
}

.btn-play-falso::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #fff;
    z-index: 0;
}

.btn-play-falso i {
    position: relative;
    z-index: 1;
}

.tarjeta-video:hover .btn-play-falso {
    transform: scale(1.2);
}

.contenedor-iframe {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.contenedor-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.titulo-video {
    font-family: 'Marcellus', serif;
    font-size: 14px;
    font-weight: bold;
    color: #a90000;
    text-align: center;
    padding: 12px 10px;
    margin: 0;
    letter-spacing: 1px;
    border-top: 1px solid rgba(104, 6, 28, 0.15);
    background-color: #fafafa;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal de Video */
.modal-video {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200000;
    justify-content: center;
    align-items: center;
}

.modal-contenido {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border: 1px solid #917800;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    background: #1c1c1c;
    transition: max-width 0.2s ease;
    border-radius: 12px;
}

.modal-contenido iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.cerrar-modal {
    position: absolute;
    top: -33px; right: 10px;
    color: #ffffff;
    background-color: #000000;
    padding: 5px 10px;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid #917800;
    border-left: 1px solid #917800;
    border-right: 1px solid #917800;
    border-bottom: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    z-index: 10;
}

/* Sección inferior de más películas */
.contenedor-mas-peliculas {
    width: 100%;
    text-align: center;
    margin: 50px 0 30px 0;
}

.texto-mas-peliculas {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    font-weight: bold;
    color: #444;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-lista-youtube {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jost', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    background-color: #a90000;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-lista-youtube:hover {
    background-color: #68061C;
    transform: scale(1.05);
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    #bannerCicloA .header-ciclo-banner { 
        font-size: 15px; 
    }

    .grilla-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .contenedor-iframe {
        aspect-ratio: 3 / 4;
    }

    .modal-contenido {
        width: 85% !important;
        max-height: 75vh;
    }

    .modal-contenido.es-short {
        width: 70% !important;
        max-width: 280px !important;
    }

    .cerrar-modal {
        top: -34px; 
        right: 10px;
        font-size: 15px;
        border-radius: 6px;
    }
}

/* Adaptación para orientación horizontal */
@media (max-width: 940px) and (orientation: landscape) {
    .modal-contenido {
        height: 85vh !important;
        width: auto !important;
        aspect-ratio: 16 / 9 !important;
    }

    .modal-contenido.es-short {
        height: 80vh !important;
        width: auto !important;
        aspect-ratio: 9 / 16 !important;
        max-width: 100% !important;
    }

    .cerrar-modal {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        bottom: auto !important;
        background-color: rgba(0, 0, 0, 1) !important;
        color: #ffdfdf !important;
        padding: 5px 10px !important;
        border-radius: 20px !important;
        font-size: 14px !important;
        z-index: 200001 !important;
    }
}

/* ============================================================
   MODO OSCURO - PELÍCULAS
   ============================================================ */
html.dark-mode .tarjeta-video {
    background: #1c1c1c;
    border-color: #8B0000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

html.dark-mode .titulo-video {
    background-color: #161616;
    color: #e6c894;
    border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .texto-mas-peliculas {
    color: #b0b0b0;
}

html.dark-mode .btn-lista-youtube {
    background-color: #8B0000;
}

html.dark-mode .btn-lista-youtube:hover {
    background-color: #AD0606;
}