:root {
  --bg: #070b12;
  --ink: #e8eef6;
  --muted: rgba(232, 238, 246, 0.62);
  --line: rgba(232, 238, 246, 0.18);
  --accent: #6eb8c0;
  --staff1: #7ec8ff;
  --staff2: #b6e86a;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 500px at 50% 0%, #152033 0%, var(--bg) 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}
.nav a {
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}

.stage-wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 2.5rem;
}
.meta {
  margin-bottom: 0.85rem;
}
.kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
}
.sub {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.film-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0c1522 0%, #081018 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  aspect-ratio: 1200 / 520;
}
#film {
  display: block;
  width: 100%;
  height: 100%;
}
.playhead {
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 22%;
  width: 2px;
  background: linear-gradient(180deg, transparent, #fff8e7, transparent);
  box-shadow: 0 0 18px rgba(255, 248, 231, 0.55);
  pointer-events: none;
  z-index: 2;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 28, 0.75);
}
.play {
  min-width: 4.5rem;
  border: 1px solid rgba(110, 184, 192, 0.45);
  background: rgba(110, 184, 192, 0.18);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.play.is-playing {
  background: rgba(110, 184, 192, 0.32);
}
.progress-wrap {
  flex: 1;
  min-width: 12rem;
}
#seek,
#zoom {
  width: 100%;
  accent-color: var(--accent);
}
.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.speed {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 9rem;
}
.hint {
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
audio {
  display: none;
}

@media (max-width: 640px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
  .play {
    width: 100%;
  }
  .playhead {
    left: 18%;
  }
}
