:root{ --gold:#f0cd7e; --ink:#f4ead6; --dim:rgba(244,234,214,.72); --faint:rgba(244,234,214,.45); --line:rgba(240,205,126,.22); --accent:#dba63c;
  --ui:Montserrat, 'Helvetica Neue', Arial, sans-serif; --display:'Cinzel', 'Trajan Pro', Georgia, serif; }
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body{ margin:0; min-height:100%; background:#050403; color:var(--ink); font-family:var(--ui); -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; touch-action:manipulation; }
body{ background:radial-gradient(ellipse at 50% 0%, rgba(80,50,14,.5), rgba(0,0,0,0) 60%), #050403; }
*::selection{ background:transparent; }
.hidden{ display:none !important; }
svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* gallery */
#gallery{ max-width:1180px; margin:0 auto; padding:max(14px, env(safe-area-inset-top)) 16px 60px; }
.top{ display:flex; justify-content:space-between; gap:10px; }
.back{ display:inline-flex; align-items:center; gap:6px; color:var(--dim); text-decoration:none; font-size:13px; font-weight:700; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); }
.back svg{ width:16px; height:16px; }
.intro{ text-align:center; margin:22px auto 26px; max-width:640px; }
.kicker{ font-family:var(--display); letter-spacing:.35em; text-transform:uppercase; font-size:12px; color:var(--gold); }
h1{ font-family:var(--display); font-size:clamp(36px, 8vw, 60px); margin:10px 0 12px; letter-spacing:.06em; text-shadow:0 0 40px rgba(255,170,60,.35); }
.intro p{ color:var(--dim); line-height:1.55; font-size:15px; font-weight:700; margin:0; }
.intro b{ color:var(--gold); }
.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:14px; }
.card{ position:relative; aspect-ratio:9/16; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.1); background:#111; padding:0; cursor:pointer; color:#fff; font:inherit; text-align:left;
  box-shadow:0 10px 30px rgba(0,0,0,.5); transition:transform .15s, box-shadow .15s; }
