:root {
  --paper: #fbfdf6;
  --ink: #2b2a27;
  --muted: #77776f;
  --line: rgba(43, 42, 39, .18);
  --hero-w: 100%;
  color-scheme: light;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--ink); color: var(--paper); }
.watch-shell { max-width: 1080px; min-height: 100svh; margin: 0 auto; padding: 96px 40px 40px; display: flex; flex-direction: column; justify-content: center; }
.watch-header { position: absolute; top: 22px; left: 26px; right: 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { width: 136px; height: auto; }
.back-link { font-size: 12px; text-decoration: none; padding: 10px 0; }
.back-link:hover { text-decoration: underline; }
.video-details { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; }
.collection { font-family: "Geist Mono", ui-monospace, monospace; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
h1 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.02em; margin: 0; }
.video-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.video-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 0; border: 0; color: var(--ink); background: transparent; font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; white-space: nowrap; }
.video-actions button:hover { text-decoration: underline; text-underline-offset: 4px; }
.video-actions svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.player-feedback { font-size: 12px; color: var(--muted); min-height: 36px; }
#status { min-height: 16px; margin: 10px 0; }
#video-error { color: var(--ink); }
#manual-copy { display: block; padding-bottom: 16px; }
#share-url { display: block; width: 100%; max-width: 480px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.film-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.film-nav a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12px; text-decoration: none; }
.film-nav a:hover { text-decoration: underline; }
.film-nav a:last-child { align-items: flex-end; text-align: right; }
.film-nav a span, .reel-number { font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; color: var(--muted); }
/* The original Windborne player also serves browsers that deny native fullscreen. */
.qt.is-expanded { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; }
body.has-expanded-video { overflow: hidden; }
.qt.is-fs:focus-within .qt-controls { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .watch-shell { padding: 88px 16px 32px; }
  .watch-header { left: 20px; right: 20px; }
  .video-details { gap: 16px; }
  .video-heading { min-width: 0; }
  h1 { font-size: 16px; }
  .video-actions { flex-shrink: 0; gap: 12px; }
  .film-nav { gap: 16px; }
}
/* Keep Windborne's full-width seek row usable in portrait fullscreen too. */
@media (max-width: 620px) {
  .qt.is-fs .qt-controls { flex-wrap: wrap; gap: 6px; left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); }
  .qt.is-fs #qt-seek { order: -1; flex-basis: 100%; }
  .qt.is-fs .qt-speed-group { margin-left: auto; gap: 4px; }
  .qt.is-fs .cd-btn { width: 30px; }
  .qt.is-fs .qt-spd-val { min-width: 28px; }
}
@media (hover: none) { .qt .qt-seek { height: 28px; } }
