@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/jost-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}































































































































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

:root {
  --accent: #c97a2b;
  --bg-a: #ffffff;
  --bg-b: #ffffff;
  --bg-c: #ffffff;
  --glass: oklch(1 0 0 / 0.6);
  --glass-stronger: oklch(1 0 0 / 0.85);
  --glass-border: oklch(0.2 0.01 60 / 0.1);
  --glass-border-strong: oklch(0.2 0.01 60 / 0.18);
  --text: oklch(0.2 0.01 60);
  --text-dim: oklch(0.4 0.008 60);
  --text-faint: oklch(0.6 0.006 60);
}

html, body {
  width: 100%;
  height: 100%;
  background: #ffffff;
  color: var(--text);
  font-family: 'Jost', 'Futura', 'Futura PT', 'Trebuchet MS', -apple-system, system-ui, sans-serif;
  overflow: hidden;
  font-feature-settings: "ss01";
  letter-spacing: 0.005em;
}

#root {
  width: 100%;
  height: 100vh;
}


.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, var(--bg-c) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, var(--bg-a) 0%, transparent 60%),
    var(--bg-b);
}


.backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.backdrop-blob { display: none; }
.blob-1 {
  width: 600px; height: 600px;
  background: oklch(0.92 0.02 60);
  top: -200px; left: -100px;
  animation: drift1 24s ease-in-out infinite;
}
.blob-2 {
  width: 800px; height: 800px;
  background: oklch(0.94 0.015 240);
  bottom: -300px; right: -200px;
  animation: drift2 32s ease-in-out infinite;
}
.blob-3 {
  width: 500px; height: 500px;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: drift3 18s ease-in-out infinite;
  transition: background 1.2s ease;
  mix-blend-mode: multiply;
  filter: blur(160px);
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(80px, 60px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, -80px); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-40%, -60%); }
}
.grain { display: none; }


.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px;
  z-index: 10;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px oklch(0.7 0.15 50 / 0.4), inset 0 0 8px rgba(0,0,0,0.15);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
}
.brand-name {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--text);
}
.brand-sub {
  font-family: 'Jost', 'Futura', sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid var(--glass-border-strong);
  border-radius: 5px;
  background: var(--glass-stronger);
  backdrop-filter: blur(8px);
  font-size: 11px;
  color: var(--text-dim);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 1px 2px rgba(0,0,0,0.04);
}
.kbd-label { margin-left: 6px; letter-spacing: 0.1em; text-transform: uppercase; }


.player-area {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(420px, 1100px) minmax(170px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 90px 0 60px;
}


.col {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.col-left { padding-left: 24px; padding-right: 34px; }
.col-right { padding-right: 24px; padding-left: 34px; }

.col-rail {
  position: absolute;
  top: -14px; bottom: -14px;
  width: 1px;
  pointer-events: none;
}
.col-left .col-rail { right: -22px; }
.col-right .col-rail { left: -22px; }
.rail-line {
  position: absolute;
  top: 16px; bottom: 16px;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--glass-border-strong) 18%, var(--glass-border-strong) 82%, transparent);
}
.rail-tick {
  width: 7px; height: 1px;
  background: var(--text-faint);
  position: absolute;
  left: 0;
}
.rail-tick-top { top: 14px; }
.rail-tick-bot { bottom: 14px; }
.rail-meta {
  position: absolute;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}
.col-left .rail-meta { transform: translateX(3px); }
.col-right .rail-meta { transform: translateX(-100%) translateX(-3px); }
.rail-meta-top { top: 0; }
.rail-meta-bot { bottom: 0; }

.thumbs {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 140px;
  height: auto;
  max-height: 100%;
  min-height: 0;
  justify-content: center;
}
.col-right .thumbs { align-items: flex-end; }
.col-left .thumbs { align-items: flex-start; }


