/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Theater Container */
.theater-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #2a2a2a 0%, #1a1a1a 70%);
    padding: 20px;
}

/* Theater Header */
.theater-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.theater-logo h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 20px #ff6b6b, 0 0 40px #ff6b6b;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.marquee {
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    background-size: 200% 200%;
    animation: marquee-gradient 3s ease infinite;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

@keyframes marquee-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Screen Container */
.screen-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.screen-frame {
    position: relative;
    width: 80%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 
        0 0 50px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.screen {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Screen Curtains */
.screen-curtains {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
}

.screen-curtain-left, .screen-curtain-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #8B0000, #DC143C, #B22222);
    border-radius: 15px 0 0 15px;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.6);
    transition: transform 2s ease-in-out, box-shadow 0.3s ease;
}

.screen-curtains:hover .screen-curtain-left,
.screen-curtains:hover .screen-curtain-right {
    box-shadow: 0 0 50px rgba(220, 20, 60, 0.9);
}

.screen-curtain-right {
    right: 0;
    border-radius: 0 15px 15px 0;
}

.screen-curtain-left::before, .screen-curtain-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    border-radius: inherit;
}

.screen-curtain-left::after, .screen-curtain-right::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    height: 60%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent, rgba(0, 0, 0, 0.3));
    border-radius: 10px;
}

.start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    pointer-events: auto;
}

.start-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 40px 80px;
    border-radius: 50px;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.8);
    text-transform: uppercase;
    letter-spacing: 4px;
    min-width: 300px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: button-pulse 2s ease-in-out infinite;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(255, 107, 107, 1);
}

.start-button:active {
    transform: scale(0.95);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.start-button:hover .button-glow {
    left: 100%;
}

/* Video Styles */
#theaterVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    z-index: 1;
}


/* Theater Controls */
.theater-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 20;
}

.control-panel {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.control-btn {
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.4);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.6);
}

/* Theater Lighting */
.theater-lighting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.light-beam {
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 107, 107, 0.4), transparent);
    animation: light-sweep 5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.light-1 {
    left: 15%;
    animation-delay: 0s;
}

.light-2 {
    left: 35%;
    animation-delay: 1s;
}

.light-3 {
    left: 50%;
    animation-delay: 2s;
}

.light-4 {
    left: 65%;
    animation-delay: 3s;
}

.light-5 {
    left: 85%;
    animation-delay: 4s;
}

@keyframes light-sweep {
    0%, 100% { opacity: 0; transform: scaleY(0); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Spotlights */
.spotlights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.spotlight {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: spotlight-move 8s ease-in-out infinite;
}

.spotlight-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.spotlight-2 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.spotlight-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.spotlight-4 {
    bottom: 35%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes spotlight-move {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Theater Chandelier */
.chandelier {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 3;
}

.chandelier-light {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    border-radius: 50%;
    animation: chandelier-glow 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.chandelier-crystal {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: crystal-sparkle 2s ease-in-out infinite;
}

.crystal-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.crystal-2 {
    top: 30%;
    right: 25%;
    animation-delay: 0.5s;
}

.crystal-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 1s;
}

.crystal-4 {
    bottom: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes chandelier-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes crystal-sparkle {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes button-pulse {
    0%, 100% { 
        box-shadow: 0 0 50px rgba(255, 107, 107, 0.8);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 80px rgba(255, 107, 107, 1);
        transform: scale(1.02);
    }
}

@keyframes mobile-curtain-pulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(220, 20, 60, 0.8);
    }
    50% { 
        box-shadow: 0 0 60px rgba(220, 20, 60, 1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .theater-logo h1 {
        font-size: 2rem;
    }
    
    .screen-frame {
        width: 95%;
        padding: 15px;
    }
    
    /* Hide start button on mobile - curtains are clickable */
    .start-overlay {
        display: none !important;
    }
    
    /* Make curtains more prominent on mobile */
    .screen-curtains {
        cursor: pointer;
    }
    
    .screen-curtain-left, .screen-curtain-right {
        box-shadow: 0 0 40px rgba(220, 20, 60, 0.8);
        animation: mobile-curtain-pulse 3s ease-in-out infinite;
    }
    
    .screen-curtains:hover .screen-curtain-left,
    .screen-curtains:hover .screen-curtain-right {
        box-shadow: 0 0 60px rgba(220, 20, 60, 1);
        animation: none;
    }
    
    .theater-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Adjust lighting for mobile */
    .spotlight {
        width: 150px;
        height: 150px;
    }
    
    .chandelier {
        width: 80px;
        height: 80px;
    }
    
    .chandelier-light {
        width: 50px;
        height: 50px;
    }
}

/* Video Playing State */
.video-playing .start-overlay {
    display: none;
}

.video-playing .theater-controls .control-btn {
    display: flex;
}


/* Screen Curtain Opening Animation */
.curtains-open .screen-curtain-left {
    transform: translateX(-100%);
    transition: transform 2s ease-in-out;
}

.curtains-open .screen-curtain-right {
    transform: translateX(100%);
    transition: transform 2s ease-in-out;
}
