:root {
    color-scheme: dark;
    --px-paper: #0b1410;
    --px-surface: #14241c;
    --px-raised: #182b22;
    --px-ink: #f5f4ed;
    --px-muted: #a9b9ad;
    --px-accent: #8cddb0;
    --px-orange: #ffad72;
    --px-action-ink: #251509;
    --px-line: #34483c;
    --px-head: #101d16;
    --px-radius: 12px;
    --px-font: "Leelawadee UI", Tahoma, "Noto Sans Thai", system-ui, sans-serif;
    scrollbar-color: #506658 var(--px-paper);
}
:root[data-px-theme="light"] {
    color-scheme: light;
    --px-paper: #f4f6ef;
    --px-surface: #fffefa;
    --px-raised: #edf3e9;
    --px-ink: #1a2b22;
    --px-muted: #4e6457;
    --px-accent: #155c3a;
    --px-orange: #ed995d;
    --px-line: #bdcdc1;
    --px-head: #fbfcf7;
    scrollbar-color: #7b9884 var(--px-paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; background: var(--px-paper); color: var(--px-ink); font: 1rem/1.7 var(--px-font); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
:focus-visible { outline: 2px solid var(--px-accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 3.15rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.8rem); letter-spacing: -.018em; }
h3 { font-size: 1.05rem; }
ul, ol { margin: 0; }
::selection { background: var(--px-accent); color: var(--px-paper); }
.px-width { width: min(82rem, calc(100% - 6rem)); margin-inline: auto; }
.px-section { margin-block: 2.7rem; min-width: 0; }
.px-section-heading { display: flex; justify-content: space-between; gap: .75rem 1.5rem; align-items: baseline; margin-bottom: 1.1rem; }
.px-section-heading > p { color: var(--px-muted); }
.px-sr, .px-skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.px-skip:focus { position: fixed; top: .8rem; left: 1rem; z-index: 20; color: var(--px-ink); background: var(--px-surface); padding: .6rem 1rem; }
.px-button, .px-text-link, .px-icon-button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 700; }
.px-button {
    min-height: 2.75rem;
    padding: .5rem 1.14rem;
    background: var(--px-orange);
    color: var(--px-action-ink);
    border: 1px solid transparent;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.px-button:hover { background: #ffc294; }
.px-button svg, .px-text-link svg, .px-icon-button svg { width: 1.16rem; height: 1.16rem; }
.px-button-outline { background: transparent; color: var(--px-ink); border-color: var(--px-line); }
.px-button-outline:hover { background: var(--px-raised); color: var(--px-accent); border-color: var(--px-accent); }
.px-text-link { color: var(--px-accent); justify-content: flex-start; }
.px-text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.px-action-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.px-icon-button { flex: 0 0 auto; width: 2.65rem; height: 2.65rem; border: 1px solid var(--px-line); border-radius: 50%; background: transparent; }
.px-icon-button:hover { color: var(--px-accent); border-color: var(--px-accent); }

/* Shared header, navigation and search */
.px-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--px-line); background: var(--px-head); }
.px-topbar { display: grid; align-items: center; grid-template-columns: auto 1fr minmax(10rem,17rem) auto; min-height: 4.35rem; gap: 1.5rem; }
.px-brand { display: inline-flex; gap: .55rem; align-items: center; font: 800 1.65rem/1.05 "Segoe UI", var(--px-font); letter-spacing: -.075em; white-space: nowrap; width: fit-content; }
.px-brand-symbol { display: inline-grid; place-items: center; width: 2rem; height: 1.6rem; border-radius: 4px; background: var(--px-accent); color: var(--px-head); font-size: .8rem; letter-spacing: 0; }
:root[data-px-theme="light"] .px-brand-symbol { color: #fff; }
.px-brand-end { color: var(--px-accent); }
.px-navigation { display: flex; align-items: stretch; align-self: stretch; min-width: 0; gap: clamp(.7rem, 1.6vw, 1.65rem); }
.px-navigation a { position: relative; display: flex; align-items: center; color: var(--px-muted); font-size: .92rem; font-weight: 700; white-space: nowrap; }
.px-navigation a:hover, .px-navigation [aria-current] { color: var(--px-accent); }
.px-navigation [aria-current]::after { content: ""; inset: auto 0 0; height: 2px; background: var(--px-accent); position: absolute; }
.px-header-actions { display: flex; gap: .5rem; align-items: center; }
.px-menu-control { display: none; }
.px-search { display: flex; align-items: center; min-width: 0; gap: .1rem; border: 1px solid var(--px-line); border-radius: 999px; background: var(--px-paper); min-height: 2.55rem; }
.px-search:focus-within { border-color: var(--px-accent); }
.px-search input { min-width: 0; width: 100%; outline: 0; border: 0; background: transparent; padding: .38rem .68rem .38rem 0; font-size: .94rem; }
.px-search input::placeholder { color: var(--px-muted); opacity: 1; }
.px-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.px-search button { display: grid; place-items: center; flex: 0 0 auto; width: 2.55rem; height: 2.5rem; border: 0; border-radius: 999px; background: transparent; color: var(--px-muted); padding: 0; }
.px-search button:hover { color: var(--px-accent); }
.px-search button svg { width: 1.02rem; height: 1.02rem; }
.px-trail { margin-block: 1.1rem .8rem; color: var(--px-muted); font-size: .88rem; }
.px-trail ol { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .6rem; list-style: none; padding: 0; }
.px-trail li + li::before { content: "/"; display: inline-block; margin-right: .6rem; color: var(--px-muted); }
.px-trail a:hover { color: var(--px-accent); }

/* Featured program */
.px-home { padding-top: clamp(1rem, 2.3vw, 2rem); }
.px-hero-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(14rem, 1.04fr); gap: .95rem; }
.px-hero-frame, .px-hero-film { min-height: clamp(21rem, 32vw, 26rem); }
.px-hero-frame { border: 1px solid #314137; border-radius: var(--px-radius); overflow: hidden; background: #132019; }
.px-hero-film { display: grid; align-items: end; position: relative; isolation: isolate; overflow: hidden; color: #f5f4ed; }
.px-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.px-hero-film::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #09120e 1%, #09120edb 30%, #0b14102c 76%), linear-gradient(0deg, #09120eea, #09120e00 60%); }
.px-hero-copy { width: min(38rem, 83%); padding: clamp(1.4rem, 4vw, 3.1rem); }
.px-hero-copy h2 { font-size: clamp(1.9rem, 4.1vw, 3.35rem); max-width: 20ch; letter-spacing: -.035em; overflow-wrap: anywhere; }
.px-hero-copy .px-film-meta { color: #dae6db; margin-top: .45rem; }
.px-hero-copy .px-button-outline { color: #fbf7ed; border-color: #a9b7ab; }
.px-hero-copy .px-button-outline:hover { background: #293f32; }
.px-hero-description { margin-block: .55rem 1.05rem; max-width: 42ch; line-height: 1.65; color: #e5e9e0; }
.px-hero-copy .px-action-row { margin-top: .9rem; }
.px-program-rail { display: flex; flex-direction: column; justify-content: center; gap: .95rem; min-width: 0; border: 1px solid var(--px-line); border-radius: var(--px-radius); background: var(--px-surface); padding: clamp(.8rem, 1.7vw, 1.35rem); }
.px-program-rail h2 { font-size: 1.3rem; }
.px-program-rail ol { display: grid; gap: .65rem; list-style: none; padding: 0; }
.px-program-item { display: grid; grid-template-columns: clamp(3.75rem, 6vw, 6rem) 1fr; gap: .6rem; align-items: center; min-height: 4.7rem; padding: .38rem; border: 1px solid var(--px-line); border-radius: 8px; }
.px-program-item:hover, .px-program-item[aria-current] { background: var(--px-raised); border-color: var(--px-accent); }
.px-program-item strong { line-height: 1.3; font-size: .93rem; display: block; overflow-wrap: anywhere; }
.px-program-item small { display: block; font-size: .75rem; color: var(--px-muted); }
.px-program-image { display: block; overflow: hidden; aspect-ratio: 1.55; background: var(--px-paper); border-radius: 5px; }
.px-program-image img { width: 100%; height: 100%; object-fit: cover; }
.px-chip-strip { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.px-home-filters { flex-wrap: wrap; margin-block: 1.3rem 0; }
.px-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap;
    border: 1px solid var(--px-line);
    padding: .26rem .75rem;
    border-radius: 999px;
    background: transparent;
    color: var(--px-muted);
    font-size: .88rem;
}
.px-chip:hover { border-color: var(--px-accent); color: var(--px-accent); }
.px-chip-selected { color: var(--px-paper); background: var(--px-accent); border-color: transparent; font-weight: 700; }
.px-chip-selected:hover { color: var(--px-paper); }
.px-chip-refine { margin-left: auto; color: var(--px-ink); }
.px-chip-refine svg { width: .95rem; height: .95rem; }

/* Shared catalog and monthly ranking */
.px-home-shelves { display: grid; grid-template-columns: minmax(0,3fr) minmax(15rem,1.04fr); gap: 1.4rem; }
.px-home-shelves > .px-section { margin-block: 1.8rem 3.6rem; }
.px-shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.65rem, 1.3vw, 1.1rem); }
.px-home-shelves .px-shelf { grid-template-columns: repeat(5, minmax(0,1fr)); }
.px-film-card { min-width: 0; }
.px-film-card-link { display: block; height: 100%; border-radius: 9px; overflow: hidden; background: var(--px-surface); border: 1px solid var(--px-line); transition: border-color .16s ease; }
.px-film-card-link:hover { border-color: var(--px-accent); }
.px-film-cover { position: relative; aspect-ratio: 2/3; overflow: hidden; background: var(--px-raised); }
.px-film-cover img { width: 100%; height: 100%; object-fit: cover; }
.px-poster-empty { display: grid; height: 100%; place-items: center; color: var(--px-muted); font-weight: 700; }
.px-card-copy { padding: .64rem .65rem .72rem; min-width: 0; }
.px-card-copy h2, .px-card-copy h3 { font-size: .94rem; font-weight: 700; line-height: 1.42; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.px-card-meta { color: var(--px-muted); margin-top: .28rem; font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.px-imdb { border: 1px solid var(--px-line); border-radius: var(--px-radius); padding: .95rem; background: var(--px-surface); align-self: start; }
.px-imdb .px-section-heading { margin-bottom: .2rem; align-items: center; flex-wrap: wrap; gap: .22rem .7rem; }
.px-imdb h2 { font-size: 1.25rem; }
.px-imdb-label { color: var(--px-ink); }
.px-imdb .px-section-heading p, .px-imdb-context { font-size: .78rem; color: var(--px-muted); }
.px-imdb-list { counter-reset: px-chart; list-style: none; padding: 0; margin-top: .55rem; }
.px-imdb-list li { border-top: 1px solid var(--px-line); counter-increment: px-chart; }
.px-imdb-list a { display: grid; grid-template-columns: 1ch 2rem minmax(0,1fr) auto; align-items: center; column-gap: .48rem; padding: .44rem 0; }
.px-imdb-list a::before { content: counter(px-chart); color: var(--px-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.px-imdb-list a:hover strong { color: var(--px-accent); }
.px-rank-poster { display: block; overflow: hidden; aspect-ratio: 2/3; border-radius: 3px; background: var(--px-raised); }
.px-rank-poster img { width: 100%; height: 100%; object-fit: cover; }
.px-rank-copy strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .83rem; line-height: 1.28; overflow-wrap: anywhere; }
.px-rank-copy small { color: var(--px-muted); font-size: .73rem; }
.px-rank-score { color: var(--px-accent); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .94rem; white-space: nowrap; }
.px-rank-score small { font-size: .67rem; color: var(--px-muted); font-weight: 400; }
.px-empty { background: var(--px-surface); border: 1px solid var(--px-line); padding: 1rem; border-radius: var(--px-radius); margin-top: .75rem; color: var(--px-muted); }
.px-empty h2 { color: var(--px-ink); font-size: 1.2rem; }
.px-empty p { margin-block: .35rem .75rem; }
.px-catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.px-catalog-head p { color: var(--px-muted); }
.px-catalog-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .8rem; background: var(--px-surface); border: 1px solid var(--px-line); padding: 1rem; border-radius: var(--px-radius); margin-bottom: 1.4rem; }
.px-catalog-filters label { display: grid; gap: .25rem; flex: 1 1 7.5rem; min-width: 0; color: var(--px-muted); font-weight: 700; font-size: .84rem; }
.px-catalog-filters select { min-height: 2.75rem; width: 100%; min-width: 0; border: 1px solid var(--px-line); border-radius: 7px; background: var(--px-paper); padding: .45rem .65rem; color: var(--px-ink); }
.px-catalog-filters .px-text-link { min-height: 2.75rem; font-size: .9rem; padding-inline: .3rem; }
.px-catalog-back { margin-block: .4rem 1.1rem; }
.px-tax-description { max-width: 75ch; margin-bottom: .5rem; color: var(--px-muted); }
.px-pages { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-top: 1.7rem; }
.px-pages .page-numbers { display: inline-grid; place-items: center; min-height: 2.65rem; min-width: 2.65rem; padding: .2rem .6rem; border: 1px solid var(--px-line); border-radius: 7px; }
.px-pages .current { background: var(--px-accent); color: var(--px-paper); border-color: var(--px-accent); }
.px-pages a:hover { color: var(--px-accent); border-color: var(--px-accent); }

/* Film watch page */
.px-watch-page { margin-bottom: 3.7rem; }
.px-watch-heading { margin-block: .8rem 1.35rem; }
.px-watch-heading h1, .px-catalog-head h1 { overflow-wrap: anywhere; }
.px-watch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; margin-top: .75rem; }
.px-film-meta { color: var(--px-muted); font-size: .93rem; }
.px-watch-meta .px-chip { font-size: .8rem; padding-block: .1rem; }
.px-watch-score { color: var(--px-accent); font-weight: 700; font-size: .86rem; }
.px-watch-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(16rem,1fr); align-items: start; gap: 1.5rem; }
.px-watch-main, .px-watch-side { min-width: 0; }
.px-watch-main .c711-nungz-player { margin: 0; }
.px-watch-main .c711-nungz-spoiler { margin-block: 1.15rem 0; padding: 0 1rem; }
.px-watch-main .c711-nungz-spoiler summary { padding-block: .65rem; }
.px-watch-main .c711-nungz-spoiler summary::marker { color: var(--px-accent); }
.px-video-stage { display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16/9; border-radius: var(--px-radius); background: #07100c; border: 1px solid #34473a; }
.px-video-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .74; }
.px-video-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.px-video-start { z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 999px; border: 1px solid transparent; font-weight: 750; padding: .6rem clamp(.85rem, 2.3vw, 1.45rem); min-height: 2.8rem; background: var(--px-orange); color: var(--px-action-ink); box-shadow: 0 4px 24px #101b15a3; }
.px-video-start:hover { background: #ffbf92; }
.px-video-start svg, .px-video-start span { width: 1.05rem; height: auto; }
.px-prose a[href] { color: var(--px-accent); text-decoration: underline; text-underline-offset: .17em; overflow-wrap: anywhere; }
.px-story { margin-top: 1.5rem; }
.px-ruled-title { display: flex; align-items: center; gap: .58rem; margin-bottom: .9rem; }
.px-ruled-title::before { display: block; content: ""; width: 4px; height: .9em; background: var(--px-accent); border-radius: 3px; flex: none; }
.px-story-lead { color: var(--px-ink); font-weight: 600; margin-bottom: .72rem; }
.px-prose { min-width: 0; color: var(--px-muted); font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.px-prose p + p { margin-top: .86em; }
.px-prose h2, .px-prose h3 { color: var(--px-ink); margin-block: 1.3em .5em; }
.px-prose ul, .px-prose ol, .px-prose blockquote, .px-prose figure { margin-block: .8em; }
.px-prose ul, .px-prose ol { padding-inline-start: 1.5rem; }
.px-prose img { border-radius: 8px; }
.px-prose pre, .px-prose table { display: block; max-width: 100%; overflow: auto; }
.px-trailer-section { margin-top: 1.8rem; }
.px-watch-main > .px-trailer-section:first-child { margin-top: 0; }
.px-facts-box { border: 1px solid var(--px-line); border-radius: var(--px-radius); background: var(--px-surface); padding: clamp(.75rem, 1.65vw, 1.2rem); min-width: 0; }
.px-facts-top { display: flex; gap: clamp(.7rem, 1.5vw, 1rem); align-items: flex-start; }
.px-facts-poster { flex: 0 0 36%; overflow: hidden; aspect-ratio: 2/3; border-radius: 8px; background: var(--px-paper); }
.px-facts-poster img { width: 100%; height: 100%; object-fit: cover; }
.px-facts-details { min-width: 0; flex: 1; }
.px-facts-details h2 { font-size: 1.23rem; }
.px-facts-box dl { margin: .5rem 0 0; }
.px-facts-box dl > div { border-bottom: 1px solid var(--px-line); padding-block: .32rem; }
.px-facts-box dl > div:last-child { border-bottom: 0; }
.px-facts-box dt { color: var(--px-muted); font-size: .73rem; }
.px-facts-box dd { margin: .08rem 0 0; font-size: .83rem; line-height: 1.55; overflow-wrap: anywhere; }
.px-facts-box dd a:hover { text-decoration: underline; }
.px-credit-links a { color: var(--px-accent); }
.px-facts-trailer { width: 100%; margin-top: .85rem; }
[data-px-theme="dark"] .px-facts-trailer { color: var(--px-orange); border-color: var(--px-orange); }
.px-related { margin-top: 1.4rem; }
.px-related .px-shelf { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; }
.px-related .px-card-copy { padding: .4rem; }
.px-related .px-card-copy h3 { font-size: .8rem; }
.px-related .px-card-meta { font-size: .72rem; }

/* Discovery, editorial pages and footer */
.px-discover-group { margin-block: 1.7rem 2.1rem; }
.px-category-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.px-category-links a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: .35rem; row-gap: .15rem; border: 1px solid var(--px-line); border-radius: 8px; background: var(--px-surface); padding: .68rem .8rem; }
.px-category-links a:hover { border-color: var(--px-accent); }
.px-category-links strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.px-category-links small { grid-row: 2; color: var(--px-muted); }
.px-category-links span { grid-row: 1 / 3; grid-column: 2; color: var(--px-accent); }
.px-page .px-prose { max-width: 72ch; margin-top: 1.15rem; }
.px-service-credit { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1.5rem; color: var(--px-muted); font-size: .85rem; }
.px-service-credit img { width: 84px; height: auto; }
.px-not-found { padding-block: 2rem; }
.px-not-found p { color: var(--px-muted); margin: .4rem 0 1rem; }
.px-not-found .px-search { max-width: 27rem; margin-bottom: 1rem; }
.px-post-snippet { border-bottom: 1px solid var(--px-line); padding-block: .8rem; }
.px-footer { margin-top: 2.2rem; border-top: 1px solid var(--px-line); background: var(--px-head); padding: 1.5rem 0 1.2rem; }
.px-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 1.5rem; }
.px-footer nav { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; color: var(--px-muted); font-size: .84rem; }
.px-footer nav a:hover { color: var(--px-accent); }

/* Responsive navigation and content */
@media (min-width: 78rem) {
    .px-related .px-shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 68rem) {
    .px-width { width: min(82rem, calc(100% - 3.25rem)); }
    .px-topbar { gap: 1rem; }
    .px-navigation { gap: .8rem; }
    .px-home-shelves .px-shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .px-shelf { grid-template-columns: repeat(5,minmax(0,1fr)); }
    .px-watch-grid { gap: 1rem; }
}
@media (max-width: 55rem) {
    .px-width { width: calc(100% - 2rem); }
    .px-ui-ready .px-menu-control { display: inline-flex; }
    .px-topbar { grid-template-columns: auto minmax(0,1fr) auto; min-height: 3.9rem; gap: .7rem; }
    .px-navigation { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; gap: .55rem 1rem; padding-block: .1rem .5rem; }
    .px-ui-ready .px-navigation:not(.px-navigation-open) { display: none; }
    .px-navigation a { min-height: 2.3rem; }
    .px-header-search { grid-column: 2; grid-row: 1; }
    .px-header-actions { grid-column: 3; grid-row: 1; }
    .px-hero-layout { grid-template-columns: minmax(0, 1fr); }
    .px-hero-frame, .px-hero-film { min-height: clamp(19rem, 53vw, 26rem); }
    .px-program-rail { padding: .7rem; gap: .65rem; }
    .px-program-rail ol { grid-auto-flow: column; grid-auto-columns: minmax(9rem,1fr); overflow-x: auto; gap: .45rem; padding-bottom: .2rem; }
    .px-program-item { grid-template-columns: 2.8rem 1fr; min-height: 3.6rem; }
    .px-program-item strong { font-size: .77rem; }
    .px-program-item small { font-size: .71rem; }
    .px-home-shelves { grid-template-columns: minmax(0,1fr); gap: 0; }
    .px-home-shelves > .px-section { margin-block: 1.45rem; }
    .px-imdb-list a { grid-template-columns: 1ch 2.2rem minmax(0,1fr) auto; }
    .px-imdb-list a strong { font-size: .94rem; }
    .px-shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .px-watch-grid { grid-template-columns: minmax(0,1fr); gap: 1.4rem; }
    .px-watch-side .px-facts-poster { flex-basis: min(27%,8rem); }
    .px-related .px-shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .px-footer-inner { align-items: flex-start; }
}
@media (max-width: 36rem) {
    .px-topbar { gap: .45rem; }
    .px-brand { font-size: 1.28rem; gap: .33rem; }
    .px-brand-symbol { width: 1.5rem; height: 1.32rem; font-size: .65rem; }
    .px-header-actions { gap: .25rem; }
    .px-icon-button { width: 2.2rem; height: 2.2rem; }
    .px-icon-button svg { width: 1rem; height: 1rem; }
    .px-search { min-height: 2.25rem; }
    .px-search input { padding-inline-end: .25rem; font-size: .83rem; }
    .px-search button { width: 1.85rem; height: 2.2rem; }
    .px-hero-copy { width: 100%; padding: 1rem; }
    .px-hero-copy h2 { font-size: clamp(1.65rem, 6vw, 2.2rem); max-width: 15ch; }
    .px-hero-film::before { background: linear-gradient(0deg, #09120e 1%, #09120ed9 33%, #09120e6b 94%), linear-gradient(90deg, #09120e8c, #09120e00 95%); }
    .px-hero-image { object-position: 58% 30%; }
    .px-hero-description { font-size: .87rem; }
    .px-home-filters { flex-wrap: nowrap; overflow-x: auto; padding: .32rem; margin-inline: -.32rem; }
    .px-home-filters .px-chip { flex: none; }
    .px-home-filters .px-chip-refine { order: -1; margin: 0; }
    .px-shelf, .px-home-shelves .px-shelf, .px-related .px-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .px-catalog-filters { gap: .65rem; }
    .px-catalog-filters label { flex: 1 1 7rem; }
    .px-category-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .px-footer-inner { flex-wrap: wrap; gap: .6rem; }
    .px-trail { font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.px-watch-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .95rem; }
.px-watch-actions .px-button { font-size: .9rem; }
.px-theater-toggle { margin-left: auto; }
.px-theater-toggle[aria-pressed="true"] { border-color: var(--px-accent); color: var(--px-accent); background: var(--px-raised); }
.px-watch-menu { min-width: 0; }
.px-watch-browse { background: var(--px-surface); border: 1px solid var(--px-line); border-radius: var(--px-radius); }
.px-watch-browse summary { min-height: 2.65rem; padding: .63rem .78rem; cursor: pointer; font-weight: 700; }
.px-watch-browse summary::marker { color: var(--px-accent); }
.px-watch-menu-groups { padding: 0 .75rem .7rem; }
.px-watch-menu-group { border-top: 1px solid var(--px-line); padding-block: .68rem; }
.px-watch-menu-group h2 { font-size: .92rem; margin-bottom: .43rem; }
.px-watch-menu-group ul { list-style: none; padding: 0; }
.px-watch-menu-group a { display: flex; justify-content: space-between; align-items: center; gap: .35rem; min-height: 2rem; font-size: .79rem; overflow-wrap: anywhere; }
.px-watch-menu-group a:hover { color: var(--px-accent); }
.px-watch-menu-group small { color: var(--px-muted); font-variant-numeric: tabular-nums; }
.px-watch-menu-years { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .3rem; }
.px-watch-menu-years a { justify-content: center; border: 1px solid var(--px-line); border-radius: 6px; }
.px-watch-menu-years a:hover { border-color: var(--px-accent); }
.px-watch-menu-groups > .px-text-link { font-size: .82rem; min-height: 2.25rem; }
.px-watch-side .px-imdb { margin-block: 1.1rem; }
.px-watch-grid:has(.px-watch-menu) { grid-template-areas: "menu menu" "main side"; }
.px-watch-grid:has(.px-watch-menu) .px-watch-menu { grid-area: menu; }
.px-watch-grid:has(.px-watch-menu) .px-watch-main { grid-area: main; }
.px-watch-grid:has(.px-watch-menu) .px-watch-side { grid-area: side; }
.px-theater-active .px-watch-grid:has(.px-watch-menu) {
    grid-template-columns: minmax(0, 1.8fr) minmax(15rem, 1fr);
    grid-template-areas: "main main" "menu side";
}
.px-theater-active .px-watch-grid:not(:has(.px-watch-menu)) .px-watch-main { grid-column: 1 / -1; }
.px-theater-active .px-watch-main .px-story { max-width: 72ch; }
@media (min-width: 75rem) {
    .px-watch-grid:has(.px-watch-menu) {
        grid-template-columns: minmax(10rem, .66fr) minmax(0, 2.45fr) minmax(15rem, 1.04fr);
        grid-template-areas: "menu main side";
        gap: 1.2rem;
    }
    .px-watch-grid:has(.px-watch-menu) .px-facts-top { flex-wrap: wrap; }
    .px-watch-grid:has(.px-watch-menu) .px-facts-poster { flex-basis: min(40%, 6.5rem); }
    .px-watch-grid:has(.px-watch-menu) .px-facts-details { flex-basis: 6rem; }
    .px-watch-grid:has(.px-watch-menu) .px-related .px-shelf { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .px-theater-active .px-watch-grid:has(.px-watch-menu) {
        grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.25fr);
        grid-template-areas: "main main" "menu side";
    }
}
@media (max-width: 55rem) {
    .px-theater-toggle { display: none; }
    .px-watch-grid:has(.px-watch-menu), .px-theater-active .px-watch-grid:has(.px-watch-menu) {
        grid-template-columns: minmax(0,1fr);
        grid-template-areas: "menu" "main" "side";
    }
    .px-watch-menu-years { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
