/* =========================
   PREMIUM VIDEO MODAL
========================= */

.video-modal {
    display: none;

    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at center, rgba(59,130,246,0.18), transparent 40%),
        rgba(0,0,0,0.88);

    backdrop-filter: blur(12px);

    z-index: 99999;

    justify-content: center;
    align-items: center;

    padding: 24px;

    animation: modalFade .3s ease;
}

.video-wrapper {
    position: relative;

    width: 92%;
    max-width: 1100px;

    padding: 18px;

    border-radius: 24px;

    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.7),
        0 0 60px rgba(59,130,246,0.15);

    animation: modalScale .35s ease;
}

.youtube-container {
    position: relative;

    width: 100%;
    padding-bottom: 56.25%;

    border-radius: 18px;

    overflow: hidden;

    background: #000;
}

.youtube-container iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border: none;
}

/* Close Button */
.close-video {
    position: absolute;

    top: -52px;
    right: 0;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 34px;

    cursor: pointer;

    transition: .3s;

    z-index: 2;
}

.close-video:hover {
    background: #3b82f6;
    transform: rotate(180deg) scale(1.08);
}

/* Optional title above video */
.video-title {
    margin-bottom: 14px;

    color: #60a5fa;

    font-size: 24px;
    font-weight: 700;
}

/* Animations */
@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalScale {
    from {
        opacity: 0;
        transform: scale(.92) translateY(20px);
    }

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

/* Mobile */
@media (max-width: 768px) {
    .video-modal {
        padding: 14px;
    }

    .video-wrapper {
        width: 100%;
        padding: 10px;
        border-radius: 18px;
    }

    .youtube-container {
        border-radius: 14px;
    }

    .close-video {
        top: -48px;
        right: 0;
    }
}
