/*
   Title page (Details), person page, collection pages and the title / person sub-pages.
   Moved out of origin-dark.css so the layout works in every theme; always loaded from _Host.cshtml after browse.css.
   Light token defaults below (default / humanistic / software); dark-tokens.css and origin-dark.css override them.
   The hero is always a dark panel over the key art, so it pins the dark text tokens on itself.
*/

:root {
    --origin-bg: #f3f5f7;
    --origin-bg-deep: #151515;
    --origin-hero-fade: #151515;
    --origin-card: #ffffff;
    --origin-alert: #c62828;
    --origin-accent: #e73354;
    --mm-trait-divider: #e1e4e8;
    --mm-trait-label: #6b7280;
    --mm-chip-bg: #e8eefc;
    --mm-chip-border: #b9c8f0;
    --mm-chip-text: #1f3a7a;
    --mm-chip-hover-bg: #d5e0fa;
    --mm-chip-hover-text: #12285c;
    --mm-chip2-bg: #f1f3f6;
    --mm-chip2-border: #d9dde3;
    --mm-chip2-text: #3a3f46;
    --mm-chip2-hover-bg: #e3e7ee;
    --mm-chip-more-border: #c4c9d1;
    --mm-chip-more-text: #3465c9;
}

.origin-hero {
    --origin-text: #f3f3f3;
    --origin-text-2: #e8e8e8;
    --origin-muted: #bcbcbc;
    --origin-muted-2: #898989;
    --origin-strong: #ffffff;
    --origin-link: #80dbff;
    --origin-border: rgba(255, 255, 255, 0.08);
    --origin-border-strong: rgba(255, 255, 255, 0.16);
    --origin-pill-bg: rgba(255, 255, 255, .1);
    --origin-pill-border: rgba(255, 255, 255, .12);
    --origin-surface-2: #2c2b2c;
    --origin-surface-3: #353435;
    color: var(--origin-text-2);
}

/* =====================================================================
   Title page (Pages/Details.razor) — mirrors fabricorigin.com/movie/{id}
   ===================================================================== */

.origin-title-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Hero with blurred key art */
.origin-hero {
    position: relative;
    margin: -16px -16px 24px;
    padding: 48px 32px 40px;
    overflow: hidden;
    border-radius: 0 0 var(--origin-radius-lg) var(--origin-radius-lg);
    background-color: var(--origin-bg-deep);
    min-height: 360px;
}

    .origin-hero::before {
        content: "";
        position: absolute;
        inset: -40px;
        background-image: var(--origin-hero-image);
        background-size: cover;
        background-position: 50% 30%;
        filter: blur(60px) saturate(1.2);
        opacity: .55;
        transform: scale(1.1);
    }

    .origin-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 55%, var(--origin-hero-fade) 100%);
    }

/* Tile backdrop: the 16:9 Tile art is made for page backgrounds, so show it sharp
   and darken the left side (where the title text sits) and the bottom edge into the page. */
.origin-hero--tile {
    min-height: 420px;
}

    .origin-hero--tile .origin-hero-text {
        max-width: 620px;
    }

/* With Tiles the backdrop comes from Shared/TileBackdrop.razor (stacked slides), not ::before */
.origin-hero--tile::before {
    display: none;
}

.origin-hero-slides {
    position: absolute;
    inset: 0;
}

.origin-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 70% 25%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

    .origin-hero-slide.active {
        opacity: 1;
    }

.origin-hero-dots {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
}

.origin-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .4);
    cursor: pointer;
}

    .origin-hero-dot.active {
        background-color: #fff;
        width: 20px;
        border-radius: 4px;
    }

.origin-hero-arrow {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .origin-hero-arrow:hover {
        background-color: rgba(0, 0, 0, .7);
    }

    .origin-hero-arrow .material-icons {
        font-size: 20px;
    }

@media (prefers-reduced-motion: reduce) {
    .origin-hero-slide { transition: none; }
}

.origin-hero--tile::after {
    background:
        linear-gradient(90deg, rgba(21,21,21,.94) 0%, rgba(21,21,21,.86) 45%, rgba(21,21,21,.45) 72%, rgba(21,21,21,.30) 100%),
        linear-gradient(180deg, rgba(0,0,0,0) 55%, var(--origin-hero-fade) 100%);
}

.origin-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.origin-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.origin-hero-poster {
    flex: 0 0 auto;
    width: 220px;
}

    .origin-hero-poster img {
        width: 100%;
        border-radius: 2px;
        filter: drop-shadow(2px 4px 20px rgba(0, 0, 0, .5));
    }

.origin-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--origin-primary);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--origin-radius);
    margin-bottom: 10px;
}

    .origin-id-badge .material-icons {
        font-size: 14px;
    }

