:root { color-scheme: dark; --bg: #050205; --panel: #0e0810; --line: #2a1d30; --ink: #f1e9f7; --dim: #a597b3;
        --accent: #d16bd0; --glow: rgba(209, 107, 208, .35); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
             font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
header.site { padding: 48px 24px 24px; max-width: 1680px; margin: 0 auto; }
header.site p, header.site h1 { max-width: 900px; }
header.site .eyebrow { letter-spacing: .22em; font-size: 12px; color: var(--accent); text-transform: uppercase; }
header.site h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 10px 0 12px; font-weight: 650; }
header.site p { color: var(--dim); max-width: 760px; margin: 0 0 18px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
          text-decoration: none; font-size: 14px; background: var(--panel); }
.button:hover { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }
main { max-width: 1680px; margin: 0 auto; padding: 0 24px 64px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.grid > * { min-width: 0; }
h1, h2, p, .button { overflow-wrap: anywhere; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1700px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { section.films .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { header.site, main { padding-left: 16px; padding-right: 16px; } }
.card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
        border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--accent); box-shadow: 0 0 26px var(--glow); transform: translateY(-2px); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #050205; }
.card .body { padding: 9px 13px 11px; }
.card h2 { font-size: 16px; margin: 0 0 2px; font-weight: 600; }
.card .prov { font-size: 12.5px; color: var(--dim); margin: 0; }
footer.site { max-width: 1680px; margin: 0 auto; padding: 24px 24px 48px; color: var(--dim); font-size: 13px;
              border-top: 1px solid var(--line); }
.viewer { display: flex; flex-direction: column; min-height: 100vh; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 20px;
       border-bottom: 1px solid var(--line); background: var(--panel); }
.bar h1 { font-size: 18px; margin: 0; font-weight: 600; }
.bar .prov { color: var(--dim); font-size: 13px; margin: 0; flex: 1 1 260px; }
.bar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.stage { position: relative; flex: 1 1 auto; min-height: 62vh; background: #000; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hint { padding: 10px 20px 18px; color: var(--dim); font-size: 13px; }
.with-legend { display: flex; flex-direction: column; flex: 1 1 auto; }
.legend { display: grid; gap: 11px; align-content: start; padding: 16px 20px; border-top: 1px solid var(--line);
          font-size: 12px; line-height: 1.5; color: var(--dim); }
.legend div { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.legend svg { margin-top: 3px; }
.legend b { color: var(--ink); font-weight: 500; }
@media (min-width: 1000px) { .with-legend { flex-direction: row; } .with-legend .stage { flex: 1 1 auto; }
  .legend { width: 300px; flex: 0 0 300px; border-top: 0; border-left: 1px solid var(--line); padding: 22px 22px; } }
.hint kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 12px; color: var(--ink); }
h2.section { font-size: 22px; font-weight: 620; margin: 8px 0 6px; }
p.section { color: var(--dim); max-width: 760px; margin: 0 0 16px; }
section.films { margin-bottom: 44px; }
section.beyond { margin-top: 44px; }
.card.film { cursor: default; }
.card.film:hover { transform: none; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card .credit { font-size: 12.5px; color: var(--dim); margin: 4px 0 0; }
.card .choose { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.card .choose .button { font-size: 13px; padding: 7px 13px; }
.button.primary { border-color: var(--accent); }
.film-view { width: 100%; max-width: 1400px; margin: 0 auto; padding: 18px 24px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
              cursor: pointer; font-size: 15px; }
.tabs label:hover { border-color: var(--accent); }
.tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
#watch:checked + label, #live:checked + label { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }
.pane { display: none; width: 100%; }
#watch:checked ~ .panes .pane.film, #live:checked ~ .panes .pane.live { display: block; }
.pane video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.pane .stage { min-height: 0; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pane .hint { padding: 10px 0 0; }
.why { color: var(--dim); font-size: 14px; max-width: 820px; margin: 16px 0 28px; }
section.part { margin: 8px 0 56px; }
section.part .eyebrow, header.site .eyebrow { letter-spacing: .22em; font-size: 12px; color: var(--accent); text-transform: uppercase; }
header.site h1 em { font-style: normal; color: var(--accent); }
.part-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.shelf-nav { display: flex; gap: 8px; flex: 0 0 auto; margin-bottom: 16px; }
.shelf-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel);
                    color: var(--ink); font-size: 18px; cursor: pointer; }
.shelf-nav button:hover { border-color: var(--accent); box-shadow: 0 0 18px var(--glow); }
.shelf { max-height: min(78vh, 760px); overflow-y: auto; scroll-snap-type: y proximity; padding: 4px 6px 8px 2px;
         border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin;
         -webkit-mask-image: linear-gradient(#000 92%, transparent); mask-image: linear-gradient(#000 92%, transparent); }
.shelf .grid { padding-top: 14px; }
@media (min-width: 1100px) { .shelf .grid { grid-template-columns: repeat(3, 1fr); } }   /* 21 constructs: 7 full rows */
.shelf .card { scroll-snap-align: start; }
.shelf-count { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
.part p.section kbd { border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 12px; color: var(--ink); }
.feature { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: var(--panel);
           border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature-img img { display: block; width: 100%; height: auto; }
.feature-text { padding: 4px 22px 22px; }
.feature-text p { color: var(--dim); margin: 0 0 12px; }
.feature-text .credit { font-size: 13px; }
.steps { margin: 0 0 14px; padding-left: 20px; color: var(--dim); }
.steps li { margin: 4px 0; } .steps b { color: var(--ink); font-weight: 600; }
@media (min-width: 1000px) { .feature { grid-template-columns: 1.5fr 1fr; } .feature-text { padding: 22px 26px 22px 0; } }
@media (min-width: 900px) { .grid.models { grid-template-columns: repeat(3, 1fr); } }
.feature.live { margin: 8px 0 34px; }
.feature .kind { letter-spacing: .18em; font-size: 11px; color: var(--accent); text-transform: uppercase; margin-bottom: 6px; }
.feature h3 { margin: 0 0 10px; font-size: 22px; }
h3.sub { margin: 6px 0 4px; font-size: 18px; }
@media (max-width: 600px) { .part-head { align-items: flex-start; } .shelf { max-height: 72vh; } }
