/* ============================================
   VIDEO MODAL - Componente Customizado
   ============================================ */

/* Modal Overlay */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

/* Modal Container */
.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 700px;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100000;
}

/* Close Button */
.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    color: #ffffff;
    border: none;
    font-size: 36px;
    cursor: pointer;
    z-index: 100001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
}

.video-modal-close:hover {
    color: #ff3b3b;
    transform: rotate(90deg);
}

.video-modal-close i {
    display: block;
    line-height: 1;
}

/* Video Content */
.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.video-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Loader */
.video-modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.video-modal.active .video-modal-loader {
    display: block;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .video-modal-container {
        width: 95%;
        height: 70vh;
    }

    .video-modal-close {
        top: -45px;
        font-size: 30px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .video-modal-container {
        width: 100%;
        height: 60vh;
        border-radius: 0;
    }

    .video-modal-content {
        border-radius: 0;
    }

    .video-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
}

/* Animação de entrada */
.video-modal.active .video-modal-container {
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

/* Previne scroll do body quando modal está aberto */
body.video-modal-open {
    overflow: hidden;
}

/* ============================================
   VIDEO PREVIEW BUTTON - Botão de Play
   ============================================ */

/* Container do conteúdo do banner */
.banner-widget_content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 12;
    width: 100%;
    text-align: center;
}

/* Botão de Preview do Vídeo */
.video-preview-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
}

.video-preview-btn:hover {
    background: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.video-preview-btn i {
    font-size: 36px;
    color: #d6972b;
    margin-left: 4px;
    display: block;
}

/* Título do vídeo abaixo do botão */
.banner-widget_content h5 {
    color: #fff;
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    padding: 0 20px;
}

.banner-widget_content h5 span {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 30px;
    border-radius: 30px;
}