/* Artist website, "Capa" model (static edition for Cloudflare Pages).
   Same design as vitrellaprod.com/artista: the cover of whatever is playing
   owns the page. --era is set from app.js to a colour taken from the current
   cover and darkened until the off-white text keeps at least 6:1 contrast. */

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--era-root, #1d1a33); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--era-root, #1d1a33);
}
img { display: block; max-width: 100%; }
button { font: inherit; }

.page {
  --era: #1d1a33;
  --ink: #f3f1ff;
  --soft: rgba(243, 241, 255, 0.74);
  --line: rgba(243, 241, 255, 0.22);
  --shade: rgba(5, 3, 20, 0.38);
  --dock: color-mix(in srgb, var(--era) 62%, #000 38%);
  --gutter: clamp(18px, 4vw, 48px);
  min-height: 100svh;
  background: var(--era);
  color: var(--ink);
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transition: background-color 700ms ease;
}
.page a { color: inherit; }
/* No blue box on tap: the browser's tap highlight and the mouse/touch focus ring are off; the keyboard focus ring stays. */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], input, summary { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
.page :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }

/* ---- keyboard users jump straight to the content ---- */
.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 60;
  padding: 10px 18px; border-radius: 999px; background: #f3f1ff; color: #1d1a33; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 16px; outline: 2px solid #1d1a33; outline-offset: 2px; }

/* ---- preview note (only on free previews) ---- */
.note {
  margin: 0; padding: 9px var(--gutter); text-align: center;
  font-size: 13px; line-height: 1.35; color: var(--soft);
  border-bottom: 1px solid var(--line);
}
.note b { color: var(--ink); font-weight: 600; }
.note p { margin: 0; }

