/* The Screening Room. Shares base.css with the home page; only page parts live here. */
.deck{padding-top:calc(var(--header-space) + clamp(16px,2.5vw,36px))}
.deck-head{display:flex;justify-content:space-between;align-items:end;gap:16px 48px;margin-bottom:clamp(20px,2.4vw,28px)}
.deck-head h1{font-size:clamp(36px,4.2vw,64px);letter-spacing:-.035em}
.deck-head p{color:var(--muted);max-width:34ch;font-size:17px}

/* Screen: fixed frame, films keep their own shape (contain), so nothing stretches and nothing shifts. */
.screen{position:relative;background:#080c0b;aspect-ratio:16/9;max-height:min(60vh,760px);width:100%;margin-inline:auto;overflow:hidden}
.film{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;background:#080c0b;text-align:left;isolation:isolate}
.film img,.film video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.film video{opacity:0;transition:opacity .28s}
.film.is-playing video,.film.is-loading video{opacity:1}
.film-control{position:absolute;left:20px;bottom:20px;z-index:3;display:flex;align-items:center;gap:12px;color:var(--white)}
.film-icon{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.65);border-radius:50%;background:rgba(10,17,16,.5);transition:background .2s,border-color .2s,color .2s}
.film-icon svg{width:20px;height:20px}
.film-state{font-size:13px;line-height:1.25;background:rgba(10,17,16,.82);padding:6px 10px}
.film:hover .film-icon{background:var(--orange);border-color:var(--orange);color:var(--ink)}
.film-progress{position:absolute;bottom:0;left:0;height:3px;width:100%;background:var(--orange);transform:scaleX(var(--film-progress,0));transform-origin:left;z-index:4}

.deck-info{display:flex;justify-content:space-between;align-items:start;gap:24px 48px;padding:24px 0 clamp(56px,7vw,96px)}
.deck-meta{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.deck-text h2{font-size:clamp(26px,2.6vw,40px)}
.deck-text p:not(.deck-meta){color:var(--muted);margin-top:8px;max-width:48ch}
.deck-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px 24px;flex-shrink:0}
.deck-nav{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.deck-nav button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;transition:border-color .2s}
.deck-nav button:hover:not(:disabled){border-color:var(--white)}
.deck-nav button:disabled{opacity:.35}
.deck-nav svg{width:18px;height:18px}
.deck-actions .text-link{color:var(--white)}

/* Library */
.library{border-top:1px solid var(--line);padding-top:clamp(56px,7vw,96px)}
.library-head{display:flex;justify-content:space-between;align-items:end;gap:16px 48px;margin-bottom:28px}
.library-head h2{font-size:clamp(32px,4vw,60px)}
.library-head p{color:var(--muted);max-width:34ch}
.filters{display:grid;gap:16px;padding-bottom:28px;margin-bottom:32px;border-bottom:1px solid var(--line)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips button{min-height:44px;min-width:44px;padding:0 16px;border:1px solid var(--line);border-radius:2px;font-size:14px;color:#d5dcd8;transition:border-color .2s,background .2s,color .2s}
.chips button:hover{border-color:#7f8f86}
.chips button[aria-pressed=true]{background:var(--white);border-color:var(--white);color:var(--ink)}
.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.filter-row label{font-size:13px;color:var(--muted)}
.filter-row select{min-height:44px;padding:0 36px 0 12px;border:1px solid var(--line);border-radius:2px;background:#18221e;color:var(--white);font-size:14px}
.reset{min-height:44px;font-size:14px;text-decoration:underline;text-underline-offset:4px}
#filter-count{margin-left:auto;font-size:13px;color:var(--muted)}
.empty{padding:40px 0 56px;color:var(--muted)}
.empty .text-link{margin-top:12px;color:var(--white)}

.film-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 20px}
.card button{display:block;width:100%;padding:0;text-align:left}
.card-image{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#18221e}
.card-image img{width:100%;height:100%;object-fit:cover;transition:opacity .2s}
.card button:hover .card-image img{opacity:.82}
.card-duration,.card-seen{position:absolute;bottom:8px;padding:3px 7px;background:rgba(10,17,16,.85);font-size:12px;color:var(--white)}
.card-duration{right:8px}
.card-seen{left:8px;display:none}
.card.is-seen .card-seen{display:block}
.card-meta{display:block;margin-top:12px;font-size:12px;color:var(--muted)}
.card-title{display:block;margin-top:4px;font-family:var(--display);font-size:19px;line-height:1.25;letter-spacing:-.015em}
.card button[aria-current=true] .card-image{outline:2px solid var(--orange);outline-offset:3px}
.card button[aria-current=true] .card-title{color:var(--link-hi)}
.series-note{margin:-8px 0 28px;padding:14px 18px;border-left:3px solid var(--orange);background:var(--ink-2);font-size:15px;color:var(--paper);max-width:760px}
.series-note a{color:var(--link-hi);border-bottom:1px solid currentColor}
.concept-note{font-size:12px;line-height:1.65;color:var(--muted);max-width:740px;margin-top:48px}

.room-contact{display:flex;justify-content:space-between;align-items:center;gap:24px 48px;flex-wrap:wrap;margin-block:clamp(64px,8vw,112px);padding-top:clamp(40px,5vw,64px);border-top:1px solid var(--line)}
.room-contact h2{font-size:clamp(32px,4vw,60px)}
.room-contact-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px}
.room-contact .text-link{color:var(--white)}

@media(max-width:1100px){.film-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:899px){
  .deck-head,.library-head{display:block}
  .deck-head p,.library-head p{margin-top:12px}
  .deck-info{flex-direction:column}
  .deck-actions{justify-content:flex-start}
  .film-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
}
@media(max-width:600px){
  .deck{padding-top:calc(var(--header-space) + 16px)}
  .deck-head h1{font-size:clamp(36px,10vw,48px)}
  .deck-head p{font-size:16px}
  .screen{aspect-ratio:1/1;margin-inline:calc(-1 * var(--gutter));width:calc(100% + 2 * var(--gutter));max-width:none}
  .film-control{left:12px;bottom:12px}
  .film-icon{width:44px;height:44px}
  .deck-info{padding-top:20px}
  .deck-actions{width:100%;display:grid;grid-template-columns:1fr;gap:12px}
  .deck-actions .button{width:100%}
  .deck-nav{justify-content:space-between}
  .chips button{padding:0 12px;font-size:13px}
  .filter-row select{flex:1}
  #filter-count{margin-left:0;width:100%}
  .card-title{font-size:16px}
  .room-contact-actions{width:100%}
  .room-contact .button{width:100%}
}

/* Full films: the opener sits on the screen; the theatre takes the screen's place, full-bleed, and keeps the film's own shape. */
.full-open{position:absolute;top:16px;right:16px;z-index:5;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px 0 14px;border-radius:999px;background:var(--orange);color:var(--on-accent);font-size:14px;font-weight:600;transition:background .2s}
.full-open:hover{background:var(--accent-hover)}
.full-open svg{width:16px;height:16px;fill:currentColor;stroke:none}
.full-open-length{font-variant-numeric:tabular-nums;font-weight:500}
.full-ig{padding:0 16px 0 18px}
.full-ig svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.theatre{margin-inline:calc(50% - 50vw);background:#000;scroll-margin-top:var(--header-space)}
.theatre-frame{position:relative;width:100%;aspect-ratio:var(--full-aspect,16 / 9);max-height:calc(100svh - var(--header-space) - 76px);margin-inline:auto}
.theatre-frame video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.theatre-status{position:absolute;left:50%;top:50%;z-index:2;transform:translate(-50%,-50%);padding:8px 14px;background:rgba(10,17,16,.82);font-size:14px;pointer-events:none;text-align:center}
.theatre-bar{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;width:min(100%,1600px);margin-inline:auto;padding:14px var(--gutter);background:var(--ink)}
.theatre-bar p{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0}
.theatre-kicker{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.theatre-bar strong{font-family:var(--display);font-size:clamp(18px,1.6vw,22px);font-weight:500;letter-spacing:-.015em}
.theatre-length{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.theatre-close{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;font-size:14px;flex-shrink:0;transition:border-color .2s}
.theatre-close:hover{border-color:var(--white)}
.theatre-close svg{width:16px;height:16px;stroke-width:2}
.card-full{position:absolute;top:8px;left:8px;padding:3px 8px;background:var(--orange);color:var(--on-accent);font-size:12px;font-weight:600}
@media(max-width:600px){
  .full-open{top:12px;right:12px;padding:0 14px 0 12px;font-size:13px}
  .full-ig{padding:0 12px 0 14px}
  .theatre-bar{padding-block:12px}
}
