.text-primary {
    color: var(--accent) !important;
}
/* --------------------------------------------------------------- preloader */
/* Scoped to the content area (Payam 2026-09-17): #dvVODContentList is the
   containing block, so a filter switch covers only the grid while the hero and
   the search box stay visible. Deliberately NO z-index on the list - a stacking
   context there would trap the hovered-row lift (.content-list:hover 35) under
   the search panel again. 20 sits above the rows (1-10) and below the search
   panel's dropdowns (30) and the fixed header (40). */
#dvVODContentList {
    position: relative;
}

    /* The grid is emptied while it loads - hold the space so the loader has
       room and the page does not collapse under the reader's scroll. */
    #dvVODContentList.is-loading {
        min-height: 60vh;
    }

#prlSectionContainer {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--sp-12);
    transition: all ease-in 0.3s;
}

    #prlSectionContainer img {
        height: 50px;
        width: auto;
    }
/* ----------------------------------------------------- content modal */
#prlContentPreviewModalBody {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111111;
    display: flex;
    align-items: flex-start;
    text-align: center;
    transition: all ease-in 0.3s;
    padding-top: 3rem;
    min-height: 500px;
}

    #prlContentPreviewModalBody img {
        height: 50px;
        flex: 1;
    }

#contentPreviewModal .modal-dialog .modal-content {
    background: #111;
    border: none;
    padding: 0;
    margin: 0;
}

    #contentPreviewModal .modal-dialog .modal-content .modal-body {
        margin: 0;
        padding: 0rem;
    }

.modal-backdrop.show {
    background-color: rgba(13,14,20,0.95);
    opacity: 0.95;
}

.content-preview-modal {
    min-height: 650px;
    padding: 0;
    border-radius: 15px;
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: #111111;
}

    .content-preview-modal::before {
        width: 100%;
        min-height: 700px;
        display: block;
        border-radius: 15px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 20;
        content: '';
        background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 1) 73%);
    }

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot{
    padding: 0 15px !important
}
/* ----------------------------------------------------------------- hero */
/* Bottom fade (Payam 2026-09-23): the photo used to stop on a hard horizontal
   line where the content grid begins. Background LAYERS, not a ::after - a
   background always paints under every child, so the search panel, the
   platform strip and the category tabs keep their own stacking and stay
   clickable with no z-index or pointer-events juggling. Two ramps of
   different heights rather than one: stacked alpha (1 - (1-a)(1-b)) bends the
   straight ramp into a curve, and that curve is what keeps a single linear
   fade from banding over the photo. The colour is var(--bg) - the same token
   body carries - so the fade lands exactly on the page colour the grid below
   sits on. Both layers are anchored bottom, so the top of the hero is
   untouched. */
.home-featured {
    position: relative;
    width: 100%;
    min-height: 400px;
    padding: 5rem 0 var(--sp-12) 0;
    background-image:
        linear-gradient(to top, var(--bg), transparent),
        linear-gradient(to top, var(--bg), transparent),
        url('../images/hero-bg2.jpg');
    background-size: 100% 150px, 100% 0px, cover;
    background-position: center bottom, center bottom, center top;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.search-bar {
    position: relative;
    width: 100%;
    margin: var(--sp-6) 0 var(--sp-6) 0;
}

.facet-opt.active {
    color: var(--accent);
}
/* ------------------------------------------------------ platform strip */
.platform-hotlink {
    width: 100%;
    padding: var(--sp-6) var(--sp-6) 0 var(--sp-6);
}
/* ----------------------------------------------------------------- content-preview */
.active-view .details .actions {
    text-align: right;
}

/* Top10 banner (Payam 2026-08-29 design): heading column on the left
   (Top10 / kind / red country tag), platform pills pinned top-right,
   posters with the giant outlined ranks filling the rest. */
.top10-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 3rem);
}

h2.top10-head {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    margin: 0;
}

.top10-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 4.4vw, 4.4rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
}

.top10-kind {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
    line-height: 1.2;
    color: #fff;
}

.top10-country {
    align-self: stretch;
    text-align: center;
    margin-top: 0.55rem;
    background-color: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.95rem, 1.5vw, 1.5rem);
    line-height: 1;
    padding: 0.3em 0.7em;
    border-radius: 6px;
}

/* min-width:0 lets owl shrink inside the flex row; the top padding is the
   headroom the absolute tab pills sit in. Payam, 2026-10-30: "bring the top10
   tabs to the left side starting from first item" - the column is the pills'
   positioning box now, so they sit flush with the first card's left edge. */
.top10-main {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2.4rem;
}

.content-list.top10 .top10-tabs {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    margin: 0;
    padding: 0;
    max-width: 70%;
}

    .content-list.top10 .top10-tabs a {
        border-radius: 8px; /* the mockup tag is a rounded rect, not a pill */
    }

/* Rank centered on the poster (style.css anchors it to the bottom) with a
   deeper red outline than the accent, per the mockup. Sized so most of the
   digit stays readable in the gutter instead of under the poster. */
.top10-rank {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: clamp(4.5rem, 9.5vw, 10rem);
    -webkit-text-stroke: 2.5px var(--accent);
    -webkit-text-stroke: 2.5px color-mix(in srgb, var(--accent) 70%, #000);
}

/* Poster a touch narrower than style.css's 76% - widens the rank gutter */
.top10-pw {
    width: 72%;
}

/* style.css keeps .owl-stage-outer overflow:visible so the hover preview can
   escape the strip - but in the banner the scrolled-out posters then paint
   OVER the heading column. Clip horizontally only: overflow:hidden cuts the
   strip at the carousel edges, while the padding/negative-margin pair keeps
   vertical headroom so previews still escape up and down. pointer-events
   restores card hits inside the taller transparent box without stealing
   hovers from the sections above and below. */
.content-list.top10 .owl-stage-outer {
    overflow: hidden;
    padding: 260px 0;
    margin: -260px 0;
    pointer-events: none;
}

/* flow-root stops the -260px margin collapsing through the carousel, which
   dragged the whole carousel box up over the tab pills */
.content-list.top10 .owl-carousel {
    display: flow-root;
}

.content-list.top10 .owl-stage {
    pointer-events: auto;
}

/* the carousel carries owl's z-index:1 - keep the pills clickable above it */
.content-list.top10 .top10-tabs {
    z-index: 2;
}

/* Payam, 2026-10-30: a first-row preview grew up into the pills and the pills
   painted over it (the carousel is owl's own stacking context at 1, the pills
   sit at 2, and nothing inside the carousel can climb past its own level).
   While a card is hovered the carousel rises above the pills; off the cards
   the pills are on top and clickable again. */
.content-list.top10 .owl-carousel:hover {
    z-index: 3;
}

@media (max-width: 767px) {
    .top10-banner {
        display: block;
    }

    h2.top10-head {
        flex-direction: row;
        align-items: baseline;
        gap: 0.6rem;
        margin-bottom: var(--sp-3);
    }

    .top10-country {
        align-self: center;
        margin: 0 0 0 auto;
    }

    .content-list.top10 .top10-tabs {
        position: static;
        max-width: none;
        margin: 0 0 var(--sp-4) 0;
    }

    .top10-main {
        padding-top: 0;
    }
}
/* ------------------------------------------------------- qaplist chrome */
/* The Create pill sits inside the subnav, whose `.qap-subnav a` rule
   (higher specificity) strips the pill padding and ink color */
.qap-subnav a.btn-pill {
    padding: 0.6rem 1.4rem;
    color: #fff;
}

/* The active-tab underline pokes 1px past the box; with overflow-x:auto that
   spawns a stray vertical scrollbar. Give the 1px back and clip the axis. */
.qtabs {
    overflow-y: hidden;
    padding-bottom: 1px;
}

.qap-subnav {
    overflow-y: hidden;
    padding-bottom: calc(var(--sp-3) + 1px);
}

/* Breathing room between the vibe capsules and whatever follows them */
.vibe-select-wrap {
    margin-bottom: var(--sp-5);
}
/* ------------------------------------------------- home: qaplist section */
/* Payam's 2026-09-02 concept (v4): ONE ROUNDED PANEL (not a bleed) holding
   a hero split - intro column beside a 3D gallery of the Top10 cards (the
   active card in front and larger, neighbours behind it, pushed in and
   turned, darker) - then a Trending Vibes strip of pills. Cards are
   image-first: the text sits on the art over a bottom gradient. The
   portrait popular rail sits OUTSIDE the panel, a normal rail after it. */

/* Payam's red geometric backdrop (2026-09-01), width-fit and top-anchored
   with NO scrim - cover cropped it to its darkest center and a scrim buried
   it. Inside the panel the art still spans the full panel width. */
.home-qaplists {
    position: relative;
    margin: var(--sp-4) 0 0;
    padding: var(--sp-4) var(--sp-5) var(--sp-4);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    overflow: hidden;
    background-color: rgb(var(--bg-deep));
    background-image: url('../images/qaplist-bg.jpg');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
}

/* ---- hero split: intro | gallery ---- */
.qhome3-hero {
    display: grid;
    /* Payam 2026-09-03: the intro takes less, the gallery gets the room - bigger cards */
    grid-template-columns: minmax(230px, 24%) minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: center;
}

.qhome3-intro {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qhome3-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    width: fit-content;
}

    .qhome3-brand:hover {
        color: #fff;
    }

.qhome3-bar {
    width: 3px;
    height: 1.15em;
    background: var(--accent);
    border-radius: 2px;
}

.qhome3-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.2rem;
    letter-spacing: -0.01em;
    text-transform: lowercase;
}

/* two lines: white, then red - the pitch */
.qhome3-headline {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    border: 0;
    padding: 0;
}

    .qhome3-headline span,
    .qhome3-headline em {
        display: block;
        /* the narrower intro (24%) wraps the first line - balanced breaks instead of an orphan word */
        text-wrap: balance;
    }

    .qhome3-headline em {
        font-style: normal;
        color: var(--accent);
    }

.qhome3-tag {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.qhome3-ctas {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.qhome3-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.85em 1.4em;
    border-radius: 6px;
    background: #e50914;
    color: #fff;
    text-decoration: none;
    transition: var(--t-fast);
}

    .qhome3-cta:hover {
        background: #ff1f2c;
        color: #fff;
    }

.qhome3-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    transition: var(--t-fast);
}

    .qhome3-link .material-symbols-outlined {
        font-size: 1.15rem;
    }

    .qhome3-link:hover {
        color: var(--accent);
    }

/* ---- the Top10 gallery ----
   Owl center mode carries the positions; the 3D reads come from transforms
   on the card inside each item (home.js marks the two neighbours of the
   center as qc-left / qc-right on every move). The stage box opens
   vertically for the enlarged front card and runs to the panel's right
   edge, where the panel's rounded overflow cuts the last card - as in the
   concept. */
.qhome3-top {
    min-width: 0;
    /* room above the front card to match what the dots + strip margin leave below it (Payam) */
    padding-top: 18px;
}

.qhome3-top-carousel {
    margin-top: 0;
}

    .qhome3-top-carousel .owl-stage-outer {
        overflow: hidden;
        padding: 30px var(--sp-5) 20px 0;
        margin: -32px calc(-1 * var(--sp-5)) -32px 0;
        pointer-events: none;
    }

    .qhome3-top-carousel .owl-stage {
        pointer-events: auto;
        perspective: 1400px;
    }

    .qhome3-top-carousel .owl-item {
        z-index: 1;
    }

        .qhome3-top-carousel .owl-item.qc-left,
        .qhome3-top-carousel .owl-item.qc-right {
            z-index: 2;
        }

        .qhome3-top-carousel .owl-item.center {
            z-index: 3;
        }

/* the card (Payam 2026-09-02, round 3): a LANDSCAPE art band on top - the first
   title beside the second, slider images when they exist - then a dark body
   below it that holds the title and the meta row, so the text never sits on
   the pictures. The scrim only blends the last third of the art into the body. */
.qlc {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.32s, box-shadow 0.32s;
}

/* in a grid or the similar rail the card lifts on hover */
.qlist-grid .qlc:hover,
.qpm-sim-rail .qlc:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.95);
}

/* the draft flag (My Qaplists > drafts) sits where the rank ribbon would */
.qlc-flag {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 5;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

a.qlc-save {
    text-decoration: none;
}

/* the home gallery: every card starts small and faded, the centre one is full size */
.qhome3-top-carousel .qlc {
    transform: scale(0.82);
    opacity: 0.45;
    transform-origin: 50% 50%;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

/* the two behind the front card: pushed toward it, turned, darker */
.qhome3-top-carousel .owl-item.qc-left .qlc {
    transform: translateX(15%) rotateY(12deg) scale(1);
    opacity: 0.8;
}

.qhome3-top-carousel .owl-item.qc-right .qlc {
    transform: translateX(-15%) rotateY(-12deg) scale(1);
    opacity: 0.8;
}

    .qhome3-top-carousel .owl-item.qc-left .qlc::after,
    .qhome3-top-carousel .owl-item.qc-right .qlc::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        pointer-events: none;
        z-index: 4;
    }

/* the front card: full size, red frame + glow */
.qhome3-top-carousel .owl-item.center .qlc {
    transform: scale(1.12);
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(0,0,0, 0.35), 0 26px 56px rgba(0, 0, 0, 0.65), 0 0 36px rgba(229, 9, 20, 0.2);
}

.qlc-link {
    position: relative;
    display: block;
    color: #fff;
    text-decoration: none;
}

    .qlc-link:hover {
        color: #fff;
    }

/* rank number, top-left, on a red ribbon tag (Payam: the number goes here) */
.qlc-num {
    position: absolute;
    top: 0;
    left: 16px;
    z-index: 7;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 7px;
    background: #e50914;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* the art: the BOOK STACK (Payam's 2026-09-04 mockup, measured on a 1256px card):
   the first title's landscape picture on top at the RIGHT (63.6% of the width,
   16:11, rounded), the next THREE titles' posters (2:3, the same height) fanned
   out under it to the left in equal steps, each one under the next, like book
   spines, each swung open TOWARD the viewer around its covered right edge, harder
   the farther back it is (20 / 30 / 40 degrees, Payam 2026-09-04), sized so the
   enlarged near edge never leaves the top picture's height - inset ~2% on the dark card, the red line under it stays the separation.
   THUMBNAIL RULE: every img carries its own ratio (aspect-ratio + height auto)
   and imgix renders the same ar=; no holder clips - a spine is only COVERED by
   the next picture, and the rounded corners are the img's own. The long selectors
   beat owl-carousel's ".owl-carousel .owl-item img { width: 100% }" on the home rail. */
.qlc-art {
    position: relative;
    display: block;
    padding: 1.85% 2.6% 0.65% 1.85%;
    /* the spines' perspective is in cqw, so the fan looks the same at every card width */
    container-type: inline-size;
}

.qlc-stack {
    --qlc-region: 36.4%; /* the spine region; the top picture takes the rest */
    --qlc-n: 3;
    --qlc-step: 12.133%; /* region / 3 */
    position: relative;
    display: block;
    padding-left: var(--qlc-region);
}

    .qlc-stack[data-spines="2"] { --qlc-n: 2; --qlc-step: 12.133%; }
    .qlc-stack[data-spines="1"] { --qlc-n: 1; --qlc-step: 12.133%; }
    .qlc-stack[data-spines="0"] { padding-left: 0; }

.qlc-top {
    position: relative;
    z-index: 5;
    display: block;
    min-width: 0;
}

    .qlc-art .qlc-stack .qlc-top img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 11;
        object-fit: cover;
        border-radius: 5px;
        background: rgba(var(--qv-tint, 229, 9, 20), 0.12);
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.55);
    }

/* a spine: as tall as the top picture (63.6% x 11/16 = 43.725% of the stack width,
   so 2:3 gives 29.15%), placed from the right edge of the region so the second
   title always lies right under the top picture whatever the count */
.qlc-art .qlc-stack .qlc-spine {
    position: absolute;
    top: 50%;
    left: calc(var(--qlc-region) - (var(--qlc-n) - var(--i)) * var(--qlc-step));
    margin-left: var(--qlc-shift);
    z-index: calc(1 + var(--i));
    display: block;
    width: var(--qlc-w);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 5px;
    background: rgba(var(--qv-tint, 229, 9, 20), 0.12);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.55);
    /* the fan: pivot on the covered right edge, the free left edge swings toward the
       viewer. Perspective 170cqw = 1.78 stack widths, so at 40deg the near edge is
       enlarged x1.10, at 30deg x1.08, at 20deg x1.06 - each spine is sized (--qlc-w,
       from the flat 29.15%) so that enlarged edge stays inside the top picture's height,
       and shifted left (--qlc-shift) by its own projected offset so the three visible
       slivers stay equal steps */
    transform-origin: 100% 50%;
    transform: translateY(-50%) perspective(170cqw) rotateY(var(--qlc-angle));
}

    /* counted from .qlc-top, the last child: 2 = the spine right under the top picture */
    .qlc-art .qlc-stack .qlc-spine:nth-last-child(2) { --qlc-angle: 20deg; --qlc-w: 27.1%; --qlc-shift: -0.2%; }
    .qlc-art .qlc-stack .qlc-spine:nth-last-child(3) { --qlc-angle: 30deg; --qlc-w: 26.5%; --qlc-shift: -1.7%; }
    .qlc-art .qlc-stack .qlc-spine:nth-last-child(4) { --qlc-angle: 40deg; --qlc-w: 25.9%; --qlc-shift: -4%; }

/* no gradient (Payam 2026-09-02): the pictures end clean, the red line under them
   is the separation - the scrim span stays in the markup and paints nothing */
.qlc-scrim {
    display: none;
}

/* the dark body: the title sits at the BOTTOM of a reserved two-line slot, so it
   is always right above the meta row (Payam: title near the texts) while every
   card in the gallery keeps the same height */
.qlc-body {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* two lines of the title size below */
    min-height: calc(1rem * 1.2 * 2);
    padding: 0.25rem var(--sp-4) 0;
    border-top: 2px solid #e50914;
}
/* the small red caps line above the title - the category layer, once it exists */
.qlc-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.qlc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* same size as the standard hover-preview box title (.active-view .details .title h3) */
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: 1rem;
    line-height: 1.2;
    color: #fff;
    transition: var(--t-fast);
}

.qlc-link:hover .qlc-title {
    color: var(--accent);
}

.qlc-meta {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem var(--sp-4) var(--sp-4);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    min-width: 0;
}

    .qlc-meta .avatar {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        font-weight: 700;
        color: #fff;
        background: rgba(var(--qv-tint, 229, 9, 20), 0.5);
        flex: 0 0 auto;
    }

.qlc-who {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.qlc-dot {
    color: rgba(255, 255, 255, 0.4);
}

.qlc-stat {
    white-space: nowrap;
}

/* the bookmark: a real save toggle (home.js), filled once saved */
.qlc-save {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: var(--t-fast);
}

    .qlc-save .material-symbols-outlined {
        font-size: 1.3rem;
        font-variation-settings: 'FILL' 0;
        transition: var(--t-fast);
    }

    .qlc-save:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .qlc-save.is-saved {
        color: var(--accent);
    }

        .qlc-save.is-saved .material-symbols-outlined {
            font-variation-settings: 'FILL' 1;
        }

/* dots BELOW the gallery, centered, round, red when active (the concept);
   the extra class outranks the shared top-right dots rule below */
.qhome3-top-carousel.owl-carousel .owl-dots {
    position: static;
    text-align: center;
    margin-top: 0.85rem;
}

    .qhome3-top-carousel.owl-carousel .owl-dots .owl-dot span {
        width: 8px;
        height: 8px;
        margin: 4px 4px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
    }

    .qhome3-top-carousel.owl-carousel .owl-dots .owl-dot.active span {
        background: var(--accent);
    }

/* ---- Trending Vibes strip: divider with a red lead, heading + View All,
   then a row of pills (the vibes as they are - title + tint dot) ---- */
.qhome3-vibes {
    position: relative;
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    

.qhome3-vibes-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
}

    .qhome3-vibes-head h3 {
        margin: 0;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.15rem;
        color: #fff;
    }

.qhome3-viewall {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--t-fast);
}

    .qhome3-viewall .material-symbols-outlined {
        font-size: 1rem;
    }

    .qhome3-viewall:hover {
        color: #fff;
    }

.qhome3-pills {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.qpill {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.8rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(20, 20, 20, 0.85);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--t-fast);
}

    .qpill:hover {
        color: #fff;
        border-color: rgba(229, 9, 20, 0.75);
        background: rgba(229, 9, 20, 0.07);
        transform: translateY(-1px);
    }

.qpill-dot {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgb(var(--qv-tint, 229, 9, 20));
    box-shadow: 0 0 10px rgba(var(--qv-tint, 229, 9, 20), 0.65);
}

