/* Until the background video shows a frame: a plain colour, the whole page's (both
   html and body, so iPhone Safari's bands keep one colour from the start), laid over
   the video and its shade; then that cover fades away (soundtrack.js adds .video-ready).
   The video itself is never faded: iPhones can flash it at full strength as it starts. */
html, body { background: #615738; } /* the shaded video's average colour, so it blends straight in */
.bg-cover {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #615738;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.video-ready .bg-cover { opacity: 0; }
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bg-shade {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(180deg, rgba(91, 91, 65, 0.3) 0%, rgba(70, 70, 46, 0.6) 100%);
}

/* One screen, footer included: the player in the middle of the screen (the same room
   above and below it), the footer laid over the bottom of that room. The screen is
   measured without Safari's bars (svh), so the footer is never under them. */
.player-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 104px 16px;
}
body { position: relative; }
.player-page ~ .site-footer { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 767px) {
  .player-page { padding: 124px 16px; } /* the footer is taller here */
}
.player-page .eyebrow { color: var(--muted); margin-bottom: 1rem; }
.player-page h1 {
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.05;
  color: var(--cream);
}
.composer {
  margin-top: 0.5rem;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  color: var(--muted);
}

.player {
  display: flex;
  align-items: center;
  margin-top: 3rem;
}

.play {
  flex: none;
  width: 72px;
  height: 72px;
  margin-right: 24px;
  border-radius: 50%;
  border: 1px solid rgba(246, 239, 230, 0.6);
  background: rgba(246, 239, 230, 0.1);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s, transform 0.25s;
}
.play:hover { background: rgba(246, 239, 230, 0.2); transform: scale(1.05); }
.play:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.play svg { width: 28px; height: 28px; fill: currentColor; display: block; margin: 0 auto; }
.play .icon-pause { display: none; }
.playing .play .icon-play { display: none; }
.playing .play .icon-pause { display: block; }

.track { flex: 1; min-width: 0; }

.wave {
  height: 88px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.wave:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; border-radius: 4px; }
.wave canvas { display: block; width: 100%; height: 100%; }

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .play { width: 60px; height: 60px; margin-right: 16px; }
  .wave { height: 64px; }
}
