﻿
#searchPopup {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 25vh; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-150px);
    transition: opacity 0.4s ease, transform 0.3s ease;
}


    #searchPopup.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }


.popup-container {
    width: 80%;
    max-width: 900px;
    background: #111;
    padding: 25px;
    border-radius: 8px;
    color: white;
    position: relative;
}

#closePopup {
    position: absolute;
    top: 5px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

#popupSearchInput {
    width: 100%;
    padding: 10px 14px;
    font-size: 18px;
    background: black;
    color: white;
    border: none;
    border-radius: 4px;
}

#popupSearchResults {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px; 
}

.search-result-card {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideIn 0.5s ease forwards;
    animation-delay: 0.1s;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.result-poster {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideIn 0.6s ease forwards;
}

