/* ==========================================================================
   yitaolong.github.io — player.css
   The vocal-covers player (/vocal-performances/). Loaded only on that page
   (front matter `styles: [player.css]`), after main.css, whose tokens it reads.
   Plain CSS, no nesting. Order:
   1 tokens · 2 frame + ambient · 3 header · 4 deck (sleeve + vinyl)
   5 now playing + controls · 6 playlist · 7 mini player · 8 states
   9 responsive · 10 reduced motion · 11 forced colours · 12 no-JS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (player-scoped; light → dark below)
   -------------------------------------------------------------------------- */
.vp {
  /* the current song's two colours as RGB channels (player.js writes them) */
  --c1: 0, 113, 227;
  --c2: 122, 62, 232;
  --g1: 0, 113, 227;
  --vp-brand-1: 0, 113, 227;
  --vp-brand-2: 122, 62, 232;
  --vp-glow: 0.26;                       /* ambient strength */
  --vp-shadow: 0.42;                     /* tinted artwork shadow */
  --vp-rail: rgba(0, 0, 0, 0.09);
  --vp-buffer: rgba(0, 0, 0, 0.1);
  --vp-hover: rgba(0, 0, 0, 0.045);
  --vp-current: rgba(0, 0, 0, 0.04);
  --vp-ring: rgba(0, 0, 0, 0.07);
  --vp-hole: #f5f5f7;
  --vp-knob: #ffffff;
  --r-sleeve: 22px;
  --cq: 4px;                             /* ≈ 1cqi of the sleeve, for browsers without container units */
  position: relative;
  isolation: isolate;
  /* horizontal safety net only: the artwork's shadow and the ambient light may
     fade out below the stage (the footer paints over them) */
  overflow-x: clip;
}

/* Safari < 16 has no overflow: clip (.vp has no sticky children; the mini
   player is position: fixed, so it is not clipped) */
@supports not (overflow: clip) {
  .vp {
    overflow: hidden;
  }
}

@media (prefers-color-scheme: dark) {
  .vp {
    --vp-brand-1: 41, 151, 255;
    --vp-brand-2: 183, 124, 255;
    --vp-glow: 0.3;
    --vp-shadow: 0.5;
    --vp-rail: rgba(255, 255, 255, 0.15);
    --vp-buffer: rgba(255, 255, 255, 0.14);
    --vp-hover: rgba(255, 255, 255, 0.075);
    --vp-current: rgba(255, 255, 255, 0.06);
    --vp-ring: rgba(255, 255, 255, 0.12);
    --vp-hole: #000000;
    --vp-knob: #f5f5f7;
  }
}

/* elements that set display themselves still honour [hidden] */
.vp [hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. Frame + ambient light (pre-blurred radial gradients, cross-faded)
   -------------------------------------------------------------------------- */
.vp-hero {
  position: relative;
  padding-block: clamp(32px, 1rem + 3vw, 72px) clamp(36px, 3.5vw, 64px);
}

.vp-ambient {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -220px;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
}

.vp.is-playing .vp-ambient {
  opacity: 1;
}

.vp-ambient__layer {
  --a1: var(--vp-brand-1);
  --a2: var(--vp-brand-2);
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  background:
    radial-gradient(30% 40% at 28% 58%, rgba(var(--a1), var(--vp-glow)), rgba(var(--a1), calc(var(--vp-glow) * 0.62)) 30%, rgba(var(--a1), calc(var(--vp-glow) * 0.28)) 55%, rgba(var(--a1), calc(var(--vp-glow) * 0.08)) 78%, rgba(var(--a1), 0)),
    radial-gradient(34% 44% at 72% 46%, rgba(var(--a2), calc(var(--vp-glow) * 0.7)), rgba(var(--a2), calc(var(--vp-glow) * 0.43)) 30%, rgba(var(--a2), calc(var(--vp-glow) * 0.2)) 55%, rgba(var(--a2), calc(var(--vp-glow) * 0.06)) 78%, rgba(var(--a2), 0)),
    radial-gradient(26% 28% at 8% 6%, rgba(var(--a2), calc(var(--vp-glow) * 0.42)), rgba(var(--a2), calc(var(--vp-glow) * 0.26)) 30%, rgba(var(--a2), calc(var(--vp-glow) * 0.12)) 55%, rgba(var(--a2), calc(var(--vp-glow) * 0.03)) 78%, rgba(var(--a2), 0));
}

.vp-ambient__layer.is-on {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */
/* header and stage share one grid: the lead lines up with the now-playing column */
.vp-head,
.vp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: clamp(32px, 4.5vw, 64px);
}

.vp-head {
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 72px);
}

