/* Modal Flutuante de Vídeo - Redesenho Premium SoulClinic */
#video-modal-container {
    position: fixed;
    z-index: 9999999;
    display: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, top, left;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estado Normal - Posicionado estrategicamente */
#video-modal-container.normal {
    width: 440px;
    height: 380px;
    bottom: 30px;
    right: 30px;
    top: auto;
    left: auto;
    transform: none;
}

/* Cabeçalho SoulClinic */
.video-modal-header {
    background: #405189;
    color: #ffffff;
    padding: 14px 18px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.video-modal-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    letter-spacing: 0.3px;
    color: #ffffff !important;
}

.video-modal-controls {
    display: flex;
    gap: 10px;
}

.video-modal-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-modal-btn i {
    font-size: 18px;
}

/* Corpo do Modal */
.video-modal-body {
    position: relative;
    width: 100%;
    height: calc(100% - 105px);
    /* Ajustado para caber header e footer */
    background: #000;
}

.video-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Rodapé Premium - Clean Design */
.video-modal-footer {
    padding: 12px 18px;
    background: #f8fbff;
    border-top: 1px solid #e1e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #343a40 !important;
    font-weight: 600;
    cursor: pointer;
}

.video-modal-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #405189;
}

.video-modal-checkbox label {
    cursor: pointer;
    margin: 0;
    user-select: none;
    color: inherit;
}

/* Overlay para drag */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999998;
    display: none;
}

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

/* Responsividade Mobile */
@media (max-width: 768px) {
    #video-modal-container.normal {
        width: calc(100% - 40px) !important;
        height: 350px !important;
        bottom: 20px !important;
        right: 20px !important;
        left: 20px !important;
        border-radius: 12px;
    }
}

/* Animação suave de entrada */
@keyframes vmSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#video-modal-container {
    animation: vmSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}