/* Festival popup */
.results-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at top,
        rgba(16, 40, 70, 0.85),
        rgba(7, 18, 36, 0.95)
    );
    backdrop-filter: blur(3px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.results-popup-overlay.closing {
    opacity: 0;
}

.results-popup-close {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.results-popup-close:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.results-popup-card {
    position: relative;
    width: min(620px, 92vw);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 1;
}

.results-popup-media {
    position: relative;
    background: #1a2f55;
    border-radius: 28px;
    overflow: hidden;
}

.results-popup-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(6, 16, 36, 0.05) 0%,
        rgba(6, 16, 36, 0.15) 45%,
        rgba(6, 16, 36, 0.25) 100%
    );
    z-index: 0;
}

.results-popup-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.results-popup-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 2.5rem 2.75rem;
    color: #fff;
}

.card-decoration {
    margin-bottom: 1rem;
}

.decoration-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    background: transparent;
    color: #c0192f;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.results-subtitle {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.results-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.results-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 0.9rem;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.results-footer {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* Festival decorative elements removed to keep only overlay background */

@media (max-width: 576px) {
    .results-popup-content {
        padding: 1.8rem 1.4rem 2rem;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .results-popup-close {
        top: 16px;
        left: 16px;
    }
}
