/*
 * BBTV: a private screening salon (DESIGN §8.3) on a page of the member zone's theme (martin-theme). Oxblood and
 * wine velvet, black lacquer, antique gold as hairlines, double rules and art-deco corners only, ivory serif text.
 *
 * Every player rule is scoped under #bbtv: the id outranks the theme's element and class rules, and the resets below
 * undo what the theme styles globally (buttons, inputs, images, headings, links, lists, line-height, box-sizing).
 * Outside #bbtv: html.bbtv-noscroll (set while the TV fills the viewport), the page's own fonts (@font-face, below),
 * and the page around the TV under body.bbtv-page (its content and the comments' wrapper; never the comments
 * engine's own .mc-* classes).
 *
 * The picture is never filtered or recoloured: overlays sit on their own layers with opaque plates, and the only
 * filter over the picture is the non-VIP lock blur (blur(18px) + a dark veil). The idle screen's stills (before
 * Play, never the picture) are greyscale and faint, at Martin's request (DESIGN §0). The logos are shown as they are.
 *
 * Fonts: Cormorant Garamond and Cinzel, OFL 1.1 (assets/fonts/OFL-*.txt), self-hosted Latin subsets; nothing from
 * Google or a CDN.
 */

@font-face {
    font-family: "BBTV Serif";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "BBTV Serif";
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "BBTV Serif";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "BBTV Caps";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/cinzel-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The palette and type, for the TV and for the page around it. */
#bbtv,
body.bbtv-page .bbtv-article,
body.bbtv-page .comments-area {
    --wine: #2a0710;
    --oxblood: #4a0d1b;
    --crimson: #a3122f;
    --crimson-hi: #c8173b;
    --gold: #c9a45a;
    --gold-hi: #ecd29a;
    --gold-lo: #8a6a2f;
    --ivory: #f3e9dc;
    --mute: #bcab9b;
    --lacquer: #0b0708;
    --lacquer-2: #170d0f;
    --line: rgba(201, 164, 90, 0.42);
    --line-soft: rgba(201, 164, 90, 0.2);
    --foil: linear-gradient(100deg, #8a6a2f 0%, #e6c98a 26%, #c9a45a 48%, #f3dfae 64%, #a07c3a 100%);
    --serif: "BBTV Serif", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
    --caps: "BBTV Caps", Cinzel, "Trajan Pro", "Palatino Linotype", Palatino, serif;
    --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14'%3E%3Cpath d='M0 7h60M100 7h60' stroke='%23c9a45a' stroke-width='1'/%3E%3Cpath d='M80 1.5l5.5 5.5-5.5 5.5-5.5-5.5z' fill='none' stroke='%23c9a45a'/%3E%3Cpath d='M80 4.6l2.4 2.4-2.4 2.4-2.4-2.4z' fill='%23c9a45a'/%3E%3Ccircle cx='67' cy='7' r='1.4' fill='%23c9a45a'/%3E%3Ccircle cx='93' cy='7' r='1.4' fill='%23c9a45a'/%3E%3C/svg%3E");
}

#bbtv {
    --room: #120509;
    --drape: 0px;
    --gutter: 16px;
    --tap: 44px;
    color-scheme: dark;
    position: relative;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--room);
    background-image:
        radial-gradient(90% 55% at 50% 42%, rgba(122, 16, 40, 0.55) 0%, rgba(74, 13, 27, 0.35) 42%, transparent 78%),
        radial-gradient(60% 30% at 50% 0%, rgba(201, 164, 90, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #1c060c 0%, var(--room) 55%, #080305 100%);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    color: var(--ivory);
    font: 500 17px/1.45 var(--serif);
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

#bbtv *,
#bbtv *::before,
#bbtv *::after {
    box-sizing: border-box;
}

html.bbtv-noscroll,
html.bbtv-noscroll body {
    overflow: hidden;
}

/* -- resets: what the theme styles on every page ------------------------------------------------------------ */

#bbtv button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    -webkit-appearance: none;
    appearance: none;
    transition: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

#bbtv input {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
}

#bbtv img,
#bbtv video,
#bbtv canvas {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    vertical-align: top;
}

#bbtv img {
    height: auto;
}

#bbtv svg {
    display: block;
    max-width: none;
    margin: 0;
}

#bbtv h1,
#bbtv h2,
#bbtv h3 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    letter-spacing: normal;
    line-height: inherit;
    text-align: inherit;
    text-transform: none;
    text-shadow: none;
}

#bbtv h1::before,
#bbtv h1::after,
#bbtv h2::before,
#bbtv h2::after,
#bbtv h3::before,
#bbtv h3::after {
    content: none;
}

/* Not the member zone's HOME button (.mt-home): it keeps the theme's own look. */
#bbtv a:where(:not(.mt-home)) {
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    text-decoration: none;
}

#bbtv p,
#bbtv ul,
#bbtv ol,
#bbtv li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#bbtv li::before,
#bbtv li::marker {
    content: none;
}

#bbtv :focus:where(:not(.mt-home)) {
    outline: none;
}

#bbtv :focus-visible:where(:not(.mt-home)) {
    outline: 1px solid var(--gold-hi);
    outline-offset: 3px;
}

#bbtv .bbtv-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* -- the velvet drapes (wide windows) ------------------------------------------------------------------------ */

/* Folds of crimson velvet down both sides, held by a gold cord; the marquee and the room keep clear of them. */
@media (min-width: 1100px) {
    #bbtv {
        --drape: clamp(40px, 4.4vw, 76px);
    }

    #bbtv::before,
    #bbtv::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 0;
        width: var(--drape);
        pointer-events: none;
        background:
            linear-gradient(180deg, transparent 61%, var(--gold-lo) 61%, var(--gold-hi) 61.6%, var(--gold) 62.2%, var(--gold-lo) 62.8%, transparent 62.8%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 16%, transparent 78%, rgba(0, 0, 0, 0.75) 100%),
            repeating-linear-gradient(90deg, #2c040e 0, #5c0c1f 7px, #8a1530 12px, #6a0f24 17px, #3a0613 24px, #22030b 28px);
    }

    #bbtv::before {
        left: 0;
        box-shadow: inset -14px 0 22px -10px rgba(0, 0, 0, 0.85), 1px 0 0 var(--line);
    }

    #bbtv::after {
        right: 0;
        box-shadow: inset 14px 0 22px -10px rgba(0, 0, 0, 0.85), -1px 0 0 var(--line);
    }
}

/* -- the marquee: an eyebrow, the logo band, a tagline ----------------------------------------------------------- */

#bbtv .bbtv-marquee {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px calc(var(--drape) + var(--gutter)) 10px;
    text-align: center;
}

#bbtv .bbtv-eyebrow,
#bbtv .bbtv-poster__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font: 500 12.5px/1 var(--caps);
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
}

