/* ============ Blnq Launch Film — player chrome ============
   Palette extracted from live blnq.studio CSS — see DIRECTION.md */
:root {
  color-scheme: dark;
  --accent: #ffd300;          /* --color-bg-accent */
  --on-accent: #1e1e1e;       /* --color-text-accent */
  --surface: #0e0f12;         /* --color-bg-secondary */
  --bg: #000000;
  --bg-soft: #08080a;         /* computed bg-primary */
  --slate: #4a5568;           /* --color-hue */
  --danger: #ff4455;          /* --site-danger */
  --blue: #438efe;            /* --ui-blue */
  --warn: #f59e0b;
  --light: #f0f1f3;
  --white: #ffffff;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease: cubic-bezier(.42, 0, .58, 1);
  --radius: 15px;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  overflow: hidden;
}

.film {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px;
}

/* The 16:9 frame — stage is a fixed 1920x1080 canvas scaled to fit */
.film__frame {
  position: relative;
  width: min(100%, calc((100vh - 110px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #1d1f24, 0 30px 80px #000;
}

.stage {
  position: absolute;
  top: 0; left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  background: var(--bg);
  overflow: hidden;
}

/* ---- poster / play gate (audio needs a gesture) ---- */
.film__poster {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}

.film__poster-mark {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
}

.film__poster-dot { color: var(--accent); }

.film__poster-play {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: 13px 26px;
  border-radius: 100px;
  transition: transform .15s var(--ease);
}

.film__poster:hover .film__poster-play { transform: scale(1.05); }

.film__poster--hidden { display: none; }

/* ---- transport bar ---- */
.film__bar {
  width: min(100%, calc((100vh - 110px) * 16 / 9));
  display: flex;
  align-items: center;
  gap: 14px;
}

.film__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #24262c;
  background: var(--surface);
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}

.film__btn:hover { border-color: var(--accent); color: var(--accent); }
.film__btn--muted { color: var(--slate); text-decoration: line-through; }

.film__tc {
  font-family: var(--mono);
  font-size: 13px;
  color: #9aa1ad;
  min-width: 62px;
}

.film__tc--end { text-align: right; }

.film__scrub {
  position: relative;
  flex: 1;
  height: 28px;
  cursor: pointer;
}

.film__scrub::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: #1c1e23;
}

.film__scrub-fill {
  position: absolute;
  top: 12px;
  left: 0;
  height: 4px;
  width: 0%;
  border-radius: 2px;
  background: var(--accent);
}

.film__scrub-anchor {
  position: absolute;
  top: 9px;
  width: 2px;
  height: 10px;
  background: var(--slate);
}

.film__scrub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
