
/* Overlay */
.poster-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    backdrop-filter:blur(6px);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;

    opacity:0;
    visibility:hidden;
    transition:0.5s ease;
}

/* Show Overlay */
.poster-overlay.show{
    opacity:1;
    visibility:visible;
}

/* Popup Card */
.poster-popup{
    position:relative;
    width:420px;
    max-width:92%;

    border-radius:25px;
    overflow:hidden;

    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(20px);

    border:1px solid rgba(0,220,225,0.4);

    box-shadow:
        0 0 25px rgba(0,220,225,0.25),
        0 15px 40px rgba(0,0,0,0.35);

    transform:scale(0.7) translateY(40px);
    transition:all 0.5s ease;
}

/* Popup Animation */
.poster-overlay.show .poster-popup{
    transform:scale(1) translateY(0);
    animation:floatCard 4s ease-in-out infinite;
}

/* Floating Effect */
@keyframes floatCard{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-8px);
    }
    100%{
        transform:translateY(0px);
    }
}

/* Image */
.poster-popup img{
    width:100%;
    display:block;
}

/* Close Button */
.popup-close{
    position:absolute;
    top:12px;
    right:12px;

    width:40px;
    height:40px;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,0.2);
    color:#fff;

    font-size:18px;
    font-weight:bold;

    cursor:pointer;

    backdrop-filter:blur(10px);

    transition:0.3s;
}

/* Hover */
.popup-close:hover{
    background:#ff3b30;
    transform:rotate(90deg) scale(1.1);
}

/* Mobile */
@media(max-width:768px){

    .poster-popup{
        width:330px;
    }

    .popup-close{
        width:36px;
        height:36px;
    }

}