/* The caps in gold foil (the hairlines either side keep their own background). */
#bbtv .bbtv-eyebrow {
    background: var(--foil);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#bbtv .bbtv-eyebrow::before,
#bbtv .bbtv-eyebrow::after,
#bbtv .bbtv-poster__eyebrow::before,
#bbtv .bbtv-poster__eyebrow::after {
    content: "";
    display: block;
    flex: none;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

#bbtv .bbtv-eyebrow::after,
#bbtv .bbtv-poster__eyebrow::after {
    margin-left: -0.42em;
    background: linear-gradient(270deg, transparent, var(--gold));
}

/* The page's h1: the logo, as drawn (never redrawn or recoloured). 64 px tall on phones, up to 104 px on desktop. */
#bbtv .bbtv-band {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    padding: 6px 0;
}

#bbtv .bbtv-band__logo {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 641px) {
    #bbtv .bbtv-band {
        height: clamp(72px, 7.4vw, 104px);
        padding: 10px 0 6px;
    }
}

/*
 * The member zone's HOME button (.mt-home), the same as on the zone's other pages: martin-theme's members.min.css
 * draws it (pill, border, arrow, sizes); BBTV only places it, at the right of the logo's row (phones: the top right
 * corner of the marquee, above everything). The :where() block is only a stand-in for that look where the theme's
 * stylesheet is absent (the dev harness): no specificity, so the theme's rules always win.
 */
#bbtv .bbtv-head {
    position: relative;
    width: 100%;
}

#bbtv .mt-home {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* The logo keeps clear of it: the same room on both sides, so it stays centred (it shrinks rather than overlaps). */
@media (min-width: 641px) {
    #bbtv .bbtv-head .bbtv-band {
        padding-right: 112px;
        padding-left: 112px;
    }
}

@media (min-width: 960px) {
    #bbtv .bbtv-head .bbtv-band {
        padding-right: 164px;
        padding-left: 164px;
    }
}

#bbtv.is-full .mt-home,
#bbtv.is-fullscreen .mt-home {
    visibility: hidden;
}

:where(#bbtv .mt-home) {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #f2e8ee;
    font: 700 14px/1 "Open Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    letter-spacing: 0.1em;
    text-decoration: none;
}

:where(#bbtv .mt-home svg) {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #e2b26a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 960px) {
    :where(#bbtv .mt-home) {
        gap: 9px;
        height: 54px;
        padding: 0 21px;
        font-size: 21px;
    }

    :where(#bbtv .mt-home svg) {
        width: 24px;
        height: 24px;
    }
}

#bbtv .bbtv-tagline {
    max-width: 36em;
    font: italic 500 clamp(17px, 1.55vw, 21px)/1.3 var(--serif);
    letter-spacing: 0.01em;
    color: rgba(243, 233, 220, 0.86);
    text-wrap: balance;
}

#bbtv .bbtv-tagline::after {
    content: "";
    display: block;
    width: 132px;
    height: 12px;
    margin: 12px auto 0;
    background: var(--ornament) center / contain no-repeat;
}

/* Short windows (a laptop with a small browser window): the screen first, the marquee is the logo alone. */
@media (min-width: 641px) and (max-height: 620px) {
    #bbtv .bbtv-marquee {
        padding-top: 12px;
        padding-bottom: 6px;
    }

    #bbtv .bbtv-eyebrow,
    #bbtv .bbtv-tagline {
        display: none;
    }

    #bbtv .bbtv-band {
        height: 72px;
    }
}

/* -- the room ------------------------------------------------------------------------------------------------ */

/* No z-index on the marquee or the room: the CSS full viewport's fixed screen (z 100005) must not sit inside a
   stacking context, or the theme's sticky header covers it. */

#bbtv .bbtv-room {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 6px calc(var(--drape) + var(--gutter)) 26px;
}

/* -- the set: black lacquer with a gold inlay ----------------------------------------------------------------- */

/* The content width, unless the window is too short for it: then the screen keeps to the window's height. */
#bbtv .bbtv-tv {
    width: min(100%, max(600px, calc((100vh - 190px) * 1.7778 + 44px)));
    width: min(100%, max(600px, calc((100svh - 190px) * 1.7778 + 44px)));
    border-radius: 14px;
    padding: 14px 14px 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.012) 16%, transparent 38%),
        linear-gradient(160deg, #1b1113 0%, var(--lacquer) 55%, #040203 100%);
    box-shadow:
        0 0 0 1px rgba(201, 164, 90, 0.55),
        0 0 0 4px #070405,
        0 0 0 5px rgba(201, 164, 90, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.6),
        0 0 90px -16px rgba(163, 18, 47, 0.5),
        0 44px 80px -30px rgba(0, 0, 0, 0.95);
}

#bbtv .bbtv-bezel {
    padding: 8px;
    border-radius: 9px;
    background: #030102;
    box-shadow:
        inset 0 0 0 1px rgba(201, 164, 90, 0.38),
        inset 0 0 0 3px #030102,
        inset 0 0 0 4px rgba(201, 164, 90, 0.12),
        inset 0 6px 18px rgba(0, 0, 0, 0.9);
}

#bbtv .bbtv-screen {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    background: #000;
    -webkit-user-select: none;
    user-select: none;
}

#bbtv .bbtv-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    transform-origin: 50% 50%;
}

#bbtv .deck {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    background: #000;
}

#bbtv .deck video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 50% 50%;
    pointer-events: none;
}

#bbtv .deck.is-panel video {
    object-fit: cover;
}

#bbtv .bbtv-flash {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

#bbtv .bbtv-static {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    image-rendering: pixelated;
    transition: opacity 0.12s linear;
}

#bbtv .bbtv-static.is-on {
    opacity: 1;
}

#bbtv .bbtv-veil {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(18, 4, 8, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* The non-VIP lock: the only filter ever applied over the picture. */
#bbtv .bbtv-screen.is-locked .bbtv-stage {
    filter: blur(18px);
}

#bbtv .bbtv-screen.is-locked .bbtv-veil {
    opacity: 1;
}

/* -- overlays on the picture (opaque plates) ------------------------------------------------------------------ */

#bbtv .bbtv-bug {
    position: absolute;
    top: 4.2%;
    right: 3.2%;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--caps);
    font-size: clamp(12px, 1.6vw, 19px);
    color: var(--ivory);
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* The small logo as drawn (360 x 98), about 1.4 lines high. */
#bbtv .bbtv-bug__logo {
    display: block;
    width: auto;
    height: 1.45em;
    max-width: none;
}

#bbtv .bbtv-bug__ch {
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: 0.08em;
}

#bbtv[data-state="poster"] .bbtv-bug {
    display: none;
}

#bbtv .bbtv-osd,
#bbtv .bbtv-song,
#bbtv .bbtv-lower {
    position: absolute;
    z-index: 6;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s, transform 0.22s ease, bottom 0.2s ease;
    pointer-events: none;
}

