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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 0, 0, 0.03) 2px,
            rgba(139, 0, 0, 0.03) 4px
        );
    animation: filmGrain 8s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes filmGrain {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(4px, 4px);
    }
}

.screen {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}


.curtains {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, #8b0000 0%, #5a0000 100%);
    transition: transform 1.5s ease-out;
    z-index: 2;
}

.curtain-left {
    left: 0;
    border-right: 3px solid #000;
}

.curtain-right {
    right: 0;
    border-left: 3px solid #000;
}

.curtains.active .curtain-left {
    transform: translateX(-100%);
}

.curtains.active .curtain-right {
    transform: translateX(100%);
}

.lobby-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 100%;
}

.logo {
    font-size: 80px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.tagline {
    font-size: 24px;
    color: #b8860b;
    margin-bottom: 40px;
}

.enter-btn {
    padding: 20px 60px;
    font-size: 24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.enter-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
}


.header {
    padding: 30px;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.3), transparent);
    border-bottom: 2px solid #8b0000;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h1 {
    font-size: 36px;
    color: #ffd700;
    text-align: center;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
}

.back-btn button {
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 5px;
    color: #ffd700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.back-btn button:hover {
    background: rgba(255, 215, 0, 0.4);
}


.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 150px);
}

.genre-grid::before {
    content: '🎬';
    position: absolute;
    font-size: 20px;
    opacity: 0.1;
    animation: float1 15s ease-in-out infinite;
    top: 10%;
    left: 10%;
}

.genre-grid::after {
    content: '🎭';
    position: absolute;
    font-size: 16px;
    opacity: 0.1;
    animation: float2 12s ease-in-out infinite;
    top: 60%;
    right: 15%;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, -30px) rotate(180deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-40px, 20px) rotate(-180deg);
    }
}

.genre-card {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 3px solid #8b0000;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 0, 0, 0.5);
    }
}

.genre-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.genre-card:hover::before {
    opacity: 1;
}

.genre-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.genre-card h2 {
    font-size: 32px;
    color: #ffd700;
    margin-bottom: 15px;
}

.genre-card p {
    color: #b8860b;
    font-size: 16px;
}

.genre-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #444;
}

.genre-card.locked:hover {
    transform: none;
    border-color: #444;
}

.lock-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
}


.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.movie-card {
    background: #141414;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.05);
    border-color: #8b0000;
}

.movie-poster {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ffd700;
    position: relative;
    overflow: hidden;
}

.movie-poster::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 24px;
    color: #ffd700;
    margin-bottom: 10px;
}

.movie-year {
    color: #888;
    font-size: 16px;
}

.completion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
}

.score-display {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    color: #ffd700;
    font-weight: bold;
}

.movie-card.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.movie-card.locked:hover {
    transform: none;
}


.quiz-header {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.4), transparent);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-info {
    display: flex;
    flex-direction: column;
}

.movie-info h2 {
    font-size: 28px;
    color: #ffd700;
}

.movie-info p {
    color: #b8860b;
    font-size: 16px;
}

.score-panel {
    display: flex;
    gap: 30px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label {
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

#current-score, #streak-display {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

#lives-display {
    font-size: 24px;
}

.quiz-content {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.countdown {
    text-align: center;
    margin-bottom: 40px;
}

.countdown-number {
    font-size: 120px;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.timer-bar {
    position: relative;
    height: 40px;
    background: #2a2a2a;
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 2px solid #8b0000;
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    transition: width 0.1s linear;
}

.timer-bar .timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.question-text {
    font-size: 28px;
    color: #e0e0e0;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
}

.answer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.answer-option {
    padding: 25px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #8b0000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    color: #e0e0e0;
    text-align: center;
}

.answer-option:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.02);
}

.answer-option.selected {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.2);
}

.answer-option.correct {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.2);
}

.answer-option.wrong {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.2);
}

.quiz-footer {
    text-align: center;
    padding: 20px;
    color: #888;
}


.results-content {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    border-radius: 20px;
    border: 2px solid #8b0000;
}

.results-content h1 {
    font-size: 48px;
    color: #ffd700;
    margin-bottom: 40px;
}

.results-stats {
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #444;
}

.stat-label {
    font-size: 18px;
    color: #b8860b;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffd700;
}

.results-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.results-actions button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.results-actions button:hover {
    transform: scale(1.05);
}


.game-over-content {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    border-radius: 20px;
    border: 2px solid #8b0000;
}

.game-over-content h1 {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.game-over-stats {
    margin: 30px 0;
}

.game-over-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.game-over-actions button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}


#collection-content {
    padding: 40px;
}

.collection-stats {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(139, 0, 0, 0.2);
    border-radius: 10px;
}

.collection-stats p {
    font-size: 20px;
    margin: 10px 0;
    color: #ffd700;
}

#collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 3px solid #8b0000;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: #e0e0e0;
}

.modal-content h2 {
    color: #ffd700;
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.tutorial-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.tutorial-section {
    background: rgba(139, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #8b0000;
}

.tutorial-section h3 {
    color: #ffd700;
    font-size: 22px;
    margin-bottom: 15px;
}

.tutorial-section ul {
    list-style: none;
    padding: 0;
}

.tutorial-section li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.tutorial-section li::before {
    content: "•";
    color: #b8860b;
    position: absolute;
    left: 0;
}

.tutorial-section strong {
    color: #ffd700;
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #8b0000;
}

.tutorial-footer label {
    color: #b8860b;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#dont-show-again {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

#got-it-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
}

#got-it-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 2px solid #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.help-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b0000, #5a0000);
    border: 3px solid #ffd700;
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.help-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ff0000, #8b0000);
}


@media (max-width: 768px) {
    .answer-options {
        grid-template-columns: 1fr;
    }

    .genre-grid, .movie-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .logo {
        font-size: 50px;
    }

    .quiz-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .score-panel {
        gap: 15px;
        flex-wrap: wrap;
    }

    .movie-info h2 {
        font-size: 18px;
    }

    .question-text {
        font-size: 20px;
    }

    .countdown-number {
        font-size: 80px;
    }

    .back-btn {
        position: static;
        padding: 10px;
    }

    .quiz-footer {
        font-size: 14px;
    }

    .results-content {
        margin: 20px auto;
        padding: 20px;
    }

    .results-content h1 {
        font-size: 36px;
    }

    .tutorial-content {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 28px;
    }

    .help-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .tutorial-footer {
        flex-direction: column;
        gap: 15px;
    }
}