.qpill-t {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* qaplist.css (where --vibe-* live) is not loaded on home - one local tint
   map for EVERY tinted element in the section (pills, collage fallback
   panels, curator avatars) */
.home-qaplists .tint-teal { --qv-tint: 45, 212, 191; }
.home-qaplists .tint-amber { --qv-tint: 251, 191, 36; }
.home-qaplists .tint-blue { --qv-tint: 96, 165, 250; }
.home-qaplists .tint-pink { --qv-tint: 244, 114, 182; }
.home-qaplists .tint-green { --qv-tint: 74, 222, 128; }
.home-qaplists .tint-red { --qv-tint: 229, 9, 20; }

@media (max-width: 1199px) {
    .qhome3-hero {
        grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
    }

    .qhome3-pills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899px) {
    .home-qaplists {
        padding: var(--sp-4);
        border-radius: 16px;
    }

    .qhome3-hero {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }

    .qhome3-intro {
        max-width: 520px;
    }

    .qhome3-top {
        padding-top: 10px;
    }

    /* no gallery one-up: every card flat and at full size */
    .qhome3-top-carousel .owl-item .qlc {
        transform: none;
        opacity: 1;
    }

        .qhome3-top-carousel .owl-item .qlc::after {
            display: none;
        }

    .qhome3-top-carousel .owl-stage-outer {
        padding-right: var(--sp-4);
        margin-right: calc(-1 * var(--sp-4));
    }
}

@media (max-width: 699px) {
    .qhome3-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Same fix for the Top10 banner strips - their heading column sits left of
   the rail, so the default -gutter offset floated the arrow over it. */
@media (min-width: 768px) {
    .top10-main .owl-nav .owl-prev {
        left: 0;
    }
}

/* ---- the portrait popular rail - OUTSIDE the panel, a normal rail right
   after it; it keeps its shape (Payam) and the standard hover preview.
   Open the stage box vertically for the previews and one gutter to the
   right so the next poster peeks like every other rail. ---- */
.qhome-popular {
    margin-top: var(--sp-5);
}

.qhome-poster-carousel {
    margin-top: var(--sp-3);
    display: flow-root;
}

    .qhome-poster-carousel .owl-stage-outer {
        overflow: hidden;
        padding: 260px var(--gutter) 260px 0;
        margin: -260px calc(-1 * var(--gutter)) -260px 0;
        pointer-events: none;
    }

    .qhome-poster-carousel .owl-stage {
        pointer-events: auto;
    }

    /* The overlay sizes off the CARD, and 8-up portrait cards are narrow - a
       1.34x grow gave a tiny preview. Widen the overlay itself so the opened
       box lands near the standard rails' preview size (175% read too big -
       Payam - 140% is the middle ground). */
    .qhome-poster-carousel .content-item .active-view {
        width: 140%;
    }

    .qhome-poster-carousel .qposter {
        position: relative;
        display: block;
        border-radius: 10px;
        overflow: hidden;
        background: #141414;
    }

        .qhome-poster-carousel .qposter img {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 2 / 3;
            object-fit: cover;
        }

        .qhome-poster-carousel .qposter.qposter-broken {
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .qhome-poster-carousel .qposter.qposter-broken img {
                display: none;
            }

            .qhome-poster-carousel .qposter.qposter-broken::before {
                font-family: 'Material Symbols Outlined';
                content: 'movie';
                font-size: 2rem;
                color: rgba(255, 255, 255, 0.35);
            }

/* Rail chrome shared by both qaplist rails: nav arrows and dots mirror the
   content-carousel styling from style.css. */
.qaplist-carousel .owl-nav {
    margin: 0;
}

    .qaplist-carousel .owl-nav [class*='owl-'] {
        position: absolute;
        top: 0;
        bottom: 0;
        margin: 0;
        padding: 0 var(--sp-2);
        background: transparent;
        color: var(--ink-muted);
    }

    .qaplist-carousel .owl-nav .owl-next {
        right: calc(-1 * var(--gutter));
        border-radius: var(--radius-card) 0 0 var(--radius-card);
        background-image: linear-gradient(90deg, transparent, rgba(var(--bg-deep), 1) 60%);
    }

    .qaplist-carousel .owl-nav .owl-prev {
        left: calc(-1 * var(--gutter));
        border-radius: 0 var(--radius-card) var(--radius-card) 0;
        background-image: linear-gradient(90deg, rgba(var(--bg-deep), 1) 40%, transparent);
    }

    /* the gallery lives inside the panel - arrows stay inside, above the cards */
    .qhome3-top-carousel .owl-nav [class*='owl-'] {
        top: 32px;
        bottom: 32px;
        z-index: 6;
        background-image: none;
        color: rgba(255, 255, 255, 0.7);
        /* the arrows sit over the outer edge of the cards behind - readable on any art */
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
        padding: 0 4px;
    }

    .qhome3-top-carousel .owl-nav .owl-prev {
        left: 0;
    }

    .qhome3-top-carousel .owl-nav .owl-next {
        right: 0;
    }

    .qaplist-carousel .owl-nav [class*='owl-']:hover {
        background-color: transparent;
        color: #fff;
    }

    .qaplist-carousel .owl-nav [class*='owl-'].disabled {
        display: none;
    }

    .qaplist-carousel .owl-nav span {
        font-size: 3rem;
        line-height: 1;
    }

.qaplist-carousel .owl-dots {
    position: absolute;
    top: -25px;
    right: 0;
}

    .qaplist-carousel .owl-dots .owl-dot span {
        width: 15px;
        height: 3px;
        margin: 10px 2px;
        background: var(--ink-dim);
        border-radius: 0;
    }

    .qaplist-carousel .owl-dots .owl-dot.active span {
        background: var(--ink);
    }

/* ----------------------------------------------------------- qaplist rows */
/* Title links keep the design's ink color — never browser link blue */
.qtitle-head h3 a,
.qc-info .t a {
    color: inherit;
    text-decoration: none;
}

    .qtitle-head h3 a:hover,
    .qc-info .t a:hover {
        color: var(--accent);
    }

/* Content thumbnails scaled ~20% up from the template base (132px / 44px).
   Scoped selectors so they win over qaplist.css, which loads after this file. */
.qtitle-row .qtitle-poster {
    flex: 0 0 158px;
    width: 158px;
}

.qchart-row .qc-poster {
    flex: 0 0 53px;
    width: 53px;
}

@media (max-width: 768px) {
    .qtitle-row .qtitle-poster {
        flex-basis: 125px;
        width: 125px;
    }
}

/* Drag-to-reorder feedback on the Edit building list */
#buildingList .qtitle-row.dragging {
    opacity: 0.4;
}

#buildingList .qtitle-handle {
    cursor: grab;
}

/* Universal content structure: description under the Year · Type subtitle */
.qtitle-desc {
    margin: 0.35rem 0 0 0;
    color: var(--ink-dim);
    font-size: 0.85rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* -------------------------------------------------- add-to-qaplist modal */
.qadd-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

    .qadd-content img {
        width: 84px;
        border-radius: 5px;
    }

    .qadd-content .t {
        font-weight: 600;
        color: var(--ink);
    }

    .qadd-content .m {
        color: var(--ink-dim);
        font-size: 0.8rem;
    }

.qadd-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.qadd-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-faint);
    border-radius: 5px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: all ease-in 0.2s;
}

    .qadd-option:hover {
        border-color: var(--accent);
    }

    .qadd-option .status {
        color: var(--ink-dim);
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .qadd-option.is-added {
        border-color: var(--accent);
        color: var(--accent);
    }

.qadd-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink-dim);
    font-size: 0.8rem;
    margin: 0.75rem 0;
}

    .qadd-divider::before,
    .qadd-divider::after {
        content: '';
        flex: 1;
        border-top: 1px solid var(--border-faint);
    }

.qadd-create {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

    .qadd-create input {
        flex: 1;
        padding: 0.55rem 0.9rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-faint);
        border-radius: 5px;
        color: var(--ink);
    }

        .qadd-create input:focus {
            outline: none;
            border-color: var(--accent);
        }

.qadd-btn {
    padding: 0.55rem 1rem;
    background: var(--accent);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.qadd-note {
    color: var(--ink-dim);
    font-size: 0.8rem;
    margin: 0.5rem 0 0 0;
}
/* ----------------------------------------------------------------- footer */
.site-footer {
    margin-top: var(--sp-12);
    padding: var(--sp-12) var(--gutter) var(--sp-6);
    border-top: 1px solid var(--border-faint);
    background-color: #000;
}

/* =====================================================================
   QAPLIST - cinematic polish pass (2026-07-30)

   Everything here is ADDITIVE and scoped. qaplist.css is template-owned and
   loads AFTER custom.css, so each rule below is deliberately more specific
   than its counterpart there - that is why the selectors look over-qualified.

   Goal: depth instead of flat boxes, light instead of borders, motion on
   hover. No markup changes, no protected files touched.
   ===================================================================== */

/* ---------------------------------------------------------- hero spotlight
   The hero was type on flat black. A soft off-centre wash plus a horizon
   line gives it a stage without competing with the headline. */
.qap-main .qap-hero {
    background:
        radial-gradient(120% 140% at 12% -10%, rgba(229, 8, 21, 0.16) 0%, transparent 55%),
        radial-gradient(90% 120% at 88% 0%, rgba(106, 166, 230, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
}

.qap-main .qap-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 8, 21, 0.55), transparent);
}

.qap-main .qap-hero h1 {
    letter-spacing: -0.02em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65);
}

/* ---------------------------------------------------------- eyebrows
   Small caps with wider tracking read as a title card, not a form label. */
.qap-main .eyebrow {
    letter-spacing: 0.18em;
    opacity: 0.85;
}

/* ---------------------------------------------------------- vibe cards
   Were flat panels with a 3px coloured edge. The tint now becomes ambient
   light: a corner bloom that grows on hover, and the card lifts. */
.qap-main .vibe-grid .vibe-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
        var(--surface);
    transition: transform 0.28s cubic-bezier(.2,.7,.3,1), border-color 0.28s, box-shadow 0.28s;
}

.qap-main .vibe-grid .vibe-card::before {
    content: "";
    position: absolute;
    top: -40%; left: -20%;
    width: 70%; height: 160%;
    background: radial-gradient(circle, currentColor 0%, transparent 68%);
    opacity: 0.13;
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
}

.qap-main .vibe-grid .vibe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.qap-main .vibe-grid .vibe-card:hover::before {
    opacity: 0.26;
    transform: scale(1.15);
}

.qap-main .vibe-grid .vibe-card .vc-name,
.qap-main .vibe-grid .vibe-card .vc-meta {
    position: relative;
    z-index: 1;
}

/* Tint drives currentColor so the bloom matches the vibe. */
.qap-main .vibe-card.teal  { color: var(--vibe-teal); }
.qap-main .vibe-card.amber { color: var(--vibe-amber); }
.qap-main .vibe-card.blue  { color: var(--vibe-blue); }
.qap-main .vibe-card.pink  { color: var(--vibe-pink); }
.qap-main .vibe-card.green { color: var(--vibe-green); }
.qap-main .vibe-card.red   { color: var(--accent); }

/* ---------------------------------------------------------- live feed
   A dot that breathes makes the feed feel current instead of printed. */
.qap-main .vibe-feed .live-dot {
    box-shadow: 0 0 0 0 rgba(92, 201, 138, 0.55);
    animation: qapPulse 2.6s ease-out infinite;
}

@keyframes qapPulse {
    0%   { box-shadow: 0 0 0 0 rgba(92, 201, 138, 0.5); }
    70%  { box-shadow: 0 0 0 9px rgba(92, 201, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 201, 138, 0); }
}

/* ---------------------------------------------------------- chart rows
   44px posters were too small to carry a "content chart". Bigger, with a
   rank that steps forward and a row that lights from the left on hover. */
.qap-main .qchart .qchart-row {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s, border-color 0.22s, background-color 0.22s;
}

.qap-main .qchart .qchart-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(229, 8, 21, 0.10) 0%, transparent 38%);
    opacity: 0;
    transition: opacity 0.28s;
    pointer-events: none;
}

.qap-main .qchart .qchart-row:hover {
    transform: translateX(3px);
}

.qap-main .qchart .qchart-row:hover::before {
    opacity: 1;
}

.qap-main .qchart .qchart-row .qc-poster {
    flex: 0 0 62px;
    width: 62px;
    border-radius: 6px;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.95);
    transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s;
}

.qap-main .qchart .qchart-row:hover .qc-poster {
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 1);
}

.qap-main .qchart .qchart-row .qc-rank {
    font-size: 1.15rem;
    min-width: 30px;
    font-variant-numeric: tabular-nums;
}

/* Top three get the spotlight treatment. */
.qap-main .qchart .qchart-row:nth-child(1) .qc-rank {
    color: #f5c451;
    text-shadow: 0 0 18px rgba(245, 196, 81, 0.45);
}

.qap-main .qchart .qchart-row:nth-child(2) .qc-rank { color: #c9ccd6; }
.qap-main .qchart .qchart-row:nth-child(3) .qc-rank { color: #cd8e5b; }

/* ---------------------------------------------------------- podium
   Restrained on purpose. An earlier version used a radial bloom, a coloured
   drop shadow and a ringed avatar; on a dark surface that went muddy and the
   glow leaked under the card. Rank now reads from ONE thing - a metal edge
   at the top - plus size. All three cards stay the same box. */
.qap-main .lb-podium { align-items: stretch; }

.qap-main .lb-podium .lb-pod {
    position: relative;
    overflow: hidden;
    transition: transform 0.24s cubic-bezier(.2,.7,.3,1), border-color 0.24s, background-color 0.24s;
}

/* A 2px metal line across the top. The only colour the card carries. */
.qap-main .lb-podium .lb-pod::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.9;
}

.qap-main .lb-podium .lb-pod.gold   { color: #f5c451; }
.qap-main .lb-podium .lb-pod.silver { color: #c9ccd6; }
.qap-main .lb-podium .lb-pod.bronze { color: #cd8e5b; }

/* First place: a touch of lift and a slightly warmer surface. No glow. */
.qap-main .lb-podium .lb-pod.gold {
    background-color: rgba(245, 196, 81, 0.045);
    border-color: rgba(245, 196, 81, 0.22);
}

.qap-main .lb-podium .lb-pod.gold .rank { font-size: 2rem; }

.qap-main .lb-podium .lb-pod:hover { transform: translateY(-3px); }

.qap-main .lb-podium .lb-pod .rank,
.qap-main .lb-podium .lb-pod .name,
.qap-main .lb-podium .lb-pod .score {
    position: relative;
    z-index: 1;
}

.qap-main .lb-podium .lb-pod .rank { font-variant-numeric: tabular-nums; }

.qap-main .lb-podium .lb-pod .score {
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Avatar keeps its tint, gains nothing else. */
.qap-main .lb-podium .lb-pod .avatar--lg {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------- leaderboard rows */
.qap-main .leaderboard .lb-row {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s, border-color 0.22s, background-color 0.22s;
}

.qap-main .leaderboard .lb-row::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.28s cubic-bezier(.2,.7,.3,1);
}

.qap-main .leaderboard .lb-row:hover { transform: translateX(3px); }
.qap-main .leaderboard .lb-row:hover::before { transform: scaleY(1); }

.qap-main .leaderboard .lb-row .lb-rank {
    font-variant-numeric: tabular-nums;
    opacity: 0.75;
}

.qap-main .leaderboard .lb-row .avatar {
    transition: transform 0.25s, box-shadow 0.25s;
}

.qap-main .leaderboard .lb-row:hover .avatar {
    transform: scale(1.08);
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.9);
}

/* ---------------------------------------------------------- explainer cards
   The "How the score works" panels were the flattest thing on the page. */
.qap-main .qcard {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 70%),
        var(--surface);
}

/* ---------------------------------------------------------- vibe pills */
.qap-main .vibe-select .vibe-pill {
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.qap-main .vibe-select .vibe-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.95);
}

/* ---------------------------------------------------------- motion safety
   Anyone who asks the OS for reduced motion gets none of the above. */
@media (prefers-reduced-motion: reduce) {
    .qap-main .vibe-grid .vibe-card,
    .qap-main .qchart .qchart-row,
    .qap-main .qchart .qchart-row .qc-poster,
    .qap-main .lb-podium .lb-pod,
    .qap-main .leaderboard .lb-row,
    .qap-main .vibe-select .vibe-pill {
        transition: none !important;
    }

    .qap-main .vibe-grid .vibe-card:hover,
    .qap-main .qchart .qchart-row:hover,
    .qap-main .leaderboard .lb-row:hover,
    .qap-main .lb-podium .lb-pod:hover {
        transform: none;
    }

    .qap-main .vibe-feed .live-dot { animation: none; }
}


/* ============================================================
   Title details page (/title/{id}/{slug})
   ============================================================ */

/* Platform tiles under the hero - the logo is the identity; a title can sit
   on several platforms, so identical "Watch Now" buttons said nothing. */
.vhero-watch {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.vhero-watch .vw-label {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.vhero-watch .vw-platforms {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vhero-watch .vw-platform {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.vhero-watch .vw-platform img {
    height: 42px;
    max-width: 110px;
    width: auto;
    object-fit: contain;
    display: block;
}

.vhero-watch .vw-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vhero-watch .vw-counts {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.vhero-watch .vw-update {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
}

.vhero-watch .vw-platform .vw-play {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.15s ease, transform 0.15s ease;
}

.vhero-watch .vw-platform:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.vhero-watch .vw-platform:hover .vw-play {
    color: #fff;
    transform: translateX(2px);
}

/* Title page tab bar: details.css sets overflow-x auto (for many tabs), which
   forces overflow-y to auto too and paints a stub vertical scrollbar on
   Windows. Keep the tabs scrollable if they ever overflow, but never show a
   scrollbar. Double class wins over details.css loading later. */
.vtabs .vtabs-nav {
    overflow-y: hidden;
    scrollbar-width: none;
}

.vtabs .vtabs-nav::-webkit-scrollbar {
    display: none;
}

/* ----------------------------------------------------- hover preview
   Payam 2026-08-29: the reveal opens 40% larger (1.12 -> 1.57), grows from
   the CARD'S CENTER instead of hanging off its top edge, and must never
   paint under a neighbouring card. Same selectors as style.css - custom.css
   loads after it, so equal specificity wins here.

   Centering: style.css anchors the overlay top:0 and scales from the
   element's own middle - but the overlay is taller than the card (poster +
   details), so all the growth spilled downward. Anchoring at 50%/50% with a
   translate makes the expansion symmetric around the card. */
.content-item .active-view {
    top: 50%;
    left: 50%;
    /* keep style.css's 0.98 pre-scale so the pop-in animation survives */
    transform: translate(-50%, -50%) scale(0.98);
    /* style.css uses "center top" - the very reason growth went downward */
    transform-origin: center center;
}

.content-item:hover .active-view {
    transform: translate(-50%, -50%) scale(1.34);
}

/* Hover-intent: the preview overlay waits half a second before opening, so
   sweeping the cursor across a rail no longer flashes previews open and shut.
   Delay applies to the OPEN transition only - leaving a card closes at once. */
.content-item .active-view {
    transition-delay: 0s;
}

.content-item:hover .active-view {
    transition-delay: 0.5s;
}

/* Every .owl-item is its own stacking context (backface-visibility in owl's
   css), so the overlay's z-index can't beat a LATER sibling card - the next
   poster painted over the preview. Lift the hovered item above the rail;
   .owl-item is position:relative in owl's css, .content-item in style.css. */
.owl-item:hover,
.content-item:hover {
    z-index: 30;
}

/* The whole search panel is one z-index:30 stacking context (style.css
   .search-box), while a hovered row only rises to 10 - so a first-row
   preview growing upward slid UNDER the category tabs. 35 beats the panel
   and stays below the fixed site header (40). */
.content-list:hover {
    z-index: 35;
}

/* Edge cards must not clip at the viewport: the FIRST visible card in a rail
   grows rightward from its left edge, the LAST visible grows leftward. Owl
   marks on-screen items with .active; "first visible" = an active item at
   the rail start or right after a non-active one, mirrored for the last.
   These outrank the centered rules by specificity in BOTH states. */
.owl-item.active:first-child .content-item .active-view,
.owl-item:not(.active) + .owl-item.active .content-item .active-view {
    left: 0;
    right: auto;
    transform: translate(0, -50%) scale(0.98);
    transform-origin: left center;
}

.owl-item.active:first-child .content-item:hover .active-view,
.owl-item:not(.active) + .owl-item.active .content-item:hover .active-view {
    transform: translate(0, -50%) scale(1.34);
}

.owl-item.active:has(+ .owl-item:not(.active)) .content-item .active-view,
.owl-item.active:last-child .content-item .active-view {
    left: auto;
    right: 0;
    transform: translate(0, -50%) scale(0.98);
    transform-origin: right center;
}

.owl-item.active:has(+ .owl-item:not(.active)) .content-item:hover .active-view,
.owl-item.active:last-child .content-item:hover .active-view {
    transform: translate(0, -50%) scale(1.34);
}

/* The banner's heading column narrows the Top10 items ~19%, so 1.34 left
   their previews visibly smaller than the regular rails'. A 1.6 scale lands
   the expanded box back at the regular size; the typography block below
   compensates the authored sizes so the RENDERED text matches too. */
.top10-item:hover .active-view {
    transform: translate(-50%, -50%) scale(1.6);
}

.owl-item.active:first-child .content-item.top10-item:hover .active-view,
.owl-item:not(.active) + .owl-item.active .content-item.top10-item:hover .active-view,
.owl-item.active:has(+ .owl-item:not(.active)) .content-item.top10-item:hover .active-view,
.owl-item.active:last-child .content-item.top10-item:hover .active-view {
    transform: translate(0, -50%) scale(1.6);
}

@media (prefers-reduced-motion: reduce) {
    /* style.css drops the scale here; ours must keep the positioning
       translates or the un-scaled overlay would sit misaligned. Edge
       selectors repeated so they win their unscaled state too. */
    .content-item:hover .active-view {
        transform: translate(-50%, -50%);
    }

    .owl-item.active:first-child .content-item:hover .active-view,
    .owl-item:not(.active) + .owl-item.active .content-item:hover .active-view,
    .owl-item.active:has(+ .owl-item:not(.active)) .content-item:hover .active-view,
    .owl-item.active:last-child .content-item:hover .active-view {
        transform: translate(0, -50%);
    }
}

/* ----------------------------------------------------- preview details
   Payam 2026-08-29: the hover preview is title / one meta line
   (Year · AgeGroup · Genre | Genre | Genre) / actions. */
.content-item .active-view .details .actions {
    margin-top: 0.85rem; /* Payam 2026-08-30: more air between meta and actions */
    margin-bottom: 0.25rem;
}

/* Payam 2026-08-29: preview typography a step smaller - the 1.34 transform
   magnifies authored sizes, so the panel read oversized (style.css: h3 1rem,
   h6 0.8rem, action icons 1.5rem). */
.content-item .active-view .details .title h3 {
    font-size: 0.9rem;
    margin-top: -4px; /* Payam 2026-08-30: title ~5px higher at rendered scale */
}

.content-item .active-view .details .title h6 {
    font-size: 0.66rem;
    margin-top: 0.85em; /* breathing room under the title */
}

.content-item .active-view .details .title h6 .av-dot {
    font-weight: 800;
    font-size: 1.2em;
    line-height: 1;
}

.content-item .active-view .details .actions a {
    font-size: 1.35rem;
    margin-right: 0; /* the flex gap below spaces the row, not style.css margins */
}

/* White "Details" pill (Netflix reference): must outrank style.css's
   .actions a:first-child { color:#fff } - the extra class does it. */
.content-item .active-view .details .actions a.av-details-pill {
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 0.28em 0.75em 0.28em 0.55em;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    line-height: 1;
}

    .content-item .active-view .details .actions a.av-details-pill:hover {
        background: rgba(255, 255, 255, 0.85);
        color: #111;
    }

    .content-item .active-view .details .actions a.av-details-pill .material-symbols-outlined {
        font-size: 1.35em;
    }

/* Top10 previews scale 1.6 (vs 1.34) to reach the regular rails' box size -
   authored sizes shrink by 1.34/1.6 = 0.8375 so the RENDERED type matches. */
.top10-item .active-view .details .title h3 {
    font-size: 0.755rem;
    margin-top: -3px;
}

.top10-item .active-view .details .title h6 {
    font-size: 0.553rem;
}

.top10-item .active-view .details .actions {
    margin-top: 0.71rem;
    gap: 0.42rem;
}

    .top10-item .active-view .details .actions a {
        font-size: 1.13rem;
    }

    .top10-item .active-view .details .actions a.av-details-pill {
        font-size: 0.6rem;
    }

    .top10-item .active-view .details .actions .av-share-ring {
        border-width: 1.7px;
    }

/* Payam 2026-08-29: match the Netflix reference - the panel is an OPAQUE
   #181818 card (style.css uses translucent bg-deep + backdrop blur, which
   reads as part of the page instead of a floating card) and a layered
   shadow: Netflix's tight 0 3px 10px plus a soft ambient for depth. */
.content-item .active-view {
    background-color: #181818;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.75), 0 14px 32px rgba(0, 0, 0, 0.55);
}

/* Circled share to match the add_circle / expand_circle_down glyphs: Material
   has no natively circled share, so the plain share glyph (e80d) sits inside
   a CSS ring. The actions row is flexed with align-items:center because the
   three anchors have different heights - baseline alignment dropped the ring
   below the glyphs. Ring outer/stroke tuned to the sibling glyph circles
   (~20/24 of the em box, ~2px stroke at 1.35rem). */
.content-item .active-view .details .actions {
    display: flex;
    justify-content: flex-start; /* mockup: pill first, buttons left-aligned */
    align-items: center;
    gap: 0.5rem;
}

.content-item .active-view .details .actions .av-share-ring {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9em;
    height: 0.9em;
    border: 2px solid currentColor; /* em-borders snap down to 1px in Chrome */
    border-radius: 50%;
}

    .content-item .active-view .details .actions .av-share-ring .material-symbols-outlined {
        font-size: 0.6em;
        line-height: 1;
        /* small optical size + heavier weight thickens the strokes to match
           the 2px ring and the sibling circled glyphs */
        font-variation-settings: 'opsz' 20, 'wght' 600;
    }

/* Top10 preview matches the regular rails: 16:9 media (the markup feeds it
   the main image now), overriding style.css's portrait keep-rule. */
.top10-item .active-view .poster img {
    aspect-ratio: 16 / 9;
}

/* ------------------------------------------- content preview modal v2
   Payam 2026-08-30: logo-as-title, dot-separated meta, crew rows with
   More links, tighter platform stack, and the minimal underline tabs
   (Episodes / Details / Languages). All scoped under .content-modal so
   the title page (vhero/vtabs, details.css) is untouched. */
:is(.content-modal, .vtitle) .cm-logo {
    display: block;
    max-width: 30%; /* Payam: logo up to 30% of the modal width */
    max-height: 10rem;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
}

/* dot separators instead of the piped borders */
:is(.content-modal, .vtitle) .cm-meta > span {
    padding: 0;
    border-right: 0;
}

    :is(.content-modal, .vtitle) .cm-meta > span:not(:last-child)::after {
        content: "\B7";
        margin: 0 0.6rem;
        color: var(--ink-muted);
        font-weight: 800;
    }

:is(.content-modal, .vtitle) .cm-meta {
    margin-bottom: 0.75rem;
}

:is(.content-modal, .vtitle) .cm-crew {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}

:is(.content-modal, .vtitle) .cm-crew-label {
    color: #fff;
    font-weight: 600;
    margin-right: 0.3rem;
}

:is(.content-modal, .vtitle) .cm-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.45rem;
    text-decoration: none;
    white-space: nowrap;
}

    :is(.content-modal, .vtitle) .cm-more:hover {
        color: var(--accent);
        text-decoration: underline;
    }

:is(.content-modal, .vtitle) .cm-desc {
    margin-top: 0.9rem;
    margin-bottom: 1.25rem;
}

/* tighter platform stack (style.css: 2rem) */
:is(.content-modal, .vtitle) .cm-platform {
    margin-bottom: 0.75rem;
}

/* minimal tabs: grey hairline under the bar, thick red line on the active */
:is(.content-modal, .vtitle) .cm-tabs {
    display: flex;
    gap: 1.75rem;
    margin: 1.5rem 0 1.25rem;
    border-bottom: 1px solid var(--border-faint);
    overflow-x: auto;
    scrollbar-width: none;
}

    :is(.content-modal, .vtitle) .cm-tabs::-webkit-scrollbar {
        display: none;
    }

:is(.content-modal, .vtitle) .cm-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px; /* the red line sits ON the grey hairline */
    padding: 0.55rem 0.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--t-fast);
}

    :is(.content-modal, .vtitle) .cm-tab:hover {
        color: #fff;
    }

    :is(.content-modal, .vtitle) .cm-tab.active {
        color: #fff;
        border-bottom-color: var(--accent);
    }

/* episodes panel: the tab is the heading, only the season select remains */
:is(.content-modal, .vtitle) .cm-episodes-head {
    justify-content: flex-start; /* season select sits left (Payam 2026-08-30) */
}

/* details panel */
:is(.content-modal, .vtitle) .cm-dt-title {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 0.3rem;
}

:is(.content-modal, .vtitle) .cm-dt-orig {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 0.9rem;
}

:is(.content-modal, .vtitle) .cm-dt-desc {
    max-width: 75ch;
    color: var(--ink-muted);
    margin-bottom: 1.1rem;
}

/* languages panel */
:is(.content-modal, .vtitle) .cm-lang-group {
    margin-bottom: 1.25rem;
}

    :is(.content-modal, .vtitle) .cm-lang-group h4 {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1rem;
        color: #fff;
        margin: 0 0 0.6rem;
    }

:is(.content-modal, .vtitle) .cm-lang-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

:is(.content-modal, .vtitle) .cm-lang-chip {
    padding: 0.35em 0.9em;
    border: 1px solid var(--border-line);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------- locations tab (Payam 2026-09-23) */
/* Deliberately NOT the capsule treatment the languages tab uses: a pin marks the
   country and its places read as one flowing line, separated by a red dot, so a
   film with fifty credits stays a few lines instead of fifty pills. */
:is(.content-modal, .vtitle) .cm-loc-group {
    margin-bottom: 1.25rem;
}

    :is(.content-modal, .vtitle) .cm-loc-country {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1rem;
        color: #fff;
        margin: 0 0 0.4rem;
    }

        /* The pin sits on the text baseline rather than the line box, which is why
           it carries its own size and a flat line-height. */
        :is(.content-modal, .vtitle) .cm-loc-country .material-symbols-outlined {
            font-size: 1.1rem;
            line-height: 1;
            color: var(--accent);
        }

:is(.content-modal, .vtitle) .cm-loc-places {
    margin: 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.75;
}

    :is(.content-modal, .vtitle) .cm-loc-dot {
        color: var(--accent);
        margin: 0 0.4rem;
    }

    /* IMDB's note on the credit - "Don Tommasino's villa, car blown up". Secondary
       to the place, and only ever shown where one credit owns the place. */
    :is(.content-modal, .vtitle) .cm-loc-note {
        color: var(--ink-dim);
    }

/* --------------------------------------- modal: hero overlay + similar tab */
/* Payam 2026-08-30: the details block rides ~30% up over the slider image;
   a left-to-right dark gradient keeps the overlaid content readable.
   Margin percentages resolve against WIDTH: the 16:9 hero is 56.25% of the
   width tall, so -17% of width = ~30% of the hero height. */
:is(.content-modal, .vtitle) .cm-hero {
    position: relative;
}

    :is(.content-modal, .vtitle) .cm-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(17, 17, 17, 0.96) 0%, rgba(17, 17, 17, 0.78) 28%, rgba(17, 17, 17, 0.35) 55%, rgba(17, 17, 17, 0) 78%);
        pointer-events: none;
    }

:is(.content-modal, .vtitle) .cm-details {
    position: relative;
    z-index: 2;
    /* margin %% resolve against WIDTH; the rendered hero is ~37% of the
       modal width tall, so -19% of width overlays ~half the hero
       (Payam 2026-08-30: pulled higher than the first ~30% pass) */
    margin-top: -20%;
}

/* similar cards: the opened preview-box structure, static (no hover scale) */
:is(.content-modal, .vtitle) .cm-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

:is(.content-modal, .vtitle) .cm-sim-card {
    background-color: #181818;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* ------------------------------- Overview tab: fact sheet + ratings column
   2026-09-01: the old Details text dump became a structured fact grid with a
   ratings side card; Cast & Crew moved to its own tab below. */
:is(.content-modal, .vtitle) .cm-ov-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 767px) {
    :is(.content-modal, .vtitle) .cm-ov-grid {
        grid-template-columns: 1fr;
    }
}

:is(.content-modal, .vtitle) .cm-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
    margin: 1.1rem 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-faint);
}

@media (max-width: 575px) {
    :is(.content-modal, .vtitle) .cm-facts {
        grid-template-columns: 1fr;
    }
}

:is(.content-modal, .vtitle) .cm-fact {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

:is(.content-modal, .vtitle) .cm-fact-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

:is(.content-modal, .vtitle) .cm-fact-icon {
    font-size: 20px;
    color: #e50914;
    margin-top: 2px;
    flex: 0 0 auto;
}

:is(.content-modal, .vtitle) .cm-fact-strong {
    font-weight: var(--fw-bold);
}

:is(.content-modal, .vtitle) .cm-fact-icon-inline {
    font-size: 15px;
    vertical-align: -3px;
    margin: 0 0.35rem 0 0;
}

:is(.content-modal, .vtitle) .cm-fact-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-dim, #9a9a9a);
}

:is(.content-modal, .vtitle) .cm-fact-value {
    font-size: 0.9rem;
    color: var(--ink, #e8e8e8);
}

:is(.content-modal, .vtitle) .cm-chip-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
}

:is(.content-modal, .vtitle) .cm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

:is(.content-modal, .vtitle) .cm-chip {
    padding: 0.3em 0.85em;
    border: 1px solid var(--border-line);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--ink, #e8e8e8);
    background: rgba(255, 255, 255, 0.05);
}

:is(.content-modal, .vtitle) .cm-chip-soft {
    background: transparent;
    color: var(--ink-dim, #9a9a9a);
}

:is(.content-modal, .vtitle) .cm-ov-aside-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

:is(.content-modal, .vtitle) .cm-ov-side {
    background: #181818;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    padding: 1rem 1.15rem;
}

/* the IMDb yellow badge stands in for the wordmark in the ratings card */
:is(.content-modal, .vtitle) .cm-imdb-logo {
    background: #f5c518;
    color: #111;
    font-weight: var(--fw-bold);
    font-size: 0.78rem;
    border-radius: 4px;
    padding: 0.12em 0.5em;
    line-height: 1.4;
}

:is(.content-modal, .vtitle) .cm-advisory-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border-faint);
    font-size: 0.88rem;
    color: var(--ink, #e8e8e8);
}

    :is(.content-modal, .vtitle) .cm-advisory-row:last-child {
        border-bottom: none;
    }

    :is(.content-modal, .vtitle) .cm-advisory-row::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e50914;
        flex: 0 0 auto;
    }