#bbtv .bbtv-osd.is-on,
#bbtv .bbtv-song.is-on,
#bbtv .bbtv-lower.is-on {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease, visibility 0s, transform 0.18s ease, bottom 0.2s ease;
}

/* "CH 02 · LATEX": engraved caps on a lacquer plate with a gold rule. */
#bbtv .bbtv-osd {
    top: 4.2%;
    left: 3.2%;
    padding: 0.42em 0.85em 0.4em;
    border-left: 2px solid var(--gold);
    background: var(--lacquer);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    font-family: var(--caps);
    font-size: clamp(13px, 2.2vw, 26px);
    letter-spacing: 0.14em;
    line-height: 1.1;
    color: var(--ivory);
    white-space: nowrap;
}

#bbtv .bbtv-song {
    right: 3.2%;
    bottom: 5%;
    display: flex;
    align-items: center;
    gap: 0.55em;
    max-width: 46%;
    padding: 0.38em 0.9em 0.42em;
    background: var(--lacquer);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    font: italic 500 clamp(12px, 1.5vw, 18px)/1.25 var(--serif);
    color: var(--ivory);
    transform: translateY(4px);
}

#bbtv .bbtv-song.is-on {
    transform: none;
}

#bbtv .bbtv-song__note {
    color: var(--gold);
    font-style: normal;
}

#bbtv .bbtv-song > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#bbtv .bbtv-lower {
    left: 3.2%;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 62%;
    transform: translateX(-8px);
}

#bbtv .bbtv-lower.is-on {
    transform: none;
    pointer-events: auto;
}

#bbtv .bbtv-lower__tab {
    padding: 0.32em 0.8em 0.26em;
    background: var(--crimson);
    color: var(--ivory);
    font-family: var(--caps);
    font-size: clamp(9px, 1vw, 12px);
    letter-spacing: 0.2em;
}

#bbtv .bbtv-lower__plate {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    max-width: 100%;
    padding: 0.28em 0.8em 0.32em;
    background: var(--ivory);
    color: var(--wine);
    border-bottom: 1px solid var(--gold);
}

#bbtv .bbtv-lower__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--serif);
    font-size: clamp(15px, 2.2vw, 27px);
    font-weight: 600;
    line-height: 1.1;
}

#bbtv .bbtv-lower__year {
    color: var(--crimson);
    font-family: var(--caps);
    font-size: clamp(10px, 1.3vw, 15px);
    letter-spacing: 0.06em;
    font-variant-numeric: lining-nums tabular-nums;
}

#bbtv .bbtv-lower__link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.2em 0.8em;
    background: var(--lacquer);
    color: var(--gold-hi);
    font: italic 500 clamp(12px, 1.35vw, 16px)/1.2 var(--serif);
    text-decoration: none;
}

#bbtv .bbtv-lower__link:hover {
    color: var(--ivory);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* -- before Play: the idle screen and the bill ---------------------------------------------------------------- */

/* Sized by its own width (cqi) so the bill reads the same on every screen. */
#bbtv .bbtv-poster {
    position: absolute;
    inset: 0;
    z-index: 7;
    container-type: inline-size;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background: #050203;
}

#bbtv:not([data-state="poster"]) .bbtv-poster {
    display: none;
}

#bbtv .bbtv-idle {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

#bbtv .bbtv-idle__stills,
#bbtv .bbtv-idle__tear {
    position: absolute;
    inset: 0;
}

/*
 * The idle stills: greyscale and faint (opacity 0.2), the one exception to "no filter" (DESIGN §0): they are the
 * idle screen's backdrop before Play, never the picture. They cross-fade and drift very slightly (a transform).
 */
#bbtv .bbtv-idle__still {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    filter: grayscale(1);
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 1.6s ease, transform 7s linear;
}

#bbtv .bbtv-idle__still.is-on {
    opacity: 0.2;
    transform: scale(1.07);
}

#bbtv .bbtv-idle__tear {
    opacity: 0;
}

#bbtv .bbtv-idle__tear.is-on {
    opacity: 1;
}

#bbtv .bbtv-idle__tear .bbtv-idle__still {
    opacity: 0.3;
    transform: scale(1.07);
    transition: none;
}

#bbtv .bbtv-idle__grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

/* Fine scan lines, drifting down one pair of lines at a time. */
#bbtv .bbtv-idle__lines {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: calc(100% + 8px);
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0 1px, transparent 1px 2px, rgba(236, 210, 154, 0.03) 2px 3px, transparent 3px 4px);
    animation: bbtv-lines 1.6s linear infinite;
}

@keyframes bbtv-lines {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

/* The vertical-hold bar: a soft bright band rolling down the screen every 7.5 s. */
#bbtv .bbtv-idle__hold {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 24%;
    background: linear-gradient(180deg, transparent 0%, rgba(236, 210, 154, 0.05) 35%, rgba(255, 244, 228, 0.1) 50%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    transform: translateY(-110%);
    animation: bbtv-hold 7.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) 1.2s infinite;
}

@keyframes bbtv-hold {
    0% { transform: translateY(-110%); }
    30% { transform: translateY(520%); }
    100% { transform: translateY(520%); }
}

/* Over the stills: the wine of the room, deeper at the edges, so the bill reads. */
#bbtv .bbtv-idle__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 80% at 50% 50%, rgba(42, 7, 16, 0.2) 0%, rgba(20, 4, 8, 0.55) 62%, rgba(5, 2, 3, 0.92) 100%),
        linear-gradient(180deg, rgba(74, 13, 27, 0.18), rgba(5, 2, 3, 0.3));
}

#bbtv .bbtv-idle.is-paused,
#bbtv .bbtv-idle.is-paused * {
    animation-play-state: paused;
}

/* A double gold rule with art-deco corners. */
#bbtv .bbtv-poster__frame {
    position: absolute;
    inset: clamp(10px, 2.6cqi, 26px);
    z-index: 1;
    border: 1px solid var(--line);
    pointer-events: none;
}

#bbtv .bbtv-poster__frame::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid var(--line-soft);
}

#bbtv .bbtv-poster__corner {
    position: absolute;
    top: -1px;
    left: -1px;
    width: clamp(24px, 4.6cqi, 48px);
    height: clamp(24px, 4.6cqi, 48px);
    color: var(--gold);
}

#bbtv .bbtv-poster__corner:nth-child(2) {
    left: auto;
    right: -1px;
    transform: scaleX(-1);
}

#bbtv .bbtv-poster__corner:nth-child(3) {
    top: auto;
    bottom: -1px;
    transform: scaleY(-1);
}

#bbtv .bbtv-poster__corner:nth-child(4) {
    top: auto;
    left: auto;
    right: -1px;
    bottom: -1px;
    transform: scale(-1, -1);
}

