/* Estilos para el modal de video */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 16px; /* para que en móviles no pegue a los bordes */
    box-sizing: border-box;
}

/*
  Contenedor del video dentro del modal

  OJO: antes usabas #videoModal div { width/height:100% } y eso rompe el ratio 16:9 en móvil.
  Ahora limitamos el contenedor para que SIEMPRE sea 16:9.
*/
#videoModal > div {
    position: relative;
    width: min(92vw, 1100px);
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 75vh; /* evita que se salga en móviles apaisado */
    display: block;
}

/* Iframe del video: ocupa el contenedor 16:9 */
#videoIframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 12px; /* opcional: queda prolijo */
    background: #000;
}

/* Botón de cierre */
#closeModalButton {
    position: fixed; /* fixed para que quede accesible aunque cambie tamaño */
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-weight: bold;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Forzar el ancho y alto del modal (lo dejamos, pero ya no rompe el video) */
.custom-video-modal {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
}

/*Miniaturas de players con texto de ver trailer*/
.miniPlayer-thumbnail {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.miniPlayer-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
}

.miniPlayer-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px; /* Espacio entre el ícono y el texto */
}

.miniPlayer-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.miniPlayer-icon-svg {
    transition: transform 0.3s ease;
}

.miniPlayer-thumbnail:hover .miniPlayer-icon-svg {
    transform: scale(1.15);
}

.miniPlayer-text {
    font-size: 1rem;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
}