:is(.content-modal, .vtitle) .cm-ov-side-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-dim, #9a9a9a);
    margin: 0 0 0.75rem;
}

:is(.content-modal, .vtitle) .cm-rating-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-faint);
    font-size: 0.88rem;
    color: var(--ink, #e8e8e8);
}

    :is(.content-modal, .vtitle) .cm-rating-row:last-child {
        border-bottom: none;
    }

:is(.content-modal, .vtitle) .cm-rating-qap {
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: #e50914;
}

:is(.content-modal, .vtitle) .cm-rating-value {
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    color: #fff;
    text-decoration: none;
}

a.cm-rating-value:hover {
    color: #e50914;
}

/* ------------------------------------------------- Cast & Crew tab */
:is(.content-modal, .vtitle) .cm-cc-heading {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-dim, #9a9a9a);
    margin: 1.4rem 0 0.75rem;
}

:is(.content-modal, .vtitle) .cm-cc-creators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

:is(.content-modal, .vtitle) .cm-cc-creator {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.6rem 1rem;
    background: #181818;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    text-align: left;
    cursor: pointer;
}

    :is(.content-modal, .vtitle) .cm-cc-creator:hover {
        border-color: #e50914;
    }

:is(.content-modal, .vtitle) .cm-cc-creator-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-dim, #9a9a9a);
}

:is(.content-modal, .vtitle) .cm-cc-creator-name {
    font-size: 0.92rem;
    color: #fff;
}

/* the cast rail: owl carousel (initialized by generic.js when the tab opens);
   the flex block is the fallback until owl marks itself loaded */
:is(.content-modal, .vtitle) .cm-cc-rail:not(.owl-loaded) {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

:is(.content-modal, .vtitle) .cm-cc-rail.owl-loaded {
    position: relative;
    padding-bottom: 0.5rem;
}

:is(.content-modal, .vtitle) .cm-cc-rail .owl-nav {
    margin: 0;
}

    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.owl-prev,
    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.owl-next {
        position: absolute;
        top: 32px;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(24, 24, 24, 0.92);
        border: 1px solid var(--border-line);
        color: #fff;
        font-size: 1.35rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.owl-prev {
        left: -10px;
    }

    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.owl-next {
        right: -10px;
    }

    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.owl-prev:hover,
    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.owl-next:hover {
        background: #e50914;
        border-color: #e50914;
    }

    :is(.content-modal, .vtitle) .cm-cc-rail .owl-nav button.disabled {
        opacity: 0.25;
        pointer-events: none;
    }

:is(.content-modal, .vtitle) .cm-person {
    flex: 0 0 auto;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: start;
}

:is(.content-modal, .vtitle) .cm-person-avatar {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* deterministic per-person tint behind the initials */
    background: hsl(var(--cc-tint, 0), 32%, 26%);
    border: 2px solid transparent;
    transition: border-color 0.15s ease;
}

:is(.content-modal, .vtitle) .cm-person:hover .cm-person-avatar,
:is(.content-modal, .vtitle) .cm-cc-name:hover {
    border-color: #e50914;
    color: #e50914;
}

:is(.content-modal, .vtitle) .cm-person-initials {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

:is(.content-modal, .vtitle) .cm-person-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:is(.content-modal, .vtitle) .cm-person-name {
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: center;
    color: var(--ink, #e8e8e8);
}

:is(.content-modal, .vtitle) .cm-cc-keyrow {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-faint);
}

    :is(.content-modal, .vtitle) .cm-cc-keyrow .cm-fact-label {
        flex: 0 0 160px;
    }

:is(.content-modal, .vtitle) .cm-cc-name {
    color: var(--ink, #e8e8e8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.9rem;
}

/* ------------------------------------------------- person drawer */
:is(.content-modal, .vtitle) .cm-person-detail {
    background: #181818;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    padding: 1.15rem 1.25rem;
    margin: 0.25rem 0 1.25rem;
}

:is(.content-modal, .vtitle) .cm-pd-head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

:is(.content-modal, .vtitle) .cm-pd-avatar {
    flex: 0 0 auto;
}

:is(.content-modal, .vtitle) .cm-pd-who {
    flex: 1 1 auto;
    min-width: 0;
}

:is(.content-modal, .vtitle) .cm-pd-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 0.2rem;
}

:is(.content-modal, .vtitle) .cm-pd-professions {
    font-size: 0.8rem;
    color: var(--ink-dim, #9a9a9a);
    margin: 0 0 0.35rem;
}

:is(.content-modal, .vtitle) .cm-pd-headline {
    font-size: 0.85rem;
    color: var(--ink, #e8e8e8);
    margin: 0 0 0.35rem;
}

:is(.content-modal, .vtitle) .cm-pd-imdb {
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    color: #111;
    background: #f5c518;
    border-radius: 4px;
    padding: 0.1em 0.5em;
    text-decoration: none;
}

:is(.content-modal, .vtitle) .cm-pd-close {
    background: none;
    border: none;
    color: var(--ink-dim, #9a9a9a);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

    :is(.content-modal, .vtitle) .cm-pd-close:hover {
        color: #fff;
    }

:is(.content-modal, .vtitle) .cm-pd-bio {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--ink, #e8e8e8);
    margin: 0.85rem 0 0;
}

:is(.content-modal, .vtitle) .cm-pd-more {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-dim, #9a9a9a);
    margin: 1.1rem 0 0.6rem;
}

:is(.content-modal, .vtitle) .cm-pd-titles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767px) {
    :is(.content-modal, .vtitle) .cm-pd-titles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

:is(.content-modal, .vtitle) .cm-pd-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-decoration: none;
}

    :is(.content-modal, .vtitle) .cm-pd-title img,
    :is(.content-modal, .vtitle) .cm-pd-noimg {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 6px;
        background: #222;
        display: block;
    }

:is(.content-modal, .vtitle) .cm-pd-title-name {
    font-size: 0.8rem;
    color: var(--ink, #e8e8e8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    :is(.content-modal, .vtitle) .cm-pd-title:hover .cm-pd-title-name {
        color: #e50914;
    }

:is(.content-modal, .vtitle) .cm-pd-title-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--ink-dim, #9a9a9a);
}

:is(.content-modal, .vtitle) .cm-pd-platform {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
}

:is(.content-modal, .vtitle) .cm-pd-loading {
    color: var(--ink-dim, #9a9a9a);
    margin: 0;
}

/* drawer filmography thumbs: EVERY poster slot keeps the same 16:9 footprint,
   loaded or not, so missing artwork can never leave ragged gaps */
:is(.content-modal, .vtitle) .cm-person-detail .cm-pd-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
}

    :is(.content-modal, .vtitle) .cm-person-detail .cm-pd-thumb img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

/* doubled class beats the later .cm-sim-card .cm-sim-poster display rules */
:is(.content-modal, .vtitle) .cm-person-detail .cm-pd-thumb.cm-pd-broken {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #232323;
}

    :is(.content-modal, .vtitle) .cm-person-detail .cm-pd-thumb.cm-pd-broken img {
        display: none;
    }

    :is(.content-modal, .vtitle) .cm-person-detail .cm-pd-thumb.cm-pd-broken::before {
        font-family: 'Material Symbols Outlined';
        content: 'movie';
        font-size: 2rem;
        color: rgba(255, 255, 255, 0.35);
    }

:is(.content-modal, .vtitle) .cm-pd-grid {
    margin-top: 0.25rem;
}

/* /title page drawer: hover-preview content items in a grid - the overlay grows
   1.34x, so the container must never clip and hovered cards must rise */
.vtitle .cm-pd-grid-hover {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .vtitle .cm-pd-grid-hover {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vtitle .cm-pd-grid-hover .content-item {
    margin: 0;
}

:is(.content-modal, .vtitle) .cm-cc-studios {
    font-size: 0.9rem;
    color: var(--ink, #e8e8e8);
    margin: 0 0 0.5rem;
}

    :is(.content-modal, .vtitle) .cm-sim-card.cm-sim-hidden {
        display: none;
    }

    :is(.content-modal, .vtitle) .cm-sim-card .cm-sim-poster {
        display: block;
    }

        :is(.content-modal, .vtitle) .cm-sim-card .cm-sim-poster img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
        }

    :is(.content-modal, .vtitle) .cm-sim-card .details {
        padding: 0.8rem 0.9rem 0.9rem;
    }

    :is(.content-modal, .vtitle) .cm-sim-card .title h3 {
        margin: 0;
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 0.9rem;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    :is(.content-modal, .vtitle) .cm-sim-card .av-meta {
        margin: 0.45em 0 0;
        font-size: 0.66rem;
        color: var(--ink-muted);
    }

        :is(.content-modal, .vtitle) .cm-sim-card .av-meta .av-dot {
            font-weight: 800;
            font-size: 1.2em;
            line-height: 1;
        }

    :is(.content-modal, .vtitle) .cm-sim-card .actions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

        :is(.content-modal, .vtitle) .cm-sim-card .actions a {
            display: inline-flex;
            color: var(--ink-muted);
            font-size: 1.35rem;
            transition: var(--t-fast);
        }

            :is(.content-modal, .vtitle) .cm-sim-card .actions a:hover {
                color: var(--accent);
            }

        :is(.content-modal, .vtitle) .cm-sim-card .actions a.av-details-pill {
            background-color: #fff;
            color: #111;
            border-radius: 999px;
            padding: 0.28em 0.75em 0.28em 0.55em;
            font-size: 0.72rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.3em;
            line-height: 1;
        }

            :is(.content-modal, .vtitle) .cm-sim-card .actions a.av-details-pill:hover {
                background-color: rgba(255, 255, 255, 0.85);
                color: #111;
            }

            :is(.content-modal, .vtitle) .cm-sim-card .actions a.av-details-pill .material-symbols-outlined {
                font-size: 1.35em;
            }

        :is(.content-modal, .vtitle) .cm-sim-card .actions .av-share-ring {
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 0.9em;
            height: 0.9em;
            border: 2px solid currentColor;
            border-radius: 50%;
        }

            :is(.content-modal, .vtitle) .cm-sim-card .actions .av-share-ring .material-symbols-outlined {
                font-size: 0.6em;
                line-height: 1;
                font-variation-settings: 'opsz' 20, 'wght' 600;
            }

/* the expand arrow under the first 9 */
:is(.content-modal, .vtitle) .cm-sim-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.35rem 0;
    appearance: none;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border-faint);
    color: var(--ink-muted);
    cursor: pointer;
    transition: var(--t-fast);
}

    :is(.content-modal, .vtitle) .cm-sim-more:hover {
        color: #fff;
    }

    :is(.content-modal, .vtitle) .cm-sim-more .material-symbols-outlined {
        font-size: 2rem;
    }

@media (max-width: 767px) {
    :is(.content-modal, .vtitle) .cm-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :is(.content-modal, .vtitle) .cm-details {
        margin-top: -10%;
    }
}

/* ----------------------------------- platform box: languages (Payam 2026-09-23) */
/* Concept: logo | title + season line | headphone count | subtitle count | chevron |
   Watch Now, and the lists unfold underneath the whole row. The row is the template's
   flex line, so the panel simply wraps onto a line of its own (flex-basis:100%) instead
   of restructuring the box. */
:is(.content-modal, .vtitle) .cm-platform {
    flex-wrap: wrap;
    row-gap: 0;
    /* The row, not the viewport, is what the summary has to fit into: the modal gives it
       ~1060px and the details page caps it at 760 (.vtitle .cm-platform). So it asks the
       ROW how much room there is - see the container query below. */
    container-type: inline-size;
}

:is(.content-modal, .vtitle) .cm-plang-summary {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin-left: auto;
    min-width: 0;
}

/* The counts ARE the control - people aim at the number, not at a chevron - so they are
   buttons that look like text. */
:is(.content-modal, .vtitle) .cm-plang-stat {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-muted);
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--t-fast);
}

    :is(.content-modal, .vtitle) .cm-plang-stat:hover {
        color: #fff;
    }

        /* the count carries the emphasis, the label stays quiet */
        :is(.content-modal, .vtitle) .cm-plang-stat b {
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: var(--fw-bold);
            color: #fff;
            line-height: 1;
        }

        :is(.content-modal, .vtitle) .cm-plang-stat .material-symbols-outlined {
            font-size: 1.5rem;
            color: inherit;
        }

/* Closes the line, after the subtitle count, and says without words there is more. */
:is(.content-modal, .vtitle) .cm-plang-chevron {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    display: inline-flex;
    color: var(--accent);
    cursor: pointer;
    line-height: 1;
}

    :is(.content-modal, .vtitle) .cm-plang-chevron .material-symbols-outlined {
        font-size: 1.35rem;
        transition: transform 0.2s ease;
    }

    :is(.content-modal, .vtitle) .cm-plang-chevron[aria-expanded="true"] .material-symbols-outlined {
        transform: rotate(180deg);
    }

/* One column, two rows - Audio then Subtitles (Payam 2026-09-23). Side by side, a long
   list wrapped inside a narrow column and the two blocks ended up ragged. */
:is(.content-modal, .vtitle) .cm-plang-panel {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-faint);
}

    :is(.content-modal, .vtitle) .cm-plang-group h5 {
        margin: 0 0 0.4rem;
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 0.9rem;
        color: #fff;
    }

:is(.content-modal, .vtitle) .cm-plang-list {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

    /* Capsules, but quiet ones: --border-line is #dedede and reads as a hard outline at
       this size, so the border is --border-faint (20% white) - same 1px, far less of it. */
    :is(.content-modal, .vtitle) .cm-plang-item {
        padding: 0.3em 0.75em;
        border: 1px solid var(--border-faint);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.78rem;
        color: var(--ink);
        white-space: nowrap;
    }

    /* everything past the sixth ships in the DOM and waits for the counter */
    :is(.content-modal, .vtitle) .cm-plang-item.is-folded {
        display: none;
    }

    :is(.content-modal, .vtitle) .cm-plang-more {
        appearance: none;
        background: transparent;
        border: 0;
        padding: 0 0 0 0.5rem;
        color: var(--ink-dim);
        font-size: 0.78rem;
        cursor: pointer;
        transition: var(--t-fast);
    }

        :is(.content-modal, .vtitle) .cm-plang-more:hover {
            color: #fff;
        }

/* Below roughly 860px of ROW width the words do not fit beside the Watch button and it
   would wrap onto a line of its own. The icon and the number carry the meaning, so the
   words are what goes: the concept's full labels stay wherever there is room for them. */
@container (max-width: 860px) {
    :is(.content-modal, .vtitle) .cm-plang-stat-label {
        display: none;
    }

    :is(.content-modal, .vtitle) .cm-plang-summary {
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    /* the counts sit under the title rather than squeezing the row */
    :is(.content-modal, .vtitle) .cm-plang-summary {
        flex: 0 0 100%;
        margin: 0.6rem 0 0;
    }
}

/* ------------------------------------------- modal: platform box (mockup) */
/* logo | thin divider | title + muted "1 - N. Sezonlar (dot) M Bolum" line */
:is(.content-modal, .vtitle) .cm-platform {
    padding: 0.85rem 1.1rem;
    gap: 1.1rem;
}

:is(.content-modal, .vtitle) .cm-platform-info {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 1.1rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    :is(.content-modal, .vtitle) .cm-platform-info h4 {
        margin: 0;
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 1rem;
        color: #fff;
    }

:is(.content-modal, .vtitle) .cm-platform-meta {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-muted);
}

    :is(.content-modal, .vtitle) .cm-platform-meta .cm-pm-dot {
        font-weight: 800;
        margin: 0 0.3rem;
    }

:is(.content-modal, .vtitle) .cm-platform-logo {
    width: 90px;
    height: auto;
}

/* ------------------------------------- modal: action row after the synopsis */
/* the preview-box actions one size up: Details pill / add / share ring */
:is(.content-modal, .vtitle) .cm-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.5rem;
}

    :is(.content-modal, .vtitle) .cm-actions a {
        display: inline-flex;
        color: var(--ink-muted);
        font-size: 1.7rem;
        transition: var(--t-fast);
    }

        :is(.content-modal, .vtitle) .cm-actions a:hover {
            color: var(--accent);
        }

        :is(.content-modal, .vtitle) .cm-actions a.av-details-pill {
            background-color: #fff;
            color: #111;
            border-radius: 999px;
            padding: 0.32em 0.95em 0.32em 0.7em;
            margin-left: 0; /* the page pill reuses .cm-more (tab jump) - kill its offset */
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.3em;
            line-height: 1;
        }

            :is(.content-modal, .vtitle) .cm-actions a.av-details-pill:hover {
                background-color: rgba(255, 255, 255, 0.85);
                color: #111;
            }

            :is(.content-modal, .vtitle) .cm-actions a.av-details-pill .material-symbols-outlined {
                font-size: 1.35em;
            }

        :is(.content-modal, .vtitle) .cm-actions .av-share-ring {
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 0.9em;
            height: 0.9em;
            border: 2.5px solid currentColor;
            border-radius: 50%;
        }

            :is(.content-modal, .vtitle) .cm-actions .av-share-ring .material-symbols-outlined {
                font-size: 0.6em;
                line-height: 1;
                font-variation-settings: 'opsz' 20, 'wght' 600;
            }

/* --------------------------------------------------- home search input */
/* Same treatment as the auth form fields (account.css .input): accent
   border + soft glow. style.css's global input:focus-visible outline
   (2px accent, offset 2px) stacked on the input's own border and drew a
   double frame - suppressed here in favour of the glow. */
.search-bar input {
    transition: var(--t-fast);
}

    .search-bar input:hover {
        border-color: var(--accent);
    }

    .search-bar input:focus,
    .search-bar input:focus-visible {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(229, 8, 21, 0.25);
    }

/* --------------------------------------------------- /title page (vtitle) */
/* the retired .vtabs carried the page gutters - the shared tab region needs
   them; the cm-* pieces below size against the viewport here, not a modal */
.vtitle-tabs {
    width: 100%;
    /* NOTE: the sp scale is sp-1..sp-6 then sp-12 - a var(--sp-8) here
       poisoned the whole shorthand to 0 (invalid at computed-value time) */
    padding: 0.5rem var(--gutter) 2rem;
}

.vtitle .cm-logo {
    max-width: min(30%, 420px);
}

.vtitle .cm-platform {
    max-width: 760px;
}

@media (min-width: 1200px) {
    .vtitle .cm-similar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}



/* ------------------------------------------------- qaplist preview modal */
/* Payam's 2026-09-02 concept: the qaplist opens in a modal the size of the
   content modal (#qaplistPreviewModal shares the content-modal chrome). The
   details PAGE renders the same partial inside .qpm-page. Left: the list
   identity. Right: the Watch Queue table (20 per page), the Similar
   Qaplists rail, the reaction row + comment wall. Strings come from the partial. */
#qaplistPreviewModal .modal-dialog .modal-content {
    background: #111;
    border: none;
    padding: 0;
    margin: 0;
}

    #qaplistPreviewModal .modal-dialog .modal-content .modal-body {
        margin: 0;
        padding: 0;
    }

#prlQaplistPreviewModalBody {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

    #prlQaplistPreviewModalBody img {
        height: 50px;
    }

.qpm {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 620px;
    color: #fff;
}

/* ---- left: identity - one vertical rhythm (16px between blocks) ---- */
.qpm-side {
    padding: var(--sp-5) var(--sp-4) var(--sp-5) var(--sp-5);
    background: #151515;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qpm-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

    .qpm-crumb a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
    }

        .qpm-crumb a:hover {
            color: #fff;
        }

/* the identity column's art is the same book stack as the card (_QaplistArt), only
   without the card inset - Payam 2026-09-04: the concept everywhere a qaplist item shows */
.qpm-cover {
    display: block;
}

    .qpm-cover .qlc-art {
        padding: 0;
    }

.qpm-identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qpm-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #fff;
    border: 0;
    padding: 0;
}

.qpm-desc {
    margin: 2px 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.qpm-curator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qpm-curator-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

    .qpm-curator-link:hover {
        color: var(--accent);
    }

.qpm .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: rgba(var(--qv-tint, 229, 9, 20), 0.45);
    flex: 0 0 auto;
}

.qpm-handle {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qpm-follow {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 0.45em 0.95em;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--t-fast);
}

    .qpm-follow:hover {
        border-color: #fff;
    }

    .qpm-follow.is-on {
        background: rgba(255, 255, 255, 0.12);
        border-color: transparent;
    }

/* counts: icon, bold number, muted label - same weight on all three */
.qpm-stats {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.85);
}

    .qpm-stats > span {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .qpm-stats .material-symbols-outlined {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.45);
    }

    .qpm-stats b {
        color: #fff;
        font-weight: 600;
    }

