/* Handset catalogue: cover-tinted masthead, landscape feature and white shelf.
   Deliberately separate from the Windows theatre and the player episode drawer. */
#catalogMobileAtmosphere { display:none }
@media (max-width:680px) {
    .catalog-cinema:not(.episode-picker) {
        --cinema-bg:#fff; --cinema-text:#242629; --cinema-muted:#69717a; --cinema-accent:#a34f32;
        --mobile-accent:#a34f32; color-scheme:light; color:#242629;
        background:#fff; position:relative; isolation:isolate;
    }
    .catalog-cinema:not(.episode-picker) #catalogMobileAtmosphere {
        display:block; position:absolute; inset:0 0 auto; height:calc(178px + (100vw - 32px)*.5625);
        max-height:570px; overflow:hidden; pointer-events:none; z-index:-1; background:#4c4239;
        mask-image:linear-gradient(#000 60%,transparent 100%);
    }
    #catalogMobileAtmosphere img { position:absolute; inset:-32px; width:calc(100% + 64px); height:calc(100% + 64px); object-fit:cover; filter:blur(26px) brightness(.32) saturate(.7); opacity:.88 }
    .catalog-cinema:not(.episode-picker):has(#discoveryLive:not([hidden])) #catalogMobileAtmosphere { display:none }
    .catalog-cinema:not(.episode-picker) .catalog-browser {
        --d-bg:#fff; --d-soft:#f5f6f7; --d-border:#e5e7eb; --d-muted:#69717a; --d-text:#242629; --d-accent:#a34f32;
    }
    .catalog-cinema:not(.episode-picker) .site-nav-catalog {
        background:transparent; border:0; backdrop-filter:none; gap:14px; height:76px; min-height:76px;
        padding:12px 16px;
    }
    .catalog-cinema:not(.episode-picker) .site-nav .catalog-search {
        background:#ffffff30; border:1px solid #ffffff12; height:46px; padding-left:19px;
        box-shadow:none; backdrop-filter:blur(20px);
    }
    .catalog-cinema:not(.episode-picker) .catalog-search:focus-within { background:#ffffff38; border-color:#ffffff80 }
    .catalog-cinema:not(.episode-picker) .catalog-search input { color:#fff; caret-color:#fff; font-size:17px }
    .catalog-cinema:not(.episode-picker) .catalog-search input::placeholder { color:#f4f1ee }
    .catalog-cinema:not(.episode-picker) .catalog-search button { color:#fff }
    .catalog-cinema:not(.episode-picker) .catalog-channel-bar {
        background:transparent; border:0; height:62px; top:76px; margin-inline:-16px; padding-inline:16px;
        backdrop-filter:none;
    }
    .catalog-cinema:not(.episode-picker) .catalog-channels { gap:3px }
    .catalog-cinema:not(.episode-picker) .catalog-channels button { color:#f0ece8; font-size:17px; padding-inline:4px }
    .catalog-cinema:not(.episode-picker) .catalog-channels button[aria-pressed=true] { color:#fff; font-size:23px; font-weight:700 }
    .catalog-cinema:not(.episode-picker) .catalog-channels button[aria-pressed=true]::after { content:none }
    .catalog-cinema.catalog-scrolled:not(.episode-picker) :is(.site-nav-catalog,.catalog-channel-bar) { background:#302d29f5; backdrop-filter:blur(18px) }
    .catalog-cinema:not(.episode-picker):has(#discoveryLive:not([hidden])) .site-nav-catalog { background:#fffffff5; backdrop-filter:blur(18px) }
    .catalog-cinema:not(.episode-picker):has(#discoveryLive:not([hidden])) .catalog-search { background:#f2f3f5; border-color:#e9ebee }
    .catalog-cinema:not(.episode-picker):has(#discoveryLive:not([hidden])) .catalog-search :is(input,button) { color:#36393d; caret-color:#36393d }
    .catalog-cinema:not(.episode-picker):has(#discoveryLive:not([hidden])) .catalog-search input::placeholder { color:#69717a }

    /* The image belongs to the rounded feature only on handsets. Five existing
       preview buttons become dots; they retain names, focus and selected state. */
    .catalog-cinema:not(.episode-picker) .catalog-spotlight {
        --stage:0px; min-height:0; aspect-ratio:16/9; margin:10px 0 0;
        border-radius:17px; overflow:hidden; background:#443d38;
    }
    .catalog-cinema:not(.episode-picker) .catalog-spotlight .catalog-hero { position:absolute; inset:0; min-height:0; height:100%; width:100% }
    .catalog-cinema:not(.episode-picker) .catalog-spotlight > .catalog-hero-image {
        mask-image:none; -webkit-mask-image:none; opacity:1;
    }
    .catalog-cinema:not(.episode-picker) .catalog-spotlight > .catalog-hero-image img { object-position:center 32% }
    .catalog-cinema:not(.episode-picker) .catalog-spotlight::before {
        background:linear-gradient(0deg,#101411ed 0,#101411a3 26%,#1014111a 65%,#1014110a 100%);
    }
    .catalog-cinema:not(.episode-picker) .catalog-hero-copy {
        min-height:0; height:100%; max-width:100%; padding:20px 18px 57px; justify-content:flex-end; gap:0;
    }
    .catalog-cinema:not(.episode-picker) .catalog-hero h1 {
        margin:0; padding:0; font-size:clamp(20px,5.6vw,28px); font-weight:600; line-height:1.3;
        -webkit-line-clamp:2; color:#fff; text-shadow:0 1px 8px #0006;
    }
    .catalog-cinema:not(.episode-picker) .catalog-hero :is(.catalog-eyebrow,.hero-tagline,.hero-facts,.hero-browse) { display:none }
    .catalog-cinema:not(.episode-picker) .catalog-hero .catalog-primary {
        position:absolute; left:12px; right:auto; bottom:5px; width:108px; height:44px; margin:0; min-height:44px; padding:0 6px;
        display:flex; align-items:center; justify-content:flex-start; gap:8px; border:0; border-radius:8px; background:transparent; color:#fff;
        font-size:15px!important; font-weight:400; box-shadow:none;
    }
    .catalog-cinema:not(.episode-picker) .catalog-hero .catalog-primary svg { color:#fff; width:19px; height:19px; margin-left:0 }
    .catalog-cinema:not(.episode-picker) .catalog-hero .catalog-primary:is(:hover,:focus-visible) { background:#ffffff20; outline:2px solid #fff; outline-offset:0 }
    .catalog-cinema:not(.episode-picker) .catalog-spotlight-grid {
        position:absolute; right:6px; top:auto; bottom:5px; display:flex; flex-direction:row;
        width:auto; height:44px; margin:0; padding:0; gap:0; overflow:visible;
        border-radius:0; background:transparent; backdrop-filter:none;
    }
    .catalog-cinema:not(.episode-picker) .catalog-spotlight-film { flex:0 0 24px; width:24px; min-width:0 }
    .catalog-cinema:not(.episode-picker) .programme-choice {
        display:grid; grid-template:1fr / 1fr; place-items:center; width:24px; height:44px; min-height:44px; padding:0;
        border:0; border-radius:6px; background:transparent;
    }
    .catalog-cinema:not(.episode-picker) .programme-choice > * { display:none }
    .catalog-cinema:not(.episode-picker) .programme-choice::before {
        content:''; width:6px; height:6px; border-radius:5px; background:#ffffff80;
    }
    .catalog-cinema:not(.episode-picker) .programme-choice[aria-pressed=true]::before { width:8px; height:8px; background:#fff }
    .catalog-cinema:not(.episode-picker) .programme-choice::after { content:none }
    .catalog-cinema:not(.episode-picker) .programme-choice:focus-visible { outline:2px solid white; outline-offset:-2px }

    .catalog-cinema:not(.episode-picker) .programme-heading { margin:4px 0; min-height:30px; justify-content:flex-end }
    .catalog-cinema:not(.episode-picker) .programme-heading h2 { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
    .catalog-cinema:not(.episode-picker) #discoveryLive { margin-top:12px }
    .catalog-cinema:not(.episode-picker) .catalog-results .catalog-section-title { margin-top:12px }
    .catalog-cinema:not(.episode-picker) .catalog-section-title h2 { color:#242629; font-size:20px; font-weight:700; letter-spacing:-.02em }
    .catalog-cinema:not(.episode-picker) .catalog-refresh { color:#656b73; min-height:30px; padding:3px 0 3px 12px }
    .catalog-cinema:not(.episode-picker) .catalog-grid { gap:19px 10px }
    .catalog-cinema:not(.episode-picker) .catalog-grid .catalog-film-poster,
    .catalog-cinema:not(.episode-picker) .catalog-grid .catalog-film-poster[data-poster-shape] {
        aspect-ratio:16/9; height:auto; border:0; border-radius:10px; margin-bottom:8px; background:#f1f2f4;
    }
    .catalog-cinema:not(.episode-picker) .catalog-grid .catalog-film-poster img { object-fit:cover; object-position:center 28% }
    .catalog-cinema:not(.episode-picker) .catalog-film:not(.catalog-spotlight-film) .catalog-title { color:#202124; font-size:17px; font-weight:400; line-height:1.45; padding:0; min-height:25px; -webkit-line-clamp:1 }
    .catalog-cinema:not(.episode-picker) .catalog-film > p { color:#6a6d72; font-size:14px; padding:0; margin-top:3px; line-height:1.45; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
    .catalog-cinema:not(.episode-picker) .discovery-poster-fallback { background:linear-gradient(135deg,#eee9e4,#f5f6f8); color:#68717b }
    .catalog-cinema:not(.episode-picker) .discovery-poster-fallback strong { font-size:13px }
    .catalog-cinema:not(.episode-picker) .discovery-poster-fallback small { color:#747b83; font-size:10px }
    .catalog-cinema:not(.episode-picker) .catalog-skeleton { aspect-ratio:16/9; background:linear-gradient(110deg,#f1f2f4,#e9ebee,#f1f2f4) }
    .catalog-cinema:not(.episode-picker) :is(.catalog-search-notes,.home-footer) { border-color:#e8e9ec }
    .catalog-cinema:not(.episode-picker) :is(.catalog-search-notes summary,.catalog-back,.catalog-query-note,.home-footer,.home-footer a) { color:#68717b }
    .catalog-cinema:not(.episode-picker) :is(.catalog-query-note button,.catalog-feed-more button) { color:#8b4229; border-color:#e8d7cd; background:#faf5f1 }
    .catalog-cinema:not(.episode-picker) .catalog-query-note a { color:#8b4229 }
    .catalog-cinema:not(.episode-picker) .catalog-empty { background:#f7f8f9; color:#68717b; border-color:#e2e5e9 }
    .catalog-cinema:not(.episode-picker) .catalog-mobile-nav { height:calc(72px + env(safe-area-inset-bottom)); background:#fffffff5; border-color:#eceef0; backdrop-filter:blur(16px) }
    .catalog-cinema:not(.episode-picker) .catalog-mobile-nav :is(button,a) { color:#595b5f; font-size:12px; gap:5px }
    .catalog-cinema:not(.episode-picker) .catalog-mobile-nav svg { width:27px; height:27px; stroke-width:1.7 }
    .catalog-cinema:not(.episode-picker) .catalog-mobile-nav [aria-current=page] { color:#141516; font-weight:600 }
    .catalog-cinema:not(.episode-picker) .catalog-mobile-nav [aria-current=page] svg { fill:#14151615; stroke-width:2.2 }

    /* Keep all first-party sheets coherent with the light shelf. The dedicated
       player picker is explicitly excluded, including in landscape playback. */
    .catalog-cinema:not(.episode-picker) :is(.catalog-detail,.room-entry-dialog,.history-dialog,.account-dialog) {
        background:#fff; color:#242629; border-color:#e7e9ec; box-shadow:0 18px 60px #17202b22;
    }
    .catalog-cinema:not(.episode-picker) dialog::backdrop { background:#171b2580; backdrop-filter:blur(5px) }
    .catalog-cinema:not(.episode-picker) :is(.catalog-detail,.room-entry-dialog,.history-dialog,.account-dialog) :is(h1,h2,h3,label) { color:#242629 }
    .catalog-cinema:not(.episode-picker) :is(.catalog-detail,.room-entry-dialog,.history-dialog,.account-dialog) :is(p,small,summary),
    .catalog-cinema:not(.episode-picker) #catalogDetailFacts { color:#68717b }
    .catalog-cinema:not(.episode-picker) :is(.catalog-detail,.room-entry-dialog,.history-dialog,.account-dialog) :is(input:not([type=checkbox]),select) {
        background:#f7f8fa; border-color:#dfe3e8; color:#242629;
    }
    .catalog-cinema:not(.episode-picker) :is(.catalog-detail,.room-entry-dialog,.history-dialog,.account-dialog) button,
    .catalog-cinema:not(.episode-picker) .catalog-detail :is(.discovery-episode,#discoveryDetailClose,#discoveryEpisodeMore) {
        background:#f5f6f8; border-color:#dfe3e8; color:#424b57;
    }
    .catalog-cinema:not(.episode-picker) .catalog-source-choices { border-color:#e7e9ec }
    .catalog-cinema:not(.episode-picker) .catalog-source-choices button[aria-pressed=true],
    .catalog-cinema:not(.episode-picker) .catalog-detail .discovery-episode[aria-current=true] { background:#faf1eb; border-color:#d9ac94; color:#8b4229 }
    .catalog-cinema:not(.episode-picker) .catalog-detail::before { background:#dfe3e8 }
    .catalog-cinema:not(.episode-picker) :is(.account-dialog a,#discoveryDetailOriginal) { color:#944727 }
    .catalog-cinema:not(.episode-picker) :is(.account-import,.account-avatar) { background:#f7f4f1; color:#8b4229 }
    .catalog-cinema:not(.episode-picker) .account-dialog details { border-color:#e6e9ed }
    .catalog-cinema:not(.episode-picker) .account-dialog .account-primary,
    .catalog-cinema:not(.episode-picker) .room-entry-dialog #joinRoomBtn { background:#a34f32; color:#fff; border-color:#a34f32 }
    .catalog-cinema:not(.episode-picker) #accountMessage { color:#a13b4d }
    .catalog-cinema:not(.episode-picker) .account-dialog .account-text-button,
    .catalog-cinema:not(.episode-picker) .catalog-detail #catalogFindOtherSources { border:0; background:none; color:#944727 }
    .catalog-cinema:not(.episode-picker) .account-dialog .account-danger { color:#a13b4d; background:#fff3f5; border-color:#eccbd1 }
    .catalog-cinema:not(.episode-picker) .history-heading h2 { color:#242629 }
    .catalog-cinema:not(.episode-picker) :is(.history-heading button,.history-card>button) { background:#f5f6f8; border-color:#dfe3e8; color:#424b57 }
    .catalog-cinema:not(.episode-picker) .history-card small { color:#68717b }
    .catalog-cinema:not(.episode-picker) .history-cover { background:#f0f2f4 }
}
