/* Movies Section - Antiguan Herald */

/* Movies Hero Banner */
.movies-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1a1a 50%, #1a1a1a 100%);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.movies-hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.movies-hero-sub {
    color: #E04040;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Movies Page Layout */
.movies-page {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ── Showtimes Layout ── */
.st-section {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}
.st-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-rule);
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}
.st-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}
.st-section-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Showtime Row — horizontal layout: poster | info + times */
.st-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.st-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border-light);
    align-items: start;
}
.st-row:last-child {
    border-bottom: none;
}
.st-poster {
    display: block;
    width: 90px;
    aspect-ratio: 2/3;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a2e;
    flex-shrink: 0;
}
.st-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.st-poster-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.st-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.3rem;
}
.st-info h3 a {
    text-decoration: none;
    color: var(--color-text);
}
.st-info h3 a:hover {
    color: var(--color-accent);
}
.st-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}
.st-rating {
    background: #E04040;
    color: white;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-sans);
}
.st-duration, .st-genre {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-light);
}
.st-synopsis {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Showtime Badges */
.st-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.st-time-badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: #1a1a2e;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.3px;
}
.st-details-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #E04040;
    text-decoration: none;
    font-weight: 600;
}
.st-details-link:hover {
    text-decoration: underline;
}

/* Coming Soon — slightly faded */
.st-coming-soon .st-row {
    opacity: 0.85;
}
.st-coming-soon .st-poster {
    filter: saturate(0.6);
}

/* Movies Info Bar */
.movies-info-bar {
    text-align: center;
    padding: 1.2rem 1.5rem;
    margin: 0 1.5rem 2.5rem;
    background: var(--color-bg-light);
    border-radius: 8px;
}

.movies-info-bar p {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-family: var(--font-sans);
}

.movies-info-bar a {
    color: #E04040;
    font-weight: 600;
}

/* ── Movie Detail Page (unchanged) ── */
.movie-detail-page {
    max-width: var(--max-width);
    margin: 0 auto;
}

.movie-detail-hero {
    background: #1a1a1a;
    background-size: cover;
    background-position: center;
    padding: 3rem 1.5rem;
}

.movie-detail-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: end;
}

.movie-detail-poster img {
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.movie-detail-info {
    color: white;
}

.movie-detail-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.movie-rating-badge {
    background: #E04040;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.movie-duration-badge,
.movie-genre-badge {
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.movie-detail-info h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    color: white;
}

.movie-detail-director {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.3rem;
}

.movie-detail-release {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1.2rem;
}

.buy-tickets-btn {
    display: inline-block;
    background: #E04040;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.buy-tickets-btn:hover {
    background: #c53030;
}

/* Movie Detail Body */
.movie-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 2.5rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.movie-synopsis h2,
.movie-trailer h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.movie-synopsis p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Trailer Embed */
.movie-trailer {
    margin-top: 2rem;
}

.trailer-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.trailer-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Sidebar */
.movie-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.movie-detail-cast h3,
.movie-detail-meta-box h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.movie-detail-cast ul {
    list-style: none;
    padding: 0;
}

.movie-detail-cast li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
}

.movie-detail-meta-box {
    background: var(--color-bg-light);
    padding: 1rem 1.2rem;
    border-radius: 8px;
}

.movie-detail-meta-box p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.movie-tickets-box {
    background: #1a1a1a;
    color: white;
}

.movie-tickets-box h3 {
    color: white;
}

.movie-tickets-box p {
    color: #ccc;
    margin-bottom: 0.8rem;
}

/* Other Movies */
.other-movies {
    padding: 2rem 1.5rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 2px solid var(--color-border);
}

.other-movies h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.other-movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.other-movie-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-light);
    transition: transform 0.2s;
}

.other-movie-card:hover {
    transform: translateY(-3px);
}

.other-movie-card img {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

.other-movie-card span {
    padding: 0.6rem 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .movie-detail-body {
        grid-template-columns: 1fr;
    }
    .movie-detail-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .other-movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .movies-hero {
        padding: 2rem 1rem;
    }
    .movies-hero-content h1 {
        font-size: 2rem;
    }
    .st-section {
        padding: 0 1rem;
    }
    .st-row {
        grid-template-columns: 70px 1fr;
        gap: 0.8rem;
    }
    .st-poster {
        width: 70px;
    }
    .st-info h3 {
        font-size: 1rem;
    }
    .st-synopsis {
        display: none;
    }

    /* Detail page mobile */
    .movie-detail-hero-content {
        grid-template-columns: 140px 1fr;
        gap: 1.5rem;
    }
    .movie-detail-poster img {
        width: 140px;
    }
    .movie-detail-info h1 {
        font-size: 1.6rem;
    }
    .movie-detail-sidebar {
        grid-template-columns: 1fr;
    }
    .other-movies-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .movies-hero-content h1 {
        font-size: 1.6rem;
    }
    .movies-hero-sub {
        font-size: 0.8rem;
    }
    .st-row {
        grid-template-columns: 60px 1fr;
        gap: 0.6rem;
        padding: 0.8rem 0;
    }
    .st-poster { width: 60px; }
    .st-info h3 { font-size: 0.9rem; }
    .st-time-badge {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    .movie-detail-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .movie-detail-poster {
        display: flex;
        justify-content: center;
    }
    .movie-detail-poster img {
        width: 180px;
    }
    .movie-detail-badges {
        justify-content: center;
    }
    .buy-tickets-btn {
        display: block;
        text-align: center;
    }
    .other-movies-grid {
        grid-template-columns: 1fr;
    }
}