#bbtv .bbtv-poster__bill {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2.1cqi, 24px);
    max-width: 88%;
}

#bbtv .bbtv-poster__eyebrow {
    font-size: clamp(10px, 1.25cqi, 14px);
    letter-spacing: 0.5em;
}

#bbtv .bbtv-poster__eyebrow::before,
#bbtv .bbtv-poster__eyebrow::after {
    width: clamp(28px, 5cqi, 64px);
}

#bbtv .bbtv-poster__eyebrow::after {
    margin-left: -0.5em;
}

#bbtv .bbtv-poster__line {
    max-width: 30em;
    margin: 0;
    color: var(--ivory);
    font: italic 500 clamp(15px, 2.3cqi, 27px)/1.3 var(--serif);
    text-wrap: balance;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

/* The programme: four channels, numeral, name and a line each, between gold hairlines. */
#bbtv .bbtv-poster__channels {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    list-style: none;
}

#bbtv .bbtv-poster__channels li {
    display: flex;
}

#bbtv .bbtv-poster__channels li + li {
    border-left: 1px solid var(--line-soft);
}

#bbtv .bbtv-poster__ch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28em;
    width: clamp(110px, 17cqi, 196px);
    min-height: 44px;
    padding: clamp(8px, 1.3cqi, 14px) 8px;
    color: var(--ivory);
    transition: background-color 0.2s ease;
}

#bbtv .bbtv-poster__ch b {
    font: 500 clamp(11px, 1.3cqi, 15px)/1 var(--caps);
    letter-spacing: 0.12em;
    color: var(--gold);
}

#bbtv .bbtv-poster__name {
    font: 500 clamp(11px, 1.35cqi, 15px)/1.1 var(--caps);
    letter-spacing: 0.22em;
    padding-left: 0.22em;
}

#bbtv .bbtv-poster__desc {
    color: var(--mute);
    font: italic 500 clamp(12px, 1.45cqi, 17px)/1.2 var(--serif);
}

#bbtv .bbtv-poster__ch:hover {
    background: rgba(201, 164, 90, 0.08);
}

#bbtv .bbtv-poster__ch:hover .bbtv-poster__name {
    color: var(--gold-hi);
}

/* Play: a gold ring on lacquer, with a slow halo. */
#bbtv .bbtv-poster__play,
#bbtv .bbtv-resume {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(58px, 7.4cqi, 90px);
    height: clamp(58px, 7.4cqi, 90px);
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #3d0a17 0%, #1a0509 55%, var(--lacquer) 100%);
    color: var(--gold-hi);
    box-shadow:
        0 0 0 1px var(--gold),
        0 0 0 5px rgba(11, 7, 8, 0.85),
        0 0 0 6px rgba(201, 164, 90, 0.4),
        0 0 46px rgba(163, 18, 47, 0.55),
        inset 0 1px 0 rgba(236, 210, 154, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

#bbtv .bbtv-poster__play::after {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(201, 164, 90, 0.55);
    border-radius: 50%;
    opacity: 0;
    animation: bbtv-halo 3.4s ease-out 0.8s infinite;
    pointer-events: none;
}

@keyframes bbtv-halo {
    0% { opacity: 0.8; transform: scale(0.86); }
    70% { opacity: 0; transform: scale(1.32); }
    100% { opacity: 0; transform: scale(1.32); }
}

#bbtv .bbtv-poster__play svg,
#bbtv .bbtv-resume svg {
    width: 40%;
    height: 40%;
    margin-left: 7%;
}

#bbtv .bbtv-poster__play:hover,
#bbtv .bbtv-resume:hover {
    transform: scale(1.04);
    color: #fff6e2;
    box-shadow:
        0 0 0 1px var(--gold-hi),
        0 0 0 5px rgba(11, 7, 8, 0.85),
        0 0 0 6px rgba(236, 210, 154, 0.6),
        0 0 60px rgba(200, 23, 59, 0.6),
        inset 0 1px 0 rgba(236, 210, 154, 0.3);
}

/* -- cards: ivory serif on wine and lacquer, a gold hairline and an ornament ---------------------------------- */

/* Above the power-on line (.bbtv-crt, z 9): a card that comes up with the power-on is never crossed by it. */
#bbtv .bbtv-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 10;
    width: min(88%, 500px);
    padding: clamp(26px, 3.4vw, 40px) clamp(20px, 3.4vw, 40px) clamp(20px, 3vw, 34px);
    transform: translate(-50%, -50%);
    border: 1px solid var(--line);
    border-radius: 2px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(74, 13, 27, 0.95) 0%, rgba(42, 7, 16, 0.98) 50%, var(--lacquer) 100%);
    box-shadow: 0 0 0 4px var(--lacquer), 0 0 0 5px var(--line-soft), 0 28px 70px rgba(0, 0, 0, 0.75);
    text-align: center;
}

#bbtv .bbtv-card::before,
#bbtv .bbtv-cast::before {
    content: "";
    display: block;
    width: 120px;
    height: 11px;
    margin: 0 auto clamp(10px, 1.6vw, 16px);
    background: var(--ornament) center / contain no-repeat;
}

#bbtv .bbtv-card[hidden] {
    display: none;
}

#bbtv .bbtv-card__title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(22px, 2.9vw, 34px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: 0.005em;
    color: var(--ivory);
    text-wrap: balance;
}

#bbtv .bbtv-card__text {
    margin: 0.6em 0 0;
    color: var(--mute);
    font-size: clamp(15px, 1.65vw, 18.5px);
    line-height: 1.4;
    text-wrap: pretty;
}

#bbtv .bbtv-card__text[hidden],
#bbtv .bbtv-card__actions[hidden] {
    display: none;
}

#bbtv .bbtv-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(16px, 2.2vw, 24px);
}

#bbtv .bbtv-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(11, 7, 8, 0.6);
    color: var(--ivory);
    font: 500 12.5px/1 var(--caps);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

/* No lift on hover (the theme's button:hover raises 2 px): a pill under a resting pointer would flicker. */
#bbtv .bbtv-pill:hover {
    border-color: var(--gold-hi);
    color: var(--gold-hi);
    transform: none;
}

#bbtv .bbtv-pill--primary {
    border-color: var(--gold-hi);
    background: var(--foil);
    color: #1d0509;
}

#bbtv .bbtv-pill--primary:hover {
    background: linear-gradient(100deg, #a07c3a 0%, #f3dfae 30%, #d9b76c 55%, #fbecc6 72%, #b08a45 100%);
    color: #1d0509;
}

/* -- power-on, resume ----------------------------------------------------------------------------------------- */

#bbtv .bbtv-crt {
    position: absolute;
    inset: 0;
    z-index: 9;
    background: var(--ivory);
    opacity: 0;
    pointer-events: none;
    transform: scale(0, 0);
}