.origin-hero-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 10px;
    word-break: break-word;
}

.origin-hero-sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--origin-text-2);
    margin-bottom: 10px;
}

.origin-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}


    .origin-pill .material-icons {
        font-size: 15px;
    }


.origin-hero-description {
    font-size: 15px;
    font-weight: 300;
    color: var(--origin-text-2);
    max-width: 680px;
    line-height: 1.5;
}

.origin-hero-credits {
    font-size: 14px;
    font-weight: 300;
    color: var(--origin-muted);
    margin-top: 8px;
}

    .origin-hero-credits a {
        color: var(--origin-text);
    }

.origin-breadcrumb {
    font-size: 13px;
    color: var(--origin-muted);
    margin-bottom: 8px;
}

    .origin-breadcrumb a {
        color: var(--origin-muted);
    }

/* Quick nav — the count buttons, styled as a thin tab strip */
.origin-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

    .origin-quicknav a, .origin-quicknav .btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        padding: 4px 12px;
        border-radius: 50px !important;
        background-color: rgba(0, 0, 0, .35) !important;
        border: 1px solid rgba(255, 255, 255, .14) !important;
        color: var(--origin-text-2) !important;
        text-decoration: none;
    }

        .origin-quicknav a:hover, .origin-quicknav .btn:hover {
            background-color: rgba(255, 255, 255, .12) !important;
            color: #fff !important;
        }

        .origin-quicknav a .material-icons, .origin-quicknav .btn .material-icons {
            font-size: 16px !important;
        }

.origin-report-link {
    color: var(--origin-accent) !important;
    font-size: 13px;
}

/* Section headings with the blue bar */
.origin-section {
    padding: 28px 0;
    border-bottom: 1px solid var(--origin-border-strong);
}

.origin-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}


    .origin-section-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 3px;
        height: 100%;
        background-color: var(--origin-primary);
    }

.origin-see-all {
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--origin-muted-2) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .origin-see-all:hover {
        color: var(--origin-text) !important;
    }

/* Info tiles (Origination) */
.origin-tiles {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.origin-tile {
    background-color: var(--origin-surface-2);
    border-radius: var(--origin-radius);
    padding: 20px 10px;
    min-width: 0;
}

    .origin-tile.span-2 { grid-column: span 2; }
    .origin-tile.span-4 { grid-column: 1 / -1; }

.origin-tile-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--origin-muted);
    margin: 0 0 6px;
}

.origin-tile-value {
    font-size: 16px;
    color: var(--origin-text);
    word-break: break-word;
}

    .origin-tile-value .badge {
        font-size: 12px;
    }


    .origin-chip:hover {
        filter: brightness(1.12);
    }

/* ---------- Title page: Characteristics (primary) + Genres & Tags (secondary) ---------- */

.mm-traits {
    padding: 28px 0;
    border-bottom: 1px solid var(--origin-border-strong);
}

    .mm-traits + .mm-traits {
        margin-top: 12px; /* with the paddings, ~40px between the two sections */
    }

.mm-traits-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.mm-traits-title {
    margin: 0;
    color: var(--origin-text);
    scroll-margin-top: 80px;
}

.mm-traits-primary .mm-traits-title {
    font-size: 22px;
    font-weight: 700;
}

.mm-traits-secondary .mm-traits-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--origin-text-2);
}

.mm-traits-meta {
    margin-left: auto;
    font-size: 12px;
    color: var(--mm-trait-label);
}

.mm-traits-list {
    margin: 0;
    border-top: 1px solid var(--mm-trait-divider);
}

.mm-traits-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    column-gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mm-trait-divider);
}

