/* Модальное окно для видео (на весь экран без отступов) */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    background: transparent;
    border-radius: 0;
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal .close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-modal .close-modal:hover {
    background: #ff3333;
    color: white;
    border-color: #ff3333;
    transform: rotate(90deg);
}

.video-modal .modal-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal .modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    max-width: 100%;
    max-height: 100%;
}

/* Оптимизация для различных разрешений */
@media (min-width: 1600px) {
    .video-modal .modal-video-container {
        max-width: 1600px;
        max-height: 900px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .video-modal .modal-video-container {
        max-width: 1200px;
        max-height: 675px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .video-modal .modal-video-container {
        max-width: 992px;
        max-height: 558px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .video-modal .modal-video-container {
        max-width: 768px;
        max-height: 432px;
    }
}

/* Скрываем блок с информацией о видео */
.video-modal .modal-video-info {
    display: none;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .video-modal .close-modal {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .video-modal .modal-video-container {
        max-width: 95%;
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .video-modal .close-modal {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .video-modal .modal-video-container {
        max-width: 98%;
        max-height: 50vh;
    }
}

@media (max-width: 360px) {
    .video-modal .close-modal {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .video-modal .modal-video-container {
        max-width: 99%;
        max-height: 45vh;
    }
}