:root {
  color-scheme: dark;
  --page: #16151a;
  --bar: #1b1a20;
  --ink: #f6f4f8;
  --muted: #b1adb9;
  --accent: #ddcaff;
  --edge: #3c3942;
  --gutter: clamp(20px, 5vw, 88px);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
body:has(#player-dialog[open]) { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #f4ddff; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1450px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; padding: .7rem 1rem; background: var(--accent); color: var(--page); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.masthead { background: var(--bar); border-bottom: 1px solid #ffffff10; }
.masthead-inner { display: flex; align-items: center; gap: clamp(22px,5vw,85px); min-height: 72px; }
.brand,.footer-brand { font-weight: 760; letter-spacing: -.07em; font-size: 28px; line-height: 1; }
.brand { text-decoration: none; display: inline-flex; gap: 12px; align-items: center; padding: 8px 0; }
.brand-mark { width: 31px; height: 27px; display:flex; gap:2px; align-items: center; transform: skew(-14deg) rotate(-8deg); }
.brand-mark i { width: 8px; height: 18px; display:block; background:var(--accent); border-radius:1px; }
.brand-mark i:nth-child(2) { height:22px; }
.brand-mark i:nth-child(3) { height:26px; }
.masthead nav { display:flex; gap:clamp(16px,2.5vw,42px); align-self:stretch; align-items:stretch; }
.nav-link { display:inline-flex; gap:6px; align-items:center; position:relative; font-size:14px; font-weight:550; text-decoration:none; color:var(--muted); white-space:nowrap; }
.nav-link.active,.nav-link:hover { color:var(--ink); }
.nav-small { display:none; }
.nav-link.active::after { content:""; height:2px; background:var(--accent); position:absolute; bottom:0; left:0; right:0; }
#shelf-count { font-size:11px; padding:1px 6px; background:var(--accent); color:#241c30; border-radius:20px; }
.search-toggle,.icon-button,.hero-save,.card-save { display:inline-flex; justify-content:center; align-items:center; }
.search-toggle { margin-left:auto; font-size:14px; background:none; border:0; color:#e5e1eb; font-weight:520; min-height:46px; min-width:44px; gap:9px; padding:0 2px; }
.search-toggle svg,.search-form svg,.icon-button svg,.hero-save svg,.card-save svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.hero { position:relative; isolation:isolate; background:#171a23 url("./assets/hero.webp") center 41%/cover no-repeat; }
.hero::before { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(15,15,22,.88) 0%,rgba(17,15,24,.63) 26%,rgba(17,15,24,.15) 50%,transparent 72%), linear-gradient(0deg,#16151a 0%,rgba(22,21,26,.58) 9%,transparent 41%); }
.hero-content { display:flex; align-items:center; min-height:clamp(390px,35vw,535px); padding-block:38px 52px; }
.hero-copy { width:min(45%,500px); }
.featured-label { display:inline-flex; align-items:center; gap:8px; color:#efe7f8; font-size:13px; font-weight:620; }
.featured-label span { color:var(--accent); font-size:21px; line-height:1; }
#hero-title { font:italic 550 clamp(75px,8.3vw,132px)/.98 "STIX Two Text",Georgia,"Times New Roman",serif; letter-spacing:-.055em; margin:18px 0 14px -3px; }
.feature-meta { color:#e0dce4; display:flex; align-items:center; flex-wrap:wrap; gap:11px; font-size:14px; }
#hero-original { font-weight:650; }
.meta-dash { width:18px; height:1px; background:#b3aaba; }
#hero-description { max-width:440px; font-size:clamp(15px,1.15vw,18px); line-height:1.52; color:#dedbe3; margin:16px 0 24px; }
.hero-actions { display:flex; align-items:center; gap:12px; }
.play-button,.hero-save { min-height:47px; border-radius:9px; }
.play-button { display:inline-flex; align-items:center; justify-content:center; gap:10px; background:var(--accent); border:1px solid transparent; color:#241832; padding:0 22px; font-weight:680; font-size:15px; }
.play-button svg { width:17px; height:17px; fill:currentColor; }
.play-button:hover { background:#eadcff; }
.hero-save { width:47px; background:#23202d9c; border:1px solid #ffffff77; color:#faf7ff; }
.hero-save:hover,.card-save:hover { background:#383142; }
[aria-pressed="true"].hero-save svg,[aria-pressed="true"].card-save svg { fill:var(--accent); color:var(--accent); }
.catalog { padding-block:clamp(20px,2.7vw,45px) clamp(46px,5vw,72px); scroll-margin-top:12px; min-height:330px; }
.section-line { display:flex; align-items:baseline; gap:18px; }
.section-line h2 { margin:0; font-size:clamp(28px,2.7vw,44px); font-weight:650; line-height:1.14; letter-spacing:-.055em; }
.results { margin-left:auto; color:var(--muted); font-size:13px; }
.filters { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 24px; }
.filter-chip { font-size:13px; padding:6px 14px; line-height:22px; border-radius:40px; background:transparent; color:#d1ced8; border:1px solid var(--edge); }
.filter-chip:hover,.next-film:hover,.empty button:hover { border-color:#ae9fb7; }
.filter-chip.active { background:#e4dcec; color:#221c28; border-color:transparent; font-weight:650; }
.film-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(14px,1.6vw,28px); row-gap:28px; }
.film-card { min-width:0; }
.card-frame { position:relative; aspect-ratio:2/3; border-radius:10px; background:#24242d; }
.card-open { display:block; width:100%; height:100%; overflow:hidden; padding:0; border:0; border-radius:inherit; position:relative; background:#25232b; }
.card-open::after { content:""; position:absolute; inset:55% 0 0; background:linear-gradient(transparent,rgba(10,10,15,.47)); }
.card-open img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease; }
.card-open:hover img { transform:scale(1.035); }
.duration { position:absolute; z-index:1; right:8px; bottom:8px; padding:2px 6px; color:white; background:#111017d9; border-radius:4px; font-size:11px; font-weight:600; font-variant-numeric:tabular-nums; }
.card-save { position:absolute; top:6px; right:6px; z-index:2; width:38px; height:38px; border:1px solid #ffffff40; border-radius:50%; background:#17151dcc; opacity:0; transition:opacity .15s ease; }
.card-save svg { width:16px; height:16px; }
.card-frame:hover .card-save,.card-save:focus-visible,.card-save[aria-pressed="true"] { opacity:1; }
.card-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:1; width:40px; height:40px; display:grid; place-items:center; background:#25232acf; border:1px solid #ffffff9c; border-radius:50%; opacity:0; }
.card-play svg { width:19px; fill:white; stroke:white; }
.card-open:hover .card-play,.card-open:focus-visible .card-play { opacity:1; }
.card-title { letter-spacing:-.035em; font-size:clamp(16px,1.24vw,22px); margin:12px 0 3px; line-height:1.27; font-weight:630; overflow-wrap:anywhere; }
.card-title a { text-decoration:none; }
.card-title a:hover { text-decoration:underline; }
.card-meta { font-size:13px; line-height:1.4; color:var(--muted); margin:0; }
.card-progress { height:3px; background:#55505c; margin-top:6px; }
.card-progress span { display:block; height:100%; background:var(--accent); }
#search-panel { margin-top:18px; }
.search-form { display:flex; align-items:center; gap:10px; padding:8px 13px; background:#25232c; border:1px solid #6d6575; border-radius:8px; max-width:520px; }
.search-form input { color:var(--ink); background:transparent; border:0; width:100%; min-height:30px; outline:none; }
.search-form:focus-within { outline:2px solid var(--accent); }
.empty { color:var(--muted); padding:26px 0 42px; }
.empty h3 { color:var(--ink); font-size:23px; margin-bottom:8px; }
.empty p { margin-top:0; }
.empty button,.next-film { color:var(--ink); border:1px solid #6a6371; background:#24212a; border-radius:6px; padding:9px 15px; }
.site-footer { border-top:1px solid var(--edge); font-size:13px; color:var(--muted); }
.site-footer .wrap { min-height:86px; display:flex; gap:24px; align-items:center; }
.footer-brand { color:#d1cdda; font-size:18px; }
.site-footer a { color:inherit; text-underline-offset:3px; }
.to-top { margin-left:auto; white-space:nowrap; }
#player-dialog { width:min(890px,calc(100vw - 32px)); max-height:calc(100dvh - 36px); border:1px solid #534b60; border-radius:14px; padding:0; background:#211f27; color:var(--ink); box-shadow:0 18px 68px #07060b99; }
#player-dialog::backdrop { background:#09080ee6; }
.dialog-top { display:flex; justify-content:space-between; align-items:center; padding:3px 12px 3px 22px; min-height:46px; }
.dialog-top > span { font-weight:650; }
.icon-button { width:42px; height:42px; border:0; background:transparent; }
#player-video { display:block; width:100%; background:black; aspect-ratio:16/9; max-height:57dvh; object-fit:contain; }
.player-details { padding:18px 24px 25px; }
#player-title { font-size:clamp(25px,4vw,39px); margin:3px 0 4px; letter-spacing:-.05em; line-height:1.12; }
#player-meta { margin:0; color:#c7bed1; font-size:13px; }
#player-description { max-width:65ch; margin:12px 0; }
.credits { margin:14px 0; font-size:14px; color:#cbc3d2; }
.credits summary { cursor:pointer; display:list-item; }
.credits p { margin:4px 0; overflow-wrap:anywhere; }
.player-error { padding:12px 20px; background:#442e3e; }
#player-error a,.credits a { color:var(--accent); text-underline-offset:3px; }
@media(max-width:1100px) { .film-grid {grid-template-columns:repeat(3,minmax(0,1fr));} .card-frame{aspect-ratio:4/5;} .hero-content{min-height:410px;} }
@media(max-width:700px) {
  :root { --gutter:20px; }
  .masthead-inner {min-height:62px;gap:16px;}
  .brand {gap:7px;font-size:22px;}
  .brand-mark {width:22px;height:22px;gap:1px;}
  .brand-mark i {width:6px;height:14px;} .brand-mark i:nth-child(2){height:17px;} .brand-mark i:nth-child(3){height:20px;}
  .masthead nav {gap:12px;} .nav-link {font-size:12px;}
  .search-toggle {min-width:36px;} .search-toggle span {display:none;}
  .hero {background-image:url("./assets/hero-mobile.webp");background-position:center 29%;}
  .hero::before {background:linear-gradient(0deg,#16151a 0%,#16151ae6 21%,#16151a96 46%,transparent 78%),linear-gradient(90deg,#14141e3b,transparent 80%);}
  .hero-content {align-items:flex-end;min-height:clamp(440px,115vw,540px);padding-bottom:25px;padding-top:120px;}
  .hero-copy {width:100%;max-width:490px;} #hero-title{font-size:76px;margin:12px 0 8px;} #hero-description{font-size:15px;margin:12px 0 17px;max-width:43ch;}
  .feature-meta,.featured-label {font-size:13px;} .featured-label span{font-size:17px;}
  .film-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px;} .card-frame{aspect-ratio:2/3;}
  .filters {gap:6px;margin:13px 0 18px;} .filter-chip{padding:7px 11px;min-height:38px;font-size:12px;}
  .site-footer .wrap {flex-wrap:wrap;gap:6px 16px;padding-block:16px;} .site-footer p{margin:0;}
}
@media (max-width:480px){.nav-full{display:none;} .nav-small{display:inline;} .masthead-inner{gap:12px;} .masthead nav{gap:12px;} .search-toggle{min-width:40px;}}
@media (max-width:385px){:root{--gutter:14px;} .masthead-inner{gap:8px;} .masthead nav{gap:8px;} .brand{font-size:20px;} .results{font-size:12px;} .card-meta{font-size:12px;} }
@media (max-width:350px){#shelf-count{display:none;} .brand{font-size:19px;gap:5px;} .masthead-inner{gap:7px;} .masthead nav{gap:8px;} .search-toggle{min-width:34px;} }
@media (hover:none){.card-save{opacity:1;width:40px;height:40px;} }
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important;} }