.mm-traits-secondary .mm-traits-row {
    padding: 10px 0;
}

    .mm-traits-row dt {
        margin: 0;
        font-size: 13px;
        font-weight: 500;
        color: var(--mm-trait-label);
    }

    .mm-traits-row dd {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
    }

    .mm-traits-row dd.mm-traits-plain {
        display: block;
        font-size: 14px;
        color: var(--origin-text-2);
    }

        .mm-traits-row dd.mm-traits-plain a {
            color: var(--origin-text-2);
            text-decoration: none;
        }

            .mm-traits-row dd.mm-traits-plain a:hover {
                color: var(--origin-strong);
                text-decoration: underline;
            }

.mm-chip {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    background-color: var(--mm-chip-bg);
    border: 1px solid var(--mm-chip-border);
    color: var(--mm-chip-text) !important;
    text-decoration: none !important;
}

    .mm-chip:hover, .mm-chip:focus-visible {
        background-color: var(--mm-chip-hover-bg);
        color: var(--mm-chip-hover-text) !important;
    }

.mm-chip-secondary {
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12.5px;
    font-weight: 400;
    background-color: var(--mm-chip2-bg);
    border-color: var(--mm-chip2-border);
    color: var(--mm-chip2-text) !important;
}

    .mm-chip-secondary:hover, .mm-chip-secondary:focus-visible {
        background-color: var(--mm-chip2-hover-bg);
    }

/* Collections chips sit in the info tiles: keep them a little smaller */
.origin-tile-value .mm-chip {
    font-size: 13px;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
}

.mm-chip-more {
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12.5px;
    background: transparent;
    border: 1px dashed var(--mm-chip-more-border);
    color: var(--mm-chip-more-text);
    cursor: pointer;
}

    .mm-chip-more:hover, .mm-chip-more:focus-visible {
        border-color: var(--mm-chip-more-text);
    }

@media (max-width: 640px) {
    .mm-traits-row {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }
}

/* Inside the title page, the existing RadzenCard sections become flat Origin sections */
.origin-title-page .rz-card {
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--origin-border-strong) !important;
    border-radius: 0 !important;
    padding: 28px 0 !important;
}

    .origin-title-page .rz-card > h5:first-child,
    .origin-title-page .rz-card > h2:first-child,
    .origin-title-page .rz-card > .d-flex:first-child h5,
    .origin-title-page .rz-card > .d-flex:first-child h2 {
        position: relative;
        font-size: 24px !important;
        font-weight: 500 !important;
        padding-left: 15px;
        margin-bottom: 20px;
    }

        .origin-title-page .rz-card > h5:first-child::before,
        .origin-title-page .rz-card > h2:first-child::before,
        .origin-title-page .rz-card > .d-flex:first-child h5::before,
        .origin-title-page .rz-card > .d-flex:first-child h2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background-color: var(--origin-primary);
        }

/* Genres & Tags boxes: thin tab-like labels and blue chips, as on the Origin "Descriptors" section */
.origin-title-page .characteristicbox .card-header {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--origin-border-strong) !important;
    color: var(--origin-text) !important;
    font-weight: 400 !important;
    font-size: 14px;
    padding: 6px 0;
}

.origin-title-page .characteristic-container > div .card-body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 0;
}

.origin-title-page .characteristicbox .badge-light {
    background-color: var(--origin-chip) !important;
    color: var(--origin-chip-text) !important;
    font-size: 12px;
    padding: 4px 8px !important;
    margin: 0 6px 6px 0 !important;
}

.origin-title-page .VideoListContainer,
.origin-title-page .rz-datalist-data > li {
    background-color: var(--origin-surface-2) !important;
    border-radius: var(--origin-radius);
}

/* Thin tabs (Primary / Ancillary): white active label with a 1px underline, grey inactive */
.origin-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--origin-border-strong);
    margin-bottom: 20px;
}

.origin-tab {
    background: none;
    border: 0;
    padding: 0 0 8px;
    margin-bottom: -1px;
    font-size: 14px;
    color: var(--origin-muted-2);
    border-bottom: 1px solid transparent;
    cursor: pointer;
}

    .origin-tab:hover {
        color: var(--origin-text-2);
    }

    .origin-tab.active {
        color: var(--origin-strong);
        border-bottom-color: var(--origin-text);
    }

