.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    background: rgba(0,0,0,0.95);
    opacity: 1;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.lightbox.active .video-container {
    transform: scale(1);
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,0,0,0.8);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
    transform: rotate(0deg);
}

.close-button:hover {
    background: rgba(255,0,0,1);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .video-container {
        width: 100%;
    }

    .close-button {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
}