.cinema {
  --violet: #ba9bf6;
  --night: #0d1011;
  font-family: Urbanist, Arial, sans-serif;
  position: relative;
  isolation: isolate;
  margin: clamp(50px, 7vw, 100px) 0;
  padding: clamp(18px, 4.5vw, 74px) clamp(12px, 5vw, 80px);
  color: #fff;
  overflow: hidden;
  background: #222824;
  scroll-margin-top: 20px;
}
.cinema::before, .cinema-ambient-next {
  content: ""; position: absolute; inset: -20px; z-index: -1;
  background: linear-gradient(95deg,#0b1112b3,#0c1010b8), var(--cinema-image,url("assets/cafe.jpg")) center / cover;
  filter: blur(12px); pointer-events: none;
}
.cinema-ambient-next { opacity:0; }
.cinema *, .cinema *::before { box-sizing: border-box; }
.cinema-shell {
  --cinema-shade: linear-gradient(0deg,var(--night) 5%,#0d1011ed 25%,#0d101185 44%,transparent 72%),
    linear-gradient(90deg,#081014e8,#0b1214a5 34%,#0c11152b 69%,transparent),
    linear-gradient(180deg,#090d0e82,transparent 24%);
  position: relative; isolation: isolate; overflow: clip;
  max-width: 1240px; margin: auto; border: 1px solid #ffffff24;
  border-radius: clamp(14px,2vw,26px); background: var(--night);
  box-shadow: 0 22px 65px -24px #000b;
}
.cinema-backdrop {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 65% 45%;
}
.cinema-shell::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: var(--cinema-shade);
}
.cinema-flight { position:absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none; will-change:clip-path; }
.cinema-flight img { position:absolute; top:0; left:0; max-width:none; transform-origin:0 0; }
.cinema-flight-shade { position:absolute; inset:0; background:var(--cinema-shade); }
.cinema-bar,.cinema-feature,.cinema-shelf { position:relative; z-index:1; padding-inline: clamp(18px,3.6vw,52px); }
.cinema-bar { display:flex; gap:24px; align-items:center; justify-content:space-between; padding-block:22px 8px; }
.cinema-bar h2 { margin:0; color:white; font-size:clamp(18px,1.6vw,24px); letter-spacing:-.055em; font-weight:700; }
.cinema-bar h2 em { color:#dfd0fb; font-weight:500; }
.cinema-filters { display:flex; flex-wrap:wrap; gap:5px; }
.cinema button { font-family: inherit; cursor:pointer; }
.cinema-filters button {
  border:1px solid transparent; background:#12171875; border-radius:18px;
  color:#f4f0f6; font-size:13px; padding:7px 13px; min-height:34px;
}
.cinema-filters button[aria-pressed=true] { color:white; background:#ffffff24; border-color:#ffffff56; }
.cinema-feature { display:flex; flex-direction:column; align-items:start; justify-content:end; min-height:clamp(225px,24vw,355px); padding-block:35px 15px; }
.cinema-feature-copy { max-width:min(560px,80%); }
.cinema-meta { font-size:12px; font-weight:600; letter-spacing:.075em; color:#ede6f5; margin:0 0 11px; }
.cinema .cinema-film-name {
  margin:0; color:white; font-size:clamp(40px,6.5vw,94px); text-transform:uppercase;
  min-height:1.82em; max-width:8.5ch;
  font-weight:700; letter-spacing:-.055em; line-height:.91; text-wrap:balance;
}
.cinema-synopsis { margin:14px 0 0; min-height:3em; color:#eeeef2; font-size:clamp(14px,1.15vw,17px); line-height:1.5; max-width:45ch; }
.cinema-actions { display:flex; gap:10px; align-items:center; margin-top:19px; }
.cinema-play,.cinema-save { height:42px; border-radius:30px; }
.cinema-play {
  display:flex; align-items:center; gap:10px; padding:0 22px; border:1px solid #d6b4ff;
  box-shadow:inset 0 -3px #7d45b2; color:white; background:#7939b4; font-weight:650; font-size:14px;
}
.cinema-play span { font-size:12px; }
.cinema-save { display:grid; place-items:center; width:42px; color:white; border:1px solid #ffffff9e; background:#111a1c70; font-size:22px; line-height:1; }
.cinema-save[aria-pressed=true] { background:#e5d7fb; color:#362443; }
.cinema-shelf { padding-top:16px; padding-bottom:clamp(14px,2vw,29px); transform:translateY(var(--shelf-offset, 0px)); }
.cinema-shelf, .cinema-posters, .cinema-poster { transition-property:none; }
.cinema-shelf-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.cinema-shelf h3 { color:white; margin:0; font-weight:600; font-size:20px; letter-spacing:-.025em; }
.cinema-scroll { display:flex; gap:6px; }
.cinema-scroll button { width:34px; height:34px; background:#ffffff14; border:1px solid #ffffff45; color:white; border-radius:50%; }
.cinema-scroll button:disabled { opacity:.35; }
.cinema-posters {
  --poster-width:clamp(68px,8.8vw,118px);
  position:relative; isolation:isolate; height:calc(var(--poster-width) / .74 + var(--arc-depth, 0px) + 18px);
  column-gap:clamp(4px,.45vw,6px);
  touch-action:pan-y;
}
.cinema-posters:empty { display:none; }
.cinema-poster {
  position:absolute; display:block; isolation:isolate; left:50%; top:4px;
  width:var(--poster-width); height:auto; aspect-ratio:.74; margin-left:calc(var(--poster-width) * -.5);
  transform-origin:50% 55%; will-change:transform; border:1px solid #ffffff48; padding:0;
  border-radius:8px; overflow:hidden; box-shadow:0 12px 24px -12px #000b;
  color:white; text-align:left; background:#222;
}
.cinema-poster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.cinema-poster::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,#020608de 0%,transparent 73%); }
.cinema-poster strong { position:absolute; inset:auto 7% 8%; color:#fff; font-weight:700; font-size:clamp(12px,1.45vw,20px); letter-spacing:-.045em; line-height:.98; text-transform:uppercase; }
.cinema-poster.is-serif strong { font-family:Georgia,serif; text-transform:none; font-style:italic; font-weight:400; }
.cinema-poster[aria-pressed=true] { outline:2px solid var(--violet); outline-offset:1px; }
.cinema-poster.is-lifting { opacity:0!important; pointer-events:none!important; }
.cinema-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.cinema-empty { padding:28px 0; color:#ded7e6; font-size:15px; }
.cinema :is(button,a):focus-visible { outline:3px solid #d8b4ff; outline-offset:2px; }
dialog.cinema-player { position:fixed; inset:0; margin:auto; width:min(860px,94vw); max-height:94dvh; padding:14px; border:1px solid #ffffff38; border-radius:16px; background:#181a1e; color:white; overflow:auto; }
.cinema-player::backdrop { background:#090b0de3; }
.cinema-player header { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:0 3px 10px; }
.cinema-player header h3 { margin:0; font-size:22px; color:white; }
.cinema-player header button { width:36px; height:36px; border-radius:50%; border:1px solid #fff5; background:#343037; color:white; font-size:22px; }
.cinema-player video { display:block; width:100%; max-height:69dvh; background:#060708; }
.cinema-player .cinema-more { display:inline-block; margin:13px 4px 2px; color:#e6ccff; text-decoration:underline; text-underline-offset:4px; }
.cinema-player-error { color:#f5e8ff; margin-top:12px; }
.cinema [hidden] { display:none!important; }
@media(max-width:640px) {
  .cinema-bar { align-items:start; flex-direction:column; gap:11px; padding-top:17px; }
  .cinema-filters { gap:3px; }
  .cinema-filters button { padding:6px 9px; min-height:38px; font-size:12px; }
  .cinema-feature-copy { max-width:100%; }
  .cinema-feature { min-height:242px; }
  .cinema-posters { --poster-width:clamp(54px,16vw,82px); }
  .cinema-synopsis { min-height:4.5em; }
  .cinema-shelf h3 { font-size:18px; }
}