.origin-tab-count {
    font-size: 11px;
    color: var(--origin-muted-2);
    margin-left: 2px;
}

.origin-tabs-note {
    margin-left: auto;
    font-size: 12px;
    color: var(--origin-muted-2);
    align-self: center;
    padding-bottom: 8px;
}

/* Media cards (Images / Videos) */
.origin-card-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.origin-media-card {
    background-color: var(--origin-card);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.origin-media-body {
    padding: 10px;
}

.origin-media-title {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--origin-text);
    margin: 0 0 4px;
}

.origin-media-subtitle {
    font-size: 14px;
    font-weight: 300;
    color: var(--origin-muted) !important;
    margin: 0 0 8px;
}

/* Image well: black panel, image centred and contained */
.origin-image-well {
    position: relative;
    background-color: #141414;
    height: 300px;
    padding: 13px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .origin-image-well img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 4px;
        cursor: pointer;
    }

.origin-image-download {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, .55);
    color: var(--origin-text) !important;
    opacity: .75;
}

    .origin-image-download:hover {
        opacity: 1;
    }

    .origin-image-download .material-icons {
        font-size: 18px;
    }

.origin-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}

    .origin-badge-row .origin-chip {
        margin: 0;
        cursor: default;
        color: var(--origin-chip-text) !important;
    }

.origin-badge-grey, .origin-badge-red {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #f3f3f3;
}

.origin-badge-grey {
    background-color: #5f5f5f;
}

.origin-badge-red {
    background-color: #bd4040;
}

    .origin-badge-grey .material-icons, .origin-badge-red .material-icons {
        font-size: 13px;
    }

/* Video thumbnail with the title laid over the bottom */
.origin-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

    .origin-video-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .origin-video-thumb::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%);
    }

.origin-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 44px !important;
    color: rgba(255, 255, 255, .9);
    z-index: 1;
}

.origin-video-thumb-title {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 1;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.origin-kv {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    line-height: 1.75;
}

    .origin-kv > span:first-child {
        color: var(--origin-muted);
        flex: 0 0 auto;
    }

    .origin-kv > span:last-child {
        color: var(--origin-text);
        text-align: right;
        min-width: 0;
        overflow-wrap: anywhere;
    }

.origin-kv-alert {
    color: var(--origin-alert) !important;
}

@media (max-width: 991px) {
    .origin-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .origin-card-grid { grid-template-columns: 1fr; }
}

/* ---------- Availabilities: table, pager, Filters button and modal ---------- */

.origin-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: 0;
    color: var(--origin-text-2);
    font-size: 14px;
    cursor: pointer;
}

    .origin-filter-btn .material-icons {
        font-size: 17px;
    }

.origin-filter-count {
    background-color: var(--origin-primary);
    color: #fff;
    font-size: 11px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 2px;
}

.origin-table-wrap {
    overflow-x: auto;
}

.origin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--origin-text-2);
}

    .origin-table th {
        font-size: 12px;
        font-weight: 400;
        text-transform: uppercase;
        color: var(--origin-muted);
        padding: 10px 8px;
        border-bottom: 1px solid var(--origin-border-strong);
        white-space: nowrap;
        text-align: left;
    }

    .origin-table td {
        padding: 12px 8px;
        border-bottom: 1px solid var(--origin-border-strong);
        vertical-align: middle;
    }

.origin-quality, .origin-nodata {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: #6b6b6b;
    color: #f3f3f3;
    white-space: nowrap;
}

.origin-quality {
    background: linear-gradient(180deg, #d9d9d9, #8f8f8f);
    color: #151515;
    font-weight: 700;
}

.origin-platform {
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
    margin-right: 4px;
    border-radius: 4px;
    background-color: #404040;
    color: #fff !important;
    text-decoration: none !important;
}

    .origin-platform:hover {
        background-color: var(--origin-primary);
    }

.origin-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: var(--origin-muted-2);
}

    .origin-pager button {
        min-width: 28px;
        height: 28px;
        background: none;
        border: 0;
        border-radius: 4px;
        color: var(--origin-muted);
        font-size: 13px;
        cursor: pointer;
    }

        .origin-pager button:disabled {
            opacity: .35;
            cursor: default;
        }

        .origin-pager button.active {
            background: var(--origin-gradient);
            color: #fff;
        }