/* actions: the red Save, then Share | Details as one bordered row */
.qpm-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 0;
}

.qpm-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: #e50914;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--t-fast);
}

    .qpm-save-btn:hover {
        background: #ff1f2c;
        color: #fff;
    }

    .qpm-save-btn.is-on {
        background: rgba(255, 255, 255, 0.1);
    }

        .qpm-save-btn.is-on .material-symbols-outlined {
            font-variation-settings: 'FILL' 1;
            color: var(--accent);
        }

.qpm-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .qpm-actions-row > :only-child {
        grid-column: 1 / -1;
    }

.qpm-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 46px;
    padding: 0 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--t-fast);
}

    .qpm-ghost .material-symbols-outlined {
        font-size: 1.1rem;
    }

    .qpm-ghost:hover {
        border-color: #fff;
        color: #fff;
    }

/* ---- right: the watch queue ---- */
.qpm-main {
    padding: var(--sp-5) var(--sp-5) var(--sp-5) var(--sp-4);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.qpm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding-right: 2.5rem; /* the modal close button */
}

    .qpm-head h3 {
        margin: 0;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1.35rem;
        color: #fff;
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
    }

        .qpm-head h3 small {
            font-family: var(--font-body, inherit);
            font-weight: 400;
            font-size: 0.78rem;
            color: rgba(255, 255, 255, 0.5);
        }

.qpm-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qpm-search,
.qpm-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

    .qpm-search .material-symbols-outlined,
    .qpm-sort .material-symbols-outlined {
        font-size: 1.1rem;
    }

.qpm-search-input {
    width: 170px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    outline: none;
}

    .qpm-search-input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

.qpm-sort-select {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
}

    .qpm-sort-select option {
        background: #1a1a1a;
        color: #fff;
    }

.qpm-table-wrap {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.qpm-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .qpm-table th {
        padding: 0.7rem 0.9rem;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        color: rgba(255, 255, 255, 0.5);
        background: rgba(255, 255, 255, 0.04);
        text-align: left;
    }

    .qpm-table td {
        padding: 0.7rem 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        vertical-align: middle;
        font-size: 0.82rem;
        color: rgba(255, 255, 255, 0.72);
    }

    .qpm-table .qpm-c-num {
        width: 48px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.5);
    }

    .qpm-table .qpm-c-plat {
        width: 234px;
    }

    .qpm-table .qpm-c-act {
        width: 44px;
        text-align: right;
    }

.qpm-row.is-hidden {
    display: none;
}

.qpm-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

    .qpm-item:hover .qpm-item-title {
        color: var(--accent);
    }

/* thumbnail rule (Payam 2026-09-02): the holder only reserves a RESPONSIVE width;
   the img itself carries the ratio (aspect-ratio + height auto + object-fit), so
   nothing is clipped by a fixed box and the row height never stretches the picture */
.qpm-thumb {
    flex: 0 0 clamp(52px, 5vw, 72px);
    min-width: 0;
    align-self: center;
}

    .qpm-thumb img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 11;
        object-fit: cover;
        border-radius: 6px;
        background: rgba(var(--qv-tint, 229, 9, 20), 0.12);
    }

.qpm-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.qpm-item-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--t-fast);
}

.qpm-item-meta {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qpm-plats {
    display: inline-flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    /* three logos per row, a fourth wraps under them instead of stretching the row (Payam 2026-09-03) */
    max-width: calc(3 * 62px + 2 * 0.6rem);
    justify-content: flex-start;
}

/* plain logos (Payam: no background, no circle), each a link to the platform */
.qpm-plat-link {
    display: inline-flex;
    align-items: center;
    transition: var(--t-fast);
}

    .qpm-plat-link:hover {
        transform: translateY(-1px);
        filter: brightness(1.2);
    }

.qpm-plat {
    width: 62px;
    height: 62px;
    object-fit: contain;
    display: block;
}

.qpm-bm {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--t-fast);
}

    .qpm-bm:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .qpm-bm .material-symbols-outlined {
        font-size: 1.25rem;
    }

.qpm-empty {
    padding: var(--sp-5);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* pager: 20 rows per page, client side */
.qpm-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.qpm-pager-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--t-fast);
}

    .qpm-pager-btn:hover {
        border-color: #fff;
    }

    .qpm-pager-btn:disabled {
        opacity: 0.3;
        cursor: default;
    }

/* ---- similar qaplists: the standard owl rail, three cards ---- */
.qpm-similar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: 0.7rem;
}

    .qpm-similar-head h4 {
        margin: 0;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 1rem;
        color: #fff;
    }

    .qpm-similar-head a {
        display: inline-flex;
        align-items: center;
        gap: 0.2rem;
        font-size: 0.8rem;
        color: var(--accent);
        text-decoration: none;
    }

        .qpm-similar-head a .material-symbols-outlined {
            font-size: 1rem;
        }

/* before owl runs (or without it) the rail is a plain three-up row */
.qpm-sim-rail:not(.owl-loaded) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* the rail chrome inside the panel: arrows inside, no page-gutter offsets */
.qpm-sim-rail.owl-carousel .owl-nav .owl-prev {
    left: 0;
    background-image: linear-gradient(90deg, rgba(17, 17, 17, 0.9) 40%, transparent);
}

.qpm-sim-rail.owl-carousel .owl-nav .owl-next {
    right: 0;
    background-image: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.9) 60%);
}

.qpm-sim-rail.owl-carousel .owl-nav span {
    font-size: 2.2rem;
}

.qpm-sim-rail.owl-carousel .owl-dots {
    position: static;
    text-align: right;
    margin-top: 4px;
}

/* the meta-line separator, everywhere: a red dot between the parts (Payam 2026-09-03) */
.qdot {
    color: var(--accent);
    font-weight: 700;
    padding: 0 0.4em;
}

