/* ── component-space-artifact — floating hero easter egg triggers ── */

.hero-space-artifact {
  position: absolute;
  z-index: 2;
  width: 56px;
  height: 56px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.88;
  perspective: 480px;
  filter:
    drop-shadow(5px 7px 10px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.1));
  animation: artifact-drift 22s ease-in-out infinite;
}

.hero-space-artifact--vinyl {
  --artifact-dx1: 8px;
  --artifact-dy1: -6px;
  --artifact-dx2: -10px;
  --artifact-dy2: 4px;
  --artifact-dx3: 6px;
  --artifact-dy3: 8px;

  top: 38%;
  right: 30%;
}

.hero-space-artifact--camera {
  --artifact-dx1: -7px;
  --artifact-dy1: 5px;
  --artifact-dx2: 9px;
  --artifact-dy2: -7px;
  --artifact-dx3: -5px;
  --artifact-dy3: -4px;

  top: 50%;
  left: 30%;
  animation-duration: 26s;
  animation-delay: -4s;
}

.hero-space-artifact-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(30deg);
}

.hero-space-artifact--camera .hero-space-artifact-tilt {
  transform: rotateY(28deg) rotateX(28deg);
}

.hero-space-artifact-orbit,
.hero-space-artifact-disc {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.hero-space-artifact:disabled {
  pointer-events: none;
}

.hero-space-artifact-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: artifact-orbit-spin 36s linear infinite reverse;
}

.hero-space-artifact-disc {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      #080808 0 0.7px,
      #161616 0.7px 2px
    );
  background-color: #0c0c0c;
  box-shadow:
    inset -3px -2px 6px rgba(255, 255, 255, 0.05),
    inset 3px 4px 10px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.6);
  animation: artifact-disc-spin 24s linear infinite;
}

/* Center label — white tag/art area */
.hero-space-artifact-disc::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36%;
  height: 36%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

/* Spindle hole */
.hero-space-artifact-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10%;
  height: 10%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #212121;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* ── Camera miniature ── */

.hero-space-artifact-camera {
  position: absolute;
  inset: 8px 4px 10px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-space-artifact-camera-body {
  position: absolute;
  inset: 10px 0 0;
  border-radius: 6px;
  transform: translateZ(6px);
  transform-style: preserve-3d;
  background:
    linear-gradient(
      180deg,
      #f2f2f2 0%,
      #d8d8d8 8%,
      #bdbdbd 16%,
      #a6a6a6 23%,
      #8e8e8e 25%,
      #2a2a2a 26%,
      #1a1a1a 58%,
      #0c0c0c 100%
    );
  box-shadow:
    inset -3px -2px 6px rgba(255, 255, 255, 0.1),
    inset 4px 5px 12px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.7);
}

/* Extruded back plate — gives the body real thickness under tilt */
.hero-space-artifact-camera-body::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      #7a7a7a 0%,
      #5a5a5a 25%,
      #121212 26%,
      #050505 100%
    );
  transform: translateZ(-8px) translate(0px);
  box-shadow:
    1px 2px 0 #030303,
    2px 3px 0 #020202,
    3px 4px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* Lit top-left rim catch */
.hero-space-artifact-camera-body::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0% 25%, transparent 25%);
  pointer-events: none;
}

.hero-space-artifact-camera-top {
  position: absolute;
  top: 2px;
  left: 18%;
  width: 38%;
  height: 12px;
  border-radius: 3px 3px 1px 1px;
  transform: translateZ(10px);
  transform-style: preserve-3d;
  background:
    linear-gradient(180deg, #f0f0f0 0%, #c8c8c8 55%, #a8a8a8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    1px 2px 0 #6a6a6a,
    0 2px 4px rgba(0, 0, 0, 0.45);
}

.hero-space-artifact-camera-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #6e6e6e;
  transform: translateZ(-5px) translate(1px, 2px);
  pointer-events: none;
}

.hero-space-artifact-camera-top::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a0a0a;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.8),
    0 0 0 0.5px rgba(255, 255, 255, 0.25);
}