.vp-head .eyebrow {
  margin-bottom: var(--s-2);
}

.vp-head__title .grad {
  padding-bottom: 0.06em;
}

.vp-head__lead {
  max-width: 22em;
  padding-bottom: 0.45em;
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-wrap: pretty;
}

/* keeps "音乐😈" together so the line never ends on a lone character */
.vp-nowrap {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. The deck: sleeve + vinyl. Paused, the artwork rests a little smaller with
      the record tucked in; playing, it grows, the sleeve steps aside and the
      record slides out and spins (player.js, Web Animations).
   -------------------------------------------------------------------------- */
.vp-stage {
  align-items: center;
}

.vp-art {
  display: grid;
  place-items: center;
  min-width: 0;
}

.vp-deck {
  --sx: 0%;          /* sleeve shift (of its width) */
  --dx: 9%;          /* record shift (of its width): a sliver peeks out */
  position: relative;
  width: min(440px, 68.6%);
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  transform: scale(0.9);
  transition: transform 0.7s var(--ease);
}

.vp.is-playing .vp-deck {
  --sx: -23%;
  --dx: 29%;
  transform: none;
  transition: transform 1s var(--ease-out);
}

.vp-sleeve {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--r-sleeve);
  container-type: inline-size;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 30px 60px -24px rgba(var(--g1), var(--vp-shadow)),
    0 40px 80px -40px rgba(0, 0, 0, 0.34);
  transform: translate3d(var(--sx), 0, 0);
  transition: transform 0.7s var(--ease), box-shadow 0.8s var(--ease);
}

.vp.is-playing .vp-sleeve {
  transition: transform 1s var(--ease-out), box-shadow 0.8s var(--ease);
}

/* two faces cross-fade on a song change: the new one fades in on top, the old
   one disappears only once it is covered (the record never shows through) */
.vp-face {
  --f1: var(--fm-1);
  --f2: var(--fm-2);
  --ink: #ffffff;
  --ink-line: rgba(255, 255, 255, 0.5);
  --ink-ring: rgba(255, 255, 255, 0.16);
  position: absolute;
  inset: 0;
  z-index: 0;                /* each face is its own stacking context: a cover image */
  display: flex;             /* on the old face can never paint over the new one */
  flex-direction: column;
  justify-content: flex-end;
  padding: 7%;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 8% 2%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(var(--angle, 150deg), var(--f1), var(--f2));
  color: var(--ink);
  opacity: 0;
  transition: opacity 0s linear 0.75s;
}

.vp-face.is-front {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.65s var(--ease);
}

/* on a track change only the colours dissolve: the outgoing type clears
   first, so two titles never overlap */
.vp-face:not(.is-front) > span {
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

.vp-face[data-ink="dark"] {
  --ink: #1d1d1f;
  --ink-line: rgba(29, 29, 31, 0.38);
  --ink-ring: rgba(29, 29, 31, 0.1);
}

/* concentric rings from the top corner: the record, as a print motif */
.vp-face::before {
  content: "";
  position: absolute;
  right: -38%;
  top: -38%;
  width: 104%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 0 55%, var(--ink-ring) 55.4% 56.2%, transparent 56.6% 76%, var(--ink-ring) 76.4% 77.2%, transparent 77.6% 97%, var(--ink-ring) 97.4% 98.2%, transparent 98.6%);
  pointer-events: none;
}