.thumb {
  position: relative;
  width: 100%;
  flex: 0 1 64px;
  height: 64px;
  min-height: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: translateX(var(--curve-x, 0px));
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: inherit;
}
.thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  background: oklch(0.97 0 0);
  backdrop-filter: blur(12px);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 20px rgba(40, 30, 20, 0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.thumb-video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(0.9) brightness(0.95);
  transition: opacity 0.4s, filter 0.4s;
}
.thumb-tint {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  transition: opacity 0.3s;
}
.thumb-num {
  display: none;
}
.thumb-edge {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 10px oklch(0.7 0.15 50 / 0.4);
}
.col-left .thumb-edge { right: -8px; }
.col-right .thumb-edge { left: -8px; }


.thumb:hover { transform: translateX(calc(var(--curve-x, 0px) + var(--hover-shift, 0px))); }
.col-left .thumb { --hover-shift: 0px; }
.col-right .thumb { --hover-shift: 0px; }
.thumb:hover .thumb-inner {
  border-color: oklch(0.2 0.01 60 / 0.3);
  box-shadow:
    0 4px 8px rgba(0,0,0,0.06),
    0 18px 36px rgba(40, 30, 20, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transform: scale(1);
}
.thumb:hover .thumb-video { opacity: 1; filter: saturate(1.05) brightness(1); }
.thumb:hover .thumb-tint { opacity: 0.08; }


.thumb-active {
  z-index: 2;
}
.thumb-active .thumb-inner {
  border-color: var(--accent);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    0 20px 48px rgba(40, 30, 20, 0.16),
    0 0 0 1px var(--accent),
    0 0 24px oklch(0.7 0.15 50 / 0.25),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: scale(1);
}
.thumb-active .thumb-video { opacity: 1; filter: saturate(1.1) brightness(1); }
.thumb-active .thumb-tint { opacity: 0.05; }
.thumb-active .thumb-edge {
  height: 70%;
}


.thumb-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(0,0,0,0.18);
}
.thumb-progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px oklch(0.7 0.15 50 / 0.5);
  transition: width 0.1s linear;
}


.col-curved .thumb { animation: thumbDrift 8s ease-in-out infinite; animation-delay: var(--drift-delay); }
@keyframes thumbDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}


.col-stack .thumb { transform: none !important; }


.col-reel .thumb-inner::before,
.col-reel .thumb-inner::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.col-reel .thumb-inner::before { left: 4px; }
.col-reel .thumb-inner::after { right: 4px; }

.thumb-pulse {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  opacity: 0.4;
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}


.screen-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  gap: 14px;
}
.screen-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100% - 150px);
  flex: 0 1 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--glass-border-strong);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 30px 80px rgba(40, 30, 20, 0.18),
    0 0 0 1px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.thumb-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  filter: saturate(0.92);
  transition: opacity 0.35s, filter 0.35s;
}
.thumb:hover .thumb-poster, .thumb-active .thumb-poster { opacity: 1; filter: saturate(1.05); }
.thumb-poster-empty {
  background: var(--accent-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 0 9px;
  opacity: 1;
}
.thumb-poster-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(255,255,255,0.28), rgba(0,0,0,0.18));
}
.thumb-fallback-chap {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.8);
}
.thumb-fallback-title {
  position: relative;
  font-family: 'Jost', 'Futura', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}


.vimeo-cover { position: absolute; inset: 0; overflow: hidden; background: #0a0a0a; }
.vimeo-cover > div { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); aspect-ratio: 16 / 9; min-width: 100%; min-height: 100%; }
.vimeo-cover iframe { display: block; width: 100%; height: 100%; border: 0; }
.thumb-cover { border-radius: 12px; background: transparent; }
.thumb-cover:empty { display: none; }
.yt-cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.idle-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0a0a0a;
  text-align: center;
  padding: 0 24px;
}
.idle-label {
  font-family: 'Jost', 'Futura', sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.idle-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}


