/* The poster view opens a spacious theatre; the other catalogue views retain their layout. */
.collection .view-switch { display:flex; gap:3px; padding:3px; border-color:#b79d6833; border-radius:7px; background:#080f1d; }
.collection .view-switch button { display:inline-flex; align-items:center; justify-content:center; gap:7px; width:auto; min-width:35px; height:32px; padding:0 9px; border-radius:4px; cursor:pointer; }
.collection .view-switch [aria-pressed="true"] { color:#f2deb3; background:#c5a66c18; box-shadow:inset 0 -1px #d9bf87; }
.collection .view-switch svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.4; }
.collection #posters-view span { font:500 11px 'Outfit',sans-serif; letter-spacing:.03em; }
.poster-filter-button { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:7px 12px; border:1px solid #ad977536; border-radius:5px; color:#c9bca3; background:transparent; font-size:11px; }
.poster-filter-button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.4; }
.poster-filter-button[hidden] { display:none!important; }
body.codex-poster-mode { padding-top:74px; background:#050913; }
body.codex-poster-mode>.world-atmosphere { display:none; }
body.codex-poster-mode>.global-social-links { display:none; }
body.codex-poster-mode::before,body.codex-poster-mode::after { display:none; }
/* The shared screenLayout sheet adds a sidebar column and content zoom above
   1600px. This viewport-sized theatre owns its layout at every breakpoint. */
body[data-shell-active="codex"] #codex-browse.poster-browse { display:grid; grid-template-columns:minmax(0,1fr); width:100%; max-width:1920px; min-height:0; margin:0 auto; zoom:1; background:none; border:0; }
.poster-browse>.sidebar { display:none; }
.poster-browse .collection { padding:8px clamp(18px,3vw,68px) 0; }
.poster-browse .collection-banner,.poster-browse .collection-footer { display:none; }
.poster-browse .collection-tabs { justify-content:center; gap:clamp(16px,5vw,80px); border:0; background:none; box-shadow:none; }
.poster-browse .collection-tabs button { flex:0 1 auto; padding:10px 6px; border:0; border-bottom:1px solid transparent; background:none; box-shadow:none; color:#8391a5; }
.poster-browse .collection-tabs button[aria-pressed="true"] { border-bottom-color:#bda77c; background:none; box-shadow:none; color:#d9c8a7; }
.poster-browse .collection-tabs button::after,.poster-browse .collection-tabs button::before { display:none; }
.poster-browse .collection-toolbar { padding:8px 0 0; }
.poster-browse .collection-filter-actions:has(.active-filters:empty) { min-height:0; padding:0; }
.poster-browse.has-poster-filters>.sidebar { display:block; position:fixed; z-index:45; top:90px; bottom:24px; left:24px; width:300px; padding:24px; overflow:auto; border:1px solid #baa57750; border-radius:8px; background:#0a1320f5; box-shadow:0 20px 90px #000b; backdrop-filter:blur(20px); }
.poster-browse .sidebar .filter-content { display:block; }
.poster-browse .sidebar .mobile-filter-toggle { display:none; }
.hero-grid.is-posters { display:block; }
.promo-gallery { --promo-stage-height:clamp(340px,calc(100dvh - 360px),700px); --poster-width:min(29vw,calc((var(--promo-stage-height) - 30px)/2)); position:relative; isolation:isolate; min-width:0; overflow:hidden; background:#050913; }
.promo-world { position:absolute; z-index:-1; inset:0; overflow:hidden; pointer-events:none; }
.promo-world>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(85px) saturate(.55); opacity:.14; }
.promo-world>span { position:absolute; inset:0; background:radial-gradient(ellipse at 50% 44%,#05091300,#050913c9 65%,#050913 92%); }
.promo-gallery-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:64px; padding:12px 0 6px; }
.promo-gallery-heading div>span { color:#a28f70; font-size:8px; letter-spacing:.22em; }
.promo-gallery-heading h2 { margin:6px 0 0; font:400 clamp(21px,2.2vw,33px)/1.3 Codex,'AOW',Georgia,serif; letter-spacing:-.02em; color:#e9dfcc; }
.promo-counter { display:flex; align-items:baseline; gap:10px; margin:0; color:#69778a; font-size:10px; font-variant-numeric:tabular-nums; }
.promo-counter strong { color:#cfbd9b; font:300 30px 'Outfit',sans-serif; }
.promo-rail { position:relative; height:var(--promo-stage-height); width:100%; min-width:0; overflow:hidden; perspective:1700px; perspective-origin:50% 45%; touch-action:pan-y; }
.promo-pick { position:absolute; left:50%; top:50%; display:block; width:var(--poster-width); height:auto; aspect-ratio:1/2; padding:0; border:1px solid #d4c6a74d; border-radius:2px; background:#eee7da; cursor:pointer; transform-origin:50% 50%; box-shadow:0 28px 45px #0009; will-change:transform; backface-visibility:hidden; transition:border-color .35s,box-shadow .35s; }
.promo-pick[hidden] { display:none; }
.promo-pick[aria-pressed="true"] { border-color:#e6d0a3; box-shadow:0 0 35px #cdb27b12,0 30px 55px #000b; }
.promo-pick>img { display:block; width:100%; height:100%; aspect-ratio:1/2; object-fit:contain; border-radius:inherit; }
.promo-pick:focus-visible { outline:2px solid #ffe0a4; outline-offset:5px; }
.promo-hero-details { display:flex; align-items:center; justify-content:center; gap:40px; min-height:100px; padding:18px 24px 12px; }
.promo-hero-identity { min-width:0; text-align:right; }
.promo-hero-identity>span { color:#8e9caf; font-size:10px; letter-spacing:.06em; }
.promo-hero-identity i { margin:0 7px; color:#a99571; font-style:normal; }
.promo-hero-identity h3 { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin:5px 0 0; font:400 30px/1.15 Codex,'AOW',Georgia,serif; color:#eee3cd; }
.promo-hero-identity h3 img { width:27px; height:27px; object-fit:contain; }
.promo-hero-actions { display:flex; align-items:center; gap:18px; flex-shrink:0; padding-left:36px; border-left:1px solid #c1ae802c; }
.promo-favorite { display:grid; place-items:center; width:38px; height:38px; padding:9px; border:0; color:#a7adba; background:transparent; cursor:pointer; }
.promo-favorite svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.3; }
.promo-favorite[aria-pressed="true"] { color:#e4aaaa; }
.promo-favorite[aria-pressed="true"] svg { fill:currentColor; }
.promo-hero-actions a.hero-open.promo-open { position:static; display:inline-flex; align-items:center; gap:24px; min-height:42px; width:auto; padding:7px 0; border:0; border-bottom:1px solid #d0b37c55; color:#d9c8a6; background:transparent; text-decoration:none; font-size:12px; letter-spacing:.04em; }
.promo-hero-actions a.hero-open.promo-open:hover { color:#fff0cf; border-bottom-color:#efcf92; }
.promo-gallery-footer { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; min-height:56px; border-top:1px solid #bdaa7e12; color:#647080; font-size:9px; letter-spacing:.06em; }
.promo-touch-hint { display:none; }
.promo-footer-brand { text-align:right; color:#8e826b; font-size:8px; letter-spacing:.23em; }
.promo-navigation { display:flex; align-items:center; gap:18px; }
.promo-navigation button { display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; color:#b2a48a; background:transparent; font-size:20px; cursor:pointer; }
.promo-navigation button:hover { color:#fff0d0; }
.promo-footer-rule { width:50px; height:1px; background:#baaa8336; }
.promo-gallery :is(a,button):focus-visible { outline:2px solid #f3d5a0; outline-offset:4px; }
.promo-announcement { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:900px) { .collection-toolbar { flex-wrap:wrap; } .toolbar-actions { margin-left:auto; } .promo-gallery { --poster-width:min(35vw,calc((var(--promo-stage-height) - 30px)/2)); } }
@media(max-width:620px) {
  .poster-browse .collection { padding:14px 14px 0; }
  .poster-browse .collection-tabs { justify-content:space-between; gap:8px; }
  .poster-browse .collection-tabs button { font-size:8px; padding:12px 1px; }
  .collection .collection-toolbar { gap:9px; }
  .collection .toolbar-actions { width:100%; justify-content:space-between; gap:7px; }
  .collection .toolbar-actions .sort-label { display:none; }
  .collection #posters-view span { font-size:10px; }
  .poster-filter-button { padding:7px 9px; font-size:10px; }
  .poster-browse.has-poster-filters>.sidebar { top:85px; bottom:16px; left:12px; width:min(300px,calc(100vw - 24px)); }
  .promo-gallery { --promo-stage-height:clamp(340px,calc(100dvh - 340px),560px); --poster-width:min(52vw,calc((var(--promo-stage-height) - 28px)/2)); }
  .promo-gallery-heading { min-height:78px; }
  .promo-gallery-heading h2 { max-width:240px; font-size:22px; }
  .promo-gallery-heading div>span { font-size:7px; letter-spacing:.13em; }
  .promo-counter strong { font-size:25px; }
  .promo-hero-details { gap:18px; padding:15px 0 18px; }
  .promo-hero-identity { text-align:left; }
  .promo-hero-identity h3 { justify-content:flex-start; gap:8px; font-size:23px; }
  .promo-hero-identity>span { font-size:8px; }
  .promo-hero-identity h3 img { width:23px; height:23px; }
  .promo-hero-actions { gap:8px; padding-left:17px; }
  .promo-hero-actions a.hero-open.promo-open { gap:12px; font-size:10px; }
  .promo-favorite { width:30px; padding:5px; }
  .promo-gallery-footer { grid-template-columns:1fr auto; gap:12px; }
  .promo-mouse-hint { display:none; }
  .promo-touch-hint { display:inline; }
  .promo-footer-brand { display:none; }
  .promo-navigation { gap:10px; }
  .promo-footer-rule { width:26px; }
}
@media(hover:none) { .promo-mouse-hint { display:none; } .promo-touch-hint { display:inline; } }
@media(max-height:500px) and (min-width:621px) {
  .promo-gallery { --promo-stage-height:clamp(250px,70dvh,340px); }
  .promo-gallery-heading { min-height:64px; }
}
@media(prefers-reduced-motion:reduce) { .promo-gallery *, .collection .view-switch button { transition:none!important; scroll-behavior:auto!important; } }
