/* Visual thesis: one picture fills a black theater; chrome is overlay, not a page. */
body.cinema{
  --bg:#050506;
  --text:#f4f4f5;
  --muted:#c8c8cc;
  --header:transparent;
  background:#050506;
  overflow:hidden;
  color:#f4f4f5;
}
body.cinema .site-header{
  position:fixed;
  inset:0 0 auto 0;
  height:64px;
  background:linear-gradient(to bottom,#000000d4,#0000);
  border:0;
  z-index:24;
}
body.cinema .header-search,
body.cinema .register-button,
body.cinema footer{display:none!important}
body.cinema .header-actions{margin-left:auto}
body.cinema .cinema-only{display:grid}
.cinema-only{display:none}
body.cinema #wallet{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  color:#f0c14b;
  font-variant-numeric:tabular-nums;
}
body.cinema .side-nav{
  transform:translateX(-100%);
  visibility:hidden;
  background:#0b0b0d;
}
body.cinema.nav-open .side-nav{
  transform:none;
  visibility:visible;
  z-index:28;
  width:190px;
  padding:20px 12px;
}
body.cinema.nav-open .side-nav a,
body.cinema.nav-open .side-nav button{
  flex-direction:row;
  justify-content:flex-start;
  gap:18px;
  padding:0 16px;
  min-height:48px;
  font-size:13px;
}
body.cinema.nav-open #nav-shade{
  display:block;
  position:fixed;
  inset:0;
  background:#0008;
  z-index:26;
}
body.cinema #main,
body.cinema.nav-open .side-nav~#main,
body.cinema footer{
  margin-left:0;
}
body.cinema #main{
  min-height:100vh;
  min-height:100svh;
  min-height:100dvh;
  height:100vh;
  height:100svh;
  height:100dvh;
  overflow:hidden;
}