.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 0 4px;
}
.ctrl-group { display: flex; align-items: center; gap: 8px; }
.ctrl-btn {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
  background: oklch(1 0 0 / 0.7);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
}
.ctrl-btn svg { width: 17px; height: 17px; }
.ctrl-btn:hover { border-color: oklch(0.2 0.01 60 / 0.32); transform: translateY(-1px); }
.ctrl-btn:active { transform: translateY(0); }
.ctrl-btn-primary {
  width: 42px; height: 42px;
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.ctrl-btn-primary svg { width: 19px; height: 19px; }
.ctrl-btn-primary:hover { filter: brightness(1.08); border-color: transparent; }
.ctrl-btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text-dim);
  width: 30px; height: 30px;
}
.ctrl-btn-ghost:hover { color: var(--text); background: oklch(0.2 0.01 60 / 0.05); border-color: transparent; }
.ctrl-volume { display: flex; align-items: center; gap: 6px; }
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
.vol-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill), oklch(0.2 0.01 60 / 0.15) var(--fill) 100%);
}
.vol-slider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0 var(--fill), oklch(0.2 0.01 60 / 0.15) var(--fill) 100%);
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}
.vol-slider::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--glass-border-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
}

.video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 55%,
    rgba(0,0,0,0.55) 100%
  );
}
.vo-tl, .vo-bl, .vo-br {
  position: absolute;
  padding: 20px 24px;
}
.vo-tl { top: 0; left: 0; }
.vo-bl { bottom: 0; left: 0; }
.vo-br { bottom: 0; right: 0; }
.vo-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 4px;
}
.vo-title {
  font-family: 'Jost', 'Futura', sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: white;
  line-height: 1;
  text-transform: uppercase;
}
.vo-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
  letter-spacing: 0.1em;
}
.vo-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  display: flex; gap: 6px;
}
.vo-time-sep { opacity: 0.4; }

.screen-glare {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
  z-index: 3;
}
.screen-edge {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 3;
}