/* ---- top bar ---- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.mark { font-family: var(--name); font-weight: var(--name-weight, 800); font-size: 28px; line-height: 1; text-decoration: none; display: inline-block; padding: 3px 0; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.86; display: inline-block; padding: 4px 0; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(40px, 7vw, 96px) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.cover {
  position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end;
  background: rgba(0, 0, 0, 0.25); box-shadow: 0 30px 80px -20px var(--shade); overflow: hidden;
}
.cover img, .tileArt img, .dockArt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.noimg::after, .tileArt.noimg::after {
  content: attr(data-initial); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--name); font-weight: var(--name-weight, 800); font-size: 38cqw; color: var(--ink); opacity: 0.5;
}
.cover.noimg, .tileArt.noimg { container-type: inline-size; }
.noimg img { visibility: hidden; }
.name {
  font-family: var(--name); font-weight: var(--name-weight, 800); font-size: var(--name-size, clamp(64px, 11.5vw, 176px));
  line-height: var(--name-leading, 0.82); margin: 0; letter-spacing: var(--name-tracking, -0.01em); overflow-wrap: anywhere;
}
.role { margin: 10px 0 clamp(18px, 3vw, 34px); color: var(--soft); font-size: 16px; }
.release { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; margin: 0; line-height: 1.15; }
.meta { margin: 4px 0 24px; color: var(--soft); font-size: 16px; font-variant-numeric: tabular-nums; }
.play {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--era); border: 0; border-radius: 999px;
  padding: 10px 24px 10px 10px; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: transform 160ms ease, color 700ms ease;
}
.play:active { transform: scale(0.97); }
.disc {
  width: 44px; height: 44px; border-radius: 50%; background: var(--era); color: var(--ink);
  display: grid; place-items: center; transition: background-color 700ms ease;
}
.disc svg { width: 16px; height: 16px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(5, 3, 20, 0.16);
  color: inherit; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.pill:hover { border-color: var(--ink); background: rgba(243, 241, 255, 0.1); }
.pill.done, .btn.done { border-color: var(--ink); }

/* ---- sections ---- */
.section {
  padding: clamp(40px, 6vw, 80px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(40px, 6vw, 80px) max(var(--gutter), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.h2 { font-family: var(--name); font-weight: var(--name-weight, 800); font-size: var(--h2-size, clamp(42px, 6vw, 72px)); line-height: 1; margin: 0 0 28px; }
.h2 a { text-decoration: none; }
.h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.tile {
  display: grid; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 0;
  cursor: pointer; color: inherit;
}
.tileArt { position: relative; display: block; width: 100%; aspect-ratio: 1; background: rgba(0, 0, 0, 0.25); overflow: hidden; transition: transform 200ms ease; }
.tile:hover .tileArt { transform: translateY(-3px); }
.tile[aria-pressed="true"] .tileArt { outline: 3px solid var(--ink); outline-offset: 4px; }
.tileTitle { font-weight: 700; font-size: 16px; line-height: 1.2; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tileTitle span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tileMeta { color: var(--soft); font-size: 13.5px; font-variant-numeric: tabular-nums; margin-top: -6px; }

.eq { display: none; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.tile.is-playing .eq { display: inline-flex; }
.eq i { display: block; width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

.credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.credits li { display: grid; gap: 2px; padding-top: 14px; border-top: 2px solid var(--ink); min-width: 0; }
.credits b { font-size: 17px; }
.credits span { color: var(--soft); font-size: 14.5px; }

.book { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.bookTitle { font-family: var(--name); font-weight: var(--name-weight, 800); font-size: var(--book-size, clamp(56px, 9.5vw, 140px)); line-height: var(--name-leading, 0.85); margin: 0; overflow-wrap: anywhere; }
.book p { margin: 0 0 10px; color: var(--soft); max-width: 46ch; }
.bookActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.btn:hover { background: rgba(243, 241, 255, 0.12); }
.btn.primary { background: var(--ink); color: var(--era); }
.btn.primary:hover { background: #fff; }
.mail { margin: 14px 0 0; font-size: 15px; color: var(--soft); user-select: all; }
.foot a { display: inline-block; padding: 4px 0; }
.footLinks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.credit { color: var(--ink); }

/* ---- about (optional) ---- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about.noPhoto { grid-template-columns: minmax(0, 1fr); }
.aboutPhoto { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: rgba(0, 0, 0, 0.25); box-shadow: 0 30px 80px -20px var(--shade); }
.about p { margin: 0 0 14px; color: var(--soft); font-size: 17px; line-height: 1.6; max-width: 60ch; }
.press { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 700; text-decoration: none; }
.press:hover { background: var(--ink); color: var(--era); }

/* ---- shows (optional) ---- */
.shows { margin: 0; padding: 0; list-style: none; }
.shows li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px 18px; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.shows li:last-child { border-bottom: 1px solid var(--line); }
.showDate { display: grid; justify-items: center; line-height: 1; }
.showDate b { font-family: var(--name); font-weight: var(--name-weight, 800); font-size: 30px; }
.showDate span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); margin-top: 4px; }
.showPlace { min-width: 0; }
.showPlace b { display: block; font-size: 17px; }
.showPlace span { display: block; color: var(--soft); font-size: 14.5px; }

/* ---- videos (optional): thumbnails that open YouTube, no iframes ---- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.video { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.videoArt { position: relative; display: block; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, 0.25); overflow: hidden; transition: transform 200ms ease; }
.video:hover .videoArt { transform: translateY(-3px); }
.videoArt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.videoPlay { position: absolute; inset: 0; display: grid; place-items: center; }
.videoPlay svg { width: 56px; height: 56px; padding: 18px; border-radius: 50%; background: rgba(5, 3, 20, 0.55); color: var(--ink); }
.videoTitle { font-weight: 700; font-size: 16px; line-height: 1.2; }
.videoMeta { color: var(--soft); font-size: 13.5px; margin-top: -6px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding: 22px max(var(--gutter), env(safe-area-inset-right, 0px)) 22px max(var(--gutter), env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line); color: var(--soft); font-size: 13.5px;
}

/* ---- player dock ---- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--dock); color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  transition: background-color 700ms ease;
}
.seekRow { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.time { font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; min-width: 34px; }
.time:last-child { text-align: right; }
.seek {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 999px; cursor: pointer; margin: 0;
  background: linear-gradient(to right, var(--ink) var(--pct, 0%), var(--line) var(--pct, 0%));
}
.seek:disabled { cursor: default; opacity: 0.6; }
.seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 4px rgba(243, 241, 255, 0.18); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
.seek::-moz-range-track { background: transparent; border: 0; }
.dockRow { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.dockArt { position: relative; width: 44px; height: 44px; flex: none; overflow: hidden; background: rgba(0, 0, 0, 0.25); }
.now { min-width: 0; flex: 1; }
.now b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now span { display: block; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now .err { color: #ffb4b4; }
.controls { display: flex; align-items: center; gap: 6px; flex: none; }
.ctl {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.ctl svg { width: 14px; height: 14px; }
.ctlMain { width: 46px; height: 46px; background: var(--ink); color: var(--dock); border-color: var(--ink); }
.ctlMain svg { width: 16px; height: 16px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .nav .wide { display: none; }
  .top { padding-top: 16px; padding-bottom: 16px; align-items: flex-start; }
  .mark { font-size: 22px; line-height: 1.05; max-width: 50%; }
  .nav { font-size: 14px; gap: 4px 14px; justify-content: flex-end; padding-top: 4px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 0; }
  .cover { justify-self: stretch; max-width: none; }
  .name { font-size: var(--name-size-sm, clamp(64px, 22vw, 120px)); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credits { grid-template-columns: minmax(0, 1fr); }
  .book { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .aboutPhoto { max-width: 420px; }
  .ctl.optional { display: none; }
  .videos { grid-template-columns: minmax(0, 1fr); }
  .shows li { grid-template-columns: 64px minmax(0, 1fr); }
  .shows .btn { grid-column: 2; justify-self: start; min-height: 44px; }
  .bookActions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .page, .play, .disc, .dock, .tileArt, .videoArt, .pill, .btn { transition: none; }
  .eq i { animation: none; transform: scaleY(0.7); }
}

/* ---- free preview time limit (gate.js adds "live" or "expired" to <html>) ---- */
.ended { display: none; }
html.gated:not(.live) .page { display: none; }
html.gated:not(.live) .ended {
  display: grid; place-items: center; min-height: 100svh;
  padding: 48px clamp(18px, 4vw, 48px);
  background: #1d1a33; color: #f3f1ff;
}
.endedIn { width: 100%; max-width: 34rem; display: grid; gap: 18px; }
.endedName {
  margin: 0; font-family: var(--name); font-weight: var(--name-weight);
  font-size: clamp(44px, 9vw, 96px); line-height: 0.95; letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.endedTitle { margin: 0; font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.01em; }
.endedText { margin: 0; max-width: 32rem; color: rgba(243, 241, 255, 0.74); font-size: 17px; line-height: 1.5; }
.endedCta {
  justify-self: start; margin-top: 6px; padding: 14px 22px; border-radius: 999px;
  background: #f3f1ff; color: #1d1a33; font-weight: 700; text-decoration: none;
}
.endedCta:hover { background: #fff; }
.endedCta:focus-visible { outline: 2px solid #f3f1ff; outline-offset: 3px; }

/* the player dock slides in after the first play, so it never covers the hero's play button on short screens */
.dock { transition: background-color 700ms ease, transform 0.35s ease, opacity 0.35s ease, visibility 0.35s; }
.dock:has(.seek:disabled):not(:has(.err)) { transform: translateY(130%); opacity: 0; visibility: hidden; }

.note a.noteCta { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 520px) { .note a.noteCta { white-space: normal; display: inline-block; margin-top: 2px; } }

/* ---- "comingSoon": a store that is live before its first beat ---- */
.hero.soonHero { grid-template-columns: minmax(0, 1fr); }
.soonCard {
  display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 5vw, 56px); border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16);
}
.soonTag { padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--era); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.soonTitle { margin: 0; font-family: var(--name); font-weight: var(--name-weight, 800); font-size: clamp(34px, 6vw, 64px); line-height: 1; text-wrap: balance; }
.soonCard p { margin: 0; max-width: 46ch; color: var(--soft); font-size: 17px; line-height: 1.5; }
.soonCard .btn { margin-top: 6px; }

/* ---- Playlist add-on (playlist.js): the site's signature feature. "+" on each
   track; right under the hero, the track that is playing floats as a card that
   can be swiped; the next one comes in from the side. ---- */
.plHost { position: relative; }
.plAdd {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid rgba(243, 241, 255, 0.6);
  background: color-mix(in srgb, var(--era) 50%, rgba(0, 0, 0, 0.5));
  color: var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  transition: transform 200ms cubic-bezier(.3, 1.6, .5, 1), background-color 180ms ease, border-color 180ms ease;
}
.plAdd svg, .plArrow svg, .plRm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plAdd:hover { transform: scale(1.1); border-color: var(--ink); }
.plAdd.on { background: var(--ink); color: var(--era); border-color: var(--ink); }
.plAdd.pop { animation: plPop 460ms cubic-bezier(.2, 1.7, .4, 1); }
@keyframes plPop { 0% { transform: scale(.6) rotate(-30deg); } 60% { transform: scale(1.22) rotate(6deg); } 100% { transform: scale(1); } }

/* ---- intro: what the playlist is, in three steps ---- */
.plSec { overflow: hidden; }
.plIntro { max-width: 760px; margin-bottom: clamp(20px, 3vw, 30px); }
.plKicker {
  display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--era);
}
.plIntro .h2 { margin-bottom: 14px; }
.plLead { margin: 0 0 18px; color: var(--soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; max-width: 60ch; }
.plSteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.plSteps li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; }
.plSteps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(243, 241, 255, 0.14); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---- stage ---- */
.plStage {
  position: relative; height: clamp(320px, 44vw, 460px);
  border-radius: 30px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(0, 0, 0, 0.35), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25));
  border: 1px solid var(--line);
}
.plStage::before { /* faint grid so the motion reads */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(243, 241, 255, 0.9) 1px, transparent 1.3px); background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.plGlow {
  position: absolute; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%);
  opacity: .6; filter: blur(46px); transition: background 900ms ease; pointer-events: none;
  animation: plBreathe 7s ease-in-out infinite;
}
@keyframes plBreathe { 0%, 100% { scale: 1; } 50% { scale: 1.14; } }
.plDeck { position: absolute; inset: 0; perspective: 1100px; }

.plCard {
  --c: 243, 241, 255;
  position: absolute; left: 50%; top: 50%;
  width: min(76%, 580px); transform: translate(-50%, -50%);
  transition: transform 620ms cubic-bezier(.2, .9, .25, 1.12), opacity 520ms ease, filter 520ms ease;
  will-change: transform, opacity; cursor: grab;
}
.plCard.drag { transition: none; cursor: grabbing; }
.plCard.is-main { z-index: 3; }
.plCard.is-next, .plCard.is-prev { z-index: 1; opacity: .45; filter: blur(1px) saturate(.75); pointer-events: none; }
.plCard.is-next { transform: translate(calc(-50% + 96%), -50%) scale(.8); }
.plCard.is-prev { transform: translate(calc(-50% - 96%), -50%) scale(.8); }
.plCard.fromR { transform: translate(calc(-50% + 96%), -50%) scale(.8); opacity: .45; }
.plCard.fromL { transform: translate(calc(-50% - 96%), -50%) scale(.8); opacity: .45; }
.plCard.is-next.arrive { transform: translate(calc(-50% + 170%), -50%) scale(.7); opacity: 0; }
.plCard.is-prev.arrive { transform: translate(calc(-50% - 170%), -50%) scale(.7); opacity: 0; }
.plCard.outL { transform: translate(calc(-50% - 135%), -50%) rotate(-9deg) scale(.86); opacity: 0; pointer-events: none; z-index: 2; }
.plCard.outR { transform: translate(calc(-50% + 135%), -50%) rotate(9deg) scale(.86); opacity: 0; pointer-events: none; z-index: 2; }
.plCard.gone { opacity: 0; pointer-events: none; }
.plCard.nudgeL { animation: plNudgeL 420ms ease; }
.plCard.nudgeR { animation: plNudgeR 420ms ease; }
@keyframes plNudgeL { 30% { transform: translate(calc(-50% - 7%), -50%) rotate(-2deg); } }
@keyframes plNudgeR { 30% { transform: translate(calc(-50% + 7%), -50%) rotate(2deg); } }

.plFloat {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.6vw, 28px);
  padding: clamp(14px, 2vw, 20px); padding-right: clamp(18px, 2.4vw, 26px); border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 45%, rgba(var(--c), 0.18)),
    rgba(20, 16, 40, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.1), 0 0 60px -10px rgba(var(--c), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: perspective(900px) rotateY(var(--tilt, 0deg));
  animation: plFloat 5.5s ease-in-out infinite;
}
.is-main .plFloat::after { /* thin glowing outline in the cover's colour */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), rgba(var(--c), .9), rgba(255, 255, 255, .7), rgba(var(--c), .2), rgba(var(--c), .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.is-main.on .plFloat::after { animation: plSpinBorder 4s linear infinite; }
@keyframes plSpinBorder { to { --a: 360deg; } }
.is-next .plFloat, .is-prev .plFloat { animation-delay: -2.4s; }
@keyframes plFloat { 0%, 100% { translate: 0 0; rotate: -1.2deg; } 50% { translate: 0 -14px; rotate: 1.2deg; } }

.plShine { /* glossy light that sweeps across now and then */
  position: absolute; inset: -40% auto -40% -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg); animation: plShine 6s ease-in-out infinite;
}
@keyframes plShine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

.plArtWrap { position: relative; width: clamp(104px, 16vw, 172px); aspect-ratio: 1; }
.plArt { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.8); }
.plArt img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.plArt span { font-family: var(--name); font-size: 48px; opacity: .6; }
.plVinyl { /* the record peeks out from behind the cover and spins while it plays */
  position: absolute; top: 6%; left: 6%; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 2px 3.5px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  transition: transform 700ms cubic-bezier(.2, .9, .25, 1.1);
}
.plVinyl img { position: absolute; left: 50%; top: 50%; width: 36%; height: 36%; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; }
.plVinyl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6%; height: 6%; transform: translate(-50%, -50%); border-radius: 50%; background: #0a0a0a; }
.is-main .plVinyl { --off: translateX(46%); transform: var(--off); }
.is-main.on .plVinyl { --off: translateX(58%); transform: var(--off); animation: plSpin 3.2s linear infinite; }
@keyframes plSpin { from { transform: var(--off) rotate(0deg); } to { transform: var(--off) rotate(360deg); } }
.plArtWrap { margin-right: clamp(54px, 7vw, 104px); }

.plInfo { display: grid; gap: 4px; min-width: 0; }
.plTag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.on .plTag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a6e; box-shadow: 0 0 0 0 rgba(255, 90, 110, .7); animation: plLive 1.6s ease-out infinite; }
@keyframes plLive { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 110, .7); } 100% { box-shadow: 0 0 0 10px rgba(255, 90, 110, 0); } }
.plInfo b { font-family: var(--name); font-weight: var(--name-weight, 800); font-size: clamp(22px, 3.4vw, 40px); line-height: 1.02; overflow-wrap: anywhere; }
.plSub { color: var(--soft); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plProg { display: block; height: 4px; margin-top: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; opacity: 0; transition: opacity 300ms; }
.plProg i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width 250ms linear; }
.on .plProg { opacity: 1; }
.plEq { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; opacity: 0; transition: opacity 300ms; }
.plEq i { width: 4px; height: 30%; background: var(--ink); border-radius: 2px; animation: plEq 900ms ease-in-out infinite; animation-play-state: paused; }
.plEq i:nth-child(2) { animation-delay: -.3s; } .plEq i:nth-child(3) { animation-delay: -.6s; } .plEq i:nth-child(4) { animation-delay: -.15s; }
.on .plEq { opacity: 1; }
.on .plEq i { animation-play-state: running; }
@keyframes plEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.plArrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--line); background: rgba(0, 0, 0, 0.25); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color 160ms, border-color 160ms;
}
.plArrow:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.4); }
.plArrow.l { left: 14px; } .plArrow.r { right: 14px; }
.plSec.solo .plArrow { display: none; }
.plDots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.plDots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(243, 241, 255, 0.35); transition: width 300ms ease, background-color 300ms; }
.plDots i.cur { width: 22px; background: var(--ink); }