/* the same readable size for the meta lines on the qaplist pages (chart rows, editor rows, suggestions) */
.qap-main .qc-info .m,
.qap-main .qtitle-meta,
.qap-main .ai-sg-body .m,
.qadd-content .m {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---- reaction row + comments ---- */
.qpm-react {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    flex-wrap: wrap;
}

.qpm-react-q {
    font-weight: 600;
    font-size: 0.86rem;
    color: #fff;
}

.qpm-like {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    transition: var(--t-fast);
}

    .qpm-like .material-symbols-outlined {
        font-size: 1.2rem;
        color: var(--accent);
        font-variation-settings: 'FILL' 0;
    }

    .qpm-like.is-on .material-symbols-outlined {
        font-variation-settings: 'FILL' 1;
    }

    .qpm-like.is-static {
        cursor: default;
    }

.qpm-comment-form {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

    .qpm-comment-form input {
        flex: 1 1 auto;
        min-width: 0;
        height: 38px;
        padding: 0 0.9rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
        font-size: 0.82rem;
        outline: none;
    }

        .qpm-comment-form input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }

    .qpm-comment-form button {
        height: 38px;
        padding: 0 1.1rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: transparent;
        color: #fff;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-fast);
    }

        .qpm-comment-form button:hover {
            background: #e50914;
            border-color: #e50914;
        }

.qpm-comment-signin {
    margin-left: auto;
    font-size: 0.82rem;
    color: #fff;
    text-decoration: none;
}

    .qpm-comment-signin span {
        color: rgba(255, 255, 255, 0.5);
    }

    .qpm-comment-signin:hover {
        color: var(--accent);
    }

.qpm-comments {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

    .qpm-comments:empty {
        display: none;
    }

.qpm-comment {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.qpm-comment-text {
    font-size: 0.86rem;
    color: #fff;
    line-height: 1.45;
}

.qpm-comment-who {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.15rem;
}

/* the details PAGE hosts the same panel */
.qpm-page-main {
    padding-top: var(--sp-5);
}

.qpm-page {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    margin: 0 0 var(--sp-6);
}

    .qpm-page .qpm-head {
        padding-right: 0;
    }

/* tint map for the panel - qaplist.css is not loaded on every page */
.qpm .tint-teal, .qpm.tint-teal { --qv-tint: 45, 212, 191; }
.qpm .tint-amber, .qpm.tint-amber { --qv-tint: 251, 191, 36; }
.qpm .tint-blue, .qpm.tint-blue { --qv-tint: 96, 165, 250; }
.qpm .tint-pink, .qpm.tint-pink { --qv-tint: 244, 114, 182; }
.qpm .tint-green, .qpm.tint-green { --qv-tint: 74, 222, 128; }
.qpm .tint-red, .qpm.tint-red { --qv-tint: 229, 9, 20; }

@media (max-width: 991px) {
    .qpm {
        grid-template-columns: 1fr;
    }

    .qpm-side {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: var(--sp-4);
    }

    .qpm-main {
        padding: var(--sp-4);
    }

    .qpm-table .qpm-c-plat {
        width: 185px;
    }

    .qpm-plat {
        width: 47px;
        height: 47px;
    }

    .qpm-plats {
        max-width: calc(3 * 47px + 2 * 0.6rem);
    }

    .qpm-sim-rail:not(.owl-loaded) {
        grid-template-columns: 1fr;
    }
}

/* phones: the tools stack, the queue keeps its title text (thumb + logos shrink) */
@media (max-width: 600px) {
    .qpm-tools {
        width: 100%;
    }

    .qpm-search {
        flex: 1 1 auto;
        min-width: 0;
    }

    .qpm-search-input {
        width: 100%;
    }

    .qpm-table .qpm-c-num {
        display: none;
    }

    .qpm-table .qpm-c-plat {
        width: 110px;
    }

    .qpm-table .qpm-c-act {
        width: 36px;
    }

    .qpm-table td {
        padding: 0.6rem 0.5rem;
    }

    .qpm-thumb {
        flex-basis: 48px;
    }

    .qpm-item-title,
    .qpm-item-meta {
        white-space: normal;
    }

    .qpm-plat {
        width: 42px;
        height: 42px;
    }

    .qpm-plats {
        max-width: calc(2 * 42px + 0.6rem);
    }

    .qpm-plats {
        gap: 0.35rem;
    }
}

/* ------------------------------------------------- home search: alive */
/* Payam, 2026-09-24: "make our searchbox more creative and take it out of
   this organizational system style" - an icon per facet, no divider before
   the chevron, softer borders on the box and the dropdown controls, and the
   red only where the hand is: hover, open, or a selection made. The template
   rules stay in style.css (.search-bar input, .btn-options, .facet-panel);
   everything here overrides them. The count pill the JS drops after the
   label span keeps working because the icon sits INSIDE that span. */
.tab-content {
    border-width: 1px;
}

.search-bar {
    display: block;
}

    .search-bar .search-ico {
        position: absolute;
        left: var(--sp-3);
        top: 50%;
        transform: translateY(-50%);
        color: var(--ink-muted);
        opacity: .55;
        font-size: 22px;
        font-variation-settings: 'opsz' 24, 'wght' 400;
        pointer-events: none;
        transition: var(--t-fast);
    }

    .search-bar:focus-within .search-ico {
        color: var(--accent);
        opacity: 1;
    }

    .search-bar input {
        padding-left: 2.75rem;
        background-color: rgba(255, 255, 255, 0.035);
        border-color: var(--border-faint);
    }

        .search-bar input:hover {
            border-color: rgba(229, 8, 21, 0.45);
            background-color: rgba(255, 255, 255, 0.05);
        }

        .search-bar input:focus,
        .search-bar input:focus-visible {
            background-color: rgba(255, 255, 255, 0.05);
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(229, 8, 21, 0.18), 0 10px 28px rgba(0, 0, 0, 0.35);
        }

    /* the clear button is only there once there is something to clear */
    .search-bar .search-clear {
        display: grid;
        place-items: center;
        width: 26px;
        height: 26px;
        padding: 0;
        border-radius: 999px;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ink-muted);
        opacity: 0;
        transition: var(--t-fast);
    }

    .search-bar:has(input:not(:placeholder-shown)) .search-clear {
        opacity: .7;
    }

        .search-bar .search-clear:hover {
            opacity: 1;
            color: var(--accent);
            background: rgba(229, 8, 21, 0.14);
        }

.btn-options {
    gap: var(--sp-2);
    background-color: rgba(255, 255, 255, 0.035);
    border-color: var(--border-faint);
}

    .btn-options > span:first-child {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-options .facet-ico {
        flex: 0 0 auto;
        font-size: 20px;
        font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0;
        color: var(--ink-muted);
        opacity: .6;
        transition: var(--t-fast);
    }

    .btn-options:hover {
        color: var(--ink);
        background-color: rgba(255, 255, 255, 0.055);
        border-color: rgba(229, 8, 21, 0.45);
        transform: translateY(-1px);
    }

    .btn-options[aria-expanded="true"] {
        color: var(--ink);
        background-color: rgba(229, 8, 21, 0.06);
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(229, 8, 21, 0.18);
    }

    .btn-options.active {
        background-color: rgba(229, 8, 21, 0.08);
    }

    .btn-options:hover .facet-ico,
    .btn-options[aria-expanded="true"] .facet-ico,
    .btn-options.active .facet-ico {
        color: var(--accent);
        opacity: 1;
        font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 1;
    }

    /* the chevron: no divider, quieter, red with the rest */
    .btn-options i {
        flex: 0 0 auto;
        padding-left: 0;
        margin-left: 0;
        border-left: 0;
        font-size: 1.15rem;
        color: var(--ink-muted);
        opacity: .6;
        transition: var(--t-fast);
    }

    .btn-options:hover i,
    .btn-options[aria-expanded="true"] i,
    .btn-options.active i {
        color: var(--accent);
        opacity: 1;
    }

/* the panel opens rather than appears, and the count pill pops in */
.facet-panel:not([hidden]) {
    animation: facet-in 0.18s ease-out;
}

@keyframes facet-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

.facet-count {
    animation: facet-pop 0.25s ease-out;
}

@keyframes facet-pop {
    from { transform: scale(0.6); opacity: 0; }
}

/* Seven facets share one row from 1100px up. The icon costs each button
   ~28px, and at 1280px (a 132px button) "Age Group" and "Originals" were
   losing their tails to the ellipsis - so the row gets its space back from
   the gap between facets, the button padding and the glyph sizes rather
   than from the label. Below 1100px responsive.css owns the gap (14 / 10). */
@media (min-width: 1100px) {
    .facets {
        gap: 16px;
    }
}

.btn-options {
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px;
}

    .btn-options > span:first-child {
        gap: 0.4rem;
    }

    .btn-options .facet-ico {
        font-size: 18px;
        font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0;
    }

    .btn-options:hover .facet-ico,
    .btn-options[aria-expanded="true"] .facet-ico,
    .btn-options.active .facet-ico {
        font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 1;
    }

    .btn-options i {
        font-size: 1.05rem;
    }

/* ...and at 1280px, a 139px button, "Age Group" still lost 7px. Measured:
   label 101px needed against 94 available. Gap 12, padding 8, label 14px
   and a 4px icon gap give it 105. */
@media (min-width: 1100px) {
    .facets {
        gap: 12px;
    }
}

.btn-options {
    padding-left: 8px;
    padding-right: 8px;
}

    .btn-options > span:first-child {
        gap: 4px;
        font-size: 14px;
    }

/* --------------------------------------------- the search field: neon */
/* Payam, 2026-09-24: "make the border of our main search box as a neony
   red". The field wears the brand red as a tube light: a thin red line,
   a soft outer glow, a breath of it inside; it brightens on hover, burns
   on focus, and breathes slowly at rest so the box reads as live rather
   than lit. The facet buttons stay quiet so the field is the one thing
   glowing. */
.search-bar input,
.search-bar input:hover,
.search-bar input:focus,
.search-bar input:focus-visible {
    border-color: rgba(229, 8, 21, 0.85);
}

.search-bar input {
    background-color: rgba(229, 8, 21, 0.04);
    box-shadow: 0 0 6px rgba(229, 8, 21, 0.45),
                0 0 18px rgba(229, 8, 21, 0.28),
                inset 0 0 10px rgba(229, 8, 21, 0.10);
    animation: neon-breathe 3.2s ease-in-out infinite;
}

    .search-bar input:hover {
        animation: none;
        box-shadow: 0 0 8px rgba(229, 8, 21, 0.6),
                    0 0 24px rgba(229, 8, 21, 0.4),
                    inset 0 0 12px rgba(229, 8, 21, 0.14);
    }

    .search-bar input:focus,
    .search-bar input:focus-visible {
        animation: none;
        border-color: var(--accent);
        background-color: rgba(229, 8, 21, 0.06);
        box-shadow: 0 0 10px rgba(229, 8, 21, 0.75),
                    0 0 32px rgba(229, 8, 21, 0.5),
                    0 0 64px rgba(229, 8, 21, 0.22),
                    inset 0 0 14px rgba(229, 8, 21, 0.18);
    }

    .search-bar input::placeholder {
        color: rgba(222, 222, 222, 0.75);
    }

.search-bar .search-ico {
    color: var(--accent);
    opacity: .85;
    filter: drop-shadow(0 0 6px rgba(229, 8, 21, 0.6));
}

@keyframes neon-breathe {
    0%, 100% {
        box-shadow: 0 0 6px rgba(229, 8, 21, 0.45),
                    0 0 18px rgba(229, 8, 21, 0.28),
                    inset 0 0 10px rgba(229, 8, 21, 0.10);
    }
    50% {
        box-shadow: 0 0 9px rgba(229, 8, 21, 0.62),
                    0 0 28px rgba(229, 8, 21, 0.42),
                    inset 0 0 12px rgba(229, 8, 21, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-bar input {
        animation: none;
    }
}

/* ---------------------------------------------- the search card: neon */
/* Payam, 2026-09-24: "also the main box, the container of our search
   modules, the big one". The card gets the same tube light, a notch calmer
   than the field and steady - the field breathes, the frame holds. */
.search-box .tab-content {
    border-color: rgba(229, 8, 21, 0.7);
    box-shadow: 0 0 8px rgba(229, 8, 21, 0.35),
                0 0 28px rgba(229, 8, 21, 0.22),
                0 0 64px rgba(229, 8, 21, 0.10),
                inset 0 0 22px rgba(229, 8, 21, 0.06),
                var(--shadow-panel);
}

/* ------------------------------------------------ the Location facet */
/* Payam, 2026-09-24: "add the new facet ... Production Location ... but we
   call it just Location". A hierarchical menu on the filming-location tree:
   one column, a level opens under its parent, the count sits at the right.
   Eight facets, ONE row from 1100px up (Payam: "squeeze the dropdowns in
   one row"): the gap goes to 8, the padding to 6, the label to 13px, the
   template's 120px minimums come off so eight can share 1100px, and between
   1100 and 1279px the icons step aside - the label is the part that must
   stay whole. Measured: every label whole at 1280 and 1440. */
@media (min-width: 1100px) {
    .facets {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .facet {
        flex: 1 1 0;
        min-width: 0;
    }

    .btn-options {
        min-width: 0;
        padding-left: 6px;
        padding-right: 6px;
    }

        .btn-options > span:first-child {
            font-size: 13px;
        }
}

/* 1280-1339: a 127px button, "Age Group" 3px short with its icon - padding 4
   and gap 6 buy it 6. Below 1280 the icons step aside instead. */
@media (min-width: 1280px) and (max-width: 1339px) {
    .facets {
        gap: 6px;
    }

    .btn-options {
        padding-left: 4px;
        padding-right: 4px;
    }
}

@media (min-width: 1100px) and (max-width: 1279px) {
    .btn-options .facet-ico {
        display: none;
    }
}

.facet-options-tree {
    grid-template-columns: 1fr;
}

.facet-tree-node .facet-tree-node {
    margin-left: 14px;
    padding-left: 6px;
    border-left: 1px solid var(--border-faint);
}

.facet-tree-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

    .facet-tree-opt > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .facet-tree-opt .facet-tree-count {
        flex: 0 0 auto;
        font-style: normal;
        font-size: 0.72rem;
        color: var(--ink-muted);
        opacity: .55;
    }

    .facet-tree-opt.active .facet-tree-count,
    .facet-tree-opt:hover .facet-tree-count {
        color: var(--accent);
        opacity: 1;
    }

/* -------------------------------------------------- the Year slider */
/* Payam, 2026-09-24: "instead of dropdown with values I want it to be a
   slider with two controls for From / To". Two native range inputs on one
   track: the inputs are invisible and let clicks through, only their thumbs
   take the pointer; the line and the red fill between the thumbs are drawn
   underneath from the values (vod-contents.js paints left / right). */
.facet-options-range {
    display: block;
    padding: 10px 10px 6px;
}

.year-range-values {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

    .year-range-values span {
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
    }

    .year-range-values small {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ink-muted);
        opacity: .6;
    }

    .year-range-values b {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--ink);
    }

    .year-range-to {
        flex-direction: row-reverse;
    }

.year-range-track {
    position: relative;
    height: 28px;
}

    /* the line, and the chosen span on it */
    .year-range-track::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 2px;
        transform: translateY(-50%);
        border-radius: 999px;
        background: rgba(221, 221, 221, 0.16);
    }

    .year-range-fill {
        position: absolute;
        top: 50%;
        height: 2px;
        transform: translateY(-50%);
        border-radius: 999px;
        background: var(--accent);
        box-shadow: 0 0 6px rgba(229, 8, 21, 0.35);
    }

    .year-range-track input[type="range"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 28px;
        margin: 0;
        padding: 0;
        background: none;
        -webkit-appearance: none;
        appearance: none;
        pointer-events: none;
        outline: none;
    }

        .year-range-track input[type="range"]::-webkit-slider-runnable-track {
            background: transparent;
            height: 28px;
        }

        .year-range-track input[type="range"]::-moz-range-track {
            background: transparent;
            height: 28px;
        }

        .year-range-track input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            pointer-events: auto;
            width: 13px;
            height: 13px;
            margin-top: 7.5px;
            border-radius: 50%;
            background: #141414;
            border: 1.5px solid var(--accent);
            box-shadow: 0 0 0 2px rgba(229, 8, 21, 0.10), 0 1px 4px rgba(0, 0, 0, 0.5);
            cursor: grab;
            transition: box-shadow var(--t-fast), transform var(--t-fast);
        }

        .year-range-track input[type="range"]::-moz-range-thumb {
            pointer-events: auto;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #141414;
            border: 1.5px solid var(--accent);
            box-shadow: 0 0 0 2px rgba(229, 8, 21, 0.10), 0 1px 4px rgba(0, 0, 0, 0.5);
            cursor: grab;
        }

        .year-range-track input[type="range"]:hover::-webkit-slider-thumb {
            box-shadow: 0 0 0 4px rgba(229, 8, 21, 0.16), 0 1px 4px rgba(0, 0, 0, 0.5);
        }

        .year-range-track input[type="range"]:active::-webkit-slider-thumb,
        .year-range-track input[type="range"]:focus-visible::-webkit-slider-thumb {
            box-shadow: 0 0 0 4px rgba(229, 8, 21, 0.22), 0 0 10px rgba(229, 8, 21, 0.45);
            cursor: grabbing;
        }

.year-range-bounds {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--ink-muted);
    opacity: .5;
}

/* a facet whose values are few and short reads better as one column (Age Group) */
.facet-options-single {
    grid-template-columns: 1fr;
}

/* -------------------------------------- platform strip: paged, not scrolled */
/* Payam, 2026-09-24: "in small monitors our platforms look very bad ... make
   it carousel style navigation to right or left if the screen is smaller".
   The strip keeps its native horizontal scroll (touch, trackpad, wheel all
   work) but the scrollbar is gone, the logos snap, and two arrows page it -
   generic.js shows them only while the logos overflow. A soft fade on each
   edge says there is more. */
.platform-hotlink {
    position: relative;
}

    .platform-hotlink ul {
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
        scroll-padding: 0 var(--sp-2);
    }

        .platform-hotlink ul::-webkit-scrollbar {
            display: none;
        }

    .platform-hotlink li {
        scroll-snap-align: start;
    }

    .platform-hotlink.is-scrollable ul {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
    }

/* The arrows are the content rails' arrows (style.css .content-carousel
   .owl-nav): a bare 3rem chevron, muted, white on hover, gone at its end,
   spanning the row. They sit in the strip's side padding, outside the first
   and last logo (Payam: "remove the circle ... to not have overlap"). */
.platform-nav {
    position: absolute;
    top: var(--sp-6);                /* the strip's top padding */
    z-index: 2;
    display: grid;
    place-items: center;
    height: 60px;                    /* a 100px logo is 60px tall */
    padding: 0 var(--sp-2);
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink-muted);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--t-fast);
}

    .platform-nav[hidden],
    .platform-nav:disabled {
        display: none;
    }

    .platform-nav-prev {
        left: calc(-1 * var(--sp-4));
    }

    .platform-nav-next {
        right: calc(-1 * var(--sp-4));
    }

    .platform-nav:hover {
        color: #fff;
    }

@media (max-width: 767px) {
    .platform-nav {
        height: 50px;                /* 84px logos are 50px tall */
    }

    .platform-nav-prev {
        left: calc(-1 * var(--sp-2));
    }

    .platform-nav-next {
        right: calc(-1 * var(--sp-2));
    }
}

/* The line under the platforms is a neon line too (Payam, 2026-09-24: "make
   this divider line same red neon style"): a hairline of the brand red that
   glows a little upward into the strip and a little downward under it. Not
   a box-shadow - a shadow wraps the whole box and left a dirty red haze up
   the sides and over the top of the logos ("what are these visible dirty
   glow on the sides and top?"). Two gradients instead, each only where the
   light should be, both fading out at the ends of the line. */
/* The line is drawn, not bordered, so it can fade in from nothing at each
   end and out again (Payam: "make the starting and ending of the divider
   line fade style"); the two washes are ellipses anchored on its middle,
   so they die away toward the ends with it. */
.platform-hotlink ul {
    border-bottom: 0;
    padding-bottom: calc(var(--sp-4) + 1px);
    box-shadow: none;
    background:
        linear-gradient(to right, transparent, rgba(229, 8, 21, 0.9) 22%, rgba(229, 8, 21, 0.9) 78%, transparent) no-repeat bottom / 100% 1px,
        radial-gradient(ellipse 62% 12px at 50% 100%, rgba(229, 8, 21, 0.26), transparent 70%) no-repeat bottom / 100% 12px;
}

.platform-hotlink::after {
    content: "";
    position: absolute;
    left: var(--sp-6);
    right: var(--sp-6);
    top: 100%;
    height: 12px;
    pointer-events: none;
    background: radial-gradient(ellipse 62% 12px at 50% 0, rgba(229, 8, 21, 0.38), transparent 70%);
}


/* ------------------------------------------- home search: suggestions */
/* Algolia Query Suggestions under the field (2026-09-28): the popular
   queries of the last month and every genre and interest name, a quiet
   list on the dark glass, the matched letters in the brand red, no count
   (Payam). Absolute under the field, above the facet row, never wider than
   the field. Hidden until there is something to show. */
.search-bar .search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    padding: var(--sp-2);
    background: rgba(17, 17, 17, 0.96);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-panel);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 8, 21, 0.12);
    backdrop-filter: blur(10px);
}

    .search-bar .search-suggest[hidden] {
        display: none;
    }

    .search-bar .search-suggest-item {
        display: flex;
        align-items: center;
        gap: var(--sp-3);
        width: 100%;
        padding: var(--sp-2) var(--sp-3);
        border: 0;
        border-radius: var(--radius-card);
        background: transparent;
        color: var(--ink);
        font: inherit;
        font-size: 0.95rem;
        text-align: left;
        cursor: pointer;
        transition: var(--t-fast);
    }

        .search-bar .search-suggest-item .material-symbols-outlined {
            font-size: 20px;
            color: var(--ink-muted);
            opacity: .6;
        }

        .search-bar .search-suggest-item:hover,
        .search-bar .search-suggest-item.is-active {
            background: rgba(255, 255, 255, 0.06);
        }

            .search-bar .search-suggest-item:hover .material-symbols-outlined,
            .search-bar .search-suggest-item.is-active .material-symbols-outlined {
                color: var(--accent);
                opacity: 1;
            }

        .search-bar .search-suggest-text {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

            .search-bar .search-suggest-text em {
                font-style: normal;
                font-weight: 600;
                color: var(--accent);
            }


/* -------------------------------------------- search results: load more */
/* The foot under the result grid (2026-09-28): a quiet pill that fetches the
   next page, no count (Payam). Same voice as the facet buttons: faint border
   at rest, red where the hand is. Hidden on the last page. */
.hits-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    width: 100%;
    padding: var(--sp-4) 0 var(--sp-6);
}

    .hits-more[hidden] {
        display: none;
    }

    .hits-more-btn {
        padding: var(--sp-2) var(--sp-6);
        border: 1px solid var(--border-faint);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.035);
        color: var(--ink);
        font: inherit;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--t-fast);
    }

        .hits-more-btn:hover,
        .hits-more-btn:focus-visible {
            border-color: var(--accent);
            background: rgba(229, 8, 21, 0.14);
            color: #fff;
            box-shadow: 0 0 0 3px rgba(229, 8, 21, 0.18);
            outline: none;
        }

        .hits-more-btn[hidden] {
            display: none;
        }

/* ------------------------------------------ platform strip: uploaded logos */
/* Payam, 2026-09-30: the strip is arranged in the Portal (UI Management > Platform
   Strip) and drawn from each platform's UI Logo - one 5:6 image, the white mark on
   the top half, the mark on its brand colour on the bottom half, the two states the
   old sprite held. Two copies of the image fill the 5:3 box (style.css keeps the
   100 x 60 sizing), object-fit cover shows one half each; the brand half fades in
   on hover and stays on the selected platform. The sprite rules in style.css are
   left alone and overridden here. */
.platform-hotlink .platform-item.platform-item--logo,
.platform-hotlink .platform-item.platform-item--name {
    position: relative;
    background-image: none;
    overflow: hidden;
}

    .platform-hotlink .platform-item--logo .platform-logo {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 0 0;
        transition: opacity .28s ease;
    }

    .platform-hotlink .platform-item--logo .platform-logo--brand {
        object-position: 0 100%;
        opacity: 0;
    }

    .platform-hotlink .platform-item--logo:hover .platform-logo--brand,
    .platform-hotlink .platform-item--logo.active .platform-logo--brand {
        opacity: 1;
    }

    .platform-hotlink .platform-item--logo:hover .platform-logo--white,
    .platform-hotlink .platform-item--logo.active .platform-logo--white {
        opacity: 0;
    }

    /* no logo uploaded yet: the name, quiet, red frame when hovered or selected */
    .platform-hotlink .platform-item.platform-item--name {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        padding-top: 0;
        color: var(--ink);
        font-size: .85rem;
        font-weight: 600;
        letter-spacing: .02em;
        text-decoration: none;
        border: 1px solid var(--border-faint);
    }

        .platform-hotlink .platform-item.platform-item--name:hover,
        .platform-hotlink .platform-item.platform-item--name.active {
            border-color: var(--accent);
            background-color: rgba(229, 8, 21, 0.14);
        }

/* ------------------------------------------ platform tiles: uploaded logos */
/* Payam, 2026-09-30: the platform boxes of the content modal, the title page and
   the qaplist panel show the platform's UI Logo too - only its white top half (the
   5:6 two-half image, cover-fitted at the top of a 5:3 box). Same boxes as before:
   90 x 54 in the modal and on the title page, 62 wide in the qaplist table. The old
   static platform-{id}.png stays the fallback for a platform without a logo. */
:is(.content-modal, .vtitle) .cm-platform-logo--ui {
    display: block;
    width: 90px;
    height: 54px;
    overflow: hidden;
    border-radius: var(--radius-card);
}

    :is(.content-modal, .vtitle) .cm-platform-logo--ui img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 0 0;
    }

.qpm-plats .qpm-plat--ui {
    display: block;
    width: 62px;
    height: 37px;
    overflow: hidden;
    border-radius: var(--radius-card);
}

    .qpm-plats .qpm-plat--ui img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 0 0;
    }


/* ================================================================== live tv (2026-10-08) */
/* Payam, 2026-10-08: "everything has to be pixel perfect following our current UI/UX
   guideline". The Live TV tab and its pages are drawn with the home page's own parts:
   the neon search card, its facet buttons and category pills, the content rails and the
   catalogue card with its hover preview. What is new is only what TV needs - the two
   tabs on the card's top edge, the three-way mode control, the channel tile, the
   channel-and-time tag on a programme, the timeline, the side panel. Every token comes
   from variables.css; every new rule is scoped under a tv- class or the tabs. */

/* --------------------------------------------------- the two tabs on the card's edge */
/* Payam, 2026-10-08: folder tabs standing on the card, the frame starting under them, the
   tabs in the card's own glass, the inactive tab with the red line at its bottom, the active
   one open. Drawn as ONE shape: the tab partial's script measures the tabs and writes the
   folder outline once - the wrapper's ::before fills it with the glass (colour + blur), the
   .search-frame svg strokes it in neon with the glow following the same path. Tabs and card
   draw no outer edge themselves; the only other lines are the separator between the tabs
   and the inactive tab's bottom line. */
.search-box--tabs {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

    .search-box--tabs::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background-color: var(--surface-glass);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        clip-path: var(--glass-path, none);
        pointer-events: none;
    }

    .search-box--tabs .search-frame {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        overflow: visible;
        pointer-events: none;
    }

        .search-box--tabs .search-frame path {
            fill: none;
            stroke: rgba(229, 8, 21, 0.7);
            stroke-width: 1;
            shape-rendering: geometricPrecision;
            filter: drop-shadow(0 0 4px rgba(229, 8, 21, 0.35))
                    drop-shadow(0 0 14px rgba(229, 8, 21, 0.22))
                    drop-shadow(0 0 32px rgba(229, 8, 21, 0.10));
        }

    .search-box--tabs > .tab-content {
        position: relative;
        z-index: 2;
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        border-radius: 0 var(--radius-panel) var(--radius-panel) var(--radius-panel);
        box-shadow: none;
    }

    .search-box--tabs .search-tabs {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: stretch;
        margin: 0;
        padding: 0;
    }

    .search-box--tabs .search-tab {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 12px 27px 12px 22px; /* whole pixels, with the 1px bottom line = a 45px row */
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 15px;
        line-height: 20px;
        letter-spacing: 0.01em;
        color: var(--ink-muted);
        text-decoration: none;
        background-color: transparent;
        border: 0;
        border-bottom: 1px solid rgba(229, 8, 21, 0.75); /* the inactive tab's line */
        border-radius: var(--radius-panel) var(--radius-panel) 0 0;
        transition: color var(--t-fast), background-color var(--t-fast);
    }

        .search-box--tabs .search-tab + .search-tab {
            border-left: 1px solid rgba(229, 8, 21, 0.7); /* the separator between the tabs */
            padding-left: 21px;
        }

        .search-box--tabs .search-tab .material-symbols-outlined {
            font-size: 20px;
            line-height: 20px;
            opacity: 0.6;
            font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0;
            transition: var(--t-fast);
        }

        .search-box--tabs .search-tab:hover {
            color: var(--ink);
            background-color: rgba(255, 255, 255, 0.04);
        }

            .search-box--tabs .search-tab:hover .material-symbols-outlined {
                color: var(--accent);
                opacity: 1;
            }

        .search-box--tabs .search-tab.active {
            color: #fff;
            background-color: transparent;
            border-bottom-color: transparent; /* open to the content */
        }

            .search-box--tabs .search-tab.active .material-symbols-outlined {
                color: var(--accent);
                opacity: 1;
                font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 1;
            }

/* --------------------------------------------------------------- the live tv card */
/* Payam, 2026-10-08 (second pass): the three facets and the three-way mode control in ONE
   row, centred; the mode control wears the facet buttons' own style (the dark field, the
   faint border, the 5px corners), joined as one segmented piece, the active segment red the
   way a facet in use is. Under them the live platforms as the home strip, then the pills. */
.tv-card .tv-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tv-card .tv-facets {
    position: relative;
    z-index: 5; /* the open facet panel paints over the strip and the pills below it */
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
}

    .tv-card .tv-facets .facet {
        /* Payam, 2026-10-30, Safari: the row was "messy" - the Channel facet under the mode
           control. Safari sizes a nested flex row from its buttons' TEXT when the facets'
           width comes from flex-basis (383px for three facets that render at 190 each), so
           the third facet spilled out of the row and the modes sat on it. A definite width
           is honoured by every engine. */
        flex: 0 0 auto;
        width: 190px;
        min-width: 0;
    }

    .tv-card .tv-facets .facet-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: hidden;
    }

    .tv-card .tv-facets .facet-options-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .tv-card .tv-facets .facet-opt {
        min-width: 0;
    }

        .tv-card .tv-facets .facet-opt span {
            min-width: 0;
        }

    .tv-card .tv-facets #facet-panel-tv-channel {
        width: 380px;
    }

.tv-card .search-bar {
    z-index: 6; /* and the suggestion list over the facet row */
}

/* Chrome paints the pills row through a backdrop-filtered panel here (the card is itself a
   backdrop root); the panel is 97% opaque, so the blur is not missed */