#bbtv .bbtv-crt.is-on {
    animation: bbtv-crt 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes bbtv-crt {
    0% { opacity: 1; transform: scale(0.04, 0.004); }
    28% { opacity: 1; transform: scale(1, 0.006); }
    52% { opacity: 0.85; transform: scale(1, 1); }
    100% { opacity: 0; transform: scale(1, 1); }
}

#bbtv .bbtv-resume {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 8;
    width: clamp(60px, 8vw, 90px);
    height: clamp(60px, 8vw, 90px);
    transform: translate(-50%, -50%);
}

#bbtv .bbtv-resume:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

#bbtv .bbtv-resume[hidden] {
    display: none;
}

/* -- the cabinet's name plate --------------------------------------------------------------------------------- */

#bbtv .bbtv-plate {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 30px;
    padding: 0 6px;
    margin-top: 6px;
}

#bbtv .bbtv-plate__stripes {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#bbtv .bbtv-plate__stripes i {
    display: block;
    width: 64px;
    height: 1px;
    background: var(--gold-lo);
}

#bbtv .bbtv-plate__stripes i:nth-child(2) {
    width: 64px;
    background: var(--gold);
}

#bbtv .bbtv-plate__stripes i:nth-child(3) {
    width: 40px;
    background: var(--gold-lo);
}

#bbtv .bbtv-plate__led {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-radius: 50%;
    background: #3a0610;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 164, 90, 0.3);
}

#bbtv[data-state="on"] .bbtv-plate__led,
#bbtv[data-state="paused"] .bbtv-plate__led {
    background: var(--crimson-hi);
    box-shadow: 0 0 8px 1px rgba(200, 23, 59, 0.8), 0 0 0 1px rgba(201, 164, 90, 0.4);
}

#bbtv[data-state="tuning"] .bbtv-plate__led,
#bbtv[data-state="queued"] .bbtv-plate__led {
    background: var(--crimson-hi);
    animation: bbtv-led 1.1s ease-in-out infinite;
}

@keyframes bbtv-led {
    50% { opacity: 0.25; }
}

#bbtv .bbtv-plate__logo {
    display: block;
    width: auto;
    height: 20px;
    max-width: none;
}

/* -- the remote: black lacquer, a gold hairline ----------------------------------------------------------------- */

#bbtv .bbtv-remote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    width: min(100%, 1160px);
    max-width: min(100%, 980px);
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1a1012 0%, var(--lacquer) 100%);
    box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}

#bbtv .bbtv-remote__group {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* The round pair on the left and the tools on the right share the space evenly, so the channel tray sits at the
   centre of the remote. */
#bbtv .bbtv-remote__main,
#bbtv .bbtv-remote__tools {
    flex: 1 1 0;
    min-width: max-content;
}

/* The rings reach 5 px past each button, so 30 px leaves about 20 px of clear space between them, like the space
   between the volume slider and the cast icon (Martin, 2026-10-31). */
#bbtv .bbtv-remote__main {
    gap: 30px;
}

#bbtv .bbtv-remote__tools {
    justify-content: flex-end;
}

#bbtv .bbtv-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: var(--tap);
    height: var(--tap);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(243, 233, 220, 0.88);
    transition: background-color 0.15s ease, color 0.15s ease;
}

#bbtv .bbtv-btn svg {
    width: 22px;
    height: 22px;
}

#bbtv .bbtv-btn:hover {
    background: rgba(201, 164, 90, 0.1);
    color: var(--gold-hi);
}

#bbtv .bbtv-btn--main {
    width: 52px;
    height: 52px;
    background: radial-gradient(circle at 50% 38%, #3d0a17 0%, #1a0509 60%, var(--lacquer) 100%);
    color: var(--gold-hi);
    box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--lacquer), 0 0 0 5px rgba(201, 164, 90, 0.35), 0 0 22px rgba(163, 18, 47, 0.45);
}

#bbtv .bbtv-btn--main:hover {
    background: radial-gradient(circle at 50% 38%, #521022 0%, #24070d 60%, var(--lacquer) 100%);
    color: #fff6e2;
}

#bbtv .bbtv-btn--main svg {
    width: 22px;
    height: 22px;
}

/* The info button: the play button's twin, and a toggle. Lit (a brighter crimson core, a pale gold ring) while Info is ON,
   so the "now showing" plate follows every cut; unlit while OFF, even as an automatic plate comes by (ui.js: aria-pressed). */
#bbtv .bbtv-btn--main.bbtv-btn--info[aria-pressed="true"] {
    background: radial-gradient(circle at 50% 38%, var(--crimson-hi) 0%, #6e0f25 55%, #2a0710 100%);
    color: #fff6e2;
    box-shadow: 0 0 0 1px var(--gold-hi), 0 0 0 4px var(--lacquer), 0 0 0 5px rgba(236, 210, 154, 0.55), 0 0 26px rgba(200, 23, 59, 0.8);
}

#bbtv .bbtv-btn.bbtv-btn--info:not(.bbtv-btn--main)[aria-pressed="true"] {
    background: radial-gradient(circle at 50% 40%, rgba(200, 23, 59, 0.75) 0%, rgba(74, 13, 27, 0.6) 70%);
    color: #fff6e2;
    box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(200, 23, 59, 0.6);
}

/*
 * The channel keys: four preset buttons set into a recessed tray, like the station keys of a vintage set. Each key
 * is raised lacquer with a lamp; the channel on air is pressed in, wine-red, its lamp lit crimson like the cabinet's
 * LED. The tray (.bbtv-keys) and the keys (.bbtv-key) serve the remote and, compact, the full-screen controls.
 */
#bbtv .bbtv-keys {
    display: flex;
    align-items: stretch;
    gap: 5px;
    padding: 5px;
    border-radius: 12px;
    background: linear-gradient(180deg, #030102 0%, #0a0406 100%);
    box-shadow:
        inset 0 3px 7px rgba(0, 0, 0, 0.95),
        inset 0 0 0 1px rgba(0, 0, 0, 0.9),
        0 0 0 1px var(--line),
        0 0 0 3px #070405,
        0 0 0 4px var(--line-soft),
        0 1px 0 4px rgba(255, 255, 255, 0.03);
}

#bbtv .bbtv-key {
    position: relative;
    display: inline-flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 54px;
    padding: 9px 10px 4px;
    border-radius: 7px;
    background: linear-gradient(180deg, #2e1d20 0%, #1b1012 46%, #110a0b 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 0 rgba(0, 0, 0, 0.55),
        0 0 0 1px #000,
        0 2px 0 #000,
        0 3px 6px rgba(0, 0, 0, 0.7);
    color: var(--ivory);
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

/* The lamp. */
#bbtv .bbtv-key::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    width: 18px;
    height: 3px;
    margin-left: -9px;
    border-radius: 2px;
    background: #2a050c;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

#bbtv .bbtv-key b {
    display: block;
    font: 500 20px/1 var(--caps);
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--ivory);
    transition: color 0.15s ease;
}

