:root {
    --primary-bg: rgba(0, 0, 0, 0.7);
    --accent-color: #FF5F5F;
    --accent-hover: #FF3F3F;
    --correct-bg: rgba(0, 255, 0, 0.2);
    --incorrect-bg: rgba(255, 0, 0, 0.2);
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background: linear-gradient(-45deg, #667eea, #6b7973, #50282894, #5a371771);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-color);
    overflow-x: hidden;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../../data/BG.jpg") no-repeat center center/cover;
    opacity: 0.9;
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 2rem);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h4 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-icons {
    display: flex;
    gap: clamp(0.3rem, 1vw, 0.5rem);
}

.social-link,
.stats-btn,
.settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(32px, 5vw, 36px);
    height: clamp(32px, 5vw, 36px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.1rem);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover,
.stats-btn:hover,
.settings-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2rem);
    gap: 1rem;
}

footer {
    text-align: center;
    padding: clamp(0.3rem, 1vw, 0.5rem);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 5px;
    color: #ffffff;
}

.VersionNumber {
    margin-left: 0.5rem;
    opacity: 0.7;
}

#game-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    max-width: 700px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#stage-indicator {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: #ffffff;
    white-space: nowrap;
    background: linear-gradient(135deg, #ffffff, #b1b1b1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#media-player {
    margin: clamp(0.75rem, 2vw, 1.25rem) 0;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 120px;
    transition: height 0.2s ease;
}

#media-player audio,
#media-player video {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#loading-indicator {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-color);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Modern Custom Audio Player */
.custom-audio {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-audio:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-play-pause {
    background: linear-gradient(135deg, var(--accent-color), #ff7979);
    color: white;
    border: none;
    padding: 3px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 95, 95, 0.3);
}

.custom-play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 95, 95, 0.4);
}

.custom-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}

.custom-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: linear-gradient(135deg, #ffffff, #3f3f3f);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 221, 0, 0.3);
    transition: transform 0.2s ease;
}

.custom-progress::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.custom-time {
    font-size: 0.9em;
    color: #ffffff;
    min-width: 80px;
    font-weight: 700;
}

#input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin: clamp(0.75rem, 2vw, 1rem) 0;
    position: relative;
    width: 100%;
    z-index: 20;
}

#guess-input {
    padding: clamp(0.6rem, 2vw, 0.8rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    transition: all 0.3s ease;
}

#guess-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#guess-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 95, 95, 0.3);
}

#submit-btn {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.2rem, 3vw, 1.6rem);
    background: linear-gradient(135deg, var(--accent-color), #ff7979);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 95, 95, 0.4);
    white-space: nowrap;
    animation: buttonPulse 2s ease-in-out infinite;
}

#submit-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), #ff5555);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 95, 95, 0.6);
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(255, 95, 95, 0.4);
    }

    50% {
        box-shadow: 0 4px 24px rgba(255, 95, 95, 0.6);
    }
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - clamp(100px, 20vw, 150px));
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 250px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .dropdown {
        left: 0;
        width: 100%;
    }
}

.dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown li {
    padding: clamp(0.6rem, 1.5vw, 0.8rem);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.dropdown li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.dropdown li:last-child {
    border-bottom: none;
}

#previous-guesses {
    margin-top: 1rem;
    text-align: left;
    width: 100%;
}

.guess-item,
.skip-item {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.guess-item:hover,
.skip-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.skip-item {
    color: #FFD700;
}

#score {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-top: 1rem;
    color: #ffffff;
    font-weight: 700;
}

#reveal {
    display: none;
    text-align: center;
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: opacity 0.3s ease;
    animation: scaleIn 0.5s ease;
}

#reveal .movie-poster {
    max-width: 300px;
    max-height: 450px;
    width: auto;
    height: auto;
    margin: 1rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#reveal strong {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-color);
    display: block;
    margin: 1rem 0;
    font-weight: 800;
}

#share-btn,
#next-btn,
#restart-btn,
#play-start-btn {
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1.2rem, 3vw, 1.6rem);
    background: linear-gradient(135deg, var(--accent-color), #ff7979);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 95, 95, 0.4);
    margin: 0.5rem auto;
    display: block;
    width: fit-content;
}

#share-btn:hover,
#next-btn:hover,
#restart-btn:hover,
#play-start-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), #ff5555);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 95, 95, 0.6);
}

#image-gallery {
    position: relative;
    text-align: center;
    width: 100%;
}

#image-gallery img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#max-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
}

#max-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.gallery-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#image-gallery button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

#image-gallery button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#frame-counter {
    margin-top: 10px;
    font-size: 1em;
    color: #ffffff;
    font-weight: 600;
}

/* Image Modal */
#image-modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

#image-modal img {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.modal-prev,
.modal-next {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-counter {
    text-align: center;
    margin-top: 5px;
    color: #fff;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* Start Screen */
#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(102, 126, 234, 0.3), rgba(168, 53, 53, 0.3));
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.start-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    max-width: 650px;
    width: 90%;
    text-align: center;
    color: #fff;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.start-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.start-content h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF5F5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}

.start-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 1.5rem 0;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.start-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    text-align: left;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.start-content li {
    margin: 1rem 0;
    padding-left: 2rem;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    position: relative;
    font-weight: 600;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.start-content li::before {
    content: '🎬';
    position: absolute;
    left: 0;
    font-size: 1.3em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.start-content li:hover {
    transform: translateX(5px);
    color: #FFD700;
}

#start-loading {
    color: var(--accent-color);
    font-weight: 700;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

/* Overlay Styles for Settings and Stats */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.overlay-content {
    background: linear-gradient(135deg, rgba(40, 44, 52, 0.95), rgba(30, 30, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: #fff;
    max-height: 90vh;
    overflow-y: auto;
}

.overlay-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #fff;
}

/* Settings Specific */
.settings-section {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    margin-left: 1rem;
}

.volume-control input[type="range"] {
    flex: 1;
}

/* Stats Specific */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.achievements-section h3 {
    margin-bottom: 1rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s;
}

.achievement.unlocked {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.achievement-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Endless Specific Overrides */
.status-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

/* Notification Toast */
#notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.notification-toast {
    background: rgba(255, 107, 107, 0.9);
    /* Reddish for life lost */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 1.1rem;
    animation: slideDownFade 0.5s ease forwards, fadeOut 0.5s ease 2.5s forwards;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Game Over Screen */
.game-over-content {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 400px;
}

.game-over-content h2 {
    color: #ff6b6b;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.game-over-stats {
    margin: 2rem 0;
}

.final-score {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.score-label {
    font-size: 1rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.correct-movie-reveal {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.correct-movie-reveal p {
    color: #aaa;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.correct-movie-reveal strong {
    color: #fff;
    font-size: 1.2rem;
    display: block;
}

.game-over-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.restart-btn,
.share-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restart-btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.share-btn {
    background: linear-gradient(45deg, #2196F3, #1976D2);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.restart-btn:hover,
.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.restart-btn:active,
.share-btn:active {
    transform: translateY(0);
}