.filmstrip {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}
.filmstrip-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.fm-chap {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.2em;
}
.fm-title {
  font-family: 'Jost', 'Futura', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fm-dot { opacity: 0.4; }
.filmstrip-rail {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
  cursor: pointer;
}
.tick {
  flex: 1;
  height: 4px;
  background: oklch(0.2 0.01 60 / 0.15);
  border-radius: 1px;
  transition: background 0.2s;
}
.tick-major { height: 10px; }
.tick-filled { background: var(--accent); }
.tick-filled.tick-major { box-shadow: 0 0 8px oklch(0.7 0.15 50 / 0.4); }
.filmstrip-head {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: left 0.1s linear;
  pointer-events: none;
}


.hover-preview {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
  animation: hpEnter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hover-preview-left {
  left: 220px;
}
.hover-preview-right {
  right: 220px;
}
@keyframes hpEnter {
  from { opacity: 0; transform: translateY(-50%) translateX(0) scale(0.96); }
  to { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}
.hp-card {
  background: oklch(1 0 0 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-strong);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 220px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.06),
    0 20px 48px rgba(40, 30, 20, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
.hp-head {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.hp-chap { color: var(--accent); }
.hp-idx { color: var(--text-faint); }
.hp-title {
  font-family: 'Jost', 'Futura', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.hp-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}
.hp-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[hidden] { display:none !important; }
.playback-status { position:absolute; left:0; right:0; top:100%; margin-top:8px; text-align:center; font:12px/1.5 Jost,sans-serif; color:#666; }
.playback-status a { margin-left:8px; color:inherit; text-decoration:underline; }
button:focus-visible, [role=slider]:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state:paused !important; }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }


.mobile-films, .mobile-fullscreen, .mobile-caption { display: none; }

@media (max-width: 900px) {
  .stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px 8px;
  }
  .topbar { position: static; padding: 0 4px; flex: 0 0 auto; }
  .brand { gap: 10px; }
  .brand-name { font-size: 12px; }
  .brand-sub { display: none; }
  .brand-mark { width: 20px; height: 20px; }
  .player-area {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    gap: 14px;
    min-height: 0;
  }
  .col { display: none; }
  .screen-wrap { height: auto; padding: 0; gap: 8px; }
  .screen-frame {
    width: min(100%, calc((100vh - 400px) * 1.777778));
    max-height: none;
    flex: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(40,30,20,.12);
  }
  .controls, .filmstrip {
    width: min(100%, calc((100vh - 400px) * 1.777778));
    padding: 0;
  }
  .controls { gap: 8px; }
  .ctrl-group { gap: 6px; }
  .ctrl-btn, .ctrl-btn-ghost { width: 44px; height: 44px; flex: 0 0 44px; }
  .ctrl-btn-primary { width: 48px; height: 48px; flex-basis: 48px; }
  .ctrl-volume { gap: 4px; }
  .vol-slider { display: none; }
  .mobile-fullscreen { display: grid; }
  .filmstrip { gap: 0; }
  .filmstrip[hidden] { display: none !important; }
  .filmstrip-meta { min-height: 20px; gap: 6px; }
  .fm-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; font-size: 12px; }
  .fm-dur { white-space: nowrap; }
  .filmstrip-rail { height: 32px; touch-action: pan-y; }
  .filmstrip-head { top: 8px; bottom: 8px; }
  .playback-status { position: static; margin: 0; min-height: 18px; font-size: 12px; }
  .playback-status:empty { display: none; }
  .idle-screen { padding: 16px; gap: 8px; }
  .idle-label { font-size: clamp(15px, 3.8vw, 22px); letter-spacing: .06em; }
  .idle-sub { font-size: 9px; letter-spacing: .08em; line-height: 1.5; }
  .vo-title { font-size: 16px; }
  .mobile-films { display: block; min-width: 0; }
  .mobile-films-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
  .mobile-films-label { font: 10px/1.5 'JetBrains Mono', monospace; letter-spacing: .04em; color: var(--text-dim); }
  .mobile-film-nav { display: flex; gap: 4px; }
  .mobile-film-nav .ctrl-btn { border: none; box-shadow: none; background: transparent; border-radius: 6px; }
  .mobile-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
    padding: 6px 4px 10px;
  }
  .mobile-thumbs .thumb {
    flex: 0 0 132px;
    width: 132px;
    height: auto;
    min-height: 112px;
    transform: none !important;
    translate: none !important;
    animation: none;
    scroll-snap-align: start;
    text-align: left;
  }
  .mobile-thumbs .thumb-inner { width: 132px; height: 74.25px; border-radius: 8px; }
  .mobile-thumbs .thumb-active .thumb-inner { box-shadow: 0 0 0 1px var(--accent); }
  .mobile-thumbs .thumb-edge, .hover-preview { display: none; }
  .mobile-caption { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 7px; font: 500 12px/1.35 'Jost', sans-serif; color: var(--text-dim); }
  .thumb-active .mobile-caption { color: var(--text); }
  .screen-frame:fullscreen { width: 100vw; height: 100vh; max-height: none; border: 0; border-radius: 0; }
  .screen-frame:fullscreen .vimeo-cover > div { width: 100%; height: 100%; min-width: 0; min-height: 0; }
}

  .screen-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    padding: 16px;
    background: #0a0a0a;
    justify-content: center;
    --text: #fff;
    --text-dim: #ddd;
  }
  .screen-wrap:fullscreen .screen-frame,
  .screen-wrap:fullscreen .controls,
  .screen-wrap:fullscreen .filmstrip { width: min(100%, calc((100vh - 160px) * 1.777778)); }
  .screen-wrap:fullscreen .screen-frame { box-shadow: none; border: 0; max-height: none; flex: none; }
  .screen-wrap:fullscreen .mobile-fullscreen { display: grid; }
  .screen-wrap:fullscreen .vol-slider { display: none; }
  .screen-wrap:fullscreen .ctrl-btn { color: #fff; background: #333; border-color: #666; }
  .screen-wrap:fullscreen .ctrl-btn-primary { background: var(--accent); border-color: var(--accent); }
  .screen-wrap:fullscreen .tick { background: #666; }
  .screen-wrap:fullscreen .tick-filled { background: var(--accent); }
  .screen-wrap:fullscreen .filmstrip-head { background: #fff; }
  .screen-wrap:fullscreen .playback-status { color: #ddd; }


@media (max-width: 900px) {
  body.auto-height, body.auto-height #root { height: auto; min-height: 0; }
  body.auto-height .stage { height: auto; min-height: 0; justify-content: flex-start; padding: 12px 0; }
  body.auto-height .screen-wrap:not(:fullscreen) .screen-frame,
  body.auto-height .screen-wrap:not(:fullscreen) .controls,
  body.auto-height .screen-wrap:not(:fullscreen) .filmstrip { width: 100%; }
}
