@charset "UTF-8";

/* Cinematic Video Popup */
.YouTubePopUp-Wrap {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000;
    background: radial-gradient(ellipse at center, rgba(20,20,20,0.98) 0%, rgba(0,0,0,0.99) 100%);
    backdrop-filter: blur(20px);
    top: 0;
    left: 0;
    z-index: 9999999999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.YouTubePopUp-animation {
    opacity: 0;
    animation: dramaticReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dramaticReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

body.logged-in .YouTubePopUp-Wrap {
    top: 32px;
    z-index: 99998;
}

.YouTubePopUp-Content {
    max-width: 1200px;
    width: 90%;
    display: block;
    margin: 0 auto;
    position: relative;
    animation: contentSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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

.YouTubePopUp-Content iframe {
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    height: 675px !important;
    border: 3px solid #d4af37 !important;
    box-shadow: 
        0 30px 90px rgba(0,0,0,0.9),
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 0 0 1px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.YouTubePopUp-Hide {
    animation: dramaticExit 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes dramaticExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.YouTubePopUp-Close {
    position: absolute;
    top: -50px;
    right: 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: url(/image/close.png) no-repeat center;
    background-size: 24px 24px;
    background-color: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.YouTubePopUp-Close:hover {
    background-color: rgba(212, 175, 55, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.8);
}

.YouTubePopUp-Close::before {
    content: 'ESC';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Raleway', sans-serif;
    font-size: 10pt;
    font-weight: 600;
    color: #d4af37;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Responsive Video Sizes */
@media all and (max-width: 1200px) {
    .YouTubePopUp-Content {
        max-width: 90%;
    }
    
    .YouTubePopUp-Content iframe {
        height: 500px !important;
    }
}

@media all and (max-width: 768px) {
    .YouTubePopUp-Content iframe {
        height: 400px !important;
    }
    
    .YouTubePopUp-Close {
        top: -60px;
        width: 45px;
        height: 45px;
    }
}

@media all and (max-width: 600px) {
    .YouTubePopUp-Content {
        width: 95%;
    }
    
    .YouTubePopUp-Content iframe {
        height: 300px !important;
        border-width: 2px !important;
    }
    
    .YouTubePopUp-Close {
        width: 40px;
        height: 40px;
        background-size: 20px 20px;
    }
}

@media all and (max-width: 480px) {
    .YouTubePopUp-Content iframe {
        height: 220px !important;
    }
}