.origin-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1050;
}

.origin-modal {
    position: fixed;
    z-index: 1051;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(780px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    background-color: var(--origin-surface-2);
    border: 1px solid var(--origin-border-strong);
    border-radius: 6px;
    padding: 18px;
    color: var(--origin-strong);
}

.origin-modal-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

    .origin-modal-head h3 {
        font-size: 18px;
        font-weight: 500;
        margin: 0;
        color: var(--origin-strong);
    }

.origin-modal-close {
    margin-left: auto;
    background: none;
    border: 0;
    color: var(--origin-strong);
    cursor: pointer;
}

.origin-modal-body {
    overflow-y: auto;
    padding-right: 6px;
}

.origin-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
}

.origin-filter-title {
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    color: var(--origin-muted) !important;
    margin: 0 0 8px;
}

.origin-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
}

    .origin-filter-list li {
        display: flex;
        align-items: center;
        gap: 6px;
        background-color: var(--origin-surface-3);
        color: var(--origin-text);
        font-size: 14px;
        padding: 7px 12px 7px 7px;
        border-radius: 4px;
        margin-bottom: 4px;
        cursor: pointer;
        user-select: none;
    }

        .origin-filter-list li .material-icons {
            font-size: 16px;
            opacity: .7;
        }

        .origin-filter-list li.selected {
            background-color: #245fa8;
        color: #fff;
        }

            .origin-filter-list li.selected .material-icons {
                opacity: 1;
            }

.origin-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

    .origin-filter-row label {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 13px;
        color: var(--origin-text-2);
        margin: 0;
    }

    .origin-filter-row input, .origin-filter-row select {
        height: 36px;
        padding: 4px 8px;
        border-radius: 4px;
    }

.origin-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--origin-border-strong);
    margin-top: 14px;
    padding-top: 14px;
}

.origin-link-btn {
    background: none;
    border: 0;
    color: var(--origin-strong);
    font-size: 13px;
    cursor: pointer;
}

.origin-primary-btn {
    background: var(--origin-gradient);
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .origin-filter-grid { grid-template-columns: 1fr; }
}

/* ---------- Cast & Crew: Top Cast slider + "All Cast & Crew" modal ---------- */

.cast-slider {
    position: relative;
}

.cast-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
}

    .cast-track::-webkit-scrollbar {
        display: none;
    }

.cast-card {
    flex: 0 0 192px;
    scroll-snap-align: start;
    background-color: var(--origin-surface-2);
    border-radius: 4px;
    overflow: hidden;
    color: inherit !important;
    text-decoration: none !important;
}

    .cast-card:hover .cast-name {
        color: var(--origin-link);
    }

.cast-photo {
    position: relative;
    height: 230px;
    background-color: var(--origin-surface-2);
}

    .cast-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cast-score {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--origin-muted);
    background-color: var(--origin-surface-2);
    border-radius: 3px;
    padding: 1px 6px 1px 4px;
}

    .cast-score .material-icons {
        font-size: 13px;
        color: #f5c518;
    }

.cast-photo .cast-score {
    position: absolute;
    top: 6px;
    right: 6px;
}

.cast-body {
    padding: 10px;
}

.cast-name {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--origin-text) !important;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    font-size: 15px;
    font-weight: 300;
    color: var(--origin-muted) !important;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-job {
    font-size: 13px;
    font-weight: 300;
    color: var(--origin-muted) !important;
    margin: 0;
}

.cast-arrow {
    position: absolute;
    top: 95px;
    z-index: 2;
    width: 34px;
    height: 54px;
    border: 0;
    border-radius: 4px;
    background-color: rgba(60, 60, 60, .85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .cast-arrow:hover {
        background-color: rgba(90, 90, 90, .95);
    }

.cast-arrow-left { left: 6px; }
.cast-arrow-right { right: 6px; }

.origin-modal-wide {
    width: min(760px, calc(100vw - 32px));
}

.cast-modal-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--origin-muted-2);
    margin-left: 6px;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cast-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--origin-surface-2);
    border-radius: 4px;
    padding: 6px;
    color: inherit !important;
    text-decoration: none !important;
    min-width: 0;
}

    .cast-row:hover {
        background-color: var(--origin-surface-3);
    }

    .cast-row img {
        flex: 0 0 auto;
        width: 52px;
        height: 72px;
        object-fit: cover;
        border-radius: 2px;
        background-color: var(--origin-surface-2);
    }