/* a soft scrim under light type */
.vp-face::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.vp-face[data-ink="dark"]::after {
  display: none;
}

.vp-face__title,
.vp-face__artist {
  position: relative;
  z-index: 1;
}

.vp-face__label,
.vp-face__num {
  position: absolute;
  z-index: 1;
  top: 7%;
  font-size: calc(2.8 * var(--cq));
  font-size: 2.8cqi;
  font-weight: 600;
  line-height: 1;
}

.vp-face__label {
  left: 7%;
  padding: 0.5em 0.85em 0.45em;
  border: 1px solid var(--ink-line);
  border-radius: var(--r-pill);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vp-face__num {
  right: 7%;
  padding-top: 0.5em;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.vp-face__title {
  font-size: calc(var(--fs, 20) * var(--cq));
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.08);
}

/* in a separate block: Safari 15 would keep a var() × cqi declaration and then
   drop it at computed-value time, leaving a 17px title */
@supports (width: 1cqi) {
  .vp-face__title {
    font-size: calc(var(--fs, 20) * 1cqi);
  }
}

.vp-face__title.is-cjk {
  letter-spacing: 0.02em;
}

.vp-face__title > span {
  display: block;
  white-space: nowrap;
}

.vp-face__artist {
  margin-top: 0.75em;
  overflow: hidden;
  font-size: calc(3.6 * var(--cq));
  font-size: 3.6cqi;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.86;
}

.vp-face__img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-face.has-img::before,
.vp-face.has-img::after,
.vp-face.has-img > span {
  visibility: hidden;
}

/* the record */
.vp-vinyl {
  position: absolute;
  left: 4%;
  top: 4%;
  z-index: 1;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  transform: translate3d(var(--dx), 0, 0);
  transition: transform 0.6s var(--ease);
}

.vp.is-playing .vp-vinyl {
  transition: transform 1.1s var(--ease-out) 0.12s;
}

.vp-vinyl__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #19191c 0 37%, rgba(25, 25, 28, 0) 37.6%),
    radial-gradient(closest-side, rgba(12, 12, 14, 0) 0 95.6%, #0c0c0e 96.2%),
    repeating-radial-gradient(circle closest-side, #121214 0, #121214 1.5px, #25252a 2.1px, #121214 2.8px),
    #121214;
  box-shadow:
    0 22px 44px -18px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.vp-vinyl__disc.is-spinning {
  animation: vp-spin 1.8s linear infinite;
}

.vp-vinyl__label {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, rgb(var(--c1)), rgb(var(--c2)));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* a quarter arc + the monogram make the rotation readable */
.vp-vinyl__label::before {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid var(--vp-ink, #ffffff);
  opacity: 0.45;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.vp-vinyl__label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8%;
  height: 8%;
  margin: -4% 0 0 -4%;
  border-radius: 50%;
  background: var(--vp-hole);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

.vp-vinyl__mark {
  position: absolute;
  left: 50%;
  top: 19%;
  color: var(--vp-ink, #ffffff);
  opacity: 0.9;
  font-size: calc(2.4 * var(--cq));
  font-size: 2.4cqi;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
}

/* the light on the record stays put while it turns */
.vp-vinyl__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.1) 28deg, rgba(255, 255, 255, 0) 60deg, rgba(255, 255, 255, 0) 180deg, rgba(255, 255, 255, 0.07) 208deg, rgba(255, 255, 255, 0) 240deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 35.5%, #000 36.5%);
  mask-image: radial-gradient(closest-side, transparent 35.5%, #000 36.5%);
  pointer-events: none;
}

@keyframes vp-spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   5. Now playing + controls
   -------------------------------------------------------------------------- */
.vp-info {
  position: relative;
  min-width: 0;
  max-width: 440px;
}

.vp-count {
  margin-bottom: var(--s-3);
  color: var(--text-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.vp-count__index {
  color: var(--text);
}

.vp-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.vp-title.is-cjk {
  letter-spacing: 0.01em;
}

.vp-artist {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: var(--s-3);
  font-size: var(--fs-lead);
  line-height: 1.3;
}

.vp-artist__label {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--chip);
  color: var(--chip-text);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.vp-artist__name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vp-note {
  margin-top: var(--s-2);
  color: var(--text-2);
  font-size: var(--fs-small);
}

/* inline notice (a song that failed): drawn over the gap above the scrubber, so
   showing it never shifts the layout */
.vp-alert {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  height: 20px;
  margin-top: 14px;
  overflow: hidden;
  color: var(--text-2);
  font-size: var(--fs-small);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.vp-alert.is-on {
  opacity: 1;
}

.vp-alert::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--award);
}

/* Scrubber: a real <input type="range"> (keyboard + screen reader) over a drawn
   rail. The input overhangs the rail by half a thumb on each side, so the
   thumb's centre and the fill's end always meet. */
.vp-scrub {
  --pos: 0;
  --buf: 0;
  position: relative;
  height: 32px;
  margin-top: 40px;
}

.vp-scrub__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--vp-rail);
  transition: transform 0.25s var(--ease);
}

.vp-scrub:not(.is-disabled):hover .vp-scrub__rail,
.vp-scrub.is-active .vp-scrub__rail {
  transform: scaleY(1.34);
}

.vp-scrub__buf,
.vp-scrub__fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
}

.vp-scrub__buf {
  background: var(--vp-buffer);
  transform: scaleX(var(--buf));
  transition: transform 0.4s linear;
}

/* the position is written ~4 times a second (timeupdate); a linear glide
   between updates keeps the fill moving smoothly */
.vp-scrub__fill {
  background: var(--text);
  transform: scaleX(var(--pos));
  transition: transform 0.25s linear;
}

.vp-scrub.is-active .vp-scrub__fill {
  transition: none;
}

.vp-scrub__input,
.vp-range__input {
  position: absolute;
  top: 0;
  left: -7px;
  width: calc(100% + 14px);
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.vp-scrub__input:disabled,
.vp-range__input:disabled {
  cursor: default;
}

.vp-scrub__input:focus-visible,
.vp-range__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-radius: 10px;
}

.vp-scrub__input::-webkit-slider-runnable-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.vp-scrub__input::-moz-range-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.vp-scrub__input::-moz-range-progress {
  background: transparent;
}

.vp-scrub__input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: 9px;
  border: 0;
  border-radius: 50%;
  background: var(--vp-knob);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 0 0 5px var(--vp-ring);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.vp-scrub__input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--vp-knob);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 0 0 5px var(--vp-ring);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.vp-scrub:hover .vp-scrub__input:enabled::-webkit-slider-thumb,
.vp-scrub.is-active .vp-scrub__input::-webkit-slider-thumb,
.vp-scrub__input:focus-visible::-webkit-slider-thumb {
  opacity: 1;
  transform: none;
}

.vp-scrub:hover .vp-scrub__input:enabled::-moz-range-thumb,
.vp-scrub.is-active .vp-scrub__input::-moz-range-thumb,
.vp-scrub__input:focus-visible::-moz-range-thumb {
  opacity: 1;
  transform: none;
}

.vp-times {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: var(--text-2);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* Transport */
.vp-transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 372px;
  margin: var(--s-4) -6px 0;
}

.vp-btn {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.vp-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vp-btn svg.is-solid {
  fill: currentColor;
  stroke-width: 1.4;
}

.vp-btn:hover {
  background: var(--vp-hover);
}

.vp-btn:active {
  transform: scale(0.92);
}

.vp-btn:disabled {
  background: transparent;
  cursor: default;
  opacity: 0.3;
  transform: none;
}

.vp-btn--skip {
  width: 56px;
  height: 56px;
}

.vp-btn--skip svg {
  width: 30px;
  height: 30px;
}

.vp-btn--play {
  width: 68px;
  height: 68px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.vp-btn--play:hover {
  background: var(--text);
  transform: scale(1.05);
}

.vp-btn--play:disabled {
  background: var(--text);
  box-shadow: none;
  opacity: 0.16;
}

.vp-btn--play:active {
  transform: scale(0.95);
}

.vp-btn--play svg {
  width: 28px;
  height: 28px;
}

.vp-i-pause,
.vp.is-playing .vp-i-play {
  display: none;
}

.vp.is-playing .vp-i-pause {
  display: block;
}

/* buffering: a thin ring turns around the play button */
.vp-btn--play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px solid transparent;
  border-top-color: var(--text);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.vp.is-waiting .vp-btn--play::after {
  opacity: 0.55;
  animation: vp-spin 0.9s linear infinite;
  transition-delay: 0.4s;      /* only for loads you would notice */
}

/* shuffle / repeat: accent + dot when on; repeat-one adds a "1" badge */
.vp-btn--toggle {
  color: var(--text-2);
}

.vp-btn--toggle[aria-pressed="true"] {
  color: var(--accent);
}

.vp-btn--toggle[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}

.vp-btn__badge {
  display: none;
  position: absolute;
  right: 5px;
  top: 6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
  color: var(--on-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
  text-align: center;
}

.vp-btn--repeat[data-mode="one"] .vp-btn__badge {
  display: block;
}

/* Volume */
.vp-volume {
  --vol: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 372px;
  margin: var(--s-2) 0 0 -10px;
  color: var(--text-2);
}

.vp-btn--mute {
  width: 44px;
  height: 44px;
  color: var(--text-2);
}

.vp-btn--mute svg {
  width: 20px;
  height: 20px;
}

.vp-i-vol__x,
.vp[data-volume="mute"] .vp-i-vol__w1,
.vp[data-volume="mute"] .vp-i-vol__w2,
.vp[data-volume="low"] .vp-i-vol__w2 {
  display: none;
}

.vp[data-volume="mute"] .vp-i-vol__x {
  display: inline;
}

.vp-range {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 28px;
}

.vp-range__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--vp-rail);
}

.vp-range__fill {
  position: absolute;
  inset: 0;
  background: var(--text-2);
  transform: scaleX(var(--vol));
  transform-origin: 0 50%;
}

.vp-range__input {
  left: -6px;
  width: calc(100% + 12px);
}

.vp-range__input::-webkit-slider-runnable-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.vp-range__input::-moz-range-track {
  height: 100%;
  border: 0;
  background: transparent;
}

.vp-range__input::-moz-range-progress {
  background: transparent;
}

.vp-range__input::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--vp-knob);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.14);
  -webkit-appearance: none;
  appearance: none;
}