.tv-card .facet-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tv-card .tv-modes {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
}

    .tv-card .tv-mode {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: var(--sp-2);
        margin-left: -1px;
        padding: var(--sp-3) 14px;
        background-color: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--border-faint);
        color: var(--ink);
        font-family: var(--font-body);
        font-size: var(--fs-base);
        text-decoration: none;
        white-space: nowrap;
        transition: var(--t-fast);
    }

        .tv-card .tv-mode:first-child {
            margin-left: 0;
            border-radius: var(--radius-card) 0 0 var(--radius-card);
        }

        .tv-card .tv-mode:last-child {
            border-radius: 0 var(--radius-card) var(--radius-card) 0;
        }

        .tv-card .tv-mode .material-symbols-outlined {
            font-size: 20px;
            color: var(--ink-muted);
            opacity: 0.6;
            font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0;
            transition: var(--t-fast);
        }

        .tv-card .tv-mode:hover {
            z-index: 1;
            color: var(--ink);
            background-color: rgba(255, 255, 255, 0.055);
            border-color: rgba(229, 8, 21, 0.45);
        }

            .tv-card .tv-mode:hover .material-symbols-outlined {
                color: var(--accent);
                opacity: 1;
            }

        .tv-card .tv-mode.active {
            z-index: 1;
            color: var(--accent);
            background-color: rgba(229, 8, 21, 0.08);
            border-color: var(--accent);
        }

            .tv-card .tv-mode.active .material-symbols-outlined {
                color: var(--accent);
                opacity: 1;
                font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 1;
            }

@media (min-width: 1100px) {
    .tv-card .tv-mode > span:last-child {
        font-size: 13px; /* the facet labels drop to 13px here (the home rule) */
    }
}

/* the live platforms: the home strip's own markup, look and red fading line under it */
.tv-card .tv-platforms ul {
    text-align: center;
}

/* twelve categories do not fit one row: the pills scroll under a hidden scrollbar and the
   right edge fades while there is more (the script marks is-scrollable) */
.tv-card .tv-categories {
    scrollbar-width: none;
}

    .tv-card .tv-categories::-webkit-scrollbar {
        display: none;
    }

    .tv-card .tv-categories.is-scrollable {
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
    }

    .tv-card .tv-categories li {
        min-width: auto;
    }

        .tv-card .tv-categories li a {
            padding: var(--sp-1) var(--sp-4);
        }

/* the suggestion list: a channel row carries its logo, a programme row its channel and time */
.search-bar .tv-suggest .tv-suggest-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
}

    .search-bar .tv-suggest .tv-suggest-logo img {
        max-width: 30px;
        max-height: 16px;
        object-fit: contain;
    }

.search-bar .tv-suggest .search-suggest-meta {
    flex: 0 0 auto;
    font-size: 0.72rem;
    color: var(--ink-muted);
    white-space: nowrap;
}

.search-bar .tv-suggest .search-suggest-group {
    padding: 0.35rem 0.75rem 0.2rem;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    opacity: 0.7;
}

/* ------------------------------------------------------------------ the rails */
.tv-section {
    position: relative;
}

.tv-rail[hidden] {
    display: none;
}

.tv-empty {
    margin: var(--sp-4) 0;
    padding: var(--sp-12) var(--sp-6);
    text-align: center;
    color: var(--ink-muted);
    border: 1px dashed var(--border-faint);
    border-radius: var(--radius-panel);
}

    .tv-empty--inline {
        margin: 0;
        padding: var(--sp-4);
    }

    .tv-empty[hidden] {
        display: none;
    }

/* --------------------------------------------------------- the shared small parts */
/* the channel chip: the logo on a dark tab, the name when there is no logo */
.tv-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 7px;
    background: rgba(17, 17, 17, 0.85);
    border: 1px solid var(--border-faint);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

    .tv-chip img {
        display: block;
        height: 16px;
        width: auto;
        max-width: 72px;
        object-fit: contain;
        /* Payam, 2026-10-10 evening: the channel logos in their BRAND COLOURS everywhere
           ("remove the whitening override for the channel logos") - the white filter of the
           afternoon is gone from the marks, the chips, the suggestions and the boxes */
    }

    .tv-chip > span {
        max-width: 100%;
        overflow: hidden;
        font-family: var(--font-body);
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1;
        color: #fff;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .tv-chip.is-type {
        max-width: 100%;
        min-width: 0;
    }

    .tv-chip--inline {
        position: static;
    }

/* the small status word (Payam, 2026-10-10, the Prime tag): a red rectangle for LIVE, a dark
   one for NEW and SPECIAL, a quiet one for RERUN; on a tile it sits top-right */
.tv-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(17, 17, 17, 0.78);
    white-space: nowrap;
}

    .tv-badge--live {
        background: var(--accent);
    }

    .tv-badge--new {
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .tv-badge--rerun {
        color: var(--ink-muted);
    }

.tv-se {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--ink-muted);
    white-space: nowrap;
}

.tv-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(229, 8, 21, 0.8);
    vertical-align: middle;
    animation: tv-pulse 1.4s ease-in-out infinite;
}

@keyframes tv-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* the progress bar: a red line that fills through the programme (--p from the script) */
.tv-progress {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

    .tv-progress i {
        display: block;
        width: var(--p, 0%);
        height: 100%;
        border-radius: 2px;
        background: var(--accent);
        box-shadow: 0 0 6px rgba(229, 8, 21, 0.7);
        transition: width 0.6s linear;
    }

/* the typographic tile: a programme without a picture, or a channel with nothing on */
.tv-poster {
    position: relative;
    display: block;
}

    .tv-poster--text {
        aspect-ratio: 16 / 9;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10% 10% 22%;
        text-align: center;
        border: 1px solid var(--border-faint);
        border-radius: var(--radius-card);
        background: linear-gradient(135deg, #202020, #121212);
    }

        .tv-poster--text::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: radial-gradient(ellipse at 28% 18%, rgba(229, 8, 21, 0.2), transparent 55%);
            pointer-events: none;
        }

    .tv-poster-text {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .tv-poster-title {
        font-family: var(--font-display);
        font-weight: 800;
        font-size: clamp(0.8rem, 1.05vw, 1rem);
        line-height: 1.2;
        color: #fff;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tv-poster-sub {
        font-size: 0.6rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-muted);
    }

    .tv-poster-title--quiet {
        font-weight: 500;
        color: var(--ink-muted);
    }

    .tv-poster--preview {
        border-radius: var(--radius-card) var(--radius-card) 0 0;
        border: 0;
    }

/* ------------------------------------------------------------------- the tiles */
/* Payam, 2026-10-10 (the Prime "live and upcoming" arrangement): the picture does the work;
   LIVE / NEW / RERUN as a rectangle top-right, the channel's white mark bottom-right, the day
   and time small at bottom-left, the progress as a thin line on the bottom edge. The same on
   the channel tile and on the programme tile (and on the latter's hover preview, scaled down
   for the 1.34 zoom). A soft fade at the foot keeps the small marks readable on any picture. */
.tv-tile .tv-poster,
.tv-tile > .poster {
    position: relative;
    display: block;
}

    .tv-tile .tv-poster::after,
    .tv-tile > .poster::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: 44%;
        border-radius: 0 0 var(--radius-card) var(--radius-card);
        background: linear-gradient(to top, rgba(17, 17, 17, 0.72), transparent);
        pointer-events: none;
    }

    .tv-tile .tv-poster--text::after {
        display: none; /* the typographic tile is dark already */
    }

.tv-tile .tv-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.tv-tile .tv-mark {
    position: absolute;
    right: 9px;
    bottom: 7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 20px;
    pointer-events: none;
}

    /* Payam, 2026-10-10 ("some logos are very small"): the mark is the TRIMMED artwork (imgix
       trim=auto, see TvGuideService.MarkUrl - the provider pngs pad their artwork inside a 100x67
       canvas) fitted into a 110x18 box: a wordmark runs the width, a square mark the height, so
       every channel reads at the same weight whatever padding its png carries. A logo whose
       artwork stands under 16px is not drawn at all: livetv.js sets the channel name in type
       (.is-type) because an 8px wordmark blurs at any size ("we need to do better on the sizing") */
    .tv-tile .tv-mark img {
        display: block;
        width: auto;
        height: auto;
        max-width: 110px;
        max-height: 18px;
        aspect-ratio: auto; /* the mark sits inside the poster anchor: undo the 16:9 poster img rule */
        object-fit: contain;
        border-radius: 0;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); /* brand colours, no whitening (Payam, evening) */
    }

    .tv-tile .tv-mark > span {
        max-width: 110px;
        overflow: hidden;
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 0.66rem;
        letter-spacing: 0.02em;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
        white-space: nowrap;
        text-overflow: ellipsis;
    }

/* a mark or chip that carries a logo stays invisible until livetv.js has decided logo or type,
   so the tiny wordmark never flashes; browsers without :has simply show the logo */
.tv-mark:has(> img):not(.is-ready),
.tv-chip:has(> img):not(.is-ready) {
    opacity: 0;
}

.tv-tile .tv-time,
.tv-tile .tv-when {
    position: absolute;
    left: 9px;
    bottom: 7px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

    .tv-tile .tv-time .tv-sep {
        margin: 0 2px;
    }

    .tv-tile .tv-time--quiet {
        color: var(--ink-muted);
        font-weight: 500;
    }

    .tv-tile .tv-when {
        cursor: pointer;
        transition: color var(--t-fast);
    }

        .tv-tile .tv-when:not(.tv-when--static):hover {
            color: var(--accent);
        }

.tv-tile .tv-progress--edge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 3px;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    background: rgba(255, 255, 255, 0.22);
}

    .tv-tile .tv-progress--edge i {
        border-radius: 0 0 0 var(--radius-card);
    }

/* the channel tile lifts a touch on hover, the way the catalogue card grows */
.tv-channel-item .tv-poster {
    border-radius: var(--radius-card);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.tv-channel-item:hover .tv-poster {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 8, 21, 0.55), 0 0 18px rgba(229, 8, 21, 0.2);
}

/* the star: "My channels" lives in this browser until accounts carry it (phase 6) */
.tv-star {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-faint);
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.8);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    opacity: 0;
    transition: var(--t-fast);
}

    .tv-star .material-symbols-outlined {
        font-size: 18px;
        font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0;
    }

    .content-item:hover .tv-star,
    .tv-star.is-on,
    .tv-star:focus-visible {
        opacity: 1;
    }

    .tv-star:hover,
    .tv-star.is-on {
        color: var(--accent);
        border-color: rgba(229, 8, 21, 0.6);
    }

        .tv-star.is-on .material-symbols-outlined {
            font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 1;
        }

/* the programme tile's hover preview carries the same marks, sized for the 1.34 zoom */
.tv-tile .active-view .poster {
    position: relative;
}

    .tv-tile .active-view .poster::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: 44%;
        background: linear-gradient(to top, rgba(24, 24, 24, 0.72), transparent);
        pointer-events: none;
    }

    .tv-tile .active-view .tv-badge {
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        font-size: 0.47rem;
    }

    .tv-tile .active-view .tv-mark {
        right: 7px;
        bottom: 5px;
        height: 14px;
    }

        .tv-tile .active-view .tv-mark img {
            width: auto;
            height: auto;
            max-width: 64px;
            max-height: 13px;
            aspect-ratio: auto;
            object-fit: contain;
            border-radius: 0;
        }

        .tv-tile .active-view .tv-mark > span {
            max-width: 110px; /* the preview poster is 1.34x wider: room for the full name */
            font-size: 0.52rem;
        }

    .tv-tile .active-view .tv-when {
        left: 7px;
        bottom: 5px;
        height: 14px;
        font-size: 0.52rem;
    }

.tv-programme-item--tv .active-view .poster a {
    display: block;
}

@media (max-width: 991.98px) {
    .tv-tile .tv-mark img {
        max-width: 120px;
        max-height: 16px;
    }

    .tv-tile .tv-mark > span {
        max-width: 120px;
        font-size: 0.6rem;
    }
}

/* --------------------------------------------------------------- the channel box */
/* Payam, 2026-10-10: a dark box per channel with the logo centred (the trimmed artwork filling
   the width) IN ITS BRAND COLOURS - "do not do the whiting override" on the boxes; the white
   filter is for the small marks on the picture tiles only. The whole box opens the channel
   page, it lifts with the red ring on hover like the channel tile. Two homes: the Featured
   Channels wall after On now (the Portal arrangement, the channel order until one exists) and
   the Channels directory (every category as a rail of boxes). */
.tv-cbox-item {
    padding: 0;
}

.tv-cbox {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #202020, #121212);
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

    .tv-cbox::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 28% 18%, rgba(229, 8, 21, 0.2), transparent 55%);
        pointer-events: none;
    }

.tv-cbox-item:hover .tv-cbox {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 8, 21, 0.55), 0 0 18px rgba(229, 8, 21, 0.2);
}

.tv-cbox-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72%;
    height: 46%;
}

    .tv-cbox-logo:has(> img):not(.is-ready) {
        opacity: 0;
    }

    .tv-cbox-logo img {
        display: block;
        width: 100%; /* the logo fills the box width (Payam: the logos on the channel items), a tall mark is contained in the height */
        height: auto;
        max-height: 100%;
        aspect-ratio: auto;
        object-fit: contain;
        border-radius: 0;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    }

    .tv-cbox-logo > span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: clamp(0.72rem, 0.95vw, 0.95rem);
        line-height: 1.15;
        letter-spacing: 0.01em;
        text-align: center;
        color: #fff;
    }

/* --------------------------------------------------------------- the timeline */
/* --tv-px is the minute's width, --tv-ch-w the channel column; a cell's --s and --d
   are its start minute and its length (the markup sets them per cell). One day is
   1440 minutes wide and scrolls inside the frame; the channel column and the hour
   scale stay put. The current minute is a red line with the time on the scale. */
.tv-guide {
    --tv-px: 4px;
    --tv-ch-w: 180px;
    --tv-row-h: 64px;
    /* the on-air cell's art: as tall as the cell's inside (row - 2x5 inset - 2 borders -
       2x4 padding), 16:9 wide */
    --tv-art-h: calc(var(--tv-row-h) - 20px);
    --tv-art-w: calc(var(--tv-art-h) * 16 / 9);
    padding-top: var(--sp-4);
}

.tv-days {
    display: flex;
    gap: 8px;
    padding: var(--sp-2) 0 var(--sp-4);
    overflow-x: auto;
    scrollbar-width: none;
}

    .tv-days::-webkit-scrollbar {
        display: none;
    }

.tv-day {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 92px;
    padding: 6px 12px;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink-muted);
    text-decoration: none;
    transition: var(--t-fast);
}

    .tv-day-name {
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .tv-day-date {
        font-size: 0.68rem;
        opacity: 0.8;
        white-space: nowrap;
    }

    .tv-day:hover {
        color: var(--ink);
        border-color: rgba(229, 8, 21, 0.45);
        background: rgba(255, 255, 255, 0.055);
    }

    .tv-day.active {
        color: #fff;
        border-color: var(--accent);
        background: rgba(229, 8, 21, 0.12);
        box-shadow: 0 0 0 3px rgba(229, 8, 21, 0.16);
    }

    .tv-day.is-today .tv-day-name::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-right: 5px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 6px rgba(229, 8, 21, 0.8);
        vertical-align: middle;
    }

.tv-grid {
    position: relative;
    max-height: 72vh;
    overflow: auto;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.02);
    scrollbar-color: rgba(221, 221, 221, 0.25) transparent;
}

    .tv-grid::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .tv-grid::-webkit-scrollbar-thumb {
        background: rgba(221, 221, 221, 0.25);
        border-radius: 4px;
    }

    .tv-guide.is-loading .tv-grid {
        opacity: 0.5;
        pointer-events: none;
    }

.tv-grid-head {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    width: calc(var(--tv-ch-w) + 1440 * var(--tv-px));
    background: rgba(17, 17, 17, 0.98);
    border-bottom: 1px solid var(--border-faint);
}

.tv-grid-corner {
    position: sticky;
    left: 0;
    z-index: 7;
    flex: 0 0 var(--tv-ch-w);
    width: var(--tv-ch-w);
    background: rgba(17, 17, 17, 0.98);
    border-right: 1px solid var(--border-faint);
}

.tv-grid-scale {
    position: relative;
    flex: 0 0 auto;
    width: calc(1440 * var(--tv-px));
    height: 32px;
}

.tv-hour {
    position: absolute;
    top: 0;
    left: calc(var(--s) * var(--tv-px));
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 6px;
    border-left: 1px solid var(--border-faint);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.tv-nowmark {
    position: absolute;
    top: 6px;
    left: calc(var(--now, 0) * var(--tv-px));
    z-index: 3;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.3;
    box-shadow: 0 0 8px rgba(229, 8, 21, 0.6);
}

    .tv-nowmark[hidden] {
        display: none;
    }

.tv-grid-rows {
    position: relative;
    width: calc(var(--tv-ch-w) + 1440 * var(--tv-px));
}

.tv-nowline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--tv-ch-w) + var(--now, 0) * var(--tv-px));
    z-index: 4;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(229, 8, 21, 0.8);
    pointer-events: none;
}

    .tv-nowline[hidden] {
        display: none;
    }

.tv-grid-row {
    display: flex;
    border-bottom: 1px solid var(--border-faint);
}

    .tv-grid-row:last-child {
        border-bottom: 0;
    }

    .tv-grid-row[hidden] {
        display: none;
    }

.tv-grid-ch {
    position: sticky;
    left: 0;
    z-index: 3;
    flex: 0 0 var(--tv-ch-w);
    width: var(--tv-ch-w);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(17, 17, 17, 0.96);
    border-right: 1px solid var(--border-faint);
    color: var(--ink);
    text-decoration: none;
    transition: var(--t-fast);
}

    .tv-grid-ch:hover {
        color: var(--accent);
    }

    .tv-grid-ch .tv-chip {
        position: static;
        flex: 0 0 auto;
    }

    .tv-grid-ch-name {
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.tv-grid-track {
    position: relative;
    flex: 0 0 auto;
    width: calc(1440 * var(--tv-px));
    height: var(--tv-row-h);
    background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px calc(30 * var(--tv-px)));
}

.tv-cell {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: calc(var(--s) * var(--tv-px) + 1px);
    width: calc(var(--d) * var(--tv-px) - 3px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: var(--t-fast);
}

    .tv-cell:hover {
        z-index: 2;
        border-color: rgba(229, 8, 21, 0.6);
        background: rgba(229, 8, 21, 0.1);
    }

    .tv-cell--linked {
        border-left: 3px solid var(--accent);
    }

    .tv-cell.is-on {
        border-color: var(--accent);
        background: rgba(229, 8, 21, 0.16);
        box-shadow: inset 0 0 0 1px rgba(229, 8, 21, 0.35);
    }

    .tv-cell.is-past {
        opacity: 0.55;
    }

    .tv-cell.is-off {
        opacity: 0.2;
    }

    /* as wide as their text, so sticky has room to slide inside the cell */
    .tv-cell-time {
        position: sticky;
        left: calc(var(--tv-ch-w) + 9px);
        align-self: flex-start;
        width: max-content;
        max-width: 100%;
        font-size: 0.62rem;
        color: var(--ink-muted);
        white-space: nowrap;
    }

    .tv-cell-title {
        position: sticky;
        left: calc(var(--tv-ch-w) + 9px);
        align-self: flex-start;
        width: max-content;
        max-width: 100%;
        font-family: var(--font-display);
        font-weight: var(--fw-bold);
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tv-cell .tv-badge {
        position: absolute;
        top: 4px;
        right: 4px;
    }

    .tv-cell--empty {
        align-items: center;
        color: var(--ink-muted);
        font-size: 0.75rem;
        background: transparent;
        border-style: dashed;
        cursor: default;
        pointer-events: none;
    }

    /* a filler slot (adverts, promos): dashed and quiet, nothing to open */
    .tv-cell--generic {
        background: transparent;
        border-style: dashed;
        color: var(--ink-muted);
        cursor: default;
    }

        .tv-cell--generic .tv-cell-title {
            font-weight: 500;
        }

        .tv-cell--generic.is-on {
            border-color: rgba(229, 8, 21, 0.45);
            background: rgba(229, 8, 21, 0.06);
            box-shadow: none;
        }

    /* the time and the title as one column (the cell's former direct children) */
    .tv-cell-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        max-width: 100%;
    }

    /* Payam, 2026-10-30: "in Live TV guide for the active timelines add the poster if we
       have from the content". A cell ON AIR that carries art (the linked title's 16:9
       image, else the programme's own picture) becomes a row: the art at the left, the
       time and the title beside it, all three sticky so they ride along as the day
       scrolls. The markup gives art to the cells of the next three hours only (the page
       is cached two minutes; the guide stays open longer), the stylesheet shows it only
       while the cell is on air, and the picture is fetched only then (a lazy img inside a
       display:none box loads nothing). Cells under 45 minutes (60 on phones, where a
       minute is 3px) have no room for a picture beside a title and stay as they are. */
    .tv-cell-art {
        display: none;
        position: sticky;
        left: calc(var(--tv-ch-w) + 5px);
        flex: 0 0 auto;
        align-self: center;
        width: var(--tv-art-w);
        height: var(--tv-art-h);
        border-radius: 4px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.06);
    }

        .tv-cell-art img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .tv-cell--art.is-on {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding-left: 4px;
    }

        .tv-cell--art.is-on .tv-cell-art {
            display: block;
        }

        .tv-cell--art.is-on .tv-cell-text {
            flex: 1 1 auto;
        }

        .tv-cell--art.is-on .tv-cell-time,
        .tv-cell--art.is-on .tv-cell-title {
            left: calc(var(--tv-ch-w) + 5px + var(--tv-art-w) + 8px);
        }

/* ---------------------------------------------------------- the side panel */
/* The content modal's sibling: a sheet from the right with the programme in it. Under
   bootstrap's modal layers, so Details on the linked card opens the modal over it. */
.tv-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(13, 14, 20, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--t-base);
}

    .tv-panel-backdrop.show {
        opacity: 1;
    }

    .tv-panel-backdrop[hidden] {
        display: none;
    }

.tv-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1041;
    width: min(500px, 100vw);
    overflow-y: auto;
    background: #111;
    border-left: 1px solid var(--border-faint);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform var(--t-base);
    scrollbar-width: thin;
    scrollbar-color: rgba(221, 221, 221, 0.25) transparent;
}

    .tv-panel.show {
        transform: none;
    }

    .tv-panel[hidden] {
        display: none;
    }

body.tv-panel-open {
    overflow: hidden;
}

.tv-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-faint);
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.8);
    color: #fff;
    cursor: pointer;
    transition: var(--t-fast);
}

    .tv-panel-close:hover {
        color: var(--accent);
        border-color: rgba(229, 8, 21, 0.6);
    }

.tv-panel-loading {
    display: flex;
    justify-content: center;
    padding: var(--sp-12) 0;
}

    .tv-panel-loading[hidden] {
        display: none;
    }

    .tv-panel-loading img {
        height: 50px;
    }

/* --------------------------------------------------------- the programme body */
/* shared by the panel and the full page */
.tv-programme-hero {
    position: relative;
    background: #181818;
}

    .tv-programme-hero.tv-poster--text {
        aspect-ratio: 16 / 9;
        padding-bottom: 18%;
        border: 0;
        border-radius: 0;
    }

.tv-programme-pic {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.tv-hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, #111, transparent);
    pointer-events: none;
}

.tv-programme-body {
    padding: var(--sp-3) var(--sp-6) var(--sp-6);
}

.tv-programme-title {
    margin: 0 0 var(--sp-2);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.2;
    color: #fff;
}