.cast-row-text {
    flex: 1 1 auto;
    min-width: 0;
}

.cast-row-name {
    font-size: 14px;
    color: var(--origin-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-row-sub, .cast-row-job {
    font-size: 12px;
    color: var(--origin-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-score-inline {
    align-self: flex-start;
    flex: 0 0 auto;
    background-color: rgba(0, 0, 0, .25);
}

@media (max-width: 640px) {
    .cast-list { grid-template-columns: 1fr; }
    .cast-card { flex-basis: 150px; }
    .cast-photo { height: 190px; }
}

/* ---------- Person page (Pages/PersonDetails.razor): purple accent, biographies, filmography ---------- */

/* fabricorigin.com uses purple for people (#A652B8) where titles use blue */
.origin-person-page {
    --origin-primary: #a652b8;
}

.person-hand-badge {
    background-color: #451da8 !important;
}

.person-bio p {
    font-size: 15px;
    color: var(--origin-text-2);
    margin: 0 0 6px;
    line-height: 1.55;
}

.person-bio-meta {
    font-size: 12px;
    color: var(--origin-muted-2);
    margin-bottom: 16px;
}

.film-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.film-card {
    display: flex;
    gap: 10px;
    background-color: var(--origin-surface-2);
    border-radius: 4px;
    overflow: hidden;
    color: inherit !important;
    text-decoration: none !important;
    min-width: 0;
}

    .film-card:hover {
        background-color: var(--origin-surface-3);
    }

        .film-card:hover .film-card-title {
            color: var(--origin-link);
        }

    .film-card img {
        flex: 0 0 60px;
        width: 60px;
        height: 85px;
        object-fit: cover;
        background-color: var(--origin-surface-2);
    }

.film-card-text {
    padding: 8px 8px 8px 0;
    min-width: 0;
}

.film-card-title {
    font-size: 15px;
    color: var(--origin-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.film-card-sub {
    font-size: 13px;
    font-weight: 300;
    color: var(--origin-muted);
    display: flex;
    align-items: center;
    gap: 2px;
}

    .film-card-sub .material-icons {
        font-size: 14px;
        color: #f5c518;
    }

/* "Show more" pill sitting on a dashed line */
.film-more {
    position: relative;
    text-align: center;
    margin-top: 20px;
}

    .film-more::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        border-top: 1px dashed var(--origin-border-strong);
    }

    .film-more button {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 2px;
        padding: 6px 60px;
        border: 0;
        border-radius: 50px;
        background-color: var(--origin-surface-2);
        color: var(--origin-text-2);
        font-size: 13px;
        cursor: pointer;
    }

        .film-more button .material-icons {
            font-size: 16px;
        }

@media (max-width: 991px) {
    .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .film-grid { grid-template-columns: 1fr; }
}


/* ---------- Collections (list + detail): fabricorigin.com uses orange (#FFA500) for collections ---------- */

.origin-collection-page {
    --origin-primary: #ffa500;
}

    .origin-collection-page .origin-id-badge {
        color: #151515;
    }

.collection-frame .collection-count .material-icons {
    color: var(--origin-muted);
}

.collection-no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--origin-muted-2);
}

    .collection-no-cover .material-icons {
        font-size: 48px;
    }

.poster-seq {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 11px;
    color: #151515;
    background-color: #ffa500;
    border-radius: 3px;
    padding: 1px 6px;
}

.collection-sub-title {
    font-size: 20px !important;
}

.collection-sub-description {
    font-size: 14px;
    font-weight: 300;
    color: var(--origin-muted);
    margin: -8px 0 14px;
}

/* Identifiers list: name … dashed leader … id */
.origin-id-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.origin-id-name {
    flex: 0 0 auto;
    color: var(--origin-strong);
    padding-right: 10px;
}

.origin-id-leader {
    flex: 1 1 auto;
    min-width: 24px;
    border-bottom: 1px dashed var(--origin-border-strong);
}

.origin-id-value {
    flex: 0 1 auto;
    min-width: 0;
    padding-left: 10px;
    color: var(--origin-muted) !important;
    text-decoration: none !important;
    overflow-wrap: anywhere;
    text-align: right;
}

a.origin-id-value:hover {
    color: var(--origin-link) !important;
}

/* Featured video card */
.origin-video {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.origin-video-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--origin-text);
    margin-bottom: 8px;
}

@media (max-width: 991px) {
    .origin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .origin-tile.span-2 { grid-column: 1 / -1; }
    .origin-video { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .origin-hero { padding: 28px 16px; margin: -8px -8px 16px; }
    .origin-hero-inner { flex-direction: column-reverse; gap: 20px; }
    .origin-hero-poster { width: 160px; }
    .origin-hero-title { font-size: 32px; }
    .origin-tiles { grid-template-columns: 1fr; }
}

/* ---------- Title / person sub-pages (Images, Videos, Episodes, person Images) ---------- */


/* Compact hero: small poster on the left, title and quick-nav beside it */
.origin-hero--compact {
    min-height: 0;
    padding: 32px 32px 28px;
}

    .origin-hero--compact .origin-hero-inner {
        align-items: center;
    }

    .origin-hero--compact .origin-hero-poster {
        width: 130px;
        order: -1;
    }

    .origin-hero--compact .origin-hero-title {
        font-size: 34px;
    }

        .origin-hero--compact .origin-hero-title a {
            color: #fff;
            text-decoration: none;
        }

            .origin-hero--compact .origin-hero-title a:hover {
                color: var(--origin-link);
            }

    .origin-hero--compact .origin-breadcrumb .rz-dropdown {
        min-width: 160px;
    }

.origin-quicknav a.active {
    background-color: var(--origin-primary) !important;
    border-color: var(--origin-primary) !important;
    color: #fff !important;
}

.origin-quicknav a.origin-report-link {
    color: var(--origin-accent) !important;
}

/* Media cards on the sub-pages */
.origin-subpage .rz-g > div,
.origin-subpage .rz-datalist-data > li {
    border-radius: 8px !important;
    padding: 10px !important;
    transition: border-color .2s ease;
}

    .origin-subpage .rz-g > div:hover {
        border-color: var(--origin-border-strong) !important;
    }

.origin-subpage .ImageListContainer img,
.origin-subpage .VideoListContainer img {
    border-radius: 4px;
    margin-bottom: 6px;
}

.origin-subpage .badge-success,
.origin-subpage .badge-info,
.origin-subpage .badge-secondary,
.origin-subpage .badge-light {
    background-color: var(--origin-pill-bg) !important;
    color: var(--origin-text-2) !important;
    border: 1px solid var(--origin-pill-border);
    border-radius: 50px;
    font-size: 11px;
    padding: 3px 8px;
}

.origin-subpage .badge-primary {
    border-radius: 50px;
    font-size: 11px;
    padding: 3px 8px;
}

.origin-subpage .badge-danger {
    border-radius: 50px;
}

/* Episode rows: title in white, details muted */
.origin-subpage .ProgramTitle {
    color: var(--origin-text) !important;
    font-size: 18px;
}

.origin-subpage .Contributors,
.origin-subpage .ProgramStats,
.origin-subpage .Text14 {
    color: var(--origin-muted);
}

.origin-person-page .origin-quicknav a.active {
    background-color: var(--origin-primary) !important;
    border-color: var(--origin-primary) !important;
}

@media (max-width: 768px) {
    .origin-hero--compact { padding: 22px 16px; }
    .origin-hero--compact .origin-hero-inner { flex-direction: row; align-items: flex-start; }
    .origin-hero--compact .origin-hero-poster { width: 90px; }
    .origin-hero--compact .origin-hero-title { font-size: 24px; }
}

/* Celebrities: the "RECORDS" label in the person purple */
.origin-person-page .programs-total-label {
    color: #c47ad4;
}