#bbtv .bbtv-key__name {
    display: block;
    margin-top: 5px;
    color: var(--mute);
    font: 500 10px/1 var(--caps);
    letter-spacing: 0.14em;
    transition: color 0.15s ease;
}

#bbtv .bbtv-key__short {
    display: none;
}

#bbtv .bbtv-key:hover {
    background: linear-gradient(180deg, #3b2428 0%, #241417 46%, #170c0e 100%);
}

#bbtv .bbtv-key:hover b,
#bbtv .bbtv-key:focus-visible b {
    color: var(--gold-hi);
}

#bbtv .bbtv-key:hover .bbtv-key__name,
#bbtv .bbtv-key:focus-visible .bbtv-key__name {
    color: var(--ivory);
}

#bbtv .bbtv-key:focus-visible {
    outline: 1px solid var(--gold-hi);
    outline-offset: 2px;
}

#bbtv .bbtv-key:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.55), 0 0 0 1px #000, 0 1px 0 #000, 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* On air: pressed in, lit. */
#bbtv .bbtv-key[aria-pressed="true"] {
    transform: translateY(2px);
    background: radial-gradient(120% 95% at 50% 0%, #5c1024 0%, var(--wine) 58%, #160408 100%);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.8),
        inset 0 0 0 1px rgba(201, 164, 90, 0.6),
        0 0 0 1px #000,
        0 0 14px -2px rgba(163, 18, 47, 0.55);
    cursor: default;
}

#bbtv .bbtv-key[aria-pressed="true"]::before {
    background: var(--crimson-hi);
    box-shadow: 0 0 7px 1px rgba(200, 23, 59, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

#bbtv .bbtv-key[aria-pressed="true"] b {
    color: var(--gold-hi);
}

#bbtv .bbtv-key[aria-pressed="true"] .bbtv-key__name {
    color: var(--ivory);
}

/* The compact set in the full-screen controls: the keys as tall as the round buttons. */
#bbtv .bbtv-keys--hud {
    gap: 3px;
    padding: 2px;
    margin: 0 4px;
    border-radius: 10px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}

#bbtv .bbtv-key--hud {
    min-width: 56px;
    height: 40px;
    padding: 7px 8px 2px;
    border-radius: 8px;
}

#bbtv .bbtv-key--hud::before {
    top: 4px;
    width: 14px;
    margin-left: -7px;
    height: 2px;
}

#bbtv .bbtv-key--hud b {
    font-size: 15px;
}

#bbtv .bbtv-key--hud .bbtv-key__name {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: 0.1em;
}

#bbtv .bbtv-key--hud[aria-pressed="true"] {
    transform: translateY(1px);
}

#bbtv .bbtv-vol {
    display: inline-flex;
    align-items: center;
}

#bbtv .bbtv-vol__range {
    width: 92px;
    height: var(--tap);
    margin: 0 6px 0 0;
    background: transparent;
    accent-color: var(--gold);
    cursor: pointer;
}

/* -- watch on your TV (the cast panel: mirroring steps, the viewer's platform first) -------------------------- */

#bbtv .bbtv-cast {
    position: absolute;
    inset: 0;
    z-index: 11;
    overflow-y: auto;
    padding: clamp(16px, 3.4%, 36px) clamp(16px, 6%, 64px);
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(74, 13, 27, 0.9) 0%, rgba(26, 5, 10, 0.97) 55%, rgba(11, 7, 8, 0.98) 100%);
    box-shadow: inset 0 0 0 1px var(--line-soft);
    -webkit-user-select: text;
    user-select: text;
}

#bbtv .bbtv-cast[hidden] {
    display: none;
}

#bbtv .bbtv-cast__close {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border-radius: 50%;
    color: var(--mute);
}

#bbtv .bbtv-cast__close:hover {
    background: rgba(201, 164, 90, 0.1);
    color: var(--gold-hi);
}

#bbtv .bbtv-cast__close svg {
    width: 20px;
    height: 20px;
}

#bbtv .bbtv-cast__title {
    padding: 0 var(--tap);
    font-family: var(--serif);
    font-size: clamp(20px, 2.7vw, 32px);
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

#bbtv .bbtv-cast__lead {
    margin-top: 0.3em;
    color: var(--mute);
    font-style: italic;
    font-size: clamp(14px, 1.6vw, 18px);
    text-align: center;
}

#bbtv .bbtv-cast__steps {
    display: grid;
    gap: 0.5em;
    margin-top: 0.9em;
}

#bbtv .bbtv-cast__item {
    padding: 0.45em 0.8em;
    border-left: 1px solid var(--line);
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.35;
}

#bbtv .bbtv-cast__item b {
    display: block;
    margin-bottom: 0.15em;
    color: var(--gold);
    font: 500 clamp(10px, 1.1vw, 12.5px)/1.3 var(--caps);
    letter-spacing: 0.16em;
}

#bbtv .bbtv-cast__item span {
    color: var(--mute);
}

#bbtv .bbtv-cast__item.is-yours {
    border-left: 2px solid var(--gold);
    background: rgba(163, 18, 47, 0.16);
}

#bbtv .bbtv-cast__item.is-yours span {
    color: var(--ivory);
}

#bbtv .bbtv-cast__end {
    margin-top: 0.9em;
    color: var(--gold);
    font-style: italic;
    font-size: clamp(14px, 1.6vw, 17px);
    text-align: center;
}

/* -- full screen ---------------------------------------------------------------------------------------------- */

/* A click on the picture focuses the player (tabindex -1) for the keys; no ring for that. */
#bbtv .bbtv-screen:focus {
    outline: none;
}

#bbtv .bbtv-hud {
    display: none;
}

#bbtv .bbtv-screen:fullscreen {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
}

#bbtv .bbtv-screen:-webkit-full-screen {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* The CSS full-viewport mode (iPhone, and phones in landscape): above the theme's sticky menu (z 100001) and the
   admin bar. */
#bbtv.is-full .bbtv-screen {
    position: fixed;
    inset: 0;
    z-index: 100005;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
}

#bbtv.is-fullscreen .bbtv-hud {
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: var(--lacquer);
    box-shadow: 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

#bbtv.is-fullscreen .bbtv-hud.is-on,
#bbtv.is-fullscreen .bbtv-hud:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

#bbtv.is-fullscreen .bbtv-screen {
    cursor: none;
}

#bbtv.is-fullscreen .bbtv-hud.is-on ~ *,
#bbtv.is-fullscreen .bbtv-screen:has(.bbtv-hud.is-on) {
    cursor: default;
}

/* Landscape full screen: while the control pill shows (its bottom + 6 px + a button + 6 px), the lower third and
   the song chip move up above it. */
