.movie-template-wrapper {
    background: #14181C;
    color: #ffffff;
    padding: 0 0 60px;
    min-height: 100vh;
    position: relative;
}

.movie-template-wrapper .rs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

/* Backdrop */
.movie-backdrop {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 380px;
    background-size: cover;
    background-position: center;
}

.movie-backdrop::after {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        linear-gradient(to right, #14181C 0%, transparent 12%, transparent 88%, #14181C 100%),
        linear-gradient(to bottom, #14181C 0%, transparent 15%, transparent 65%, #14181C 100%);
}

.movie-top-section {
    position: relative;
    z-index: 2;
}

.movie-template-wrapper:has(.movie-backdrop) .movie-top-section {
    padding-top: 260px;
}

/* Info column */
.movie-info-col {
    width: 100%;
}
.movie-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}
.movie-year {
    font-weight: 400;
    color: #9aa0a6;
    font-size: 24px;
}
.movie-director {
    font-size: 16px;
    color: #c5c9cd;
    margin: 0 0 20px;
}
.movie-director span {
    color: #4da3ff;
    font-weight: 600;
}

/* Content row: main + sidebar */
.movie-content-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.movie-main-col {
    flex: 1;
    min-width: 280px;
    max-width: 800px;
}

.movie-side-col {
    flex: 0 0 220px;
}

/* Rating box (sidebar) */
.rating-box {
    background: #1c2126;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.rating-box-label {
    display: block;
    font-size: 13px;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.rating-box-number {
    font-size: 42px;
    font-weight: 700;
    color: #ff8c69;
    line-height: 1;
    margin-bottom: 10px;
}

.rating-stars-large .star {
    font-size: 22px;
    color: #444;
}

.rating-stars-large .star.filled {
    color: #ff8c69;
}

/* Meta row */
.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    font-size: 14px;
    color: #c5c9cd;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
    margin-bottom: 20px;
}
.movie-meta-row .meta-item {
    margin-right: 18px;
}
.movie-meta-row strong {
    color: #ffffff;
    font-weight: 600;
}

/* Tabs */
.movie-tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 24px 0 20px;
}

.movie-tab-btn {
    background: none;
    border: none;
    padding: 12px 2px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    position: relative;
    transition: color 0.25s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.movie-tab-btn:hover,
.movie-tab-btn:focus,
.movie-tab-btn:focus-visible,
.movie-tab-btn:active {
    background: none;
    outline: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.75);
}

.movie-tab-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3px;
    background: #d4af37;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.movie-tab-btn.active {
    color: #ffffff;
}

.movie-tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab content */
.movie-tab-content-wrapper {
    margin-top: 20px;
}
.movie-tab-content {
    display: none;
    background: #1c2126;
    border-radius: 8px;
    padding: 30px;
}
.movie-tab-content.active {
    display: block;
}
.movie-tab-content h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 16px;
}
.movie-description {
    color: #c5c9cd;
    line-height: 1.7;
    font-size: 15px;
}
.crew-row {
    color: #c5c9cd;
    margin-bottom: 20px;
    font-size: 15px;
}
.crew-row strong {
    color: #ffffff;
}

/* Cast grid */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}
.cast-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}
.cast-card p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .movie-backdrop {
        height: 240px;
        left: 10px;
        right: 10px;
    }
    .movie-template-wrapper:has(.movie-backdrop) .movie-top-section {
        padding-top: 180px;
    }
    .movie-content-row {
        flex-direction: column;
    }
    .movie-side-col {
        flex: 1;
        width: 100%;
    }
}