/* Movie Night Theatre — theme
   Fonts stay on the system stack on purpose: no external font request, so it
   loads instantly and works with no internet on her side. The stack resolves
   to SF Pro on iPhone/Mac and Roboto on Android, which is what the mockups use. */

:root{
  --bg:#08070a;
  --bg2:#0d0b10;
  --panel:#141118;
  --panel2:#1b1720;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.06);
  --red:#e11d2e;
  --red-hi:#ff3b4e;
  --red-deep:#8f0f1c;
  --glow:rgba(225,29,46,.45);
  --ink:#f4f2f6;
  --mute:#a09aa8;
  --mute2:#6f6878;
  --sans:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",
         "Segoe UI Variable","Segoe UI",Roboto,"Helvetica Neue",Inter,Arial,sans-serif;
  --r:14px;
  --nav-h:64px;
}

*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none !important}
html,body{height:100%}
html{-webkit-text-size-adjust:100%}
body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--ink);
  min-height:100dvh;
  overflow-x:hidden;
  -webkit-tap-highlight-color:transparent;
  -webkit-font-smoothing:antialiased;
}
button,input{font-family:inherit}
button{cursor:pointer;border:none;background:none;color:inherit}
img{max-width:100%;display:block}

/* ============================ top nav ============================ */
.nav{
  position:fixed;top:0;left:0;right:0;height:var(--nav-h);z-index:100;
  display:flex;align-items:center;gap:18px;
  padding:0 clamp(14px,3vw,28px);
  background:linear-gradient(180deg,rgba(8,7,10,.94),rgba(8,7,10,.55) 70%,transparent);
  backdrop-filter:blur(14px);
}
.brand{display:flex;align-items:baseline;gap:9px;flex:none;text-decoration:none}
.brand .b1{
  font-size:clamp(20px,2.4vw,26px);font-weight:800;letter-spacing:-.02em;
  color:var(--red);text-shadow:0 0 26px var(--glow);
}
.brand .b2{font-size:clamp(12.5px,1.4vw,15px);font-weight:500;color:var(--mute);letter-spacing:.01em}