.hero-space-artifact-camera-lens {
  position: absolute;
  /* Center on the body (body starts 10px below camera top) */
  top: calc((100% + 10px) / 2 + 4px);
  left: 40%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(18px);
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 35% 32%, #4a4a4a 0%, #1a1a1a 42%, #080808 72%, #121212 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.2),
    inset 0 0 0 4px #0e0e0e,
    inset 2px 3px 6px rgba(0, 0, 0, 0.7),
    0 0 0 2px #1c1c1c,
    0 0 0 3px #0a0a0a,
    2px 4px 0 rgba(0, 0, 0, 0.55),
    3px 6px 10px rgba(0, 0, 0, 0.5);
}

.hero-space-artifact-camera-lens::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(3px);
  background:
    radial-gradient(circle at 30% 28%, rgba(190, 210, 230, 0.42) 0%, #1c2830 45%, #0a0a0a 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.4);
}

.hero-space-artifact-camera-lens::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 5px;
  width: 5px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(-28deg) translateZ(4px);
  pointer-events: none;
}

.hero-space-artifact-camera-shutter {
  position: absolute;
  top: 14px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateZ(14px);
  background: linear-gradient(160deg, #d4d4d4 0%, #8a8a8a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px #3a3a3a,
    1px 2px 0 #0a0a0a,
    1px 2px 3px rgba(0, 0, 0, 0.45);
}

/* Idle twinkle — first glint at 1s, then every 3s */
.hero-space-artifact-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-space-artifact-sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  opacity: 0;
  animation: artifact-sparkle 3s ease-in-out infinite;
  animation-delay: 1s;
  animation-fill-mode: both;
}

.hero-space-artifact-sparkle::before,
.hero-space-artifact-sparkle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.35);
}

.hero-space-artifact-sparkle::before {
  width: 100%;
  height: 1.5px;
}

.hero-space-artifact-sparkle::after {
  width: 1.5px;
  height: 100%;
}

.hero-space-artifact-sparkle:nth-child(1) {
  top: 16%;
  right: 20%;
}

.hero-space-artifact-sparkle:nth-child(2) {
  bottom: 24%;
  left: 18%;
  width: 5px;
  height: 5px;
  animation-delay: 1.12s;
}

.hero-space-artifact--camera .hero-space-artifact-sparkle:nth-child(1) {
  top: 12%;
  right: 14%;
  animation-delay: 2.2s;
}

.hero-space-artifact--camera .hero-space-artifact-sparkle:nth-child(2) {
  bottom: 18%;
  left: 22%;
  animation-delay: 2.32s;
}

@keyframes artifact-drift {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(var(--artifact-dx1), var(--artifact-dy1)); }
  50%       { transform: translate(var(--artifact-dx2), var(--artifact-dy2)); }
  75%       { transform: translate(var(--artifact-dx3), var(--artifact-dy3)); }
}

@keyframes artifact-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes artifact-disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes artifact-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }

  6%,
  12% {
    opacity: 1;
    transform: scale(1);
  }

  18% {
    opacity: 0.35;
    transform: scale(0.65);
  }

  24%,
  100% {
    opacity: 0;
    transform: scale(0.35);
  }
}

@media (max-width: 768px) {
  .hero-space-artifact {
    width: 48px;
    height: 48px;
    opacity: 0.82;
  }

  .hero-space-artifact--vinyl {
    top: 14%;
    right: 8%;
  }

  .hero-space-artifact--camera {
    top: 62%;
    left: 6%;
  }

  .hero-space-artifact-disc {
    inset: 5px;
  }

  .hero-space-artifact-camera {
    inset: 7px 3px 9px;
  }

  .hero-space-artifact-camera-lens {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-space-artifact,
  .hero-space-artifact-orbit,
  .hero-space-artifact-disc,
  .hero-space-artifact-sparkle {
    animation: none;
  }

  .hero-space-artifact-tilt {
    transform: rotateY(-20deg) rotateX(30deg);
  }

  .hero-space-artifact--camera .hero-space-artifact-tilt {
    transform: rotateY(28deg) rotateX(28deg);
  }

  .now-playing-vinyl.is-on-platter {
    animation: none;
  }
}

/* ── Now playing modal ── */

.now-playing-modal {
  position: fixed;
  inset: 0;
  z-index: 460;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.now-playing-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.now-playing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.now-playing-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow: visible;
}

.now-playing-modal.is-open .now-playing-panel {
  transform: scale(1) translateY(0);
}

.now-playing-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.now-playing-close:hover {
  color: rgba(255, 255, 255, 0.85);
}

.now-playing-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding-right: 32px;
  font-family: var(--font-main, 'Karla', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(245, 245, 245, 0.5);
  text-align: left;
}

.now-playing-title .bi {
  font-size: 1em;
  line-height: 1;
  color: inherit;
}

.now-playing-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: visible;
}

