/* Listen mode of ReaderView: sleeve + sliding disc + brass tonearm (docs/mockups/vinyl-library-preview.html). */
.now-playing { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
/* The bottom nav (64px + safe area) sits under listen mode; app-main already pads for it. */
.app-main--with-nav .reader-view--listen, .app-main--with-nav .now-playing { min-height: calc(100dvh - 64px - env(safe-area-inset-bottom)); }
.app-main--with-nav .np-body { padding-bottom: 24px; }
.np-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + var(--space-1)) 8px 0;
}
.np-eyebrow {
  margin: 0; font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted);
}

/* Stage: coordinates follow a 350x220 frame so the tonearm svg and the record stay registered. */
.stage { position: relative; width: calc(100% - 24px); max-width: 360px; aspect-ratio: 350 / 220; margin: 14px auto 0; }
.stage-sleeve { position: absolute; left: 2.286%; top: 6.818%; width: 54.286%; z-index: 2; }
.stage-sleeve .sleeve {
  box-shadow: inset -3px 0 0 color-mix(in srgb, var(--vinyl) 27%, transparent), inset 1px 1px 0 color-mix(in srgb, var(--surface) 11%, transparent),
    0 2px 2px color-mix(in srgb, var(--vinyl) 18%, transparent), 0 16px 26px -8px color-mix(in srgb, var(--vinyl) 44%, transparent);
}
.stage-disc { position: absolute; left: 14.571%; top: 8.182%; width: 52.571%; z-index: 1; transition: transform 700ms cubic-bezier(.45, .05, .3, 1); }
.now-playing.is-playing .stage-disc { transform: translateX(54.9%); }
.stage-arm { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.tonearm { transform-box: view-box; transform-origin: 330px 20px; transform: rotate(var(--arm, -6deg)); transition: transform 800ms cubic-bezier(.45, .05, .3, 1) 150ms; }
.arm-shadow { flood-color: var(--vinyl); }
.arm-head { fill: var(--vinyl); }
.stage-floor { position: absolute; left: 4%; right: 4%; bottom: -4px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft) 15%, var(--gold-soft) 85%, transparent); }
@media (prefers-reduced-motion: reduce) {
  .stage-disc, .tonearm { transition: none; }
}

.np-body { text-align: center; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); max-width: 26rem; width: 100%; margin: 0 auto; }
.np-body .np-eyebrow { margin-bottom: 6px; }
.np-title { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.35; text-wrap: balance; }
.np-by { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }
.np-status { margin: 6px 0 0; font-size: 12px; color: var(--ink-muted); display: flex; align-items: center; justify-content: center; gap: 4px; }
.np-excerpt {
  font: italic 15px/1.6 var(--font-read); color: var(--ink-muted); margin: 12px auto 0; max-width: 32ch;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-seek {
  --track: linear-gradient(to right, var(--primary) var(--fill, 0%), var(--gold-soft) var(--fill, 0%));
  --lozenge: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  display: block; width: 100%; height: 28px; margin: 14px 0 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.np-seek::-webkit-slider-runnable-track { height: 2px; background: var(--track); }
.np-seek::-moz-range-track { height: 2px; background: var(--track); }
.np-seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-top: -7px; border: none; background: var(--primary); clip-path: var(--lozenge); }
.np-seek::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 0; background: var(--primary); clip-path: var(--lozenge); }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.np-transport { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 12px 0 18px; }
.np-skip { position: relative; width: 52px; height: 52px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.np-skip .icon svg { stroke-width: 1.3; }
.np-skip b { position: absolute; font: 600 11px var(--font-ui); padding-top: 3px; }
.np-play {
  width: 68px; height: 68px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold), var(--elevation-sheet);
}
.np-play:disabled { opacity: .5; cursor: default; }
.np-play .icon svg { fill: currentColor; stroke: none; }
.np-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.np-options .chip { text-decoration: none; padding-inline: 12px; }
.np-options .np-bookmark { padding-inline: 0; width: 44px; justify-content: center; }

/* "Trang X/N" in the eyebrow opens the page picker; keeps the eyebrow's type, adds a tap target. */
.np-page-btn {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; margin: -8px 0;
  border: none; border-bottom: 1px dotted currentColor; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