.tabs{display:flex;gap:6px;margin:0 auto}
.tab{
  display:flex;align-items:center;gap:7px;
  padding:9px 17px;border-radius:999px;
  font-size:14px;font-weight:500;color:var(--mute);
  background:rgba(255,255,255,.05);
  border:1px solid transparent;
  transition:background .18s ease,color .18s ease;
  white-space:nowrap;
}
.tab:hover{background:rgba(255,255,255,.1);color:var(--ink)}
.tab.on{background:var(--red);color:#fff;box-shadow:0 6px 22px rgba(225,29,46,.4)}
.tab .ic{font-size:15px;line-height:1}

.who{display:flex;align-items:center;gap:10px;flex:none}
.who .pic{
  width:38px;height:38px;border-radius:50%;flex:none;
  background:linear-gradient(140deg,var(--red-deep),#2a1420);
  border:1px solid rgba(255,255,255,.18);
  display:grid;place-items:center;font-size:15px;
  background-size:cover;background-position:center;
}
/* Their photo. Slightly brighter ring so it reads as a portrait, not a button. */
.who .pic.has-photo{
  border-color:rgba(255,255,255,.35);
  box-shadow:0 0 0 2px rgba(225,29,46,.35), 0 4px 14px rgba(0,0,0,.5);
}
.who .txt{line-height:1.25}
.who .t1{font-size:13.5px;font-weight:600}
.who .t2{font-size:11.5px;color:var(--mute)}

/* ============================ views ============================ */
.view{display:none}
.view.on{display:block}

/* ==================== landing / parallax stage ==================== */
/* Slightly taller than the viewport on purpose: without real scroll travel
   there is nothing for scroll-parallax to move against. */
/* Exactly the viewport tall — on a 16:9 display that IS a 16:9 stage. Forcing
   56.25vw instead made the stage taller than the window on short/wide sizes,
   which pushed the buttons below the fold. */
.stage{
  position:relative;overflow:hidden;
  height:100dvh;
  min-height:480px;
  background:
    radial-gradient(120% 70% at 50% 0%, #1a0d13 0%, transparent 60%),
    linear-gradient(180deg,#0b090d 0%,#08070a 100%);
}
/* The artwork box. Locked to the theatre render's own aspect ratio and grown
   to cover the viewport, so every percentage inside it — most importantly the
   screen rectangle — keeps its exact place in the image at any window size.
   --art-ar is the render's ratio: 1401/1080. */
/* ─── Tune these to your artwork ────────────────────────────────────────────
   Measured off the reference theatre render (1401×1080), where the screen
   bezel runs x 180→1222, y 128→703. If your theatre.jpg has different
   dimensions or the screen sits elsewhere, change these five numbers only —
   nothing else needs touching.                                             */
:root{
  --art-w: 1401;      /* theatre.jpg width  in px */
  --art-h: 1080;      /* theatre.jpg height in px */
  --art-ar: 1.2972;   /* --art-w / --art-h */
  --scr-x: 12.9%;     /* screen left   as % of image width  */
  --scr-y: 11.9%;     /* screen top    as % of image height */
  --scr-w: 74.4%;     /* screen width  as % of image width  */
  --scr-h: 53.2%;     /* screen height as % of image height */
  --seats-w: 78%;     /* seats.png width as % of the art box — matches the
                         sofa span in the reference composite */
}
/* Anchored to the BOTTOM, not centred. The artwork is ~4:3 while the page is
   16:9, so something has to crop — and the floor and the two of them on the
   sofa matter far more than the ceiling. */
.stage-inner{
  position:absolute;left:50%;bottom:0;
  transform:translateX(-50%);
  width:max(100%, calc(100dvh * var(--art-ar)));
  aspect-ratio:var(--art-w) / var(--art-h);
}

/* Layers move at different rates: room least, seats most. They ignore the
   pointer so it always reaches the stage for parallax — but the rows inside
   the screen must opt back in, or the cards are unclickable. */
.layer{position:absolute;inset:0;will-change:transform;pointer-events:none}
.big-screen,.big-screen .strip,.big-screen .card,.big-screen .see{pointer-events:auto}
.layer.bg{z-index:1}
.layer.screen{z-index:2}
.layer.seats{z-index:4}

/* --- BACKGROUND: theatre.jpg -----------------------------------------------
   Fills the art box exactly — no cropping, so the screen stays where measured. */
.theatre-img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:fill;
}

/* --- FOREGROUND: seats.png ------------------------------------------------
   Transparent cut-out, pinned bottom-centre as in the reference composite. */
.seats-img{
  position:absolute;left:50%;bottom:0;
  width:var(--seats-w);height:auto;
  transform:translateX(-50%);
  filter:drop-shadow(0 -12px 50px rgba(0,0,0,.55));
}

/* Drawn theatre — only until the real artwork is dropped into public/art/ */
.drawn-theatre{position:absolute;inset:0;overflow:hidden}
.drawn-theatre::before,.drawn-theatre::after{
  content:"";position:absolute;top:0;bottom:0;width:19%;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.028) 0 2px,transparent 2px 15px),
    linear-gradient(180deg,#1d0e13,#120a0e);
}
.drawn-theatre::before{left:0}
.drawn-theatre::after{right:0}
.cove{
  position:absolute;left:0;right:0;bottom:16%;height:3px;
  background:linear-gradient(90deg,transparent,var(--red-hi),transparent);
  filter:blur(2px);opacity:.85;
  box-shadow:0 0 40px 10px rgba(225,29,46,.35);
}
.cove.l2{bottom:auto;top:6%;opacity:.35}
.floor{
  position:absolute;left:0;right:0;bottom:0;height:26%;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(225,29,46,.18), transparent 70%),
    linear-gradient(180deg,#2a1116,#140a0d);
}
.side-poster{
  position:absolute;bottom:30%;width:8.5%;aspect-ratio:2/3;border-radius:4px;
  background:linear-gradient(160deg,#3a1a22,#160d11);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 0 30px rgba(225,29,46,.25);
}
.side-poster.left{left:4%;transform:perspective(400px) rotateY(24deg)}
.side-poster.right{right:4%;transform:perspective(400px) rotateY(-24deg)}

/* The live movie rows, sitting inside the screen.
   Geometry measured off the reference theatre render (1401×1080): the screen
   bezel runs x 180→1222, y 128→703, i.e. left 12.9%, top 11.9%, 74.4% wide,
   53.2% tall. Opaque so the posters baked into the artwork don't show through. */
.big-screen{
  position:absolute;
  left:var(--scr-x);top:var(--scr-y);
  width:var(--scr-w);height:var(--scr-h);
  border-radius:3px;
  overflow:hidden;
}
/* The dummy screen artwork, filling the bezel exactly. */
.screen-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* Stand-in until that image exists: a lit screen, not a black hole. */
.screen-glow{
  position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 50% 20%, rgba(255,90,105,.18) 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(225,29,46,.14) 0%, transparent 70%),
    linear-gradient(180deg,#141019 0%,#0a070d 100%);
  box-shadow:inset 0 0 90px rgba(0,0,0,.6);
}
/* Without artwork the screen needs its own frame to read as a screen. */
.stage:not(.has-art) .big-screen{
  border:1px solid rgba(255,255,255,.09);
  border-radius:10px;
  box-shadow:0 40px 120px rgba(0,0,0,.85), 0 0 90px rgba(225,29,46,.14),
             inset 0 0 80px rgba(0,0,0,.6);
}

/* seats silhouette (drawn fallback only) */
.drawn-seats{
  position:absolute;left:50%;bottom:-2%;transform:translateX(-50%);
  width:min(680px,64%);aspect-ratio:16/9;
}
.sofa{
  position:absolute;left:0;right:0;bottom:0;height:52%;
  background:linear-gradient(180deg,#6d1622,#3d0c14);
  border-radius:18px 18px 8px 8px;
  box-shadow:0 -10px 40px rgba(0,0,0,.6);
}
.sofa::before{
  content:"";position:absolute;left:4%;right:4%;top:-14%;height:36%;
  background:linear-gradient(180deg,#7c1a27,#5c1220);border-radius:14px;
}
.head{
  position:absolute;bottom:48%;border-radius:50% 50% 44% 44%;
  background:#0a0507;
}
.head.h1{left:31%;width:13%;aspect-ratio:1/1.15}
.head.h2{left:52%;width:12%;aspect-ratio:1/1.2}
.shoulders{
  position:absolute;bottom:44%;left:24%;width:52%;height:16%;
  background:#0a0507;border-radius:44% 44% 0 0;
}

/* hero copy — sits low in the frame, over a scrim that fades out well before
   the screen so the artwork is never flattened by a full-page overlay. */
.hero{
  position:relative;z-index:5;
  min-height:100dvh;display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 clamp(18px,4vw,52px) clamp(20px,3.4vh,40px);
  max-width:1400px;margin:0 auto;
  pointer-events:none;
}
.hero::before{
  content:"";position:absolute;left:50%;transform:translateX(-50%);
  bottom:0;width:100vw;height:52%;
  background:linear-gradient(180deg,
    transparent 0%,
    rgba(6,5,8,.30) 26%,
    rgba(6,5,8,.68) 55%,
    rgba(6,5,8,.90) 100%);
  pointer-events:none;z-index:-1;
}
.hero > *{pointer-events:auto}
.hero .kicker{
  font-size:clamp(14px,1.5vw,17px);font-weight:600;color:var(--red-hi);
  letter-spacing:-.01em;margin-bottom:1px;
}
.hero h1{
  font-size:clamp(31px,5.6vw,56px);font-weight:800;letter-spacing:-.038em;
  line-height:1.0;margin-bottom:11px;
  text-shadow:0 4px 34px rgba(0,0,0,.75);
}
.hero .sub{
  font-size:clamp(13.5px,1.45vw,16px);color:#d4cfda;line-height:1.55;
  max-width:480px;margin-bottom:20px;text-shadow:0 2px 12px rgba(0,0,0,.85);
}
.hero .sub b{color:#fff;font-weight:600}
.cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:15px 26px;border-radius:11px;
  font-size:15.5px;font-weight:600;letter-spacing:-.01em;
  transition:transform .12s ease,filter .18s ease,background .18s ease;
}
.btn:active{transform:translateY(1px) scale(.99)}
.btn.primary{background:var(--red);color:#fff;box-shadow:0 12px 34px rgba(225,29,46,.42)}
.btn.primary:hover{filter:brightness(1.1)}
.btn.ghost{background:rgba(255,255,255,.06);border:1px solid var(--line);color:var(--ink)}
.btn.ghost:hover{background:rgba(255,255,255,.12)}
.btn:disabled{opacity:.45;cursor:not-allowed}
/* Clears the floating buttons in the bottom-right corner. */
.signoff{
  position:absolute;right:96px;bottom:clamp(38px,6vh,68px);
  padding-left:16px;border-left:2px solid var(--red);
  font-size:14.5px;color:#cfc9d6;line-height:1.5;font-weight:500;
  text-align:left;white-space:nowrap;
}

/* ==================== movie rows ==================== */
.rows{padding:8px 0 0}
.row{margin-bottom:20px;position:relative}
.row-head{
  display:flex;align-items:center;gap:13px;
  padding:0 22px 10px;
}
.row-head h3{font-size:15px;font-weight:600;letter-spacing:-.012em;color:#fff}
.row-head .see{font-size:12.5px;color:var(--red-hi);font-weight:600;letter-spacing:-.005em}
/* Scroll affordance on the right, as in the reference. */
.row-head .chev{
  margin-left:auto;color:var(--mute);font-size:17px;line-height:1;
  opacity:.7;padding:2px 4px;
}
.row-head .chev:hover{color:#fff;opacity:1}
.strip{
  display:flex;gap:11px;overflow-x:auto;padding:0 20px 4px;
  scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:x proximity;
}
.strip::-webkit-scrollbar{display:none}

.card{
  flex:none;width:196px;scroll-snap-align:start;
  border-radius:8px;overflow:hidden;position:relative;
  background:linear-gradient(160deg,#241a20,#120d12);
  border:1px solid rgba(255,255,255,.08);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
  text-align:left;
}
/* Landscape thumbnails: the posters are frame grabs from the film, so a 16:9
   card shows them uncropped instead of slicing a portrait out of the middle. */
.card .thumb{width:100%;aspect-ratio:16/9;object-fit:cover;background:#171018}
.card .ph{
  width:100%;aspect-ratio:16/9;display:grid;place-items:center;
  background:linear-gradient(160deg,#2b1d25,#140e13);
  color:var(--mute2);font-size:26px;
}
.card .cap{
  padding:7px 8px 9px;font-size:11.5px;font-weight:500;color:#ded9e4;
  line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card:hover{transform:translateY(-4px);border-color:rgba(225,29,46,.6);box-shadow:0 14px 34px rgba(0,0,0,.6)}
.card.playing{border-color:var(--red);box-shadow:0 0 0 1px var(--red),0 12px 30px rgba(225,29,46,.3)}
.card .badge-now{
  position:absolute;top:6px;left:6px;
  background:var(--red);color:#fff;font-size:9.5px;font-weight:700;
  padding:3px 7px;border-radius:5px;letter-spacing:.06em;
}

/* ==================== movies page ==================== */
.page{padding:calc(var(--nav-h) + 26px) clamp(16px,4vw,40px) 120px;max-width:1400px;margin:0 auto}
.page h2{font-size:clamp(22px,3.2vw,32px);font-weight:800;letter-spacing:-.03em;margin-bottom:6px}
.page .lead{color:var(--mute);font-size:14.5px;margin-bottom:24px;line-height:1.6}
.grid{
  display:grid;gap:clamp(12px,1.6vw,18px);
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
}
.grid .card{width:auto}
.grid .card .cap{font-size:12.5px;padding:9px 10px 11px}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:22px}
.field{
  flex:1;min-width:180px;display:flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  border-radius:10px;padding:11px 14px;
}
.field input{flex:1;min-width:0;background:none;border:none;outline:none;color:var(--ink);font-size:14.5px}
.field input::placeholder{color:var(--mute2)}
.chip{
  padding:10px 15px;border-radius:10px;font-size:13.5px;font-weight:500;
  background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--mute);
}
.chip:hover{background:rgba(255,255,255,.1);color:var(--ink)}
.folders{margin-top:26px;padding-top:20px;border-top:1px solid var(--line2)}
.folders h4{font-size:13px;font-weight:600;color:var(--mute);letter-spacing:.04em;text-transform:uppercase;margin-bottom:12px}
.folders code{
  display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;color:#b9b2c2;background:rgba(255,255,255,.04);
  border:1px solid var(--line2);border-radius:8px;padding:9px 12px;margin-bottom:7px;
  word-break:break-all;
}
.note{font-size:12.5px;color:var(--mute2);line-height:1.65;margin-top:10px}
.note b{color:var(--mute)}

/* ==================== theatre (player) ==================== */
.theatre{padding:calc(var(--nav-h) + 14px) clamp(10px,2vw,26px) 110px;max-width:1240px;margin:0 auto}
.screen-frame{
  background:#000;border:1px solid rgba(255,255,255,.08);border-radius:12px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.8),0 0 70px rgba(225,29,46,.12);
}
.screen-wrap{position:relative;background:#000}
video{width:100%;display:block;aspect-ratio:16/9;background:#000;object-fit:contain}
video::cue{font-family:var(--sans);background:rgba(0,0,0,.62);color:#fff;line-height:1.35}

.veil{
  position:absolute;inset:0;display:none;place-items:center;z-index:5;cursor:pointer;
  background:radial-gradient(60% 60% at 50% 50%,rgba(143,15,28,.5),rgba(3,2,4,.9));
  text-align:center;padding:22px;
}
.veil.show{display:grid}
.veil b{display:block;font-size:clamp(16px,4.4vw,21px);font-weight:700;letter-spacing:-.02em}
.veil span{display:block;margin-top:7px;font-size:13px;color:#cfc9d6}

.floaties{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:6}
.floaty{position:absolute;bottom:8%;font-size:34px;animation:drift 2.6s ease-out forwards;
  filter:drop-shadow(0 3px 8px rgba(0,0,0,.6))}
@keyframes drift{
  0%{opacity:0;transform:translateY(0) scale(.5)}
  15%{opacity:1;transform:translateY(-14px) scale(1.15)}
  100%{opacity:0;transform:translateY(-190px) scale(1)}
}

/* Live timeline for transcoded films */
.livebar{display:flex;align-items:center;gap:12px;padding:12px 4px 0}
.livebar .lt{
  font-size:12.5px;color:var(--mute);font-variant-numeric:tabular-nums;
  min-width:52px;text-align:center;flex:none;
}
.ltrack{
  position:relative;flex:1;height:5px;border-radius:3px;
  background:rgba(255,255,255,.16);cursor:pointer;
}
.ltrack::before{content:"";position:absolute;inset:-11px 0;}   /* easy to grab */
.lfill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:3px;background:var(--red)}
.lknob{
  position:absolute;top:50%;left:0;width:13px;height:13px;border-radius:50%;
  background:#fff;transform:translate(-50%,-50%);
  box-shadow:0 2px 8px rgba(0,0,0,.6);transition:transform .12s ease;
}
.ltrack:hover .lknob{transform:translate(-50%,-50%) scale(1.25)}
.livebar.seeking .lfill{opacity:.6}

.nowbar{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:14px 4px 0;
}
.nowbar .t{flex:1;min-width:180px}
.nowbar .t1{font-size:16.5px;font-weight:700;letter-spacing:-.02em}
.nowbar .t2{font-size:12.5px;color:var(--mute);margin-top:2px}

.controls{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:14px 4px 0}
.ctl{
  padding:11px 17px;border-radius:10px;font-size:14px;font-weight:500;
  background:rgba(255,255,255,.06);border:1px solid var(--line);
  transition:background .16s ease;
}
.ctl:hover{background:rgba(255,255,255,.12)}
.ctl.red{background:var(--red);border-color:transparent;color:#fff;font-weight:600}
.ctl.red:hover{filter:brightness(1.1)}
.ctl.on{border-color:var(--red);color:#fff}
.ctl:disabled{opacity:.4;cursor:not-allowed}
.vol{display:inline-flex;align-items:center;gap:9px;background:rgba(255,255,255,.06);
  border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.vol input{-webkit-appearance:none;appearance:none;width:88px;height:4px;border-radius:2px;
  background:rgba(255,255,255,.2);outline:none}
.vol input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;
  background:var(--red-hi);box-shadow:0 0 10px rgba(225,29,46,.7);cursor:pointer}
.vol input::-moz-range-thumb{width:14px;height:14px;border:none;border-radius:50%;
  background:var(--red-hi);box-shadow:0 0 10px rgba(225,29,46,.7);cursor:pointer}

.statusrow{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:14px 4px 0}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12.5px;color:var(--mute);
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  padding:7px 13px;border-radius:999px;
}
.dot{width:8px;height:8px;border-radius:50%;background:#5b5464;flex:none}
.dot.live{background:#3ddc84;box-shadow:0 0 9px #3ddc84}
.dot.wait{background:var(--red-hi);box-shadow:0 0 9px var(--red-hi);animation:pulse 1.3s infinite}
@keyframes pulse{50%{opacity:.35}}
.pill.role{color:#fff;background:rgba(225,29,46,.2);border-color:rgba(225,29,46,.5);
  font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.pill.role.guest{background:rgba(255,255,255,.06);border-color:var(--line);color:var(--ink)}

/* ==================== the door (PIN gate) ==================== */
.gate{
  position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:22px;
  background:
    radial-gradient(90% 60% at 50% 0%,rgba(143,15,28,.35) 0%,transparent 62%),
    linear-gradient(180deg,#0c0a0e,#060507);
  overflow-y:auto;
}
.door{width:min(380px,100%);text-align:center;animation:doorIn .5s cubic-bezier(.2,.9,.3,1.05) both}
@keyframes doorIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.door .mk{
  font-size:26px;font-weight:800;letter-spacing:-.03em;color:var(--red);
  text-shadow:0 0 30px var(--glow);margin-bottom:4px;
}
.door .mk span{color:var(--mute);font-size:14px;font-weight:500;letter-spacing:0}
.door h2{font-size:clamp(21px,5.6vw,27px);font-weight:700;letter-spacing:-.025em;margin:26px 0 8px}
.door p{font-size:14.5px;color:var(--mute);line-height:1.6;margin-bottom:24px}
.door p b{color:#fff;font-weight:600}

.pinrow{display:flex;gap:12px;justify-content:center;margin-bottom:20px}
.pinbox{
  width:60px;height:70px;border-radius:12px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  display:grid;place-items:center;font-size:30px;font-weight:700;
  transition:border-color .18s ease,background .18s ease;
}
.pinbox.filled{border-color:var(--red);background:rgba(225,29,46,.12)}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:280px;margin:0 auto}
.keypad button{
  padding:17px 0;border-radius:12px;font-size:21px;font-weight:600;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  transition:background .14s ease;
}
.keypad button:hover{background:rgba(255,255,255,.11)}
.keypad button:active{background:rgba(225,29,46,.25)}
.keypad button.wide{grid-column:span 1;font-size:16px;color:var(--mute)}
.gate-msg{margin-top:18px;font-size:13.5px;min-height:20px;color:var(--mute)}
.gate-msg.bad{color:#ff8d99}
.door.shake{animation:shake .4s}
@keyframes shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-9px)}40%,80%{transform:translateX(9px)}}

.welcome{width:min(420px,100%);text-align:center;animation:doorIn .55s ease both}
.welcome .big{
  font-size:clamp(27px,7.4vw,40px);font-weight:800;letter-spacing:-.035em;
  line-height:1.14;margin-bottom:14px;
}
.welcome .big em{color:var(--red-hi);font-style:normal}
.welcome p{font-size:15px;color:#cfc9d6;line-height:1.65;margin-bottom:28px}
.welcome .heart{font-size:36px;margin-bottom:16px;animation:beat 1.5s ease-in-out infinite}
@keyframes beat{0%,100%{transform:scale(1)}30%{transform:scale(1.16)}}

/* ==================== floating mic ==================== */
/* Minimal record button, in the shape WhatsApp/Telegram use: a small circle
   with a plain mic glyph. Red when live, quiet grey when idle. */
.mic-float{
  position:fixed;z-index:180;width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;padding:0;
  background:rgba(18,15,22,.72);border:1px solid rgba(255,255,255,.14);
  box-shadow:0 6px 20px rgba(0,0,0,.5);
  backdrop-filter:blur(10px);
  touch-action:none;user-select:none;-webkit-user-select:none;
  transition:opacity .4s ease,transform .14s ease,background .2s ease,border-color .2s ease;
  opacity:.4;color:var(--red-hi);
}
.mic-float svg{width:19px;height:19px;display:block;pointer-events:none}
.mic-float:hover,.mic-float.awake{opacity:1}
.mic-float.talking{
  opacity:1;background:var(--red);border-color:rgba(255,255,255,.42);color:#fff;
  transform:scale(1.06);
  box-shadow:0 0 0 5px rgba(225,29,46,.24),0 6px 20px rgba(0,0,0,.5);
}
.mic-float.hearing{
  opacity:1;border-color:#3ddc84;color:#3ddc84;
  box-shadow:0 0 0 4px rgba(61,220,132,.2),0 6px 20px rgba(0,0,0,.5);
}
.mic-float .ring{
  position:absolute;inset:-3px;border-radius:50%;pointer-events:none;
  border:2px solid transparent;
}
.mic-float.talking .ring{border-color:rgba(255,255,255,.4);animation:ripple 1.4s ease-out infinite}
@keyframes ripple{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.34);opacity:0}}
.mic-float .lvl{
  position:absolute;bottom:-2px;left:50%;transform:translateX(-50%);
  width:24px;height:2px;border-radius:2px;background:rgba(255,255,255,.18);overflow:hidden;
}
.mic-float .lvl i{display:block;height:100%;width:0;background:#fff;transition:width .08s linear}
.mic-hint{
  position:fixed;z-index:179;font-size:11.5px;color:#fff;
  background:rgba(10,8,12,.9);border:1px solid var(--line);
  padding:5px 10px;border-radius:7px;white-space:nowrap;pointer-events:none;
  opacity:0;transition:opacity .25s ease;
}
.mic-hint.show{opacity:1}

/* ==================== FABs + popups ==================== */
.fabs{
  position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:170;display:flex;flex-direction:column;gap:10px;align-items:flex-end;
}
.fab{
  width:52px;height:52px;border-radius:50%;font-size:20px;
  display:grid;place-items:center;position:relative;
  background:rgba(20,17,24,.85);border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 28px rgba(0,0,0,.6);backdrop-filter:blur(10px);
  transition:opacity .4s ease,transform .14s ease,background .18s ease;
}
.fab:hover{background:rgba(36,30,42,.95)}
.fab.red{background:var(--red);border-color:transparent}
.badge{
  position:absolute;top:-3px;right:-3px;min-width:20px;height:20px;padding:0 5px;
  border-radius:10px;background:var(--red);color:#fff;
  font-size:11.5px;font-weight:700;display:grid;place-items:center;
  box-shadow:0 2px 7px rgba(0,0,0,.5);
}

.pop{
  position:fixed;z-index:190;right:16px;
  bottom:calc(84px + env(safe-area-inset-bottom));
  width:min(370px,calc(100vw - 32px));
  background:var(--panel);
  border:1px solid var(--line);border-radius:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.8);
  display:flex;flex-direction:column;overflow:hidden;
  animation:popIn .18s ease-out both;
}
@keyframes popIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.pop-head{
  display:flex;align-items:center;gap:10px;padding:13px 15px;
  border-bottom:1px solid var(--line2);
}
.pop-head b{font-size:13.5px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:#fff;flex:1}
.pop-head .x{color:var(--mute);font-size:21px;line-height:1;padding:0 4px}
.pop-head .x:hover{color:#fff}

#chatPop{height:min(64vh,470px)}
.log{flex:1;overflow-y:auto;padding:13px;display:flex;flex-direction:column;gap:9px}
.msg{max-width:86%;padding:9px 13px;border-radius:15px;font-size:14.5px;line-height:1.45;
  word-wrap:break-word;overflow-wrap:anywhere}
.msg .who2{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;
  opacity:.7;margin-bottom:3px;font-weight:600}
.msg.them{align-self:flex-start;background:rgba(255,255,255,.08);border-bottom-left-radius:5px}
.msg.mine{align-self:flex-end;background:var(--red);color:#fff;border-bottom-right-radius:5px}
.msg.sys{align-self:center;background:none;color:var(--mute2);font-size:12.5px;padding:2px}
.log .empty{margin:auto;text-align:center;color:var(--mute2);font-size:13.5px;padding:24px;line-height:1.7}

.composer{display:flex;gap:9px;padding:11px;border-top:1px solid var(--line2)}
.composer input{
  flex:1;min-width:0;font-size:15px;color:var(--ink);
  background:rgba(255,255,255,.07);border:1px solid var(--line);
  border-radius:999px;padding:11px 16px;outline:none;
}
.composer input:focus{border-color:var(--red)}
.composer input::placeholder{color:var(--mute2)}
.composer button{width:44px;height:44px;border-radius:50%;flex:none;display:grid;place-items:center;
  background:var(--red);color:#fff;font-size:16px}

.reactbar{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;padding:9px 11px;
  border-top:1px solid var(--line2)}
.reactbar button{
  background:rgba(255,255,255,.06);border:1px solid var(--line2);
  font-size:20px;padding:7px 0;border-radius:10px;line-height:1;
}
.reactbar button:hover{background:rgba(225,29,46,.22)}

.body-pad{padding:16px;display:flex;flex-direction:column;gap:13px;align-items:center;text-align:center}
.body-pad .note2{font-size:12.5px;color:var(--mute);line-height:1.55}
.meter{width:130px;height:6px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden}
.meter i{display:block;height:100%;width:0;background:var(--red-hi);transition:width .08s linear}
.linkbox{width:100%;background:rgba(255,255,255,.05);border:1px solid var(--line);
  border-radius:10px;padding:11px 13px}
.linkbox code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;
  color:#ffb3bb;word-break:break-all;line-height:1.5}
.sharerow{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}
audio{display:none}

/* ==================== responsive ==================== */
@media (max-width:900px){
  /* backdrop-filter makes an element the containing block for fixed-position
     descendants — with it on, the tab bar below pinned itself to the bottom of
     the 64px nav and covered the brand. */
  .nav{backdrop-filter:none;background:linear-gradient(180deg,rgba(8,7,10,.97),rgba(8,7,10,.72) 78%,transparent)}
  .tabs{
    position:fixed;left:0;right:0;top:auto;bottom:0;margin:0;z-index:110;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom));
    background:rgba(10,8,12,.96);backdrop-filter:blur(14px);
    border-top:1px solid var(--line2);
    justify-content:space-around;gap:4px;
  }
  .tab{flex-direction:column;gap:3px;font-size:10.5px;padding:6px 10px;background:none}
  .tab .ic{font-size:19px}
  .tab.on{background:none;color:var(--red-hi);box-shadow:none}
  .who .txt{display:none}
  .fabs{bottom:calc(76px + env(safe-area-inset-bottom))}
  .pop{bottom:calc(140px + env(safe-area-inset-bottom))}
  .page,.theatre{padding-bottom:150px}
  .drawn-seats{width:min(560px,90%)}
  .side-poster{display:none}
  .signoff{display:none}
  .hero{padding-bottom:130px}
}

/* Portrait phones. Covering a tall screen with a 4:3 render means cropping away
   almost the whole room, so instead the artwork sits in normal flow as a full
   width band — entire theatre, screen, floor and the two of them all visible —
   and the copy takes the space beneath it. No overlap, no dead gap. */
@media (orientation:portrait) and (max-width:900px){
  .stage{
    height:auto;min-height:100dvh;
    display:flex;flex-direction:column;
  }
  .stage-inner{
    position:relative;left:auto;bottom:auto;transform:none;
    width:100%;flex:none;
    margin-top:var(--nav-h);
  }
  .hero{
    position:relative;min-height:0;flex:1;
    /* Centred in the space under the artwork, so the slack is shared above and
       below instead of pooling into one dead gap. */
    justify-content:center;
    padding:22px clamp(18px,5.4vw,26px) 104px;
  }
  /* Keep the buttons out from under the floating chat/link circles. */
  .cta{padding-right:68px}
  .hero::before{
    height:100%;width:100%;left:0;transform:none;
    background:linear-gradient(180deg,rgba(6,5,8,.55) 0%,var(--bg) 38%);
  }
  .hero h1{font-size:clamp(30px,8.4vw,40px)}
  .hero .sub{max-width:none}
  .cta{gap:10px}
  .cta .btn{flex:1;justify-content:center;min-width:0}
}

/* phone landscape: the film owns the screen */
@media (orientation:landscape) and (max-height:520px){
  .theatre.view.on ~ .tabs,.nav{opacity:0;pointer-events:none;transition:opacity .3s}
  .nav.awake{opacity:1;pointer-events:auto}
  body.in-theatre{background:#000}
  body.in-theatre .tabs{display:none}
  .theatre{padding:0;max-width:none}
  .theatre .screen-frame{border:none;border-radius:0;box-shadow:none;height:100dvh;
    display:grid;place-items:center}
  .theatre .screen-wrap{width:100%;height:100dvh}
  .theatre video{height:100dvh;aspect-ratio:auto}
  .theatre .nowbar,.theatre .statusrow{display:none}
  .theatre .controls{
    position:fixed;left:0;right:0;bottom:0;z-index:150;
    padding:9px 74px calc(9px + env(safe-area-inset-bottom)) 12px;
    background:linear-gradient(180deg,transparent,rgba(0,0,0,.8));
    opacity:0;pointer-events:none;transition:opacity .25s ease;
  }
  .theatre .controls.peek{opacity:1;pointer-events:auto}
  .ctl{padding:8px 13px;font-size:13px}
  .fabs{bottom:calc(10px + env(safe-area-inset-bottom));right:10px;flex-direction:row-reverse}
  .fab{width:44px;height:44px;font-size:18px;opacity:.3}
  .fabs:hover .fab,.fabs.awake .fab{opacity:1}
  .fab.alert{opacity:1}
  .pop{bottom:calc(62px + env(safe-area-inset-bottom));width:min(330px,calc(100vw - 20px))}
  #chatPop{height:min(80vh,290px)}
  .mic-float{width:50px;height:50px;font-size:20px}
}

/* Decorative animations are dropped for reduced-motion users, but the parallax
   itself is damped in JS rather than killed here — a `transform:none !important`
   silently overrode the layers and looked like a broken feature. */
@media (prefers-reduced-motion:reduce){
  .floaty,.mic-float.talking .ring,.gate-heart,.welcome .heart{animation:none !important}
}

/* ==================== who's watching ==================== */
.picker{
  position:fixed;inset:0;z-index:400;overflow-y:auto;
  padding:clamp(28px,5vh,64px) clamp(18px,4vw,60px) 60px;
  background:
    radial-gradient(120% 90% at 84% 40%, rgba(150,12,22,.55) 0%, transparent 62%),
    radial-gradient(90% 70% at 10% 0%, rgba(60,6,12,.7) 0%, transparent 60%),
    linear-gradient(180deg,#0a0709 0%,#050406 100%);
}
/* the soft red curtain wall on the right, as in the reference */
.picker::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(90deg,
    rgba(255,255,255,.018) 0 2px, transparent 2px 26px);
  mask-image:linear-gradient(90deg,transparent 55%,#000 100%);
  -webkit-mask-image:linear-gradient(90deg,transparent 55%,#000 100%);
}
.picker-head{position:relative;z-index:2;max-width:1400px;margin:0 auto}
.picker-head .mp{color:var(--red);font-size:15px;font-weight:600;letter-spacing:-.01em}
.picker-head h1{
  font-size:clamp(30px,5.2vw,52px);font-weight:800;letter-spacing:-.035em;
  line-height:1.04;margin:6px 0 10px;
}
.picker-head p{color:#bfb8c6;font-size:clamp(13.5px,1.5vw,16px);line-height:1.55}

.stagewrap{
  position:relative;z-index:2;display:grid;place-items:center;
  min-height:min(60vh,540px);margin-top:clamp(10px,4vh,40px);
  perspective:1400px;
}
.cards{
  display:flex;align-items:flex-end;justify-content:center;
  gap:clamp(14px,2.4vw,34px);transform-style:preserve-3d;
}
.pcard{
  position:relative;padding:0;background:none;border:none;
  display:flex;flex-direction:column;align-items:center;gap:14px;
  /* the spring: overshoot slightly, then settle */
  transition:transform .62s cubic-bezier(.34,1.4,.44,1),
             filter .5s ease, opacity .5s ease;
  transform-style:preserve-3d;
}
.pimg{
  display:block;width:clamp(112px,13vw,180px);aspect-ratio:2/3;
  border-radius:clamp(14px,1.6vw,22px);overflow:hidden;
  background:linear-gradient(160deg,#d81f22,#9c1114);
  box-shadow:0 26px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.05);
  position:relative;
}
.pimg img{width:100%;height:100%;object-fit:cover;display:block}
/* reflection on the floor */
.pcard::after{
  content:"";position:absolute;left:50%;transform:translateX(-50%) scaleY(-1);
  top:calc(100% - 34px);width:clamp(112px,13vw,180px);height:74px;
  border-radius:clamp(14px,1.6vw,22px);
  background:inherit;opacity:.16;filter:blur(2px);
  background-image:var(--refl);background-size:cover;background-position:top center;
  mask-image:linear-gradient(180deg,#000,transparent 72%);
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 72%);
  pointer-events:none;
}
.pname{
  font-size:clamp(12px,1.2vw,15px);font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:#cfc9d6;transition:color .4s ease;
}
/* depth: the centre card comes forward, the others sit back and blur */
.pcard[data-slot="center"]{transform:translateZ(70px) scale(1.14)}
.pcard[data-slot="left"]{transform:translateZ(-90px) rotateY(13deg) scale(.9);filter:blur(1.1px) brightness(.66)}
.pcard[data-slot="right"]{transform:translateZ(-90px) rotateY(-13deg) scale(.9);filter:blur(1.1px) brightness(.66)}
.pcard[data-slot="center"] .pname{color:#fff;font-size:clamp(13px,1.35vw,17px)}
.pcard[data-slot="center"] .pimg{box-shadow:0 34px 80px rgba(0,0,0,.8), 0 0 60px rgba(225,29,46,.3)}
.pcard:hover{filter:none;cursor:pointer}
.pcard[data-slot="left"]:hover,.pcard[data-slot="right"]:hover{filter:blur(0) brightness(.9)}
.picker.busy .pcard{pointer-events:none}
.pcard.gone{opacity:0;transform:translateZ(-260px) scale(.7)}

/* the sheets */
.psheet{
  position:relative;z-index:3;margin:clamp(18px,4vh,40px) auto 0;
  width:min(380px,100%);text-align:center;
  animation:sheetIn .45s cubic-bezier(.2,.9,.3,1.05) both;
}
@keyframes sheetIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.psheet h2{font-size:clamp(21px,3.4vw,28px);font-weight:700;letter-spacing:-.02em;margin-bottom:6px}
.psheet > p{color:var(--mute);font-size:14.5px;margin-bottom:20px}
.pback{
  position:absolute;top:-6px;left:0;color:var(--mute);font-size:14px;padding:6px 10px;
  border-radius:8px;
}
.pback:hover{color:#fff;background:rgba(255,255,255,.07)}
.pmsg{margin-top:16px;font-size:13.5px;min-height:20px;color:var(--mute)}
.pmsg.bad{color:#ff8d99}
.psheet.shake{animation:shake .42s}

.gstep{display:flex;flex-direction:column;gap:12px;align-items:center}
.gstep input{
  width:100%;font-size:16px;color:var(--ink);text-align:center;
  background:rgba(255,255,255,.06);border:1px solid var(--line);
  border-radius:12px;padding:14px 16px;outline:none;
}
.gstep input:focus{border-color:var(--red)}
.gstep .btn{width:100%;justify-content:center}
.codeboxes{display:flex;gap:8px;justify-content:center;margin-bottom:2px}
.codeboxes i{
  width:38px;height:50px;border-radius:10px;font-style:normal;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  display:grid;place-items:center;font-size:22px;font-weight:700;
  font-family:ui-monospace,Menlo,monospace;
}
.codeboxes i.on{border-color:var(--red);background:rgba(225,29,46,.13)}
#guestCode{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}

.welcome .hindi{
  font-size:clamp(15px,2vw,19px);color:#f0c9cf;margin:10px 0 4px;line-height:1.7;
}

/* host: people panel */
.codebox{
  width:100%;text-align:center;padding:14px;border-radius:12px;
  background:rgba(225,29,46,.12);border:1px solid rgba(225,29,46,.4);
}
.codebox .cl{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--mute)}
.codebox .cv{
  font-size:34px;font-weight:800;letter-spacing:.16em;margin:6px 0 2px;
  font-family:ui-monospace,Menlo,monospace;color:#fff;
}
.codebox .cn{font-size:11.5px;color:var(--mute)}
.ulist{width:100%;display:flex;flex-direction:column;gap:7px;margin-top:4px}
.urow{
  display:flex;align-items:center;gap:10px;text-align:left;
  padding:10px 12px;border-radius:10px;
  background:rgba(255,255,255,.05);border:1px solid var(--line2);
}
.urow .un{flex:1;min-width:0;font-size:14px;font-weight:600}
.urow .us{font-size:11.5px;color:var(--mute);font-weight:400;display:block;margin-top:2px}
.urow .kick{
  font-size:12px;padding:6px 11px;border-radius:8px;flex:none;
  background:rgba(225,29,46,.2);border:1px solid rgba(225,29,46,.45);color:#ffb3bb;
}
.urow .kick:hover{background:var(--red);color:#fff}
.ulist .none{color:var(--mute2);font-size:13px;text-align:center;padding:10px}

@media (max-width:700px){
  .picker{padding-top:26px}
  .cards{gap:8px}
  .pcard[data-slot="left"],.pcard[data-slot="right"]{transform:translateZ(-70px) scale(.82);filter:blur(1px) brightness(.6)}
  .pcard[data-slot="center"]{transform:translateZ(40px) scale(1.06)}
  .pcard::after{display:none}
}
