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

:root {
  --color-bg: #0d0d1a;
  --color-navbar-bg: rgba(10, 10, 25, 0.45);
  --color-navbar-border: rgba(120, 100, 200, 0.15);
  --color-title: #c8b8e8;
  --color-btn-idle: rgba(60, 55, 90, 0.55);
  --color-btn-playing: rgba(100, 75, 170, 0.65);
  --color-btn-border: rgba(150, 120, 220, 0.25);
  --color-btn-glow: rgba(120, 90, 200, 0.4);
  --color-text: #a09abf;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  font-family: 'Space Mono', monospace;
}

/* ── Video background ── */
#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── Cinema vignette ── */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 72%,
    rgba(0, 0, 0, 0.82) 100%
  );
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 52px;
  background: var(--color-navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-navbar-border);
}

.nav-title {
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--color-title);
  opacity: 0.85;
  user-select: none;
}

/* ── Music toggle button ── */
.music-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-btn-border);
  border-radius: 8px;
  background: var(--color-btn-idle);
  color: var(--color-title);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  outline: none;
}

.music-btn:hover {
  background: rgba(80, 65, 120, 0.65);
  box-shadow: 0 0 10px var(--color-btn-glow);
}

.music-btn .icon-playing {
  display: none;
}

.music-btn.playing {
  background: var(--color-btn-playing);
  box-shadow: 0 0 12px var(--color-btn-glow);
}

.music-btn.playing .icon-paused {
  display: none;
}

.music-btn.playing .icon-playing {
  display: block;
}
