/* S2 stage.css — Worker 3: vinyl primitive, record puck, the Pressing reveal, Now Playing sheet. */

/* ---------- vinyl disc primitive (art.js discHTML) ---------- */
.vinyl {
  position: relative; display: inline-block; border-radius: 50%; flex: none;
  background: radial-gradient(circle,
    #0b0b0c 0 12%, #222227 12% 30%, #1a1a1e 30% 58%, #212126 58% 82%, #18181c 82% 100%);
  box-shadow: inset 0 0 0 1px #33333a;
}
.vinyl::after {
  content: ""; position: absolute; inset: 32%; border-radius: 50%;
  background: var(--label, var(--red));
}
.vinyl::before { /* spindle hole, above the label */
  content: ""; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%;
  min-width: 3px; min-height: 3px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #0b0b0c; z-index: 1;
}
.vinyl.gold { box-shadow: inset 0 0 0 1px #33333a, 0 0 0 2px var(--gold); }

/* ---------- floating record puck ---------- */
.puck {
  position: fixed; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 55;
  width: 64px; height: 64px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-pop);
  -webkit-tap-highlight-color: transparent;
}
.puck[hidden] { display: none; }
/* compact: sit above the Booth composer (chips row + input) instead of on top of it */
@media (max-width: 767px) {
  .puck { bottom: calc(118px + var(--safe-b)); width: 56px; height: 56px; }
}

/* ---------- the Pressing (reveal overlay, z 70) ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 28px 22px calc(22px + var(--safe-b));
  text-align: center;
  background: radial-gradient(140% 100% at 50% 0%, #1a0f08 0%, var(--ground) 62%);
  animation: rv-fade 0.3s ease both; /* reduced-motion path: this simple fade only */
}
@keyframes rv-fade { from { opacity: 0; } }

.rv-stage { position: relative; width: min(62vw, 300px); aspect-ratio: 1; flex: none; }
.rv-disc { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.rv-art {
  position: absolute; inset: 0; border-radius: 14px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65);
}
.reveal.gold .rv-art { box-shadow: 0 0 0 2px var(--gold), 0 30px 60px -24px rgba(212, 168, 83, 0.3); }

.rv-card { display: flex; flex-direction: column; align-items: center; gap: 9px; max-width: 340px; }
.rv-eyebrow { letter-spacing: 0.18em; }
.reveal.gold .rv-eyebrow { color: var(--gold); }
.rv-title { margin: 0; font-size: 30px; line-height: 1.12; }
.rv-meta { color: var(--muted); font-size: 13px; }
.rv-hook { color: var(--red-dim); }
.rv-ctas { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 6px; }

/* staged choreography — applied only when JS adds .staged (motion allowed) */
.reveal.staged .rv-disc {
  opacity: 0; transform: scale(0.66);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.staged.ph-disc .rv-disc { opacity: 1; transform: none; }
.reveal.staged .rv-art {
  opacity: 0; transform: scale(0.58);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.staged.ph-bloom .rv-art { opacity: 1; transform: none; }
.reveal.staged.ph-bloom .rv-disc { opacity: 0; transform: scale(1.22); }
.reveal.staged .rv-card > * {
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.staged .rv-card > :nth-child(2) { transition-delay: 0.07s; }
.reveal.staged .rv-card > :nth-child(3) { transition-delay: 0.14s; }
.reveal.staged .rv-card > :nth-child(4) { transition-delay: 0.21s; }
.reveal.staged.ph-title .rv-card > * { opacity: 1; transform: none; }
/* CTAs hold for their own beat (later + more specific than the title rules) */
.reveal.staged .rv-card > .rv-ctas {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.staged.ph-ctas .rv-card > .rv-ctas { opacity: 1; transform: none; }

/* safety: if the OS flips to reduced motion mid-session, drop the choreography */
@media (prefers-reduced-motion: reduce) {
  .reveal.staged, .reveal.staged * { transition: none !important; opacity: 1 !important; transform: none !important; }
}

@media (min-width: 768px) {
  .reveal { flex-direction: row; gap: 46px; text-align: left; }
  .rv-card { align-items: flex-start; }
  .rv-ctas { justify-content: flex-start; }
  .rv-title { font-size: 34px; }
}

/* ---------- Now Playing sheet internals (.sheet positioning lives in app.css) ---------- */
.np-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 13px;
  padding: 8px 18px calc(16px + var(--safe-b));
}
@media (min-width: 768px) { .np-scroll { padding-top: 16px; } }

.np-art {
  width: min(58vw, 216px); aspect-ratio: 1; flex: none;
  margin: 2px auto 0; border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
}
.np-art.gold { box-shadow: 0 0 0 2px var(--gold), 0 24px 48px -20px rgba(0, 0, 0, 0.6); }

.np-head { text-align: center; }
.np-name { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.np-name b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* scrubber */
.np-scrub input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer;
}
.np-scrub input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) var(--pct, 0%), var(--line-2) var(--pct, 0%));
}
.np-scrub input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px;
  border: 0; border-radius: 50%; background: #fff;
}
.np-scrub input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-2); }
.np-scrub input[type="range"]::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--red); }
.np-scrub input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.np-times { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: -4px; }

/* transport row: ♥ · prev / play / next · thumbs */
.np-transport { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 4px; }
.np-transport button {
  background: none; border: 0; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.np-skip { font-size: 19px; padding: 8px; color: var(--soft); }
.np-transport .np-play {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--panel-2);
  color: var(--red); font-size: 18px;
}
.np-side {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 1px solid transparent; font-size: 16px; color: var(--soft);
}
.np-transport .np-side.on { color: var(--red); border-color: var(--red); background: rgba(255, 40, 0, 0.1); }
.np-thumbs { display: flex; gap: 2px; }

/* judgment surfaces */
.np-off { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.np-block { display: flex; flex-direction: column; gap: 8px; }
.np-fix { align-self: flex-start; margin-top: 2px; }
.np-takes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
