.pop-up {
    position: fixed;
    inset: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-sizing: border-box;
}

.movie-details {
    position: relative;
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    background: rgb(16, 18, 32);
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 24px;
    box-sizing: border-box;
}

.movie-details-close {
    position: absolute;
    top: 16px;
    right: 16px;
    height: 36px;
    cursor: pointer;
    z-index: 10;
    filter: invert(1) brightness(100);
}

.movie-details-close:hover {
    filter: invert(16%) sepia(99%) saturate(7404%) hue-rotate(4deg) brightness(105%) contrast(115%);
}

.movie-image {
    width: 320px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    gap: 14px;
    padding: 0;
    max-width: 700px;
    font-family: 'Roboto', sans-serif;
}

.title {
    font-weight: 800;
    font-size: 40px;
    line-height: 1.1;
    padding-right: 45px;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 0;
}

.section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-title {
    color: rgb(213, 212, 212);
    font-weight: 800;
}

.content {
    padding-left: 0;
}

.site-link-button {
    margin-top: 20px;
    width: 100%;
    min-height: 44px;
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: red;
    outline: none;
    border: none;
    color: white;
    font-weight: 600;
}

.site-link-button:hover {
    background-color: darkred;
    transform: scale(1.02);
    transition: 0.2s ease;
}

.hidden-popup,
.hidden-js-popup-loading,
.hidden-movie-details {
    display: none;
}

@media (max-width: 900px) {
    .movie-details {
        gap: 20px;
        padding: 20px;
    }

    .movie-image {
        width: 260px;
    }

    .title {
        font-size: 32px;
    }

    .description {
        font-size: 16px;
    }
}

@media (max-width: 700px) {
    .pop-up {
        padding: 12px;
    }

    .movie-details {
        flex-direction: column;
        align-items: center;
        max-height: 92vh;
        padding: 16px;
    }

    .movie-image {
        width: 100%;
        max-width: 280px;
    }

    .details {
        width: 100%;
        max-width: 100%;
    }

    .title {
        font-size: 28px;
        padding-right: 36px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .section {
        flex-direction: column;
        gap: 4px;
    }

    .movie-details-close {
        top: 12px;
        right: 12px;
        height: 30px;
    }
}