#bbtv.is-fullscreen .bbtv-screen:has(.bbtv-hud.is-on) .bbtv-lower,
#bbtv.is-fullscreen .bbtv-screen:has(.bbtv-hud.is-on) .bbtv-song {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--tap) + 24px);
}

/* Narrow full screen (a phone held upright): the control panel takes two rows, the channel keys across the top. */
@media (max-width: 560px) {
    #bbtv.is-fullscreen .bbtv-hud {
        flex-wrap: wrap;
        justify-content: space-between;
        width: calc(100% - 2 * var(--gutter));
        max-width: 420px;
        border-radius: 16px;
        padding: 8px;
        row-gap: 8px;
    }

    #bbtv.is-fullscreen .bbtv-keys--hud {
        order: -1;
        flex: 1 1 100%;
        margin: 0;
    }
}

/*
 * Portrait full screen (the iPhone fallback, or a phone held upright):the 16:9 picture is a band across the middle
 * (56.25vw high), with the pill in the black below it. The bug and the OSD sit at the picture's top corners, the
 * lower third and the song chip just under the picture, clear of the pill.
 */
@media (orientation: portrait) {
    #bbtv.is-fullscreen .bbtv-bug,
    #bbtv.is-fullscreen .bbtv-osd {
        top: calc(50% - 28.125vw + 2.4vw);
    }

    #bbtv.is-fullscreen .bbtv-lower,
    #bbtv.is-fullscreen .bbtv-song {
        top: calc(50% + 28.125vw + 12px);
        bottom: auto;
    }

    #bbtv.is-fullscreen .bbtv-lower {
        max-width: 58%;
    }

    #bbtv.is-fullscreen .bbtv-song {
        max-width: 34%;
    }

    #bbtv.is-fullscreen .bbtv-screen:has(.bbtv-hud.is-on) .bbtv-lower,
    #bbtv.is-fullscreen .bbtv-screen:has(.bbtv-hud.is-on) .bbtv-song {
        bottom: auto;
    }
}

/* -- debug ---------------------------------------------------------------------------------------------------- */

#bbtv .bbtv-debug {
    position: fixed;
    right: 8px;
    bottom: 8px;
    z-index: 100010;
    max-width: min(560px, calc(100vw - 16px));
    max-height: 45vh;
    margin: 0;
    padding: 8px 10px;
    overflow: auto;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.82);
    color: #9effa8;
    font: 11px/1.35 ui-monospace, Consolas, Menlo, monospace;
    white-space: pre;
    pointer-events: none;
}

/* -- the H.265 note (under the remote, never over the picture) ------------------------------------------------ */

#bbtv .bbtv-hevc {
    position: relative;
    width: min(100%, 980px);
    padding: 14px calc(var(--tap) + 8px) 14px 20px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--lacquer-2), var(--lacquer));
    box-shadow: 0 0 0 1px var(--line-soft);
    color: var(--mute);
    font-size: 16px;
    line-height: 1.45;
}

#bbtv .bbtv-hevc[hidden],
#bbtv .bbtv-hevc [hidden] {
    display: none;
}

#bbtv .bbtv-hevc p {
    margin: 0;
}

#bbtv .bbtv-hevc b {
    color: var(--ivory);
    font-weight: 600;
}

#bbtv .bbtv-hevc__links {
    margin-top: 10px !important;
}

#bbtv .bbtv-hevc__links .bbtv-pill {
    min-height: 38px;
    padding: 0 16px;
    font-size: 11px;
    white-space: normal;
}

#bbtv .bbtv-hevc__close {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    width: var(--tap);
    height: var(--tap);
    border-radius: 50%;
    color: var(--mute);
}

#bbtv .bbtv-hevc__close:hover {
    background: rgba(201, 164, 90, 0.1);
    color: var(--gold-hi);
}

#bbtv .bbtv-hevc__close svg {
    width: 18px;
    height: 18px;
}

#bbtv .bbtv-noscript {
    margin: 0;
    color: var(--mute);
    text-align: center;
}

/* -- phones --------------------------------------------------------------------------------------------------- */

/* Phones: the block bleeds to the screen's edges (out of the theme's container padding), and the TV is the bare
   16:9 screen, edge to edge, right under the marquee. No drapes. */
/* The remote in two rows (tablets and phones): the channel tray across the top, the round pair and the tools centred
   under it (phones spread the tools across the row, below). */
@media (max-width: 900px) {
    #bbtv .bbtv-remote {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 40px;
        border-radius: 20px;
        padding: 12px;
    }

    #bbtv .bbtv-remote__main,
    #bbtv .bbtv-remote__tools {
        flex: none;
    }

    #bbtv .bbtv-remote__channels {
        order: -1;
        flex: 1 1 100%;
    }

    #bbtv .bbtv-remote__channels .bbtv-key {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    #bbtv {
        width: 100vw;
        max-width: 100vw;
        margin-right: calc(50% - 50vw);
        margin-left: calc(50% - 50vw);
        border-radius: 0;
        box-shadow: none;
    }

    #bbtv .bbtv-marquee {
        padding: 14px var(--gutter) 8px;
    }

    /* The HOME button in the marquee's top right corner (the logo's row is too narrow for both), above the eyebrow. */
    #bbtv .bbtv-head {
        position: static;
    }

    #bbtv .mt-home {
        top: 12px;
        right: var(--gutter);
        transform: none;
    }

    #bbtv .bbtv-marquee {
        padding-top: 58px;
    }

    #bbtv .bbtv-eyebrow {
        font-size: 10.5px;
        gap: 12px;
    }

    #bbtv .bbtv-eyebrow::before,
    #bbtv .bbtv-eyebrow::after {
        width: 30px;
    }

    #bbtv .bbtv-tagline {
        font-size: 15.5px;
    }

    #bbtv .bbtv-tagline::after {
        width: 100px;
        height: 9px;
        margin-top: 8px;
    }

    #bbtv .bbtv-room {
        gap: 14px;
        padding: 0 0 18px;
    }

    #bbtv .bbtv-tv,
    #bbtv .bbtv-bezel,
    #bbtv .bbtv-screen {
        width: 100%;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    #bbtv .bbtv-tv {
        background: #000;
        box-shadow: 0 -1px 0 var(--line-soft), 0 1px 0 var(--line-soft);
    }

    #bbtv .bbtv-plate {
        display: none;
    }

    #bbtv .bbtv-poster__channels {
        display: none;
    }

    #bbtv .bbtv-card {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px 14px;
        border: 0;
        border-radius: 0;
        box-shadow: inset 0 0 0 1px var(--line-soft);
    }

    #bbtv .bbtv-card::before,
    #bbtv .bbtv-cast::before {
        width: 90px;
        height: 9px;
        margin-bottom: 8px;
    }

    #bbtv .bbtv-card__actions .bbtv-pill {
        min-height: 40px;
        padding: 0 16px;
        font-size: 11.5px;
    }

    #bbtv .bbtv-remote {
        flex-wrap: wrap;
        justify-content: center;
        width: calc(100% - 2 * var(--gutter));
        border-radius: 18px;
        padding: 10px;
    }

    #bbtv .bbtv-cast {
        padding: 10px 12px;
    }

    #bbtv .bbtv-cast::before {
        display: none;
    }

    #bbtv .bbtv-hevc {
        width: calc(100% - 2 * var(--gutter));
    }

    #bbtv .bbtv-cast__lead {
        display: none;
    }

    #bbtv .bbtv-remote__channels .bbtv-key {
        padding-right: 4px;
        padding-left: 4px;
    }

    #bbtv .bbtv-remote__channels .bbtv-key__name {
        letter-spacing: 0.08em;
    }

    #bbtv .bbtv-remote__tools {
        flex: 1 1 0;
        justify-content: space-around;
    }
}