.cinema{
  position:relative;
  height:100vh;
  height:100svh;
  height:100dvh;
  background:#050506;
  isolation:isolate;
}
.cinema-stage{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#000;
}
.cinema-poster,
.cinema-frame{
  position:absolute;
  top:50%;
  left:50%;
  border:0;
  display:block;
  transform:translate(-50%,-50%);
}
.cinema-poster{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(1.05) contrast(1.04);
}
.cinema-frame{
  width:100vw;
  height:56.25vw;
  min-width:177.78vh;
  min-height:100vh;
  width:100dvw;
  height:56.25dvw;
  min-width:177.78dvh;
  min-height:100dvh;
}
.cinema-waiting{
  display:grid;
  place-items:center;
  color:#ffffff8a;
  font-size:13px;
  letter-spacing:.08em;
}
.cinema-veil{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to bottom,#00000099 0%,#0000 18%,#0000 48%,#000000e6 100%),
    linear-gradient(to right,#0006 0%,#0000 18%,#0000 82%,#0006 100%);
}
.cinema-hud{
  position:absolute;
  top:calc(64px + env(safe-area-inset-top, 0px));
  right:max(12px, env(safe-area-inset-right, 0px));
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}
#cinema-mute{
  width:44px;
  min-height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#00000073;
  border:1px solid #ffffff22;
  color:#fff;
  backdrop-filter:blur(10px);
}
#cinema-mute .icon{width:18px;height:18px}
#cinema-full,#cinema-pause{
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  background:#00000073;
  border:1px solid #ffffff24;
  color:#fff;
  font-size:12px;
  letter-spacing:.04em;
  backdrop-filter:blur(10px);
}
.cinema-arrows{
  position:absolute;
  right:max(10px, env(safe-area-inset-right, 0px));
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:#fff;
}
.cinema-arrows span{
  font-size:11px;
  letter-spacing:.18em;
  opacity:.7;
}
.cinema-arrows button{
  width:46px;
  min-height:46px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#ffffff14;
  border:1px solid #ffffff24;
  color:#fff;
  backdrop-filter:blur(10px);
}
.cinema-arrows .icon{width:22px;height:22px}
.cinema-error{
  position:absolute;
  left:50%;
  top:42%;
  transform:translate(-50%,-50%);
  z-index:4;
  margin:0;
  padding:12px 16px;
  background:#000c;
  border:1px solid #ffffff22;
  border-radius:8px;
  color:#fff;
  font-size:13px;
}
.cinema-dock{
  position:absolute;
  left:max(16px, env(safe-area-inset-left, 0px));
  right:max(72px, env(safe-area-inset-right, 0px));
  bottom:0;
  z-index:3;
  padding:0 0 max(16px, env(safe-area-inset-bottom, 0px));
  max-width:none;
}
.cinema-copy h1{
  margin:0 0 8px;
  font-size:28px;
  font-weight:650;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:0 2px 18px #000a;
}
.cinema-count{
  margin-left:10px;
  font-size:14px;
  font-weight:500;
  color:#d8d8dc;
}
.cinema-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  margin:0 0 16px;
  color:#e8e8ea;
  font-size:14px;
}
.cinema-progress{display:block;width:100%;height:30px;margin:0 0 8px;cursor:pointer;accent-color:#e15b64;background:transparent}
.cinema-progress:disabled{cursor:default;opacity:.45}
.cinema-progress:focus-visible{outline:2px solid #fff;outline-offset:3px}
.cinema-native .cinema-frame{inset:72px 0 230px;transform:none;width:100%;height:calc(100% - 302px);min-width:0;min-height:0}
.cinema-shelf>.ad-slot{max-width:1460px;margin:28px auto 0}
.cinema-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(70px,1fr));
  gap:10px;
  margin-bottom:10px;
}
.cinema-act{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:999px;
  border:1px solid #ffffff28;
  background:#ffffff12;
  color:#fff;
  font-size:14px;
  backdrop-filter:blur(14px);
}
.cinema-act .icon{width:16px;height:16px}
.cinema-act[aria-pressed=true]{color:#ff8ea0}
.cinema-act[aria-pressed=true] .icon{fill:#ff8ea0}
.cinema-unlock{
  background:#3ee0c2;
  border-color:#3ee0c2;
  color:#06241d;
  font-weight:700;
}
.cinema-unlock:hover{color:#06241d;filter:brightness(1.06)}
.cinema-unlock .icon{stroke:#06241d}
.cinema-clip{
  margin:0;
  text-align:center;
  color:#d0d0d4;
  font-size:12px;
  letter-spacing:.12em;
}
.cinema-shelf{
  position:absolute;
  inset:0;
  z-index:6;
  background:#070708f2;
  backdrop-filter:blur(18px);
  overflow:auto;
  padding:84px 28px 40px;
}
.cinema-shelf-bar{
  display:flex;
  gap:16px;
  align-items:center;
  max-width:1460px;
  margin:0 auto 24px;
}
#cinema-search{flex:1;margin:0}
#cinema-search input{
  width:100%;
  min-height:42px;
  border:1px solid #ffffff1f;
  background:#ffffff0d;
  color:#fff;
  border-radius:999px;
  padding:0 18px;
  outline:none;
}
.cinema-shelf .video-grid{max-width:1460px;margin:0 auto}
.cinema-vacant{display:grid;place-items:center}
.cinema-empty{text-align:center;color:#bbb}
.cinema-empty h1{font-size:28px;margin-bottom:8px}

@media(min-width:901px){
  .cinema-copy h1{font-size:clamp(24px,3.2vw,34px)}
  .cinema-stage{animation:cinema-in .38s ease both}
}
@media(max-width:760px){
  body.cinema .site-header{padding:0 14px;gap:10px}
  .cinema-arrows{right:max(8px, env(safe-area-inset-right, 0px))}
  .cinema-dock{right:max(64px, env(safe-area-inset-right, 0px))}
  .cinema-copy h1{font-size:clamp(18px,6vw,24px)}
  .cinema-actions{gap:8px}
  .cinema-act{font-size:13px;min-height:44px}
}
@media(max-width:540px){
  body.cinema .site-header{
    height:56px;
    flex-wrap:nowrap;
    align-items:center;
    padding:0 12px;
  }
  body.cinema .brand{font-size:18px}
  body.cinema .side-nav{top:56px}
  .cinema-hud{top:calc(56px + env(safe-area-inset-top, 0px))}
  .cinema-count{display:inline-block;margin-left:8px;font-size:12px}
  .cinema-shelf{padding:72px 14px 28px}
  .cinema-arrows button{width:40px;min-height:40px}
}
@media(max-height:560px){
  .cinema-copy h1{font-size:18px;margin-bottom:4px}
  .cinema-tags{margin-bottom:8px;font-size:12px}
  .cinema-clip{display:none}
  .cinema-act{min-height:38px;font-size:12px}
  .cinema-hud{gap:6px}
}
@media(prefers-reduced-motion:reduce){
  .cinema-stage{animation:none}
}
@keyframes cinema-in{
  from{opacity:.2;transform:translateY(3%)}
  to{opacity:1;transform:none}
}