.vp-range__input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--vp-knob);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.14);
}

.vp-range__input:disabled::-webkit-slider-thumb,
.vp-scrub__input:disabled::-webkit-slider-thumb {
  opacity: 0 !important;
}

.vp-range__input:disabled::-moz-range-thumb,
.vp-scrub__input:disabled::-moz-range-thumb {
  opacity: 0 !important;
}

.vp-volume__max {
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   6. Playlist
   -------------------------------------------------------------------------- */
.vp-list {
  padding-block: clamp(24px, 3vw, 48px) clamp(112px, 5rem + 6vw, 176px);
}

.vp-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--hairline);
}

.vp-list__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: var(--fw-display);
  line-height: 1.15;
  letter-spacing: var(--ls-display);
}

.vp-list__meta {
  color: var(--text-2);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

.vp-tracks {
  margin: var(--s-2) -16px 0;
}

.vp-track {
  position: relative;
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) minmax(0, 0.7fr) 56px;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s var(--ease);
}

.vp-track:hover {
  background: var(--vp-hover);
}

.vp-track[aria-current="true"] {
  background: var(--vp-current);
}

.vp-track:focus-visible {
  outline-offset: 0;
  border-radius: 14px;
}

/* inset hairlines between rows; they step aside around hovered / current rows */
.vp-tracks li + li .vp-track::before {
  content: "";
  position: absolute;
  left: 108px;
  right: 16px;
  top: 0;
  height: 1px;
  background: var(--hairline);
  transition: opacity 0.2s var(--ease);
}

