.vi-wrapper-74d38186 {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.vi-video-container-74d38186 {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.vi-video-container-74d38186 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Mute toggle — desktop: sobre la esquina del vídeo */
.vi-mute-btn-74d38186 {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 25;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vi-mute-btn-74d38186:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.vi-mute-btn-74d38186 .vi-mute-icon-on,
.vi-mute-btn-74d38186 .vi-mute-icon-off {
    display: none;
    line-height: 0;
}

.vi-mute-btn-74d38186.is-muted .vi-mute-icon-off {
    display: block;
}

.vi-mute-btn-74d38186:not(.is-muted) .vi-mute-icon-on {
    display: block;
}

.vi-overlay-74d38186 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

/* Desktop controls overlay */
.vi-desktop-controls-74d38186 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
}

/* Mobile controls: hidden on desktop */
.vi-mobile-controls-74d38186 {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Mobile fullscreen info panel: hidden on desktop */
.vi-mobile-info-panel-74d38186 {
    display: none;
}

.vi-btn-close-74d38186 {
    display: none;
}

.vi-wrapper-74d38186.is-active .vi-overlay-74d38186 {
    opacity: 1;
    pointer-events: auto;
}

.vi-overlay-content-74d38186 {
    color: #ffffff;
    padding: 20px;
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
    overflow-y: auto;
    max-height: 100%;
}

.vi-title-74d38186 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.vi-button-74d38186 {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.vi-button-74d38186:hover {
    background: #555;
}

/* Mobile Layout — fullscreen like Vimeo Mobile Info */
@media (max-width: 767px) {
    .vi-wrapper-74d38186 {
        height: 100vh;
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background-color: #000000;
    }

    .vi-video-container-74d38186 {
        width: 100%;
        padding-bottom: 0;
        padding-top: 56.25%; /* 16:9 */
        height: 0;
    }

    .vi-video-container-74d38186 iframe {
        object-fit: cover;
    }

    .vi-desktop-controls-74d38186 {
        display: none;
    }

    /* Mute fuera del vídeo: en la franja superior (letterbox) */
    .vi-mute-btn-74d38186 {
        top: max(16px, env(safe-area-inset-top, 0px));
        right: 16px;
    }

    /* Disable desktop video overlay on mobile */
    .vi-overlay-74d38186 {
        display: none !important;
    }

    /* Title + button overlaid at bottom of fullscreen container */
    .vi-mobile-controls-74d38186 {
        display: flex;
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: auto;
        max-width: calc(100% - 32px);
        padding: 0;
    }

    .vi-mobile-controls-74d38186 .vi-title-74d38186 {
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .vi-mobile-controls-74d38186 .vi-button-74d38186:hover {
        transform: scale(1.05);
    }

    /* Fullscreen overlay panel with internal scroll */
    .vi-mobile-info-panel-74d38186 {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.85);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 20;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .vi-wrapper-74d38186.is-active .vi-mobile-info-panel-74d38186 {
        opacity: 1;
        visibility: visible;
    }

    .vi-wrapper-74d38186.is-active .vi-mobile-controls-74d38186 {
        visibility: hidden;
        pointer-events: none;
    }

    .vi-wrapper-74d38186.is-active .vi-mute-btn-74d38186 {
        visibility: hidden;
        pointer-events: none;
    }

    .vi-btn-close-74d38186 {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 32px;
        cursor: pointer;
        z-index: 21;
        width: 44px;
        height: 44px;
        line-height: 44px;
        padding: 0;
    }

    .vi-scrollable-content-74d38186 {
        flex-grow: 1;
        overflow-y: auto;
        padding: 80px 24px 40px;
        -webkit-overflow-scrolling: touch;
    }

    .vi-mobile-info-panel-74d38186 .vi-overlay-content-74d38186 {
        max-width: 100%;
        max-height: none;
        padding: 0;
        margin: 0;
        overflow: visible;
    }
}