.tv-programme-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: var(--sp-3);
    font-size: 0.8rem;
    color: var(--ink-muted);
}

    .tv-programme-meta > span:not(:last-child)::after {
        content: "\B7";
        margin: 0 0.6rem;
        font-weight: 800;
    }

.tv-programme-desc {
    margin: 0 0 var(--sp-3);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.tv-programme .cm-crew {
    margin-bottom: var(--sp-3);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.tv-programme .cm-crew-label {
    margin-right: 0.3rem;
    color: #fff;
    font-weight: 600;
}

.tv-h3 {
    margin: var(--sp-4) 0 var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border-faint);
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: 0.95rem;
    color: #fff;
}

.tv-linked-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
}

.tv-linked-poster {
    flex: 0 0 168px;
    display: block;
}

    .tv-linked-poster img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: var(--radius-card);
    }

.tv-linked-text {
    min-width: 0;
}

.tv-linked-title {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: 0.95rem;
    color: #fff;
}

.tv-linked-meta {
    margin: 2px 0 8px;
    font-size: 0.75rem;
    color: var(--ink-muted);
}

/* the platform logos: the UI Logo's white top half in a 5:3 box, as on the modal */
/* the platforms a channel (or a linked title) is on: the title page's platform rows
   (Payam, 2026-10-19: "the same UX as our program platform links but since we have less
   details you can make it smaller") - the same cm-platform markup under the .vtitle scope,
   one size down here, a size further in the programme panel */
.tv-plats {
    margin-top: var(--sp-4);
}

.vtitle.tv-plats .cm-platform {
    max-width: 520px;
    gap: 0.9rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.6rem;
}

.vtitle.tv-plats .cm-platform-logo--ui,
.vtitle.tv-plats .cm-platform-logo--text {
    width: 70px;
    height: 42px;
}

.vtitle.tv-plats .cm-platform-logo--text {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: 0.85rem;
    color: #fff;
}

.vtitle.tv-plats .cm-platform-info {
    padding-left: 0.9rem;
}

    .vtitle.tv-plats .cm-platform-info h4 {
        font-size: 0.95rem;
    }

.vtitle.tv-plats .cm-platform-meta {
    margin-top: 0.1rem;
    font-size: 0.78rem;
}

.vtitle.tv-plats .btn-watch {
    padding: 0.42rem 0.95rem;
    font-size: 0.8rem;
    border-radius: 5px;
}

    .vtitle.tv-plats .btn-watch .material-symbols-outlined {
        font-size: 1rem;
    }

.vtitle.tv-plats--sm {
    margin-top: var(--sp-3);
}

    .vtitle.tv-plats--sm .cm-platform {
        max-width: none;
        gap: 0.7rem;
        padding: 0.45rem 0.7rem;
        margin-bottom: 0.45rem;
    }

    .vtitle.tv-plats--sm .cm-platform-logo--ui,
    .vtitle.tv-plats--sm .cm-platform-logo--text {
        width: 58px;
        height: 35px;
    }

    .vtitle.tv-plats--sm .cm-platform-info {
        padding-left: 0.7rem;
    }

        .vtitle.tv-plats--sm .cm-platform-info h4 {
            font-size: 0.85rem;
        }

    .vtitle.tv-plats--sm .btn-watch {
        padding: 0.32rem 0.7rem;
        font-size: 0.72rem;
    }

/* the white Details pill outside a card (same shape as the preview's) */
.tv-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    margin-top: 10px;
    padding: 0.4em 0.95em 0.4em 0.7em;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: var(--t-fast);
}

    .tv-pill .material-symbols-outlined {
        font-size: 1.35em;
    }

    .tv-pill:hover {
        background: rgba(255, 255, 255, 0.85);
        color: #111;
    }

.tv-airing-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tv-airing-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.03);
}

    .tv-airing-row.is-on {
        border-color: var(--accent);
        background: rgba(229, 8, 21, 0.1);
    }

    .tv-airing-row.is-past {
        opacity: 0.55;
    }

    .tv-airing-row .tv-airing-ch {
        flex: 0 0 auto;
        display: inline-flex;
    }

    .tv-airing-row .tv-chip {
        position: static;
    }

    .tv-airing-row .tv-airing-when {
        font-size: 0.8rem;
        color: var(--ink);
        white-space: nowrap;
    }

        .tv-airing-row .tv-airing-when b {
            margin-right: 4px;
            font-family: var(--font-display);
            font-weight: var(--fw-bold);
        }

    .tv-airing-row .tv-airing-badges {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: auto;
    }

.tv-programme-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border-faint);
}

.tv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--ink-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--t-fast);
}

    .tv-link:hover {
        color: var(--accent);
    }

    .tv-link .material-symbols-outlined {
        font-size: 20px;
    }

    .tv-link.is-copied {
        color: var(--accent);
    }

/* ---------------------------------------------------------------- the deep pages */
.tv-page {
    padding-top: calc(var(--header-h, 72px) + var(--sp-6));
    padding-bottom: var(--sp-12);
}

.tv-page-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.tv-programme--page .tv-programme-pic {
    max-height: 520px;
    border-radius: var(--radius-panel);
}

.tv-programme--page .tv-programme-hero.tv-poster--text {
    border-radius: var(--radius-panel);
}

.tv-programme--page .tv-programme-body {
    padding: var(--sp-4) 0 0;
}

.tv-programme--page .tv-programme-title {
    font-size: 1.9rem;
}

/* the channel page: the logo, the name, its categories and what is on, where to watch */
.tv-hero {
    padding: var(--sp-6) 0 0;
}

/* the hero closes on the strip's own divider: the red hairline that fades in and out at its
   ends with the faint wash under it (the Live TV strip's rule, drawn the same way) */
.tv-hero-rule {
    position: relative;
    height: 1px;
    margin-top: var(--sp-5);
    background: linear-gradient(to right, transparent, rgba(229, 8, 21, 0.9) 22%, rgba(229, 8, 21, 0.9) 78%, transparent);
}

    .tv-hero-rule::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 1px;
        height: 12px;
        pointer-events: none;
        background: radial-gradient(ellipse 62% 12px at 50% 0, rgba(229, 8, 21, 0.38), transparent 70%);
    }

.tv-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--sp-6);
}

.tv-chip--hero {
    position: static;
    flex: 0 0 auto;
    height: 76px;
    padding: 0 18px;
    border-radius: var(--radius-card);
}

    .tv-chip--hero img {
        height: 44px;
        max-width: 170px;
    }

    .tv-chip--hero > span {
        font-size: 1.1rem;
    }

.tv-hero-text {
    flex: 1 1 320px;
    min-width: 0;
}

.tv-hero-title {
    margin: 0 0 var(--sp-1);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
}

.tv-hero-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

    .tv-hero-meta > span:not(:last-child)::after {
        content: "\B7";
        margin: 0 0.6rem;
        font-weight: 800;
    }

    .tv-hero-meta .tv-hero-now {
        color: #fff;
    }

.tv-hero-desc {
    margin: var(--sp-2) 0 0;
    max-width: 70ch;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.tv-hero-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-left: auto;
    padding-top: 4px;
}

/* My channels on the hero: the tile's star as a quiet text control, no pill, red when saved */
.tv-star--hero {
    position: static;
    width: auto;
    height: auto;
    gap: 6px;
    padding: 6px 4px;
    border: 0;
    border-radius: 0;
    background: none;
    opacity: 1;
    color: var(--ink-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
}

    .tv-star--hero .material-symbols-outlined {
        font-size: 22px;
        font-variation-settings: 'opsz' 24, 'wght' 400, 'FILL' 0;
    }

    .tv-star--hero:hover {
        color: #fff;
    }

    .tv-star--hero.is-on {
        color: var(--accent);
    }

        .tv-star--hero.is-on .material-symbols-outlined {
            font-variation-settings: 'opsz' 24, 'wght' 400, 'FILL' 1;
        }

/* the day tabs on the channel page: the modal's minimal tabs - a grey hairline under the row,
   the thick red line on the active one, the date in small type beside the name */
.tv-days--tabs {
    gap: 1.5rem;
    padding: var(--sp-2) 0 0;
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border-faint);
}

    .tv-days--tabs .tv-day {
        flex-direction: row;
        align-items: baseline;
        gap: 0.4rem;
        min-width: 0;
        margin-bottom: -1px;
        padding: 0.55rem 0.1rem;
        border: 0;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

        .tv-days--tabs .tv-day:hover {
            color: #fff;
            background: none;
        }

        .tv-days--tabs .tv-day.active {
            color: #fff;
            background: none;
            border-bottom-color: var(--accent);
            box-shadow: none;
        }

        .tv-days--tabs .tv-day-name {
            font-size: 0.95rem;
            font-weight: 600;
        }

        .tv-days--tabs .tv-day-date {
            font-size: 0.72rem;
            opacity: 0.75;
        }

/* the schedule rows on the channel page: the synopsis is two lines here, the whole text is in
   the programme panel a click away */
.tv-channel-page .tv-sched-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* the day's schedule: the title page's episode list (Payam, 2026-10-19): time · title with
   the duration at the right, the badges and the genre on one quiet line, the synopsis in two
   lines (the whole text is in the panel a click away), the linked title's picture at the
   left with the Stream it pill. The row on air says Now and carries the thin red progress. */
.tv-sched .cm-episode {
    padding: var(--sp-4) 0;
}

.tv-sched .tv-sched-row.is-past {
    opacity: 0.55;
}

.tv-sched .cm-ep-head h3 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.tv-sched-start {
    font-variant-numeric: tabular-nums;
}

.tv-sched .cm-pm-dot {
    font-weight: 800;
    color: var(--ink-muted);
}

.tv-sched-title {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: var(--t-fast);
}

    .tv-sched-title:hover {
        color: var(--accent);
    }

    .tv-sched-title--generic,
    .tv-sched-title--generic:hover {
        color: var(--ink-muted);
        font-weight: 500;
        cursor: default;
    }

.tv-sched-row.is-generic {
    opacity: 0.6;
}

    .tv-sched-row.is-generic .tv-sched-genre,
    .tv-sched-row.is-generic p {
        display: none;
    }

.tv-sched-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 0.35rem;
}

.tv-sched-genre {
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.tv-sched .cm-episode p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 76ch;
}

.tv-sched-thumb {
    position: relative;
    display: block;
    flex: 0 0 150px;
    width: 150px;
}

    .tv-sched-thumb .cm-ep-thumb {
        display: block;
        width: 100%;
    }

    .tv-sched-thumb--empty {
        aspect-ratio: 16 / 9;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.04);
    }

.tv-sched-stream {
    position: absolute;
    left: 6px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 5px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.85);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
}

    .tv-sched-stream .material-symbols-outlined {
        font-size: 16px;
        color: var(--accent);
    }

.tv-progress--row {
    display: block;
    max-width: 76ch;
    margin-top: 0.6rem;
}

.tv-sched-row:not(.is-on) .tv-progress--row {
    display: none;
}

/* the header: Live TV carries the live dot */
.main-nav .nav-link--tv::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(229, 8, 21, 0.8);
    vertical-align: middle;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 991.98px) {
    .tv-guide {
        --tv-ch-w: 150px;
    }
}

@media (max-width: 767.98px) {
    .tv-guide {
        --tv-px: 3px;
        --tv-ch-w: 120px;
        --tv-row-h: 58px;
    }

    .tv-grid-ch-name {
        display: none;
    }

    /* at 3px a minute only the hour-long cells (.tv-cell--art-sm) have room for the art */
    .tv-cell--art:not(.tv-cell--art-sm).is-on {
        flex-direction: column;
        gap: 0;
        padding-left: 8px;
    }

        .tv-cell--art:not(.tv-cell--art-sm).is-on .tv-cell-art {
            display: none;
        }

        .tv-cell--art:not(.tv-cell--art-sm).is-on .tv-cell-time,
        .tv-cell--art:not(.tv-cell--art-sm).is-on .tv-cell-title {
            left: calc(var(--tv-ch-w) + 9px);
        }

    .tv-hero-actions {
        align-items: flex-start;
        margin-left: 0;
    }

    .tv-linked-poster {
        flex-basis: 132px;
    }

    .tv-programme--page .tv-programme-title {
        font-size: 1.4rem;
    }

    .tv-hero-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .tv-panel {
        width: 100vw;
    }

    /* the channel hero on a phone: the "Now" line stands on its own (no dangling dot), the
       platform boxes fill the width, the star hugs them */
    .tv-hero-meta {
        flex-direction: column;
        gap: 2px;
    }

        .tv-hero-meta > span:not(:last-child)::after {
            content: none;
        }

    .tv-hero-actions {
        margin-left: 0;
        padding-top: 0;
        margin-top: var(--sp-1);
    }

    .vtitle.tv-plats .cm-platform {
        max-width: none;
    }

    .tv-sched .cm-episode {
        flex-direction: column;
        gap: 0.6rem;
    }

    .tv-sched-thumb {
        flex-basis: auto;
        width: 100%;
        max-width: 260px;
    }

    .tv-programme-body {
        padding: var(--sp-3) var(--sp-4) var(--sp-6);
    }

    .tv-linked-card {
        flex-direction: column;
    }

    .tv-linked-poster {
        flex-basis: auto;
        width: 100%;
    }

    .tv-airing-row {
        flex-wrap: wrap;
    }

        .tv-airing-row .tv-airing-badges {
            margin-left: 0;
        }

    /* phone tiles are three-up and ~65px tall: the same marks, smaller; the mark sits on its
       own line above the time (a 112px tile cannot hold both side by side); a deeper fade
       keeps both readable; no star (no hover) */
    .tv-tile .tv-poster::after,
    .tv-tile > .poster::after {
        height: 60%;
    }

    .tv-tile .tv-badge {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 0.5rem;
    }

    .tv-tile .tv-mark {
        right: 6px;
        bottom: 19px;
        height: 14px;
    }

        .tv-tile .tv-mark img {
            max-width: 70px;
            max-height: 12px;
        }

        .tv-tile .tv-mark > span {
            max-width: 70px;
            font-size: 0.5rem;
        }

    .tv-tile .tv-time,
    .tv-tile .tv-when {
        left: 6px;
        bottom: 4px;
        height: 14px;
        font-size: 0.56rem;
    }

    .tv-tile .tv-progress--edge {
        height: 2px;
    }

    .tv-channel-item .tv-star,
    .tv-cbox-item .tv-star {
        display: none;
    }

    .tv-grid-ch .tv-chip {
        top: 5px;
        left: 5px;
        height: 20px;
        padding: 0 5px;
    }

        .tv-grid-ch .tv-chip img {
            height: 12px;
            max-width: 48px;
        }

    .tv-tile .tv-poster--text {
        padding: 4px 8px 34px; /* the two-line title clears the mark line (32px up) and the time */
    }

    .tv-tile .tv-poster-title {
        font-size: 0.62rem;
    }

    .tv-poster-sub {
        display: none;
    }
}

/* ------------------------------------------ the tabs and the controls row, smaller screens */
@media (max-width: 991.98px) {
    .tv-card .tv-facets {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .search-box--tabs .search-tab {
        padding: 11px 19px 11px 17px;
        font-size: 14px;
    }

        .search-box--tabs .search-tab + .search-tab {
            padding-left: 16px;
        }

    .tv-card .tv-controls {
        gap: 10px;
    }

    .tv-card .tv-facets {
        width: 100%;
        gap: 10px;
    }

        .tv-card .tv-facets .facet {
            flex: 1 1 30%;
        }

    .tv-card .tv-modes {
        width: 100%;
    }

    .tv-card .tv-mode {
        flex: 1 1 0;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    /* two tabs across the whole top: the outline is the plain rounded rectangle */
    .search-box--tabs .search-tab {
        flex: 1 1 0;
        justify-content: center;
        padding: 10px 8px 10px;
        font-size: 14px;
    }

        .search-box--tabs .search-tab + .search-tab {
            padding-left: 8px;
        }

    .tv-card .tv-facets .facet {
        flex: 1 1 100%;
    }

    .tv-card .tv-mode {
        padding: 0.55rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------------------------------------
   Status pages (404 and friends, Views/Home/NotFound.cshtml): one centred card in the
   site's own type. The top padding clears the fixed header. 2026-10-30 (SEO-1).
   --------------------------------------------------------------------------- */
.qap-status {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9rem 1rem 5rem;
}

.qap-status-inner {
    max-width: 640px;
    text-align: center;
}

.qap-status-code {
    margin: 0 0 .5rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--accent);
}

.qap-status h1 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: #fff;
}

.qap-status-body {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .72);
}

.qap-status-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
}

.qap-status-link {
    display: inline-block;
    padding: .55rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}

.qap-status-link:hover,
.qap-status-link:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ---------------------------------------------------------------------------
   HOME QAPLIST SECTION, VARIANT B (Payam, 2026-11-04, from a Plex "Popular Lists"
   screenshot) - served beside the current section for a side-by-side choice
   (/?qlv=b). The intro column keeps its qhome3-* look; the Top10 rail is a plain
   owl rail of .qlb list cards: a card washed in its first poster's colour, four
   portrait posters fanned to the right, a two-line title slot, the curator row,
   a footer strip of likes | comments | Save. No panel, no backdrop for now.
   --------------------------------------------------------------------------- */
.qhome4 {
    position: relative;
    isolation: isolate;
    margin: var(--sp-4) 0 0;
    padding: var(--sp-5) 0;
}

    /* Payam 2026-11-04: "a full width background image (like our current version but full
       width)" - the same art the current section shows inside its panel, here spanning the
       whole page: the container is the page's width and clips at its padding box, so a box
       reaching one gutter out on each side is edge to edge; width-fit, top-anchored, no scrim,
       the art fades to black on its own and bg-deep fills below (the current section's rules) */
    .qhome4::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(-1 * var(--gutter));
        right: calc(-1 * var(--gutter));
        z-index: -1;
        background-color: rgb(var(--bg-deep));
        background-image: url('../images/qaplist-bg.jpg');
        background-size: 100% auto;
        background-position: center top;
        background-repeat: no-repeat;
    }

    /* the same tint map the current section carries (qaplist.css is not loaded on home) */
    .qhome4 .tint-teal { --qv-tint: 45, 212, 191; }
    .qhome4 .tint-amber { --qv-tint: 251, 191, 36; }
    .qhome4 .tint-blue { --qv-tint: 96, 165, 250; }
    .qhome4 .tint-pink { --qv-tint: 244, 114, 182; }
    .qhome4 .tint-green { --qv-tint: 74, 222, 128; }
    .qhome4 .tint-red { --qv-tint: 229, 9, 20; }

/* intro | rail */
.qhome4-hero {
    display: grid;
    grid-template-columns: minmax(230px, 24%) minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: center;
}

.qhome4-rail {
    min-width: 0;
    /* room for the prev arrow between the intro and the first card (Payam: the arrows out of
       the items); the arrow box measures 43px */
    padding-left: 44px;
}

.qhome4-carousel {
    margin-top: 0;
}

    /* room for the hover lift and its shadow; the stage keeps its own horizontal clip */
    .qhome4-carousel .owl-stage-outer {
        padding: 8px 0 18px;
        margin: -8px 0 -18px;
    }

    .qhome4-carousel .owl-stage {
        display: flex;
    }

    .qhome4-carousel .owl-item {
        display: flex;
    }

    /* the arrows OUTSIDE the cards (Payam 2026-11-04): the prev one in the rail's own left
       padding between the intro and the first card, the next one in the page gutter like every
       other rail; bare glyphs with a shadow, no fade block (they sit over the backdrop art) */
    .qhome4-carousel.owl-carousel .owl-nav [class*='owl-'] {
        background-image: none;
        padding: 0 4px;
        color: rgba(255, 255, 255, 0.75);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    }

    .qhome4-carousel.owl-carousel .owl-nav .owl-prev {
        left: -44px;
    }

    .qhome4-carousel.owl-carousel .owl-nav .owl-next {
        right: calc(-1 * var(--gutter));
    }

