/* Video Popup Modal Styles */
.video-popup-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-popup-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-popup-content video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0 10px;
}

.video-popup-close:hover,
.video-popup-close:focus {
    color: #fcc465;
    transform: scale(1.2);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .video-popup-content {
        width: 95%;
    }
    
    .video-popup-close {
        font-size: 30px;
        top: -35px;
    }
    
    .video-popup-content video {
        border-radius: 4px;
    }
}

/* Button cursor pointer */
#openVideoPopup {
    cursor: pointer;
}
