/* Benchmark Motion sizzle player. Light only: white canvas, pale surfaces, dark ink, Manrope 600 display. */
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --canvas: #ffffff;
  --surface: #f3f3f4;
  --ink: #0f1010;
  --ink-2: rgba(15, 16, 16, 0.5);
  --ink-3: rgba(15, 16, 16, 0.34);
  --line: rgba(15, 16, 16, 0.08);
  --line-2: rgba(15, 16, 16, 0.12);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light only;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, input, a, .plyr { touch-action: manipulation; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); }
body {
  min-height: 100svh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; flex: 1;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right));
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: block; height: 18px; width: auto; }
.wordmark img { height: 100%; width: auto; display: block; }
.micro { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.hero { margin: clamp(28px, 6vh, 56px) 0 20px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-size: 14px; }
.meta span + span::before { content: '·'; margin-right: 18px; color: var(--ink-3); }

.player-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(15, 16, 16, 0.25), 0 1px 2px rgba(15, 16, 16, 0.04);
  animation: rise 0.9s var(--ease) both;
}
.player-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #fff; }

/* Plyr theming: dark pill controls on the film. */
.plyr {
  --plyr-color-main: #0f1010;
  --plyr-font-family: 'Manrope', system-ui, sans-serif;
  --plyr-font-weight-regular: 500;
  --plyr-font-weight-bold: 600;
  --plyr-control-radius: 50px;
  --plyr-video-controls-background: linear-gradient(rgba(15, 16, 16, 0), rgba(15, 16, 16, 0.55));
  --plyr-video-control-color: #fff;
  --plyr-video-control-color-hover: #0f1010;
  --plyr-video-control-background-hover: #fff;
  --plyr-range-thumb-background: #fff;
  --plyr-range-fill-background: #fff;
  --plyr-video-range-track-background: rgba(255, 255, 255, 0.3);
  --plyr-tooltip-background: #0f1010;
  --plyr-tooltip-color: #fff;
  --plyr-tooltip-radius: 50px;
  --plyr-menu-background: #fff;
  --plyr-menu-color: #0f1010;
  --plyr-menu-radius: 12px;
  border-radius: var(--radius);
}
.plyr__control--overlaid {
  background: #0f1010;
  color: #fff;
  padding: 22px;
  box-shadow: 0 12px 30px -10px rgba(15, 16, 16, 0.5);
  transition: transform 0.25s var(--ease), background 0.2s;
}
.plyr__control--overlaid:hover, .plyr__control--overlaid:focus-visible { background: #0f1010; transform: translate(-50%, -50%) scale(1.06); }
.plyr__control--overlaid svg { width: 22px; height: 22px; }
.plyr--video .plyr__controls { padding: 28px 14px 12px; }
.plyr__progress__buffer { color: rgba(255, 255, 255, 0.25); }
.plyr:focus-visible, .plyr *:focus-visible { outline: 2px solid #0f1010; outline-offset: 2px; }

.foot { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 13px; }
.foot a { color: inherit; }

/* Lock screen */
.lock { flex: 1; display: grid; place-items: center; padding: 24px 0; }
.card {
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px 32px;
  animation: rise 0.9s var(--ease) both;
}
.card .wordmark { height: 16px; margin-bottom: 28px; }
.card h1 { font-size: 26px; margin-bottom: 8px; }
.card p { margin: 0 0 24px; color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.field input {
  font: inherit; font-size: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 16, 16, 0.08); }
.pill {
  margin-top: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 13px 22px;
  border-radius: 50px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.15s;
}
.pill:hover { opacity: 0.9; }
.pill:active { transform: scale(0.98); }
.pill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.error { margin: 14px 0 0; color: #b42318; font-size: 14px; }
.error[hidden] { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .player-frame, .card { animation: none; } .plyr__control--overlaid, .pill { transition: none; } }
/* Touch devices: no keyboard hint, bigger targets, always-visible controls until playing. */
@media (hover: none) and (pointer: coarse) {
  .kbd-hint { display: none; }
  .plyr__control { min-width: 44px; min-height: 44px; }
  .plyr--video .plyr__controls { padding: 24px 10px 10px; }
  .plyr__control--overlaid { padding: 24px; }
  .plyr__control--overlaid:hover { transform: translate(-50%, -50%); }
  .plyr__volume { max-width: 90px; }
}

/* Phones */
@media (max-width: 600px) {
  body { font-size: 14px; }
  .shell { padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .wordmark { height: 15px; }
  .micro { font-size: 11px; }
  .hero { margin: 24px 0 14px; }
  h1 { font-size: 24px; }
  .player-frame { border-radius: 12px; box-shadow: 0 16px 40px -24px rgba(15, 16, 16, 0.3); }
  .plyr { border-radius: 12px; }
  .plyr__control--overlaid { padding: 20px; }
  .plyr__control--overlaid svg { width: 20px; height: 20px; }
  .plyr--video .plyr__controls { padding: 20px 6px 6px; }
  .plyr__time { font-size: 12px; }
  .plyr__volume { display: none; }
  .foot { margin-top: 14px; font-size: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .card { padding: 28px 22px 24px; border-radius: 16px; }
  .card h1 { font-size: 24px; }
  .field input { padding: 14px 16px; }
  .pill { padding: 15px 22px; }
}

/* Very narrow phones: let the player run edge to edge. */
@media (max-width: 400px) {
  .shell { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}

/* Phone landscape: compact chrome so the film gets the height. */
@media (max-height: 480px) and (orientation: landscape) {
  .shell { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .topbar { display: none; }
  .hero { margin: 0 0 8px; }
  h1 { font-size: 18px; }
  .player-frame { width: min(100%, calc((100svh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 16 / 9)); margin: 0 auto; }
  .foot { display: none; }
  .lock { padding: 8px 0; }
  .card { padding: 18px 20px; }
  .card .wordmark { margin-bottom: 12px; }
  .card h1 { font-size: 20px; margin-bottom: 4px; }
  .card p { margin-bottom: 12px; }
  .pill { margin-top: 12px; padding: 11px 20px; }
}

/* iOS: the video element itself needs the rounded clip while the poster shows. */
@supports (-webkit-touch-callout: none) {
  .player-frame { -webkit-mask-image: -webkit-radial-gradient(#fff, #000); }
}
