/*
 * /movie/ — chapter grid (movie.php). Client deck 12Oct26 slides 4/14/23/24:
 * landscape 16:9 thumbnails, four in one row on laptops (owner 2026-10-17: like
 * the salsapal.com home videos), two on tablets, one on phones,
 * no large empty gap above the videos; link to the channel under the grid
 * (same pattern as the salsapal.com home videos).
 */

.movie-page .hero-section {
    margin-bottom: 0;
}

.movie-lead {
    max-width: 40ch;
    margin: 0 auto 32px;
    color: #ffffff;
    font-family: Orbitron, sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
}

.movie-page .entry-content {
    padding-top: 8px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* one row, like the salsapal.com "Music & dance" videos */
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 16px;
    align-items: start;
}

.movie-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.movie-card .yt-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.movie-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.movie-card__label {
    color: #FFCC00;
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.movie-card__title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.movie-more {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 24px;
    text-align: right;
}

.movie-more a {
    color: #FFCC00;
    font-family: Orbitron, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.movie-more a:hover,
.movie-more a:focus-visible {
    color: #ffffff;
}

@media (max-width: 1023px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
    }
}

@media (max-width: 599px) {
    .movie-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .movie-lead {
        font-size: 17px;
        margin-bottom: 24px;
    }

    .movie-card__title {
        font-size: 16px;
    }
}

/* Smaller play button on the narrower one-row cards */
.movie-card .yt-thumb__play {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
}

.movie-card .yt-thumb__play svg {
    width: 24px;
    height: 24px;
}

/* ---- Card stats line + Ratings & reviews (client request 29 Oct 2026) ---- */

.movie-stats {
    margin-top: 4px;
    color: #c9c9c9;
    font-size: 13px;
    line-height: 1.4;
}

.movie-stats a {
    color: #FFCC00;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.movie-stats__stars {
    color: #FFCC00;
    font-weight: 600;
}

.movie-stats__muted {
    color: #a8a8a8;
    font-weight: 400;
}

.movie-reviews {
    max-width: 1080px;
    margin: 8px auto 40px;
    color: #ffffff;
}

.movie-reviews h2 {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: Orbitron, sans-serif;
    font-size: 24px;
}

.movie-reviews__lead {
    margin: 0 0 18px;
    color: #c9c9c9;
}

.movie-review {
    margin: 0 0 10px;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    background: #141414;
    scroll-margin-top: 90px;
}

.movie-review summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
    min-height: 48px;
    padding: 14px 18px;
    cursor: pointer;
    list-style: none;
}

.movie-review summary::-webkit-details-marker {
    display: none;
}

.movie-review summary::after {
    content: "+";
    color: #FFCC00;
    font-size: 20px;
    line-height: 1;
}

.movie-review[open] summary::after {
    content: "–";
}

.movie-review__name {
    flex: 1 1 260px;
    font-weight: 600;
}

.movie-review__summary {
    font-size: 14px;
}

.movie-review__body {
    padding: 0 18px 16px;
    border-top: 1px solid #2c2c2c;
}

.star-rate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
}

.star-rate__stars {
    display: inline-flex;
}

.star-rate .star {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #555555;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.star-rate .star.is-on,
.star-rate__stars:hover .star,
.star-rate .star:focus-visible {
    color: #FFCC00;
}

.star-rate__stars .star:hover ~ .star {
    color: #555555;
}

.movie-comments {
    margin: 12px 0;
    padding: 0;
    list-style: none;
}

.movie-comment {
    padding: 12px 0;
    border-bottom: 1px solid #242424;
}

.movie-comment__meta {
    margin: 0 0 4px;
}

.movie-comment__body {
    color: #e6e6e6;
    overflow-wrap: anywhere;
}

.movie-comment__reply {
    margin: 10px 0 0 16px;
    padding: 8px 12px;
    border-left: 3px solid #FFCC00;
    background: #1c1c1c;
    color: #e6e6e6;
}

.movie-review__write,
.movie-review__write:visited {
    color: #FFCC00;
    font-weight: 600;
}

.movie-comment-form {
    max-width: 640px;
    margin: 28px 0 0;
    scroll-margin-top: 90px;
}

.movie-comment-form h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-family: Orbitron, sans-serif;
    font-size: 20px;
}

.movie-comment-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
}

.movie-comment-form input[type="text"],
.movie-comment-form input[type="email"],
.movie-comment-form select,
.movie-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background: #0d0d0d;
    color: #ffffff;
    font: inherit;
}

.movie-comment-form .g-recaptcha {
    margin-top: 14px;
}

.movie-comment-form__submit {
    min-height: 44px;
    padding: 10px 26px;
    border: 0;
    border-radius: 8px;
    background: #FFCC00;
    color: #000000;
    font-family: Orbitron, sans-serif;
    font-weight: 600;
    cursor: pointer;
}

.movie-reviews .form-error {
    color: #ff8a80;
}

.movie-reviews .form-success {
    color: #9be59b;
}

/* "Read the whole novel" under the episodes (client, Teams 29 Oct 2026) */
.movie-novel {
    max-width: 1080px;
    margin: 8px auto 36px;
    padding: 20px 22px;
    border: 1px solid #3a3200;
    border-radius: 14px;
    background: #141414;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.movie-novel p {
    margin: 0;
    color: #e6e6e6;
}

.movie-novel__button,
.movie-novel__button:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 8px;
    background: #FFCC00;
    color: #000000;
    font-family: Orbitron, sans-serif;
    font-weight: 600;
    text-decoration: none;
}

.movie-novel__button:hover,
.movie-novel__button:focus-visible {
    background: #ffffff;
    color: #000000;
}

/* "Best viewed in landscape" (client request): only on phones held upright */
.movie-landscape {
    display: none;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 6px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.9rem;
    opacity: 0.85;
}
.movie-landscape svg {
    flex: none;
    width: 20px;
    height: 20px;
}
@media (max-width: 900px) and (orientation: portrait) {
    .movie-landscape {
        display: flex;
    }
}