.now-playing-deck {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.now-playing-turntable-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  flex-shrink: 0;
}

.now-playing-turntable {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.now-playing-turntable.is-drop-target {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Stylus: pivot circle + arm + pill head */
.now-playing-stylus {
  --stylus-gray: #8a8a8a;
  position: absolute;
  top: -2px;
  right: -4px;
  width: 12px;
  height: 12px;
  z-index: 3;
  pointer-events: none;
  transform-origin: 6px 6px;
  /* Tip tilts left / onto the platter */
  transform: rotate(22deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.now-playing-stylus.is-engaged {
  transform: rotate(36deg);
}

.now-playing-stylus-pivot {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stylus-gray);
  border: none;
  box-shadow: none;
  z-index: 2;
}

.now-playing-stylus-arm {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 2px;
  height: 68px;
  background: var(--stylus-gray);
  border-radius: 1px;
  transform-origin: top center;
  box-shadow: none;
}

.now-playing-stylus-head {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 9px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--stylus-gray);
  border: none;
  box-shadow: none;
}

.now-playing-side-controls {
  position: absolute;
  left: calc(50% + 84px + 14px);
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  min-width: 36px;
}

.now-playing-playpause {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #242424;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.15s ease;
}

.now-playing-playpause:hover:not(:disabled) {
  background: #2e2e2e;
  border-color: rgba(255, 255, 255, 0.28);
}

.now-playing-playpause:active:not(:disabled) {
  transform: scale(0.96);
}

.now-playing-playpause:disabled {
  opacity: 0.35;
  color: rgba(245, 245, 245, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
  background: #1c1c1c;
  cursor: default;
}

.now-playing-volume {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  width: 28px;
}

.now-playing-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 4px;
  margin: 0;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  outline: none;
  transform: rotate(-90deg);
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.now-playing-volume-slider:disabled {
  opacity: 0.35;
  background: rgba(255, 255, 255, 0.08);
  cursor: default;
}

/* Sized for -90deg rotation: reads as a short rounded-rect dial with 2 grip lines */
.now-playing-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(#b0b0b0, #b0b0b0) 3px 5px / 2px 12px no-repeat,
    linear-gradient(#b0b0b0, #b0b0b0) 7px 5px / 2px 12px no-repeat,
    #f0f0f0;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.now-playing-volume-slider:disabled::-webkit-slider-thumb {
  background:
    linear-gradient(#6a6a6a, #6a6a6a) 3px 5px / 2px 12px no-repeat,
    linear-gradient(#6a6a6a, #6a6a6a) 7px 5px / 2px 12px no-repeat,
    #7a7a7a;
  box-shadow: none;
  cursor: default;
}

.now-playing-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 22px;
  border-radius: 4px;
  background:
    linear-gradient(#b0b0b0, #b0b0b0) 3px 5px / 2px 12px no-repeat,
    linear-gradient(#b0b0b0, #b0b0b0) 7px 5px / 2px 12px no-repeat,
    #f0f0f0;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.now-playing-volume-slider:disabled::-moz-range-thumb {
  background:
    linear-gradient(#6a6a6a, #6a6a6a) 3px 5px / 2px 12px no-repeat,
    linear-gradient(#6a6a6a, #6a6a6a) 7px 5px / 2px 12px no-repeat,
    #7a7a7a;
  box-shadow: none;
  cursor: default;
}

.now-playing-volume-slider::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.now-playing-volume-slider:disabled::-moz-range-track {
  background: rgba(255, 255, 255, 0.08);
}

/* Dragged vinyl mounted on the turntable */
.now-playing-vinyl.is-on-platter {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  width: 83%;
  height: 83%;
  transform: none;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  flex-shrink: 0;
  cursor: default;
  animation: now-playing-spin 2.8s linear infinite;
  animation-play-state: paused;
}

.now-playing-vinyl.is-on-platter.is-spinning {
  animation-play-state: running;
}

/* Subtle edge lift only — same disc look as when dragging */
.now-playing-vinyl.is-on-platter .now-playing-vinyl-disc {
  box-shadow:
    inset -2px -2px 5px rgba(255, 255, 255, 0.04),
    inset 2px 3px 8px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.45);
}

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

/* Fixed-height slot so empty vs playing never resizes the modal */
.now-playing-playback {
  position: relative;
  width: min(320px, 88%);
  height: 112px;
  margin-top: 16px;
  flex-shrink: 0;
}

.now-playing-empty-hint {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 16px;
  border: 1.5px dashed rgba(245, 245, 245, 0.28);
  border-radius: 10px;
  font-family: var(--font-main, 'Karla', sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(245, 245, 245, 0.45);
  text-align: center;
  box-sizing: border-box;
}

.now-playing-playback-active {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.now-playing-playback.has-track .now-playing-empty-hint {
  display: none;
}

.now-playing-playback.has-track .now-playing-playback-active {
  display: flex;
}

.now-playing-meta-trackinfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.now-playing-track {
  margin: 0 0 2px;
  font-family: var(--font-main, 'Karla', sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.now-playing-artist {
  margin: 0;
  font-family: var(--font-main, 'Karla', sans-serif);
  font-size: 1rem;
  font-weight: 200;
  color: #ffffff;
  text-align: center;
}

.now-playing-progress {
  width: min(280px, 100%);
  margin-top: 12px;
}

.now-playing-progress-track {
  position: relative;
  height: 4px;
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: visible;
  cursor: pointer;
  touch-action: none;
}

.now-playing-progress-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  bottom: -10px;
}

.now-playing-progress-track.is-scrubbing {
  cursor: grabbing;
}

.now-playing-progress-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #f5f5f5;
  pointer-events: none;
}

.now-playing-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-main, 'Karla', sans-serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.45);
  font-variant-numeric: tabular-nums;
}

.now-playing-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding-top: 72px;
  overflow: visible;
}

.now-playing-album {
  position: relative;
  overflow: visible;
}

.now-playing-album-slot {
  position: relative;
  overflow: visible;
  aspect-ratio: 1;
}

.now-playing-cover {
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #2a2a2a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.now-playing-album:hover .now-playing-cover,
.now-playing-album.is-peek .now-playing-cover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 6px 16px rgba(0, 0, 0, 0.35);
}

.now-playing-vinyl {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  cursor: grab;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1),
    opacity 0.24s ease;
}

.now-playing-album:hover .now-playing-vinyl,
.now-playing-album.is-peek .now-playing-vinyl {
  transform: translateY(-60%);
  opacity: 1;
  pointer-events: auto;
}

.now-playing-vinyl.is-dragging {
  opacity: 1;
  pointer-events: auto;
  cursor: grabbing;
  transition: none;
  z-index: 500;
}

.now-playing-vinyl.is-snapping {
  pointer-events: none;
  transition:
    left 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
    top 0.42s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.42s ease;
}

.now-playing-vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      #080808 0 0.6px,
      #161616 0.6px 1.8px
    );
  background-color: #0a0a0a;
  box-shadow:
    inset -2px -2px 5px rgba(255, 255, 255, 0.04),
    inset 2px 3px 8px rgba(0, 0, 0, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.45);
  position: relative;
}

.now-playing-vinyl-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.now-playing-vinyl-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10%;
  height: 10%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #212121;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.now-playing-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 768px) {
  .now-playing-panel {
    padding: 16px;
    width: min(520px, 100%);
  }

  .now-playing-turntable-wrap {
    width: 148px;
    height: 148px;
  }

  .now-playing-stylus-arm {
    height: 60px;
  }

  .now-playing-side-controls {
    left: calc(50% + 74px + 12px);
    padding-top: 12px;
    gap: 12px;
  }

  .now-playing-playpause {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .now-playing-volume {
    height: 84px;
  }

  .now-playing-volume-slider {
    width: 84px;
  }

  .now-playing-covers {
    gap: 10px;
  }

  .now-playing-cover {
    border-radius: 8px;
  }
}
