/* Override container max-width for movie detail page to allow full width */
body .container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.movie-detail {
    max-width: 1200px;
    padding: 20px;
}

.movie-showings {
    background-color: #f5f5f5;
    background-image: url("assets/multi175.0d8c62916969.jpg");
    max-height: 300px;
    width: fit-content;
    min-width: 300px;
    max-width: 100%;
    overflow-y: auto;
    border: 2px outset lightgray;
    position: relative; 
}
.movie-showings h2 {
    font-size: 1.3rem;
    padding-top: 8px;
    margin: 0;
    text-align: center;
    border: 2px outset black;
    background-color: blue;
    color: white;
    padding-bottom: 8px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.showing-date-container {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: lightgray;
    border: 2px inset lightgray;
    width: 80%;
    margin: 24px auto;
}

.showing-date-group h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    margin-top: 0;
    color: #333;
}

.showtime-separator {
    border: 1px inset rgb(237, 237, 237);
    width: 100%;
    height: 0px;
    margin: 10px 0;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
}

.movie-detail-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.poster-section {
    flex: 0 0 auto;
    width: 40%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.movie-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #e0e0e0;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-info {
    flex: 1;
    min-width: 0;
}


.movie-detail h1 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.mobile-description {
    display: none !important;
}

@media (max-width: 768px) {
    .movie-detail-content {
        flex-direction: column;
        gap: 20px;
    }

    .poster-section {
        width: 100%;
        max-width: none;
        order: 1;
    }

    .poster-section .movie-description {
        display: none;
    }

    .movie-info {
        order: 2;
    }

    .mobile-description {
        display: block !important;
        margin-top: 24px;
    }
}

.movie-description {
    padding: 12px;
    background-color: #f5f5f5;
    border: 2px inset lightgray;
}



.showtimes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.showtime-link {
    display: inline-block;
    padding: 3px 6px;
    background-color: #cecece;
    text-decoration: none;
    border: 2px outset black;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.showtime-link:hover {
    background-color: #d7d7d7;
    border: 2px inset black;
}

.showtime-sold-out {
    text-decoration: line-through;
    color: #999;
    cursor: default;
    background-color: #e8e8e8;
}

.showtime-sold-out:hover {
    background-color: #e8e8e8;
    border: 2px outset black;
}

.no-showings {
    text-align: center;
    padding: 40px 20px;
}

.no-showings p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.back-link:hover {
    background-color: #555;
}