.cinema-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Screen Area */
.screen-area {
    perspective: 1000px;
    margin-bottom: 30px;
    position: relative;
    overflow: visible;
}

.screen {
    background: #000;
    border: 8px solid #2c2c2c;
    border-radius: 10px;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.1),
        0 0 60px rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#video-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: radial-gradient(ellipse at center, #333 0%, #000 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.welcome-message {
    text-align: center;
    opacity: 0.8;
}

.welcome-message h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.welcome-message p {
    font-size: 1.2em;
    color: #ccc;
}

#video-player {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* Cinema Curtains */
.cinema-curtains {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    pointer-events: none;
}

.curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: linear-gradient(
        90deg,
        #8B0000 0%,
        #DC143C 10%,
        #B22222 20%,
        #8B0000 30%,
        #DC143C 40%,
        #B22222 50%,
        #8B0000 60%,
        #DC143C 70%,
        #B22222 80%,
        #8B0000 90%,
        #DC143C 100%
    );
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 0, 0, 0.3);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 3px solid #654321;
}

.curtain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(0, 0, 0, 0.1) 8px,
        rgba(0, 0, 0, 0.1) 10px
    );
}

.curtain::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 15px;
    background: #654321;
    border-radius: 0 0 50% 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.curtain-left {
    left: 0;
    transform-origin: right center;
}

.curtain-right {
    right: 0;
    transform-origin: left center;
}

/* Curtain States */
.curtains-closed .curtain-left {
    transform: translateX(0);
}

.curtains-closed .curtain-right {
    transform: translateX(0);
}

.curtains-open .curtain-left {
    transform: translateX(-100%);
}

.curtains-open .curtain-right {
    transform: translateX(100%);
}

/* Cinema Interior Image */
.cinema-interior {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    z-index: 20;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    pointer-events: none;
}

.cinema-bg-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 1s ease;
    opacity: 0.9;
    display: block;
}

/* Cinema background states */
.cinema-interior.video-playing .cinema-bg-image {
    opacity: 0;
}

.cinema-interior.video-stopping .cinema-bg-image {
    opacity: 0.9;
}

/* Thumbnails Container */
.thumbnails-container {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 12px;
    border: 2px solid #444;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.thumbnails-container h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #fcc212;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #444;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #444;
}

.thumbnails-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    flex-grow: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnails-carousel::-webkit-scrollbar {
    display: none;
}

/* Thumbnail styles */
.thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #1a1a1a;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    width: 120px;
}

.thumbnail:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail:hover img {
    filter: brightness(1.2);
}

.thumbnail-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 8px 6px 5px;
    font-size: 0.7em;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 1.2em;
    color: #ccc;
}

/* Responsive design */
@media (max-width: 768px) {
    .cinema-container {
        padding: 10px;
    }
    
    #video-container {
        height: 350px;
    }
    
    .welcome-message h1 {
        font-size: 1.8em;
    }
    
    .thumbnail {
        width: 100px;
    }
    
    .thumbnail img {
        height: 56px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .cinema-interior img {
        height: 120px;
    }
    
    .thumbnails-container {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .cinema-container {
        padding: 0.5vh 0.5vw;
        border-radius: 8px;
        border-width: 1px;
    }
    
    .screen {
        border-width: 3px;
        transform: none;
        margin-bottom: 1vh;
    }
    
    .thumbnails-container {
        height: 20vh;
        min-height: 80px;
        padding: 0.5vh 1vw;
        border-width: 2px;
    }
    
    .carousel-container {
        gap: 3vw;
    }
    
    .thumbnail {
        width: clamp(60px, 20vw, 90px);
        border-width: 1px;
    }
    
    .carousel-btn {
        width: clamp(25px, 6vw, 35px);
        height: clamp(25px, 6vw, 35px);
        font-size: clamp(12px, 3vw, 16px);
        border-width: 2px;
    }
    
    .cinema-interior img {
        height: 10vh;
        min-height: 60px;
    }
    
    .thumbnails-container h3 {
        margin-bottom: 1vh;
        letter-spacing: 1px;
    }
}

/* Ultra-wide screen optimization */
@media (min-width: 1400px) {
    .cinema-container {
        max-width: 95vw;
        padding: 2vh 3vw;
    }
    
    .thumbnails-container {
        height: 15vh;
        max-height: 180px;
    }
    
    .thumbnail {
        width: clamp(120px, 8vw, 160px);
    }
}

/* Portrait orientation handling */
@media (orientation: portrait) {
    .screen-area {
        flex: 0.8;
    }
    
    .thumbnails-container {
        height: 20vh;
        min-height: 120px;
    }
    
    .cinema-interior img {
        height: 10vh;
        min-height: 80px;
    }
}

/* Landscape orientation optimization */
@media (orientation: landscape) and (max-height: 500px) {
    .cinema-container {
        padding: 0.5vh 1vw;
    }
    
    .thumbnails-container {
        height: 25vh;
        min-height: 80px;
    }
    
    .cinema-interior img {
        height: 8vh;
        min-height: 40px;
    }
    
    .screen {
        margin-bottom: 1vh;
    }
}