/* --------------------------
Single Movie Template CSS
-------------------------- */
.movie-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: system-ui, sans-serif;
    color: #111;
}

/* Hero */
.movie-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111;
    margin-bottom: 30px;
    min-height: 320px;
}
.movie-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.movie-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 20px;
    align-items: start;
}
.movie-poster img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.movie-meta .movie-title {
    font-size: 28px;
    margin: 0 0 6px;
}
.movie-meta .movie-tagline {
    font-style: italic;
    opacity: 0.85;
    margin: 6px 0 12px;
}
.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.movie-badges .badge {
    background: rgba(0,0,0,0.05);
    color: #111;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
}
.movie-actions a {
    display: inline-block;
    background: #00b3ff;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    margin-right: 8px;
    margin-top: 8px;
}

/* Sections */
.movie-section {
    margin-top: 40px;
}
.movie-section h2 {
    font-size: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 16px;
}

/* KV Grid */
.movie-kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    margin-bottom: 8px;
}
.movie-kv .k {
    font-weight: 600;
    color: #555;
}

/* Videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 16px;
}
.videos-grid iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
}

/* Cast */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: 14px;
}
.cast-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}
.cast-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #f3f3f3;
}
.cast-name {
    font-weight: 700;
    margin: 8px 0 4px;
}
.cast-role {
    color: #666;
    margin-bottom: 8px;
}

/* Crew */
.crew-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 16px;
}
.crew-block {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}
.crew-job-title {
    font-weight: 700;
}
.crew-job-count {
    font-size: 12px;
    color: #666;
    margin-left: 6px;
}
.crew-chip {
    display: inline-block;
    background: #eee;
    padding: 4px 8px;
    border-radius: 6px;
    margin: 4px 4px 0 0;
    font-size: 12px;
}

/* Reviews */
#bm-review-form input,
#bm-review-form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}
#bm-review-form button {
    background: #00b3ff;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
#bm-review-form .bm-msg.ok {
    color: green;
}
#bm-review-form .bm-msg.err {
    color: red;
}

/* Responsive */
@media (max-width: 768px) {
    .movie-hero-inner {
        grid-template-columns: 120px 1fr;
    }
    .movie-hero-inner .movie-meta {
        font-size: 14px;
    }
}