/* The narrowest phones: a channel with a short name goes by it (none since CH 4 is BTS). */
@media (max-width: 480px) {
    #bbtv .bbtv-key__long {
        display: none;
    }

    #bbtv .bbtv-key__short {
        display: inline;
    }
}

@media (max-width: 360px) {
    #bbtv .bbtv-poster__line {
        display: none;
    }

    #bbtv .bbtv-card__text {
        font-size: 14px;
    }
}

@media (pointer: coarse) {
    #bbtv .bbtv-vol__range {
        display: none;
    }
}

/* -- reduced motion: no power-on, no pulse, no slides, a still idle screen ------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    #bbtv .bbtv-crt,
    #bbtv .bbtv-crt.is-on {
        display: none;
        animation: none;
    }

    #bbtv[data-state="tuning"] .bbtv-plate__led,
    #bbtv[data-state="queued"] .bbtv-plate__led {
        animation: none;
    }

    #bbtv .bbtv-osd,
    #bbtv .bbtv-song,
    #bbtv .bbtv-lower,
    #bbtv .bbtv-hud {
        transform: none !important;
    }

    #bbtv .bbtv-poster__play,
    #bbtv .bbtv-poster__play:hover,
    #bbtv .bbtv-resume:hover {
        transition: none;
    }

    #bbtv .bbtv-poster__play,
    #bbtv .bbtv-poster__play:hover {
        transform: none;
    }

    #bbtv .bbtv-resume:hover {
        transform: translate(-50%, -50%);
    }

    #bbtv .bbtv-poster__play::after,
    #bbtv .bbtv-idle__hold,
    #bbtv .bbtv-idle__tear {
        display: none;
        animation: none;
    }

    #bbtv .bbtv-idle__lines {
        animation: none;
    }

    #bbtv .bbtv-idle__still,
    #bbtv .bbtv-idle__still.is-on {
        transform: none;
        transition: none;
    }
}

/* == the page around the TV (body.bbtv-page): the explanation and the comments' wrapper ======================== */

body.bbtv-page {
    background-color: #0c0507;
}

body.bbtv-page .bbtv-article .inside-article {
    position: relative;
    padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 60px) clamp(28px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: 2px;
    background:
        radial-gradient(110% 55% at 50% 0%, rgba(74, 13, 27, 0.7) 0%, rgba(42, 7, 16, 0.4) 45%, transparent 80%),
        linear-gradient(180deg, #1a0509 0%, #0d0607 100%);
    box-shadow: inset 0 0 0 4px #0d0607, inset 0 0 0 5px var(--line-soft);
    color: #e7dacb;
}

body.bbtv-page .bbtv-article .entry-content {
    max-width: 68ch;
    margin: 0 auto;
    color: #e7dacb;
    font: 500 19.5px/1.62 var(--serif);
    letter-spacing: 0.005em;
}

body.bbtv-page .bbtv-article .entry-content > :first-child {
    margin-top: 0;
}

body.bbtv-page .bbtv-article .entry-content h2 {
    margin: 1.7em 0 0.75em;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ivory);
    font: 600 clamp(27px, 3vw, 35px)/1.15 var(--serif);
    letter-spacing: 0.01em;
    text-align: center;
    text-transform: none;
    text-shadow: none;
}

body.bbtv-page .bbtv-article .entry-content h2::before {
    content: none;
}

body.bbtv-page .bbtv-article .entry-content h2::after {
    content: "";
    display: block;
    width: 132px;
    height: 12px;
    margin: 14px auto 0;
    border: 0;
    background: var(--ornament) center / contain no-repeat;
}

body.bbtv-page .bbtv-article .entry-content h3 {
    margin: 1.6em 0 0.6em;
    color: var(--gold);
    font: 500 14px/1.3 var(--caps);
    letter-spacing: 0.24em;
    text-align: center;
    text-transform: uppercase;
}

body.bbtv-page .bbtv-article .entry-content h3::after {
    content: none;
}

body.bbtv-page .bbtv-article .entry-content p {
    margin: 0 0 1.1em;
}

body.bbtv-page .bbtv-article .entry-content strong,
body.bbtv-page .bbtv-article .entry-content b {
    color: var(--ivory);
    font-weight: 600;
}

body.bbtv-page .bbtv-article .entry-content a {
    color: var(--gold-hi);
    text-decoration: underline;
    text-decoration-color: rgba(201, 164, 90, 0.5);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

body.bbtv-page .bbtv-article .entry-content a:hover {
    color: var(--ivory);
    text-decoration-color: var(--gold-hi);
}

body.bbtv-page .bbtv-article .entry-content ul {
    margin: 0 0 1.2em;
    padding: 0 0 0 1.5em;
    list-style: none;
}

body.bbtv-page .bbtv-article .entry-content ul > li {
    position: relative;
    margin: 0 0 0.5em;
    padding: 0;
}

/* Gold lozenges for the list markers. */
body.bbtv-page .bbtv-article .entry-content ul > li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: -1.15em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

body.bbtv-page .bbtv-article .entry-content ol {
    margin: 0 0 1.2em;
    padding: 0 0 0 1.5em;
}

body.bbtv-page .bbtv-article .entry-content ol > li::marker {
    color: var(--gold);
    font-family: var(--caps);
}

/* The comments: only the wrapper (its background, a gold hairline and an ornament); the comments engine keeps its
   own look (its .mc-* classes are never styled here). */
body.bbtv-page .comments-area {
    position: relative;
    margin-top: 24px;
    padding: clamp(30px, 4vw, 48px) clamp(16px, 4vw, 48px) clamp(20px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: linear-gradient(180deg, #170508 0%, #0d0607 100%);
    box-shadow: inset 0 0 0 4px #0d0607, inset 0 0 0 5px var(--line-soft);
}

body.bbtv-page .comments-area::before {
    content: "";
    display: block;
    width: 132px;
    height: 12px;
    margin: 0 auto clamp(14px, 2vw, 22px);
    background: var(--ornament) center / contain no-repeat;
}
