/* ── Dark base ── */
body {
    background: #000 !important;
    color: #e5e5e5;
}

/* ── Header ── */
.rm-header {
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    padding: 10px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.rm-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rm-logo { height: 72px; width: auto; }

.rm-search { display: flex; align-items: center; flex: 1; max-width: 320px; }

.search-input {
    width: 100%;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #444;
    background: #222;
    color: #e5e5e5;
    font-size: 13px;
    outline: none;
}

.search-input:focus { border-color: #666; }

.search-button {
    background: transparent;
    border: none;
    color: #888;
    padding: 6px 10px;
    cursor: pointer;
}

.rm-auth { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.rm-google { height: 30px; }

.rm-btn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.rm-btn:hover { background: #c1060f; }

.rm-cinema { padding: 8px 0 4px; }

.rm-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.rm-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    min-width: 100px;
}

.rm-links { display: flex; gap: 12px; flex-wrap: wrap; }
.rm-links a { font-size: 12px; color: #888; cursor: pointer; transition: color 0.15s; }
.rm-links a:hover { color: #e50914; }

.share-buttons { padding: 6px 0; }

@media (max-width: 600px) {
    .rm-top { flex-wrap: wrap; }
    .rm-search { max-width: 100%; order: 3; }
    .rm-logo { height: 28px; }
}

/* ── Movie detail page layout ── */
/* Two-class selector beats the single-class grid on .item-container */
.item-container.single {
    display: block !important;
}

/* style.css sets min-height:100vh which creates unnecessary empty space */
.movie-container {
    min-height: unset !important;
}

/* ── Actor page header image ── */
.movie-img {
    max-width: 200px !important;
    height: auto;
    border-radius: 0.8rem;
    display: block;
    margin: 0 auto 12px;
}

/* ── Media wrapper (trailer / backdrop) ── */
.media-wrapper {
    position: relative;
    width: 100%;
    background: #000;
}

.media-wrapper iframe,
.media-wrapper .backdrop-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

/* ── Poster mode ── */
.media-wrapper.poster-type {
    background: #000;
    padding: 16px 0;
    text-align: center;
}

.media-wrapper.poster-type .poster-image {
    max-height: 300px;
    width: auto;
    max-width: 90%;
    object-fit: contain;
    display: inline-block;
}

/* ── No media placeholder ── */
.media-wrapper.no-media {
    display: none;
}

/* ── Stamp position ── */
.media-wrapper .stamp,
.media-wrapper.poster-type .stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
}

/* ── Static trending section (StaticStyleSheet.css has white cards — override) ── */
.rm-card {
    background: #1c1c1c !important;
    border: 1px solid #2a2a2a !important;
    color: #e5e5e5;
}

.rm-title a        { color: #e5e5e5; }
.rm-title a:hover  { color: #e50914; }
.rm-ratings        { color: #aaa; }
.rm-reviews        { color: #777; }

.rm-section-header { margin: 20px 0 10px; }

.rm-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e5e5e5;
    border-left: 3px solid #e50914;
    padding-left: 10px;
    margin: 0;
}

.rm-section-note { font-size: 12px; color: #888; margin: 4px 0 0; }

section {
    background: #000;
    color: #e5e5e5;
}

section h1, section h2, section p { color: #e5e5e5; }

/* ── Rating bar colours ── */
.br-theme-bars-1to10 .br-widget a {
    background: #ccc;
}

.br-theme-bars-1to10 .br-widget a:hover,
.br-theme-bars-1to10 .br-widget a.br-active,
.br-theme-bars-1to10 .br-widget a.br-selected {
    background: #e50914;
}