/* ---- the card ---- */
.qlb {
    /* the wash: ArtTint sets --ql-base inline (the first poster's colour, imgix palette);
       without one the vibe tint, dimmed to the same depth */
    --ql-base: color-mix(in srgb, rgb(var(--qv-tint, 229, 9, 20)) 26%, #171717);
    --ql-pad: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, var(--ql-base) 0%, color-mix(in srgb, var(--ql-base) 62%, #121212) 100%);
    overflow: hidden;
    color: #fff;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}

    .qlb:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
    }

.qlb-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

/* the Top10 rank: the current section's red ribbon (qlc-num), hanging from the card's top
   edge over the first poster's corner, above the fanned posters */
.qlb-num {
    position: absolute;
    top: 0;
    left: 22px;
    z-index: 7;
    width: 30px;
    height: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 7px;
    background: #e50914;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

    .qlb-link:hover {
        color: inherit;
    }

/* the art: the first poster in flow (it gives the band its height and sits on top), the
   next three absolute under it, each shifted right by a third of the remaining width so
   only its right part shows, each a touch smaller and centred (the deck recedes) */
.qlb-art {
    position: relative;
    display: block;
    padding: var(--ql-pad) var(--ql-pad) 0;
    --ql-first: 36%;
    --ql-step: calc((100% - var(--ql-pad) * 2 - (100% - var(--ql-pad) * 2) * 0.36) / 3);
}

/* three classes deep on purpose: the template's `.owl-carousel .owl-item img { width: 100% }`
   (0,2,1) outranks a lone class and blew the fanned posters up to the card width */
.qlb .qlb-art .qlb-poster {
    position: absolute;
    top: 50%;
    left: calc(var(--ql-pad) + var(--ql-step) * var(--i));
    z-index: calc(4 - var(--i));
    display: block;
    width: calc((100% - var(--ql-pad) * 2) * 0.36);
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 5px 0 16px rgba(0, 0, 0, 0.5);
    transform-origin: 100% 50%;
    transform: translateY(-50%) scale(calc(1 - var(--i) * 0.035));
}

    /* the one on top: in flow, full size */
    .qlb .qlb-art .qlb-poster:first-child {
        position: relative;
        top: auto;
        left: auto;
        width: var(--ql-first);
        transform: none;
    }

    /* the absolute posters are centred on the padding box: the top pad is matched below so
       their centre line is the first poster's centre line */
    .qlb-art::after {
        content: "";
        display: block;
        height: var(--ql-pad);
    }

/* a two-line slot; a one-line title sits centred in it so the rows below line up card to card */
.qlb-title {
    display: flex;
    align-items: center;
    min-height: calc(2 * 1.3em + 2px);
    margin: 0 var(--ql-pad);
    padding: 1px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.3;
    color: #fff;
}

    .qlb-title > span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

/* the curator row */
.qlb-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px var(--ql-pad) 12px;
}

.qlb-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(var(--qv-tint, 229, 9, 20), 0.55);
}

.qlb-lines {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.35;
}

    .qlb-lines > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.qlb-handle {
    color: rgba(255, 255, 255, 0.92);
}

.qlb-count {
    font-weight: 700;
    color: #fff;
}

.qlb-date {
    color: rgba(255, 255, 255, 0.55);
}

/* the footer strip: likes | comments | Save, hairlines between, a shade darker than the card */
.qlb-foot {
    display: flex;
    align-items: stretch;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.24);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.qlb-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 var(--ql-pad);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

    .qlb-cell + .qlb-cell {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .qlb-cell .material-symbols-outlined {
        font-size: 1.15rem;
        font-variation-settings: 'FILL' 0;
    }

/* the Save cell: the real toggle (qlc-save handler); over-qualified to undo the round
   button look .qlc-save carries on the other cards */
.qlb-foot .qlb-save {
    flex: 1 1 auto;
    justify-content: flex-end;
    width: auto;
    height: 40px;
    margin: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: var(--t-fast);
}

    .qlb-foot .qlb-save:hover {
        background: rgba(255, 255, 255, 0.07);
        color: #fff;
    }

    .qlb-foot .qlb-save .material-symbols-outlined {
        font-size: 1.15rem;
        font-variation-settings: 'FILL' 0;
        transition: var(--t-fast);
    }

    .qlb-foot .qlb-save.is-saved {
        color: var(--accent);
    }

        .qlb-foot .qlb-save.is-saved .material-symbols-outlined {
            font-variation-settings: 'FILL' 1;
        }

    .qlb-save .qlb-save-text::after {
        content: attr(data-label);
    }

    .qlb-save.is-saved .qlb-save-text::after {
        content: attr(data-label-saved);
    }

@media (max-width: 1199px) {
    .qhome4-hero {
        grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
    }
}

@media (max-width: 899px) {
    .qhome4-hero {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }

    .qhome4 .qhome3-intro {
        max-width: 520px;
    }

    /* the intro stacks above: the rail is the full width and both arrows sit in the gutter */
    .qhome4-rail {
        padding-left: 0;
    }

    .qhome4-carousel.owl-carousel .owl-nav .owl-prev {
        left: calc(-1 * var(--gutter));
    }
}

/* ================================================================== sport zone (2026-11-04) */
/* Payam, 2026-11-04: the third search tab, "a dedicated zone for the Sport sector, combination
   of Content and Live, with an advance search of Sport Type, Leagues". The Live TV card's
   twin (Docs/SPORT-ZONE-PLAN.md): the card, the modes, the strip, the pills and the rails are
   the Live TV parts (tv-*). New here is only what sport adds: the filter box at the top of
   the two long facet panels, the sport headings inside the Competition panel, the sport icon
   on a pill, the competition mark in a rail head, the competition wall. */

/* the filter box at the top of the Competition and Team panels (101 and 150 rows need one) */
.sport-card .sport-facet-filter {
    display: block;
    width: 100%;
    margin: 0 0 var(--sp-2);
    padding: 6px var(--sp-3);
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ink);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-faint);
    border-radius: 5px;
    outline: none;
    transition: border-color var(--t-fast);
}

    .sport-card .sport-facet-filter:focus {
        border-color: rgba(229, 8, 21, 0.6);
    }

    .sport-card .sport-facet-filter::-webkit-search-cancel-button {
        -webkit-appearance: none;
    }

/* the Competition panel reads in groups under the sport's name; a hidden row leaves no gap */
.sport-card .sport-facet-options {
    max-height: 320px;
    overflow-y: auto;
}

.sport-card .sport-facet-group {
    margin: var(--sp-2) 0 var(--sp-1);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

    .sport-card .sport-facet-group:first-child {
        margin-top: 0;
    }

.sport-card .sport-facet-options .facet-opt[hidden],
.sport-card .sport-facet-group[hidden] {
    display: none;
}

/* the pills carry the sport's Material icon before the name */
.sport-card .sport-pills li a .material-symbols-outlined {
    font-size: 1.1em;
    vertical-align: -0.22em;
    margin-right: 0.35em;
}

/* a competition rail wears the competition's mark before its name */
.sport-rail .row-head h2 .sport-rail-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 28px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

    .sport-rail .row-head h2 .sport-rail-mark img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

/* the competition wall: the Featured Channels box in a grid per sport, the competition's colour
   as the thin rule on the box's top edge (set from data-color by sport.js), the name in type
   until the directory pull brings the logo, the title under the box */
.sport-wall-ico {
    vertical-align: -0.18em;
    margin-right: 0.4rem;
    color: var(--accent);
}

.sport-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--sp-3) var(--sp-3);
}

.sport-wall .sport-cbox-item {
    position: relative;
    min-width: 0;
}

    .sport-wall .sport-cbox-item[hidden] {
        display: none;
    }

.sport-wall .sport-cbox {
    --sport-color: rgba(255, 255, 255, 0.12);
    border-top: 2px solid var(--sport-color);
}

.sport-wall .sport-cbox-title {
    display: block;
    margin-top: var(--sp-1);
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--ink-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .sport-wall .sport-cbox-title small {
        font-size: 0.85em;
        opacity: 0.7;
    }

/* the On demand grid: the home search's cards and Load more pill, the empty line under them */
.sport-ondemand .sport-hits {
    width: 100%;
}

.sport-ondemand .sport-nohits {
    margin-top: var(--sp-4);
}

@media (max-width: 599px) {
    .sport-wall-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--sp-2);
    }
}

/* the sport modes carry longer words than the Live TV ones ("Canlı ve Yakında", "İstek Üzerine"):
   on a phone the three segments give up their icons and shrink a step so the row fits the card
   (measured 2026-11-04 at 375px: 382px of content in a 375px viewport before this) */
@media (max-width: 575.98px) {
    .sport-card .tv-mode {
        min-width: 0;
        padding: 0.55rem 0.4rem;
        font-size: 0.74rem;
    }

        .sport-card .tv-mode .material-symbols-outlined {
            display: none;
        }
}

/* the competition and team pages (step 2): the channel page's hero with the row's colour on the
   rule (--sport-color from data-color, red when the row has none), the sport as a link, the week's
   list grouped by day with the channel chip on the badges line, the members wall, the cards grid */
.sport-entity .tv-hero {
    --sport-color: rgba(229, 8, 21, 0.9); /* the default on the hero itself: sport.js sets the row's colour here, the rule inherits it */
}

    .sport-entity .tv-hero .sport-hero-rule {
        background: linear-gradient(to right, transparent, var(--sport-color) 22%, var(--sport-color) 78%, transparent);
    }

.sport-entity .sport-hero-chip img {
    height: 56px;
    max-width: 200px;
}

.sport-entity .tv-hero-meta .sport-hero-sport {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    color: var(--ink);
    text-decoration: none;
}

    .sport-entity .tv-hero-meta .sport-hero-sport:hover {
        color: var(--accent);
    }

    .sport-entity .tv-hero-meta .sport-hero-sport .material-symbols-outlined {
        font-size: 1.1em;
    }

.sport-entity .sport-hero-tab {
    white-space: nowrap;
}

.sport-entity-section {
    margin-top: var(--sp-6);
}

.sport-entity .sport-entity-h2 {
    margin: 0 0 var(--sp-3);
}

.sport-entity .sport-sched-day {
    list-style: none;
    margin: var(--sp-4) 0 var(--sp-2);
    padding: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 0;
}

    .sport-entity .sport-sched-day:first-child {
        margin-top: 0;
    }

.sport-entity .tv-sched-badges .sport-sched-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 6px;
    text-decoration: none;
}

    .sport-entity .tv-sched-badges .sport-sched-chip img {
        max-height: 14px;
        max-width: 60px;
    }

.sport-entity .sport-wall--page .sport-wall-grid--teams {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.sport-entity .sport-entity-titles .content-item {
    width: 100%;
}

/* ------------------------------------------------------------------ sport art tiles */
/* Payam, 2026-11-08 ("run a test to see what we can make"): a TV-only match has no picture from
   the guide, so the tile draws one from the taxonomy: the home crest against the away crest on
   the clubs' colours (read from the crests, data-art-home / data-art-away painted by sport.js
   into --art-home / --art-away), the competition's mark top-left, the match in small type under
   the crests; a competition row without a pair shows the competition's mark alone on its colour.
   The LIVE badge, the channel mark and the time keep the Prime tile's places; the foot fade stays
   so the marks read on any colour. */
.tv-poster--art {
    aspect-ratio: 16 / 9;
    position: relative;
    display: block;
    overflow: hidden;
    container-type: size; /* the crests are sized in cqh: a percentage height never resolves inside the grid */
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-card);
    background: linear-gradient(104deg, var(--art-home, var(--art-comp, #262626)) 0 49.3%, rgba(255, 255, 255, 0.3) 49.3% 50.7%, var(--art-away, var(--art-comp, #161616)) 50.7% 100%);
}

    .tv-poster--art::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(ellipse 34% 60% at 26% 40%, rgba(255, 255, 255, 0.22), transparent 70%), radial-gradient(ellipse 34% 60% at 74% 40%, rgba(255, 255, 255, 0.22), transparent 70%);
        pointer-events: none;
    }

    .tv-poster--art-comp::before {
        background: radial-gradient(ellipse 50% 70% at 50% 38%, rgba(255, 255, 255, 0.2), transparent 70%);
    }

    .tv-poster--art-comp {
        background: linear-gradient(104deg, var(--art-comp, #262626) 0%, #141414 100%);
    }

.sport-art {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: center;
    padding: 6cqh 7% 29cqh; /* heights in cqh: a percentage padding is of the WIDTH */
    gap: 2px 0;
}

    .sport-art--comp {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        padding: 6cqh 10% 29cqh;
        gap: 2px 0;
    }

.sport-art-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
}

    .tv-tile .sport-art-side img {
        display: block;
        width: auto;
        height: 48cqh; /* the template's poster img rule (16:9, cover) cropped the crests top and bottom: undone here */
        max-height: 64px;
        max-width: 100%;
        aspect-ratio: auto;
        object-fit: contain;
        border-radius: 0;
        filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
    }

.sport-art-initials {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(0.72rem, 1.1vw, 1rem);
    color: #fff;
    width: 2.7em;
    height: 2.7em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.sport-art-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    padding: 0 0.5em;
}

    .tv-tile .sport-art-vs img {
        display: block;
        width: auto;
        height: 24cqh;
        max-height: 30px;
        max-width: 40px;
        aspect-ratio: auto;
        object-fit: contain;
        border-radius: 0;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
    }

.sport-art-title {
    grid-column: 1 / -1;
    max-width: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(0.62rem, 0.85vw, 0.78rem);
    line-height: 1.2;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.sport-art-sub {
    grid-column: 1 / -1;
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tv-tile .sport-art-side--mark img {
    height: 50cqh;
    max-height: 72px;
    max-width: 60%;
}

.tv-tile .tv-poster--art.tv-poster--preview {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    border: 0;
}

/* the art at hero size (the side panel and the programme page, 2026-11-08): the same classes as
   the tile; the hero is wider, so the crests and the mark stand taller and the foot fade of the
   programme body does the title's work */
.tv-programme-hero.tv-poster--art {
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 0;
}

    .tv-programme-hero.tv-poster--art .sport-art {
        padding: 10cqh 8% 26cqh;
    }

    .tv-programme-hero.tv-poster--art .sport-art--comp {
        padding: 12cqh 10% 26cqh;
    }

    .tv-programme-hero.tv-poster--art .sport-art-side img {
        height: 54cqh;
        max-height: 140px;
        filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
    }

    .tv-programme-hero.tv-poster--art .sport-art-side--mark img {
        height: 58cqh;
        max-height: 150px;
    }

    .tv-programme-hero.tv-poster--art .sport-art-vs img {
        height: 26cqh;
        max-height: 60px;
        max-width: 90px;
    }

    .tv-programme-hero.tv-poster--art .sport-art-vs {
        font-size: 0.8rem;
    }

    .tv-programme-hero.tv-poster--art .sport-art-initials {
        font-size: clamp(1rem, 2.4vw, 1.6rem);
    }

    /* the full page's hero is the content width: the crests may stand taller */
    .tv-programme--page .tv-programme-hero.tv-poster--art .sport-art-side img {
        max-height: 260px;
    }

    .tv-programme--page .tv-programme-hero.tv-poster--art .sport-art-side--mark img {
        max-height: 280px;
    }

    .tv-programme--page .tv-programme-hero.tv-poster--art .sport-art-vs img {
        max-height: 110px;
        max-width: 160px;
    }

/* ---------------------------------------------------- the sport rung and the channel-first tile */
/* Payam, 2026-11-09 ("why some does not have thumbnail", "this section is also very bad"): a programme the
   classifier placed by sport only draws the sport's Material symbol on the sport's band; a channel on the
   Sport rail with nothing classified on draws its own logo large on the band of its home sport. The band
   is a variable keyed by data-art-sport, so the markup carries no colour and no style. */
.tv-poster--art-sport {
    --art-comp: var(--sport-band, #262626);
}

.tv-poster--art[data-art-sport="futbol"] { --sport-band: #166534; }
.tv-poster--art[data-art-sport="basketbol"] { --sport-band: #b4420e; }
.tv-poster--art[data-art-sport="voleybol"] { --sport-band: #1d4ed8; }
.tv-poster--art[data-art-sport="hentbol"] { --sport-band: #0e7490; }
.tv-poster--art[data-art-sport="tenis"] { --sport-band: #a16207; }
.tv-poster--art[data-art-sport="motor-sporlari"] { --sport-band: #991b1b; }
.tv-poster--art[data-art-sport="dovus-sporlari"] { --sport-band: #7f1d1d; }
.tv-poster--art[data-art-sport="bisiklet"] { --sport-band: #0369a1; }
.tv-poster--art[data-art-sport="golf"] { --sport-band: #15803d; }
.tv-poster--art[data-art-sport="atletizm"] { --sport-band: #b45309; }
.tv-poster--art[data-art-sport="kis-sporlari"] { --sport-band: #1e40af; }
.tv-poster--art[data-art-sport="su-sporlari"] { --sport-band: #0f6e8c; }
.tv-poster--art[data-art-sport="binicilik"] { --sport-band: #78350f; }
.tv-poster--art[data-art-sport="espor"] { --sport-band: #6d28d9; }
.tv-poster--art[data-art-sport="amerikan-futbolu"] { --sport-band: #713f12; }
.tv-poster--art[data-art-sport="beyzbol"] { --sport-band: #1e3a8a; }
.tv-poster--art[data-art-sport="buz-hokeyi"] { --sport-band: #164e63; }
.tv-poster--art[data-art-sport="ragbi"] { --sport-band: #3f6212; }
.tv-poster--art[data-art-sport="kriket"] { --sport-band: #065f46; }
.tv-poster--art[data-art-sport="bilardo-snooker"] { --sport-band: #14532d; }
.tv-poster--art[data-art-sport="dart"] { --sport-band: #7c2d12; }
.tv-poster--art[data-art-sport="masa-tenisi"] { --sport-band: #0f766e; }
.tv-poster--art[data-art-sport="badminton"] { --sport-band: #4d7c0f; }
.tv-poster--art[data-art-sport="tirmanis-doga-sporlari"] { --sport-band: #44403c; }
.tv-poster--art[data-art-sport="ekstrem-sporlar"] { --sport-band: #9a3412; }
.tv-poster--art[data-art-sport="coklu-spor"] { --sport-band: #374151; }

.sport-art-icon {
    font-size: 46cqh;
    line-height: 1;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.tv-tile .sport-art--channel .sport-art-side--mark img {
    height: 36cqh;
    max-height: 48px;
    max-width: 74%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.sport-art-channel-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    letter-spacing: 0.02em;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.tv-poster--art-channel-plain {
    --sport-band: #2a2a2e;
}

.tv-programme-hero.tv-poster--art .sport-art-icon {
    font-size: 50cqh;
}

/* ------------------------------------------------------------- the art tile on a phone */
/* Payam, 2026-11-16 ("fix the channel mark on the phone tiles"): a phone tile is about 112 x 63
   and its last two lines belong to the channel mark and to the time (the phone rule of
   2026-10-10), so the centred art with its title under it ran into the mark. On a phone the art
   tile reads like the typographic tile: the art small at the left, the title in two lines beside
   it, both above the mark line. The badge leaves the top-right corner (it would cover the
   title's first line) for the left of the mark line, over the time, and the mark gives it room.
   The hero (panel and page) is not a tile and keeps the centred art. */
@media (max-width: 575.98px) {
    .tv-tile .sport-art,
    .tv-tile .sport-art--comp {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding: 4px 8px 33px; /* clears the mark line (it ends 33px up) and the time */
    }

    .tv-tile .sport-art-side {
        flex: 0 0 auto;
        width: auto;
        height: auto;
    }

        .tv-tile .sport-art-side img,
        .tv-tile .sport-art-side--mark img {
            height: clamp(18px, 36cqh, 34px);
            max-height: none;
            max-width: 36px;
        }

    .tv-tile .sport-art-icon {
        font-size: clamp(18px, 36cqh, 34px);
    }

    .tv-tile .sport-art-initials {
        font-size: 0.5rem;
    }

    /* a pair: no "vs" between the crests (the title names the match), the away crest laps the home one */
    .tv-tile .sport-art-vs {
        display: none;
    }

    .tv-tile .sport-art--pair .sport-art-side ~ .sport-art-side {
        margin-left: -12px;
    }

    .tv-tile .sport-art-title {
        flex: 1 1 0;
        min-width: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        text-align: left;
        font-size: 0.6rem;
        line-height: 1.15;
    }

    /* the channel-first tile has no other mark: its logo takes the mark's place, the programme the top */
    .tv-tile .sport-art--channel .sport-art-side--mark {
        position: absolute;
        right: 6px;
        bottom: 19px;
        display: inline-flex;
        align-items: center;
        height: 14px;
    }

        .tv-tile .sport-art--channel .sport-art-side--mark img {
            height: auto;
            max-height: 12px;
            max-width: 70px;
        }

    .tv-tile .sport-art-channel-name {
        max-width: 70px;
        overflow: hidden;
        font-size: 0.5rem;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    /* the badge beside the mark, over the time; the mark (or the channel-first logo) makes room for it:
       the tile's width less the two edges, the widest badge of its kind and a gap (cqw: of the poster) */
    .tv-tile .tv-poster--art > .tv-badge {
        top: auto;
        right: auto;
        left: 6px;
        bottom: 19px;
    }

    .tv-tile .tv-poster--art:has(> .tv-badge) .tv-mark img,
    .tv-tile .tv-poster--art:has(> .tv-badge) .tv-mark > span,
    .tv-tile .tv-poster--art:has(> .tv-badge) .sport-art--channel .sport-art-side--mark img,
    .tv-tile .tv-poster--art:has(> .tv-badge) .sport-art-channel-name {
        max-width: calc(100cqw - 62px);
    }

    .tv-tile .tv-poster--art:has(> .tv-badge--new) .tv-mark img,
    .tv-tile .tv-poster--art:has(> .tv-badge--new) .tv-mark > span {
        max-width: calc(100cqw - 84px);
    }

    /* the smallest phones (under about 356px wide, a tile under 59px tall): two lines no longer fit
       above the mark line, so one line of title and the art a size down */
    @container (max-height: 58.9px) {
        .tv-tile .sport-art-title {
            -webkit-line-clamp: 1;
        }

        .tv-tile .sport-art-side img,
        .tv-tile .sport-art-side--mark img {
            height: 14px;
        }

        .tv-tile .sport-art-icon {
            font-size: 14px;
        }

        .tv-tile .sport-art-initials {
            font-size: 0.34rem;
        }
    }
}

/* ======================================================================================
   Where to watch (the sport rights, Docs/SPORT-RIGHTS-PLAN.md slice 2, 2026-11-23): the
   competition page's block (a row per role: the label, then the broadcaster chips), the team
   page's list, the wall's Free to air badge and switch and each sport's "Show all" fold.
   A chip: the mark (or an icon), the name and its condition, the access word, "beklenen" on a
   Likely right (a dashed edge), and the outside arrow when it opens another site.
   ====================================================================================== */
.sport-rights-groups {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.sport-rights-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: var(--sp-2) var(--sp-3);
    align-items: start;
}

.sport-rights-role {
    padding-top: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.sport-rights-role--link {
    color: #fff;
    text-decoration: none;
}

    .sport-rights-role--link:hover {
        text-decoration: underline;
    }

.sport-rights-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    min-width: 0;
}

.sport-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid var(--border-faint);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-decoration: none;
    transition: var(--t-base);
}

a.sport-right:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sport-right.is-likely {
    border-style: dashed;
}

.sport-right-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 28px;
    height: 24px;
}

    .sport-right-mark img {
        display: block;
        height: 20px;
        width: auto;
        max-width: 72px;
        object-fit: contain;
    }

    .sport-right-mark .material-symbols-outlined {
        font-size: 20px;
        color: var(--ink-muted);
    }

.sport-right--youtube .sport-right-mark .material-symbols-outlined {
    color: #ff3d3d;
}

.sport-right-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.sport-right-name {
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sport-right-cond {
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.sport-right-access {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ink-muted);
    white-space: nowrap;
}

.sport-right-access--1 {
    background: rgba(46, 160, 67, 0.22);
    color: #6fdd8b;
}

.sport-right-access--3 {
    background: rgba(212, 160, 23, 0.2);
    color: #f2c94c;
}

.sport-right-likely {
    flex: 0 0 auto;
    font-size: 0.68rem;
    font-style: italic;
    color: var(--ink-muted);
    white-space: nowrap;
}

.sport-right-out {
    flex: 0 0 auto;
    font-size: 15px;
    color: var(--ink-muted);
}

.sport-rights-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin: var(--sp-3) 0 0;
    font-size: 0.74rem;
    color: var(--ink-muted);
}

.sport-rights--team {
    margin-top: var(--sp-4);
}

.sport-rights-subhead {
    margin: 0 0 var(--sp-2);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

@media (max-width: 767.98px) {
    .sport-rights-row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-1);
    }

    .sport-rights-role {
        padding-top: 0;
    }

    .sport-right-name {
        white-space: normal;
    }
}

/* the wall: the Free to air switch, the badge on a box, the fold past a sport's first row */
.sport-wall-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--sp-3);
}

.sport-free-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--border-faint);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

    .sport-free-toggle .material-symbols-outlined {
        font-size: 18px;
    }

    .sport-free-toggle[aria-pressed="true"] {
        border-color: transparent;
        background: rgba(46, 160, 67, 0.85);
    }

.sport-wall .sport-free-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(46, 160, 67, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.sport-wall-group:not(.is-open) .sport-cbox-item--more {
    display: none;
}

.is-filtering .sport-wall-group .sport-cbox-item--more:not([hidden]) {
    display: block;
}

.sport-wall-more {
    display: block;
    margin: var(--sp-3) auto 0;
    padding: 7px 18px;
    border: 1px solid var(--border-faint);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

    .sport-wall-more:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.is-filtering .sport-wall-more {
    display: none;
}
