/* Video Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in;
}

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

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1a1a2e;
    border: 1px solid #3a3f54;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    transform: scale(1.1);
}

#modal-video-player {
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-height: 70vh;
    background-color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
        max-width: none;
    }
    
    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 28px;
    }
    
    #modal-video-player {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        padding: 10px;
    }
    
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 24px;
    }
}