.vp-tracks li:hover .vp-track::before,
.vp-tracks li:hover + li .vp-track::before,
.vp-tracks .vp-track[aria-current="true"]::before,
.vp-tracks li:has(> [aria-current="true"]) + li .vp-track::before {
  opacity: 0;
}

.vp-track__lead {
  display: grid;
  place-items: center;
  height: 20px;
}

.vp-track__lead > * {
  grid-area: 1 / 1;
}

.vp-track__num {
  color: var(--text-2);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

/* hover (fine pointers): the number turns into a play glyph */
.vp-track__lead::after {
  content: "";
  grid-area: 1 / 1;
  width: 11px;
  height: 12px;
  margin-left: 2px;
  background: var(--text);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .vp-track:not([aria-current="true"]):hover .vp-track__num {
    opacity: 0;
  }

  .vp-track:not([aria-current="true"]):hover .vp-track__lead::after {
    opacity: 1;
  }
}

.vp-track__art,
.vp-mini__art {
  --f1: var(--fm-1);
  --f2: var(--fm-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(120% 95% at 8% 2%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 65%),
    linear-gradient(150deg, var(--f1), var(--f2));
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
}

.vp-track__art[data-ink="dark"],
.vp-mini__art[data-ink="dark"] {
  color: #1d1d1f;
}

.vp-track__art {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.vp-track__art img,
.vp-mini__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vp-track__text {
  display: grid;
  min-width: 0;
}

.vp-track__title,
.vp-track__sub,
.vp-track__note {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vp-track__title {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.3;
}

.vp-track__sub {
  color: var(--text-2);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.vp-track__note {
  color: var(--text-2);
  font-size: var(--fs-small);
}

.vp-track__time {
  color: var(--text-2);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.vp-track[aria-current="true"] .vp-track__title {
  font-weight: 600;
}

.vp-track.is-failed .vp-track__title,
.vp-track.is-failed .vp-track__art {
  opacity: 0.45;
}

/* equaliser glyph on the current row: moves while playing, rests when paused */
.vp-eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  color: var(--accent);
}

.vp-eq i {
  width: 3px;
  height: 100%;
  border-radius: 1.5px;
  background: currentColor;
  transform: scaleY(var(--h, 0.6));
  transform-origin: 50% 100%;
}

.vp-eq i:nth-child(1) { --h: 0.5; --eq-t: 0.9s; --eq-d: -0.1s; }
.vp-eq i:nth-child(2) { --h: 0.9; --eq-t: 0.62s; --eq-d: -0.3s; }
.vp-eq i:nth-child(3) { --h: 0.65; --eq-t: 0.78s; --eq-d: -0.55s; }
.vp-eq i:nth-child(4) { --h: 0.35; --eq-t: 1.05s; --eq-d: -0.2s; }

.vp-track[aria-current="true"] .vp-track__num {
  display: none;
}

.vp-track[aria-current="true"] .vp-eq {
  display: flex;
}

.vp.is-playing .vp-track[aria-current="true"] .vp-eq i {
  animation: vp-eq var(--eq-t, 0.9s) var(--ease) var(--eq-d, 0s) infinite alternate;
}

@keyframes vp-eq {
  from { transform: scaleY(0.22); }
  to { transform: scaleY(1); }
}

/* keyboard shortcuts (fine pointers only) */
.vp-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: var(--s-6);
  color: var(--text-2);
  font-size: var(--fs-micro);
  letter-spacing: -0.005em;
}

.vp-keys span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vp-keys kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--tile);
  box-shadow: 0 1px 0 var(--hairline);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}

.vp-keys kbd + kbd {
  margin-left: -1px;
}

.vp-keys kbd:last-of-type {
  margin-right: 3px;
}

@media (hover: none), (pointer: coarse) {
  .vp-keys {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   7. Mini player: a glass bar while the main controls are off-screen
   -------------------------------------------------------------------------- */
.vp-mini {
  --pos: 0;
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: min(440px, calc(100% - 2 * var(--gutter)));
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, 20px, 0);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.vp-mini.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
  transition: opacity 0.35s var(--ease), transform 0.7s var(--ease-out);
}

.vp-mini__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 6px 6px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-ring);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vp-mini__bar {
    background: var(--tile);
  }
}

.vp-mini__info {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.vp-mini__art {
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.vp-mini__text {
  display: grid;
  min-width: 0;
}

.vp-mini__title,
.vp-mini__artist {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vp-mini__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.vp-mini__artist {
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.vp-btn--mini svg {
  width: 24px;
  height: 24px;
}

.vp-mini__progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
  opacity: 0.5;
  transform: scaleX(var(--pos));
  transform-origin: 0 50%;
  transition: transform 0.25s linear;
}

/* the footer's "Back to top" stays reachable above the bar (player.js sets the class) */
.vp-with-mini .site-footer__inner {
  padding-bottom: calc(var(--s-7) + 76px);
}

/* --------------------------------------------------------------------------
   8. States
   -------------------------------------------------------------------------- */
/* empty playlist: the "coming soon" sleeve, quiet disabled controls */
.vp.is-empty .vp-title__sr,
.vp.is-empty .vp-count,
.vp.is-empty .vp-artist,
.vp.is-empty .vp-note,
.vp.is-empty .vp-alert,
.vp.is-empty .vp-times,
.vp.is-empty .vp-volume,
.vp.is-empty .vp-list,
.vp.is-empty .vp-mini {
  display: none;
}

.vp.is-empty .vp-scrub {
  margin-top: var(--s-6);
  opacity: 0.6;
}

.vp.is-empty .vp-ambient {
  bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1068px) {
  .vp-head,
  .vp-stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .vp-track {
    grid-template-columns: 28px 48px minmax(0, 1fr) minmax(0, 0.5fr) 56px;
  }
}

@media (max-width: 833px) {
  .vp {
    --cq: 2.8px;
    --r-sleeve: 18px;
  }

  .vp-hero {
    padding-top: var(--s-5);
  }

  .vp-head {
    display: block;
    margin-bottom: var(--s-5);
  }

  .vp-head__lead {
    max-width: 30em;
    margin-top: var(--s-3);
    padding-bottom: 0;
    font-size: var(--fs-body);
    line-height: 1.6;
  }

  .vp-stage {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s-5);
  }

  .vp-deck {
    width: min(320px, 68%);
  }

  .vp-count {
    margin-bottom: var(--s-2);
  }

  .vp-scrub {
    margin-top: 30px;
  }

  .vp-transport {
    margin-top: var(--s-2);
  }

  .vp.is-playing .vp-deck {
    --sx: -17%;
    --dx: 22%;
  }

  /* stacked: the now-playing column sits centred under the record */
  .vp-info {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }

  .vp-transport {
    max-width: none;
  }

  .vp-volume {
    max-width: none;
    margin-right: 0;
  }

  .vp-ambient__layer {
    background:
      radial-gradient(60% 26% at 42% 30%, rgba(var(--a1), var(--vp-glow)), rgba(var(--a1), calc(var(--vp-glow) * 0.62)) 30%, rgba(var(--a1), calc(var(--vp-glow) * 0.28)) 55%, rgba(var(--a1), calc(var(--vp-glow) * 0.08)) 78%, rgba(var(--a1), 0)),
      radial-gradient(56% 24% at 70% 52%, rgba(var(--a2), calc(var(--vp-glow) * 0.7)), rgba(var(--a2), calc(var(--vp-glow) * 0.43)) 30%, rgba(var(--a2), calc(var(--vp-glow) * 0.2)) 55%, rgba(var(--a2), calc(var(--vp-glow) * 0.06)) 78%, rgba(var(--a2), 0)),
      radial-gradient(50% 16% at 10% 6%, rgba(var(--a2), calc(var(--vp-glow) * 0.42)), rgba(var(--a2), calc(var(--vp-glow) * 0.26)) 30%, rgba(var(--a2), calc(var(--vp-glow) * 0.12)) 55%, rgba(var(--a2), calc(var(--vp-glow) * 0.03)) 78%, rgba(var(--a2), 0));
  }

  .vp-tracks {
    margin-inline: -12px;
  }

  .vp-track {
    grid-template-columns: 22px 44px minmax(0, 1fr) auto;
    column-gap: 12px;
    min-height: 64px;
    padding: 10px 12px;
  }

  .vp-tracks li + li .vp-track::before {
    left: 90px;
    right: 12px;
  }

  .vp-track__art {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .vp-track__note {
    display: none;
  }
}

@media (max-width: 374px) {
  .vp-btn--skip {
    width: 48px;
    height: 48px;
  }

  .vp-btn--play {
    width: 62px;
    height: 62px;
  }
}

/* touch: bigger hit areas, the knob always visible */
@media (pointer: coarse) {
  .vp-scrub {
    height: 44px;
  }

  .vp-scrub__input::-webkit-slider-thumb {
    margin-top: 15px;
    opacity: 1;
    transform: scale(0.72);
  }

  .vp-scrub__input::-moz-range-thumb {
    opacity: 1;
    transform: scale(0.72);
  }

  .vp-range {
    height: 44px;
  }

  .vp-range__input::-webkit-slider-thumb {
    margin-top: 16px;
  }

  .vp-times {
    margin-top: -6px;
  }
}

/* --------------------------------------------------------------------------
   10. Reduced motion: no slide, spin, shrink or cross-fade. The record simply
       rests half out of its sleeve.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .vp-deck,
  .vp.is-playing .vp-deck {
    --sx: -23%;
    --dx: 29%;
    transform: none;
  }

  .vp-eq i,
  .vp-vinyl__disc,
  .vp-vinyl__disc.is-spinning,
  .vp.is-waiting .vp-btn--play::after {
    animation: none !important;
  }

  .vp-ambient,
  .vp.is-playing .vp-ambient {
    opacity: 1;
  }

  .vp-scrub__fill,
  .vp-mini__progress {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 833px) {
  .vp-deck,
  .vp.is-playing .vp-deck {
    --sx: -17%;
    --dx: 22%;
  }
}

/* --------------------------------------------------------------------------
   11. Forced colours (Windows High Contrast)
   -------------------------------------------------------------------------- */
@media (forced-colors: active) {
  .vp-ambient {
    display: none;
  }

  .vp-sleeve,
  .vp-track__art,
  .vp-mini__art,
  .vp-btn--play,
  .vp-mini__bar {
    border: 1px solid CanvasText;
  }

  .vp-scrub__rail,
  .vp-range__rail {
    background: GrayText;
  }

  .vp-scrub__fill,
  .vp-range__fill {
    background: CanvasText;
  }

  /* on/off states and the playing row, which are otherwise drawn with
     backgrounds that forced colours erase */
  .vp-btn--toggle[aria-pressed="true"],
  .vp-eq {
    color: Highlight;
  }

  .vp-btn--toggle[aria-pressed="true"]::after,
  .vp-eq i {
    forced-color-adjust: none;
    background: currentColor;
  }

  .vp-track[aria-current="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }

  .vp-track[aria-current="true"]:focus-visible {
    outline-width: 4px;
    outline-offset: 0;
  }
}

/* --------------------------------------------------------------------------
   12. Without JavaScript: the header plus a plain list of native players
   -------------------------------------------------------------------------- */
html:not(.js) .vp-stage,
html:not(.js) .vp-list,
html:not(.js) .vp-mini,
html:not(.js) .vp-ambient {
  display: none;
}

.vp-noscript {
  padding-bottom: var(--section-y);
}

.vp-noscript ol {
  display: grid;
  gap: var(--s-4);
  max-width: 40rem;
}

.vp-noscript li {
  display: grid;
  gap: var(--s-2);
}

.vp-noscript audio {
  width: 100%;
}

.vp-noscript p {
  color: var(--text-2);
  font-size: var(--fs-lead);
}