.card:hover{ transform:translateY(-3px); box-shadow:0 14px 40px rgba(0,0,0,.6), 0 0 0 2px var(--accent); }
.card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.card::after{ content:''; position:absolute; inset:0; background:linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0) 35%, rgba(0,0,0,0) 55%, rgba(0,0,0,.85)); }
.card .hook{ position:absolute; z-index:1; left:10px; right:10px; top:12px; font-weight:900; font-size:15px; line-height:1.15; text-transform:uppercase; text-shadow:0 2px 0 #000, 0 0 8px #000; }
.card .meta{ position:absolute; z-index:1; left:10px; right:10px; bottom:10px; display:flex; justify-content:space-between; align-items:flex-end; gap:6px; }
.card .meta b{ font-size:13px; font-weight:800; }
.card .meta i{ font-style:normal; font-size:11px; font-weight:800; background:var(--accent); color:#0b0b0b; border-radius:999px; padding:3px 8px; }

/* player */
#player{ display:none; position:fixed; inset:0; z-index:20; background:#000; padding:max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); gap:18px; align-items:center; justify-content:center; }
body.watching{ overflow:hidden; }
body.watching #player{ display:flex; }
body.watching #gallery{ display:none; }
.stage{ position:relative; height:min(calc(100dvh - 24px), calc((100vw - 24px)*16/9)); aspect-ratio:9/16; border-radius:18px; overflow:hidden; background:#000; box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 20px 60px rgba(0,0,0,.8); }
#ad{ width:100%; height:100%; display:block; cursor:pointer; }
.stage .bigPlay{ position:absolute; left:50%; top:50%; width:86px; height:86px; margin:-43px 0 0 -43px; border-radius:50%; border:0; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 0 0 2px rgba(255,255,255,.4); }
.stage .bigPlay svg{ width:40px; height:40px; fill:#fff; stroke:none; margin-left:5px; }
.loading{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.6); font-weight:800; letter-spacing:.1em; }
.bar{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,.15); }
.bar i{ display:block; height:100%; width:0; background:var(--accent); }
.recBadge{ display:none; position:absolute; top:10px; left:50%; transform:translateX(-50%); background:rgba(200,20,30,.9); color:#fff; font-size:12px; font-weight:800; padding:6px 12px; border-radius:999px; align-items:center; gap:6px; white-space:nowrap; }
.recBadge i{ width:8px; height:8px; border-radius:50%; background:#fff; animation:blink 1s infinite; }
@keyframes blink{ 50%{ opacity:.2; } }
body.recording .recBadge{ display:flex; }
body.recording .side{ opacity:.35; pointer-events:none; }
.side{ width:320px; max-width:100%; display:flex; flex-direction:column; gap:12px; }
.sideHead{ display:flex; align-items:center; gap:10px; }
.sideHead h2{ margin:0; font-size:20px; font-weight:900; }
.icon{ width:44px; height:44px; border-radius:50%; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); color:#fff; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; flex:none; }
#ppIcon{ fill:#fff; stroke:none; }
.controls{ display:flex; gap:10px; }
.btn{ display:flex; align-items:center; justify-content:center; gap:8px; padding:14px 18px; border-radius:14px; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.08); color:#fff; font:800 15px var(--ui); text-decoration:none; cursor:pointer; }
.btn.gold{ background:var(--accent); color:#0b0b0b; border-color:transparent; box-shadow:0 0 30px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.ghost{ background:transparent; }
.hint{ margin:0; font-size:12px; color:var(--faint); line-height:1.45; font-weight:700; }
.hint b{ color:var(--dim); }
.post{ border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:12px; background:rgba(255,255,255,.04); }
.postHead{ display:flex; justify-content:space-between; align-items:center; font-size:12px; font-weight:800; color:var(--faint); text-transform:uppercase; letter-spacing:.08em; }
.post p{ margin:8px 0 0; font-size:13px; line-height:1.45; color:var(--dim); font-weight:700; -webkit-user-select:text; user-select:text; }
.post p::selection{ background:rgba(240,205,126,.35); }
.mini{ font:800 12px var(--ui); color:#0b0b0b; background:var(--accent); border:0; border-radius:999px; padding:6px 12px; cursor:pointer; }

/* on a phone the controls sit over the bottom of the video */
@media (max-width:760px){
  #player{ flex-direction:column; justify-content:flex-start; gap:10px; }
  .stage{ height:auto; width:min(100%, calc((100dvh - 190px)*9/16)); flex:none; }
  .side{ width:min(100%, 520px); }
  .sideHead h2{ font-size:16px; }
  .side .hint, .post p{ display:none; }
  .post{ grid-column:1 / -1; padding:8px 12px; }
  .side{ display:grid; grid-template-columns:auto 1fr; align-items:center; gap:10px; }
  .sideHead{ grid-column:1 / -1; }
  .controls .icon{ width:40px; height:40px; }
}

.sheet{ position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.75); display:flex; align-items:center; justify-content:center; padding:16px; }
.sheetBox{ width:min(380px, 100%); max-height:100%; overflow:auto; background:#15120e; border:1px solid var(--line); border-radius:20px; padding:18px; display:flex; flex-direction:column; gap:10px; }
.sheetBox h3{ margin:0; font-size:18px; font-weight:900; }
.sheetBox video{ width:100%; max-height:46vh; border-radius:12px; background:#000; }
.toast{ position:fixed; left:50%; bottom:max(20px, env(safe-area-inset-bottom)); transform:translate(-50%, 30px); opacity:0; transition:.25s; background:#222; color:#fff; font-weight:800; font-size:13px; padding:10px 16px; border-radius:999px; z-index:50; pointer-events:none; }
.toast.show{ opacity:1; transform:translate(-50%, 0); }