.plEmpty { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 24px; z-index: 4; }
.plEmpty p { margin: 0; max-width: 34ch; color: var(--soft); font-size: 17px; line-height: 1.45; }
.plEmpty div { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.plSec.empty .plEmpty { display: grid; }
.plAll, .plPick { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.plAll { background: var(--ink); color: var(--era); border: 0; }
.plPick { border: 1.5px solid var(--line); color: var(--ink); }
.plPick:hover { border-color: var(--ink); }

.plBar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.plPlay, .plClear { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15.5px; }
.plPlay { background: var(--ink); color: var(--era); border: 0; }
.plPlay svg { width: 18px; height: 18px; }
.plPlay:disabled { cursor: default; opacity: .5; }
.plCount { color: var(--soft); font-size: 15px; font-variant-numeric: tabular-nums; }
.plClear { margin-left: auto; background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.plClear:hover { border-color: var(--ink); }
.plClear[hidden] { display: none; }
svg.fill path { fill: currentColor; stroke: none; }

.plList { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plRow { display: flex; align-items: center; gap: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); animation: plRowIn 380ms ease both; }
@keyframes plRowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plRow.cur { background: rgba(255, 255, 255, 0.14); }
.plRowPlay { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; }
.plThumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; background: rgba(0, 0, 0, 0.3); }
.plThumb img { width: 100%; height: 100%; object-fit: cover; }
.plRowT { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plRm { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--soft); cursor: pointer; border-radius: 50%; margin-right: 4px; }
.plRm:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

@media (max-width: 640px) {
  .plStage { height: 470px; border-radius: 24px; }
  .plCard { width: 82%; }
  .plCard.is-next { transform: translate(calc(-50% + 92%), -50%) scale(.82); }
  .plCard.is-prev { transform: translate(calc(-50% - 92%), -50%) scale(.82); }
  .plFloat { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 18px 16px 16px; }
  .plArtWrap { margin-right: 0; width: 132px; }
  .is-main .plVinyl { --off: translateY(-14%); } .is-main.on .plVinyl { --off: translateY(-24%); }
  .plInfo { justify-items: center; width: 100%; }
  .plProg { width: 100%; }
  .plEq { display: none; }
  .plArrow { display: none; }
  .plSteps li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .plFloat, .plGlow, .plEq i, .plRow, .plAdd.pop, .plShine, .plVinyl, .plTag::before, .plFloat::after { animation: none !important; }
  .plCard { transition: opacity 200ms ease; }
}

/* ---- one-time swipe hint: a hand drags the card to the left ---- */
.plHint {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: none; place-items: center;
}
.plSec.hint .plHint, .plSec.hintBye .plHint { display: grid; }
.plSec.hintBye .plHint { animation: plHintOut 500ms ease forwards; }
@keyframes plHintOut { to { opacity: 0; transform: scale(.96); } }
.plHand {
  position: absolute; left: 50%; top: 50%; width: clamp(96px, 8vw, 120px); height: clamp(96px, 8vw, 120px); margin-left: -34px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55));
  animation: plHand 2.6s cubic-bezier(.45, 0, .2, 1) 3 both;
}
.plHand svg { width: 100%; height: 100%; }
.plHand .h { fill: #fff; stroke: #1a1630; stroke-width: 2; stroke-linejoin: round; }
.plHand::before { /* touch point */
  content: ""; position: absolute; left: 46%; top: 16%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  animation: plTouch 2.6s ease 3 both;
}
@keyframes plHand {
  0% { transform: translate(70px, 10px) rotate(8deg); opacity: 0; }
  12% { transform: translate(70px, 0) rotate(0deg); opacity: 1; }
  22% { transform: translate(70px, 0) scale(.92); }
  62% { transform: translate(-110px, 0) scale(.92) rotate(-6deg); opacity: 1; }
  76% { transform: translate(-120px, -6px) scale(1) rotate(-8deg); opacity: 0; }
  100% { transform: translate(-120px, -6px); opacity: 0; }
}
@keyframes plTouch {
  0%, 18% { opacity: 0; transform: scale(.4); }
  24% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  62% { opacity: 1; box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  70%, 100% { opacity: 0; }
}
.plHint b {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: var(--ink); color: var(--era); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6);
  animation: plHintText 2.6s ease infinite;
}
@keyframes plHintText { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
/* the card follows the hand a little */
.plSec.hint .plCard.is-main { animation: plTease 2.6s cubic-bezier(.45, 0, .2, 1) 3; }
@keyframes plTease {
  0%, 22% { transform: translate(-50%, -50%); }
  58% { transform: translate(calc(-50% - 12%), -50%) rotate(-3.5deg) scale(.97); }
  76%, 100% { transform: translate(-50%, -50%); }
}
.plSec.hint .plCard.is-next { animation: plTeaseNext 2.6s cubic-bezier(.45, 0, .2, 1) 3; }
@keyframes plTeaseNext {
  0%, 22% { transform: translate(calc(-50% + 96%), -50%) scale(.8); }
  58% { transform: translate(calc(-50% + 80%), -50%) scale(.84); opacity: .65; }
  76%, 100% { transform: translate(calc(-50% + 96%), -50%) scale(.8); }
}
@media (max-width: 640px) {
  .plHint b { bottom: 30px; font-size: 14px; }
  .plSec.hint .plCard.is-next { animation: none; }
}

/* ---- heading over the list of tracks in the playlist ---- */
.plListHead { margin: 26px 0 4px; }
.plListHead h3 { margin: 0 0 4px; font-family: var(--name); font-weight: var(--name-weight, 800); font-size: clamp(26px, 3vw, 34px); line-height: 1.05; }
.plListHead p { margin: 0; color: var(--soft); font-size: 15px; }

/* ---- compact hero when the playlist is on: small cover + name, the playlist right below ---- */
.plOn .hero {
  grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 2.4vw, 28px); align-items: center;
  padding-bottom: clamp(8px, 2vw, 20px);
  --name-size: clamp(44px, 7vw, 104px); --name-size-sm: clamp(38px, 12vw, 60px);
}
.plOn .cover { width: clamp(76px, 11vw, 150px); max-width: none; justify-self: start; border-radius: 14px; box-shadow: 0 16px 40px -14px var(--shade); }
.plOn .hero .role { margin: 6px 0 0; }
.plOn .hero .release, .plOn .hero .meta, .plOn .hero .play { display: none; }
.plOn .plSec { padding-top: clamp(10px, 2vw, 24px); }
.plLinks { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) {
  .plHand { transform: translateX(-20px); }
  .plHand::before { opacity: 1; }
}

/* ---- "Full song on Spotify" ---- */
svg.spot { width: 20px; height: 20px; flex: none; }
svg.spot circle { fill: #1ed760; }
svg.spot path { fill: none; stroke: #0b0b0b; stroke-width: 1.8; stroke-linecap: round; }
.plSpotBtn {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 12px;
  min-height: 36px; padding: 0 14px 0 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.35); color: var(--ink);
  font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: background-color 160ms, transform 160ms;
}
.plSpotBtn:hover { background: rgba(0, 0, 0, 0.55); transform: translateY(-1px); }
.plRowSpot { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.plRowSpot:hover { background: rgba(255, 255, 255, 0.08); }

.plSpot { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; }
.plSpot[hidden] { display: none; }
.plSpotBack { position: absolute; inset: 0; background: rgba(5, 3, 20, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.plSpotBox {
  position: relative; width: min(560px, 100%); margin: 0 0 max(16px, env(safe-area-inset-bottom, 0px));
  padding: 16px; border-radius: 24px; color: #f3f1ff;
  background: color-mix(in srgb, var(--era-root, #1d1a33) 70%, #000 30%); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(40px) scale(.98); opacity: 0; transition: transform 380ms cubic-bezier(.2, .9, .25, 1.1), opacity 300ms ease;
}
.plSpot.open .plSpotBack { opacity: 1; }
.plSpot.open .plSpotBox { transform: none; opacity: 1; }
.plSpotHead { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.plSpotArt { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, 0.3); }
.plSpotArt img { width: 100%; height: 100%; object-fit: cover; }
.plSpotHead b { display: block; font-size: 17px; line-height: 1.2; }
.plSpotHead span { font-size: 13.5px; color: rgba(243, 241, 255, 0.74); }
.plSpotX { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #f3f1ff; cursor: pointer; }
.plSpotX svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.plSpotFrame { border-radius: 14px; overflow: hidden; min-height: 152px; background: rgba(0, 0, 0, 0.3); }
.plSpotFrame iframe { display: block; border: 0; }
.plSpotNote { margin: 12px 2px 10px; font-size: 13.5px; line-height: 1.45; color: rgba(243, 241, 255, 0.74); }
.plSpotApp { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px; background: #f3f1ff; color: #121018; font-weight: 700; font-size: 14.5px; text-decoration: none; }
@media (min-width: 700px) { .plSpot { align-items: center; } .plSpotBox { margin: 0; } }
@media (prefers-reduced-motion: reduce) { .plSpotBox, .plSpotBack { transition: none; } }

/* make the hint impossible to miss: a soft dark veil behind the hand */
.plHint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 55%, rgba(5, 3, 20, .38), transparent 75%);
  animation: plVeil 2.6s ease infinite;
}
@keyframes plVeil { 0%, 100% { opacity: .55; } 40% { opacity: 1; } }
.plHand .h { fill: #fff; stroke: #1a1630; stroke-width: 1.6; }

/* the hero is just the artist's name when the playlist is on */
.plOn .hero { grid-template-columns: minmax(0, 1fr); }
.plOn .hero .cover { display: none; }
@media (max-width: 640px) { @keyframes plFloat { 0%, 100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -8px; rotate: 1deg; } } }

@media (max-width: 640px) { .plSpotBtn { justify-self: center; } }

.plNote { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--ink, #fff); font-size: 15px; line-height: 1.45; }
.plNoteIco { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink, #fff); color: var(--era, #222); font-weight: 700; font-size: 18px; line-height: 1; }

/* ---- Beat store add-on: price, Buy and DM on the playing card and on each row ---- */
.plShop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.plBuy, .plDm, .plRowBuy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 14.5px; white-space: nowrap; text-decoration: none; transition: transform 160ms, background-color 160ms;
}
.plBuy, .plRowBuy { border: 0; background: #fff; color: #0b0b0b; }
.plDm { border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.35); color: var(--ink); }
.plBuy:hover, .plDm:hover, .plRowBuy:hover { transform: translateY(-1px); }
.plBuy svg, .plDm svg, .plRowBuy svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plRowBuy { flex: none; min-height: 40px; padding: 0 14px; font-size: 13.5px; margin-right: 2px; }
.tilePrice { color: var(--ink); font-weight: 800; }
.plToast {
  position: fixed; left: 50%; bottom: 96px; z-index: 90; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 440px); padding: 12px 16px; border-radius: 14px; background: #fff; color: #0b0b0b; font-weight: 600; font-size: 14.5px; line-height: 1.35;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); transition: opacity 200ms, transform 200ms;
}
.plToast.on { opacity: 1; transform: translate(-50%, 0); }
.plBuyW { font-style: normal; }
@media (max-width: 640px) { .plShop { justify-content: center; } .plRowBuy { padding: 0 12px; gap: 6px; } .plRowBuy .plBuyW { display: none; } }
@media (prefers-reduced-motion: reduce) { .plToast, .plBuy, .plDm, .plRowBuy { transition: none; } }

/* ---- "Tap to play" is impossible to miss: a big pulsing play button on the cover and a bright pill; both go away while it plays ---- */
.plBigPlay {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #0b0b0b; pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); animation: plBigPulse 1.8s ease-out infinite;
}
.plBigPlay svg { width: 30px; height: 30px; margin-left: 3px; fill: currentColor; }
@keyframes plBigPulse { 0% { box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 20px rgba(255,255,255,0); } 100% { box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 0 rgba(255,255,255,0); } }
.is-main.on .plBigPlay { display: none; }
.is-main:not(.on) .plArt img { filter: brightness(.72); }
.is-main:not(.on) .plTag { width: fit-content; padding: 7px 14px; border-radius: 999px; background: #fff; color: #0b0b0b; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
@media (prefers-reduced-motion: reduce) { .plBigPlay { animation: none; } }

/* ---- Store card on phones: one aligned column (cover, label, title, subtitle, Buy, DM), the swipe hint sits under the card ---- */
@media (max-width: 640px) {
  .plSec.shop .plStage { height: 600px; }
  .plSec.shop .plCard { top: 46%; }
  .plSec.shop .plFloat { gap: 12px; padding: 20px 18px 20px; }
  .plSec.shop .plInfo { gap: 6px; }
  .plSec.shop .plTag { margin-bottom: 4px; }
  .plSec.shop .plProg { display: none; margin-top: 6px; }
  .plSec.shop .on .plProg { display: block; }
  .plSec.shop .plShop { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 260px; margin: 12px auto 0; }
  .plSec.shop .plBuy, .plSec.shop .plDm { justify-content: center; width: 100%; min-height: 48px; }
  .plSec.shop .plHint b { bottom: 40px; }
  .plSec.shop .plHand { top: 30%; }
}

/* ---- beat store: the list under the stage is the catalogue, one selling card per beat ---- */
.plSec.shop .plNote, .plSec.shop .plEmpty { display: none; }
.plEx { margin-top: 6px !important; font-size: 13.5px !important; opacity: .8; }
.plSec.shop .plList { gap: 12px; }
.plBeat {
  --c: 255, 255, 255;
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 20px;
  background: linear-gradient(100deg, rgba(var(--c), .26), rgba(255, 255, 255, .06) 55%);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.plBeat:hover { border-color: rgba(255, 255, 255, .3); }
.plBeat.cur { border-color: rgba(255, 255, 255, .55); box-shadow: 0 14px 30px -18px rgba(var(--c), .9); }
.plBeatPlay { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.plBeatArt { position: relative; width: 76px; height: 76px; flex: none; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, .35); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .8); }
.plBeatArt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plBeatIco { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .28); }
.plBeatIco svg { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: #fff; fill: #0b0b0b; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7); }
.plBeatTxt { min-width: 0; display: grid; gap: 3px; }
.plBeatTxt b { font-size: 17px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plBeatTxt span { color: var(--soft); font-size: 14px; }
.plBeat .plEq { position: static; display: none; margin-left: auto; flex: none; }
.plBeat.on .plEq { display: flex; }
.plBeatCta { flex: none; display: flex; align-items: center; gap: 8px; }
.plBeatCta .plBuy, .plBeatCta .plDm { min-height: 46px; }
@media (max-width: 760px) {
  .plBeat { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .plBeatPlay { flex: 1 1 100%; }
  .plBeatArt { width: 68px; height: 68px; }
  .plBeatCta { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .plBeatCta .plBuy, .plBeatCta .plDm { justify-content: center; width: 100%; min-height: 48px; padding: 0 10px; }
  .plBeatCta .plBuy .plBuyW { display: inline; }
  .plBeatCta > :only-child { grid-column: 1 / -1; }
}
.plDots b { font-size: 13px; font-weight: 700; color: var(--ink); padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .plBeat { transition: none; } }
#music[hidden] { display: none !important; }
.plBeatIco svg, .plBeatIco svg path { fill: #0b0b0b !important; stroke: none; color: #0b0b0b; }
