/* tunes.jmj.fyi
   The johnmjenkins.art print shop, set up for listening. Same black stock, same
   coral / blue / yellow paper, same Epilogue plates and grain, but the covers
   stay in colour where they are the point and the lyrics get room to be read. */

:root {
  --ground: #0e0e0e;
  --surface: #161616;
  --surface-2: #222221;
  --line: #3a3a39;
  --ink: #ffffff;
  --dim: #adaaaa;
  --faint: #767575;
  --coral: #ff8e84;
  --red: #e2242a;
  --blue: #8197ff;
  --cobalt: #124af0;
  --yellow: #fde800;
  --cream: #fff5b6;

  /* the current paper; act pages and songs override it */
  --paper: var(--coral);
  --paper-ink: #4f0004;
  --ghost: var(--blue);
  --lit: var(--coral);
  --logo-ink: none;
  --logo-blend: multiply;

  --display: "Epilogue", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ch: 22px;
  --player-h: 5.25rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

.c-coral  { --paper: #ff8e84; --paper-ink: #4f0004; --ghost: #8197ff; --lit: #ff8e84; --logo-ink: none; --logo-blend: multiply; }
.c-blue   { --paper: #8197ff; --paper-ink: #001661; --ghost: #ff8e84; --lit: #9fb0ff; --logo-ink: none; --logo-blend: multiply; }
.c-yellow { --paper: #fde800; --paper-ink: #2e2900; --ghost: #124af0; --lit: #fde800; --logo-ink: none; --logo-blend: multiply; }
.c-cobalt { --paper: #124af0; --paper-ink: #f9f6ff; --ghost: #fff5b6; --lit: #b5c0ff; --logo-ink: invert(1); --logo-blend: screen; }
.c-cream  { --paper: #fff5b6; --paper-ink: #4a4300; --ghost: #124af0; --lit: #fff5b6; --logo-ink: none; --logo-blend: multiply; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-player { padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: #2e2900; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--yellow); color: #2e2900; padding: .6rem 1rem; font-weight: 800; }
.skip:focus { left: .5rem; }

.chamfer, .tile, .btn, .act-tile, .plate img, .plate::before, .ctl-play {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ch)), calc(100% - var(--ch)) 100%, 0 100%);
}

/* --- grain: the plate is never still ------------------------------------ */
@keyframes grain {
  0% { background-position: 0 0; } 16.66% { background-position: -37px 61px; }
  33.33% { background-position: 52px -19px; } 50% { background-position: -88px -44px; }
  66.66% { background-position: 23px 97px; } 83.33% { background-position: -61px 12px; }
  100% { background-position: 0 0; }
}
.screen-print { position: relative; }
.screen-print::after {
  content: ""; position: absolute; inset: -4px; pointer-events: none;
  background-image: var(--grain); opacity: .09; mix-blend-mode: multiply;
  animation: grain 1.1s step-end infinite;
}

/* --- header --------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top)) var(--gutter) .85rem;
  background: var(--ground); border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: baseline; gap: .15rem; text-decoration: none; line-height: .8; }
.mark span { font: 900 clamp(2rem, 6vw, 3.4rem)/.8 var(--display); letter-spacing: -.05em; color: var(--coral); transition: color 0s; }
.mark i { font: 800 .72rem/1 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.mark:hover span { color: var(--yellow); text-shadow: 3px 3px 0 var(--blue); }
.nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); }
.nav a { font: 900 clamp(1rem, 2.4vw, 1.35rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; text-decoration: none; color: var(--blue); }
.nav a:nth-child(2) { color: var(--yellow); }
.nav a:hover { color: var(--coral); }

main { display: block; padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) 3rem; outline: none; }

.eyebrow, .tile-act, .tile-meta, .act-foot, .song-meta, .pill, .btn, .sec-h b, .ly-note, .np-act, .follow {
  font-family: var(--body); font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { font-size: .72rem; color: var(--dim); margin: 0 0 1rem; }

/* --- home hero ------------------------------------------------------------- */
.hero { margin: 0 0 clamp(2.5rem, 7vw, 5rem); }
.hero-h {
  margin: 0; font: 900 clamp(3.1rem, 13.5vw, 11.5rem)/.84 var(--display);
  letter-spacing: -.055em; text-transform: uppercase; max-width: 12ch;
}
.hero-h span { display: block; }
.hero-h span + span { color: var(--yellow); }
.hero-lede { margin: 1.4rem 0 0; max-width: 34ch; font-size: clamp(1.1rem, 2.4vw, 1.45rem); line-height: 1.35; color: var(--dim); font-weight: 300; }

/* --- section heads ----------------------------------------------------------- */
.sec-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin: 0 0 1.25rem; padding-top: .8rem; border-top: 4px solid var(--ink);
  font: 900 clamp(1.9rem, 6vw, 4.25rem)/.9 var(--display); letter-spacing: -.045em; text-transform: uppercase;
}
.sec-h b { font-size: .75rem; color: var(--dim); }
.sec-h-sm { font-size: clamp(1.4rem, 3.4vw, 2.2rem); border-top-width: 3px; }
section + section { margin-top: clamp(3rem, 8vw, 6rem); }

/* --- song tiles -------------------------------------------------------------- */
.tile {
  --ch: 18px;
  position: relative; container-type: inline-size;
  background: var(--paper); color: var(--paper-ink);
  transition: transform .12s;
}
.tile::after { /* tooth on the paper */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .12; mix-blend-mode: multiply;
}
.tile-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; outline-offset: -6px; }
.tile-art { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.tile-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; opacity: .9;
}
.c-cobalt .tile-art img { mix-blend-mode: screen; opacity: .6; }
.tile:hover .tile-art img, .tile:focus-within .tile-art img, .tile.is-current .tile-art img {
  filter: none; mix-blend-mode: normal; opacity: 1;
}
.tile-copy { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .9rem 1.4rem; }
.tile-act { font-size: .62rem; opacity: .8; }
.tile-title {
  font: 900 clamp(1.05rem, 10.5cqw, 2.3rem)/.92 var(--display); letter-spacing: -.035em;
  text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto;
}
.tile:hover .tile-title { text-shadow: 3px 3px 0 var(--ghost); }
.tile-meta { font-size: .6rem; opacity: .75; }
.is-playing .tile.is-current .tile-meta::before { content: "Now playing · "; }
.tile:active { transform: translate(2px, 2px); }
.tile-play {
  position: absolute; z-index: 2; right: .6rem; top: calc(100cqw - 3.35rem);
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: 0; cursor: pointer; background: var(--ground); color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.tile-play svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.tile-play:hover { background: var(--paper-ink); }
.tile-play:active { transform: translate(2px, 2px); }

.grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; } }

/* the latest song, printed large */
.tile-feature { --ch: 36px; }
.tile-feature .tile-link { display: grid; grid-template-columns: 1fr; }
.tile-feature .tile-art img { filter: none; mix-blend-mode: normal; opacity: 1; }
.tile-feature .tile-copy { padding: 1.2rem 1.2rem 2.4rem; justify-content: flex-end; gap: .6rem; }
.tile-feature .tile-act { font-size: .75rem; }
.tile-feature .tile-title { font-size: clamp(2.4rem, 13cqw, 6.5rem); }
.tile-feature .tile-meta { font-size: .72rem; }
.tile-feature .tile-play { width: 4rem; height: 4rem; right: 1rem; top: calc(100cqw - 5rem); }
.tile-feature .tile-play svg { width: 2rem; height: 2rem; }
@media (min-width: 760px) {
  .tile-feature { container-type: normal; }
  .tile-feature .tile-link { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .tile-feature .tile-copy { padding: clamp(1.5rem, 3vw, 3rem); container-type: inline-size; }
  .tile-feature .tile-title { font-size: clamp(2.4rem, 16cqw, 7rem); }
  .tile-feature .tile-play { top: auto; bottom: 1.5rem; right: 1.5rem; }
}

/* --- acts -------------------------------------------------------------------- */
.act-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.act-tile {
  --ch: 26px;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  min-height: 13rem; padding: 1.4rem 1.4rem 1.8rem;
  background: var(--paper); color: var(--paper-ink); text-decoration: none;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--ch));
}
.act-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .12; mix-blend-mode: multiply; }
.act-logo { flex: 1; display: grid; place-items: center; min-height: 6rem; }
.act-logo img { max-height: 7rem; width: auto; max-width: 100%; object-fit: contain; filter: var(--logo-ink); mix-blend-mode: var(--logo-blend); }
.act-tile:hover .act-logo img { filter: var(--logo-ink) drop-shadow(5px 5px 0 var(--ghost)); }
.act-tile:active { transform: translate(2px, 2px); }
.act-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; font-size: .62rem; }
.act-tag { max-width: 26ch; opacity: .85; line-height: 1.35; }
.act-foot b { white-space: nowrap; }

/* act page */
.act-hero {
  --ch: 44px;
  position: relative; display: grid; grid-template-columns: 1fr;
  background: var(--paper); color: var(--paper-ink); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
  margin-inline: calc(var(--gutter) * -1);
}
@media (min-width: 760px) { .act-hero { margin-inline: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.act-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .13; mix-blend-mode: multiply; animation: grain 1.1s step-end infinite; }
.act-hero-art { position: relative; min-height: 18rem; overflow: hidden; }
.act-portrait { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .92; aspect-ratio: 1; }
.c-cobalt .act-portrait { mix-blend-mode: screen; opacity: .7; }
.act-stamp {
  position: absolute; inset: -30% -40%; display: flex; flex-direction: column; justify-content: center; gap: .1rem;
  transform: rotate(-9deg); pointer-events: none;
}
.act-stamp span {
  display: block; white-space: nowrap; font: 900 clamp(3.5rem, 11vw, 7.5rem)/.86 var(--display);
  letter-spacing: -.05em; text-transform: uppercase; color: var(--paper-ink);
}
.act-stamp span:nth-child(odd) { color: transparent; -webkit-text-stroke: 2px var(--paper-ink); transform: translateX(-1.2em); }
.act-stamp span:nth-child(3n) { color: var(--ghost); -webkit-text-stroke: 0; mix-blend-mode: multiply; }
.act-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 4vw, 3.5rem); }
.act-hero-copy .eyebrow { color: inherit; opacity: .75; margin: 0; }
.act-h { margin: 0; }
.act-hero-logo { max-height: clamp(5rem, 14vw, 10rem); width: auto; max-width: 100%; filter: var(--logo-ink); mix-blend-mode: var(--logo-blend); }
.act-tagline { margin: 0; font: 900 clamp(1.6rem, 4.5vw, 3.2rem)/.95 var(--display); letter-spacing: -.035em; text-transform: uppercase; max-width: 16ch; }
.act-story { margin: 0; max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.55; font-weight: 400; }
.act-hero .btn { align-self: flex-start; margin-top: .5rem; }

/* --- tracklists ------------------------------------------------------------ */
.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; align-items: center; gap: .85rem;
  grid-template-columns: 2.75rem 3.25rem minmax(0, 1fr) auto;
  padding: .55rem .25rem; border-bottom: 1px solid var(--line);
}
.track:hover { background: var(--surface); }
.track-play { position: relative; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--dim); }
.track-play svg { position: absolute; width: 1.3rem; height: 1.3rem; fill: currentColor; opacity: 0; }
.track-n { font: 900 1.05rem/1 var(--display); letter-spacing: -.02em; }
.track:hover .track-n, .track-play:focus-visible .track-n { opacity: 0; }
.track:hover .track-play svg, .track-play:focus-visible svg { opacity: 1; color: var(--ink); }
.track-art { width: 3.25rem; height: 3.25rem; object-fit: cover; }
.track-title { font: 900 clamp(1rem, 2.6vw, 1.45rem)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere; }
.track-title:hover { color: var(--yellow); }
.track-meta { display: flex; align-items: center; gap: .75rem; color: var(--dim); font-variant-numeric: tabular-nums; font-size: .9rem; }
.track.is-current .track-title { color: var(--paper); }
.track.is-current .track-n { color: var(--paper); }
.pill { font-size: .55rem; border: 1px solid var(--line); padding: .25rem .45rem; color: var(--dim); }
@media (max-width: 520px) { .track .pill { display: none; } }

/* --- buttons ---------------------------------------------------------------- */
.btn {
  --ch: 12px;
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem;
  padding: .85rem 1.25rem .85rem 1rem; border: 0; cursor: pointer; text-decoration: none;
  font-size: .78rem; line-height: 1;
}
.btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.btn:active { transform: translate(2px, 2px); }
.btn-play { background: var(--paper); color: var(--paper-ink); }
.btn-play:hover { background: var(--ink); color: var(--ground); }
.btn-ink { background: var(--ground); color: var(--paper); }
.c-cobalt .btn-ink { background: #f9f6ff; color: #0b2c8f; }
.btn-ink:hover { background: var(--paper-ink); color: var(--paper); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn.is-done { background: var(--yellow); color: #2e2900; }

/* --- song page --------------------------------------------------------------- */
.song { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) {
  .song { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .song-side { position: sticky; top: 6.25rem; }
  /* the title has to share the first screen with the sleeve */
  .song-side .plate { max-width: max(18rem, calc(100vh - 24rem)); }
}
.plate { position: relative; isolation: isolate; }
.plate::before { --ch: 34px; content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); transform: translate(10px, 10px); }
.plate img { --ch: 34px; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.song-copy { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.song-act { align-self: flex-start; font: 800 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); text-decoration: none; }
.c-cobalt .song-act, .c-cobalt .np-act { color: var(--lit); }
.song-act:hover { color: var(--yellow); }
.song-h { margin: 0; font: 900 clamp(2.5rem, 8vw, 5.6rem)/.88 var(--display); letter-spacing: -.05em; text-transform: uppercase; overflow-wrap: anywhere; }
.song-meta { margin: .25rem 0 0; font-size: .7rem; color: var(--dim); }
.song-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.song-words { position: relative; min-width: 0; }
.ly-note { margin: 0 0 1rem; font-size: .66rem; color: var(--dim); }

/* --- lyrics ------------------------------------------------------------------- */
.lyrics { position: relative; outline-offset: 6px; }
.lyrics.timed, .np-lyrics {
  max-height: min(68vh, 46rem); overflow-y: auto; overscroll-behavior: contain;
  padding-block: 18vh 30vh; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent);
}
.ly {
  margin: 0 0 .28em; max-width: 30ch;
  font: 800 clamp(1.45rem, 3.4vw, 2.35rem)/1.14 var(--body); letter-spacing: -.02em;
  color: #5f5d5d; transition: color .25s;
}
.ly.gap { margin-top: 1.05em; }
.timed .ly, .np-lyrics .ly { cursor: pointer; }
.timed .ly:hover, .np-lyrics .ly:hover { color: #9c9999; }
.ly.past { color: #8f8c8c; }
.ly.now { color: var(--ink); }
.ly.now .w {
  -webkit-text-fill-color: transparent; color: transparent;
  background-image: linear-gradient(90deg, var(--lit) var(--p, 0%), rgba(255, 255, 255, .42) var(--p, 0%));
  -webkit-background-clip: text; background-clip: text;
}
.ly.now .w.sung { --p: 100%; }
.lyrics.untimed .ly { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; line-height: 1.35; color: #e6e3e3; letter-spacing: 0; margin-bottom: .1em; }
.lyrics.untimed .ly.gap { margin-top: 1.1em; }
.ly-none { color: var(--dim); font-size: 1.1rem; }
.ly-intro {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1.2rem;
  font: 800 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.ly-intro[hidden] { display: none; }
.ly-intro i { position: relative; flex: 0 0 8rem; height: 4px; background: var(--surface-2); overflow: hidden; }
.ly-intro i::after { content: ""; position: absolute; inset: 0; background: var(--lit); transform-origin: left; transform: scaleX(var(--intro, 0)); }
.ly-intro b { display: inline-flex; gap: 3px; align-items: flex-end; height: 1rem; }
.ly-intro b span { width: 3px; background: var(--lit); animation: eq 1s steps(4) infinite; height: 40%; }
.ly-intro b span:nth-child(2) { animation-delay: -.3s; } .ly-intro b span:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.follow {
  position: absolute; right: 0; bottom: 1rem; z-index: 3;
  border: 0; cursor: pointer; padding: .7rem 1rem; font-size: .66rem;
  background: var(--yellow); color: #2e2900;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}
.follow[hidden] { display: none; }

/* --- player bar ------------------------------------------------------------ */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #121212; border-top: 1px solid var(--line);
  padding: 0 var(--gutter) env(safe-area-inset-bottom);
}
.player[hidden] { display: none; }
.scrub {
  --pct: 0%;
  position: absolute; left: 0; right: 0; top: -9px; width: 100%; height: 18px; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.scrub::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--paper) var(--pct), var(--surface-2) var(--pct)); }
.scrub::-moz-range-track { height: 4px; background: linear-gradient(90deg, var(--paper) var(--pct), var(--surface-2) var(--pct)); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; background: var(--ink); border: 0; border-radius: 0; transform: rotate(45deg) scale(0); transition: transform .12s; }
.scrub:hover::-webkit-slider-thumb, .scrub:active::-webkit-slider-thumb, .scrub:focus-visible::-webkit-slider-thumb { transform: rotate(45deg) scale(1); }
@media (hover: none) { .scrub::-webkit-slider-thumb { transform: rotate(45deg) scale(.8); } }
.scrub::-moz-range-thumb { width: 12px; height: 12px; background: var(--ink); border: 0; border-radius: 0; }
.scrub:focus-visible { outline: none; }
.scrub:focus-visible::-webkit-slider-thumb { background: var(--yellow); box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--yellow); }
.player-row { display: flex; align-items: center; gap: .6rem; min-height: var(--player-h); }
.pl-art { flex: none; width: 3.25rem; height: 3.25rem; padding: 0; border: 0; cursor: pointer; background: var(--surface-2); }
.pl-art img { width: 100%; height: 100%; object-fit: cover; }
.pl-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.pl-title { font: 900 1.02rem/1.05 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-act { font: 800 .6rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--paper); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-cobalt .pl-act, .player.c-cobalt .pl-act { color: var(--lit); }
.pl-title:hover, .pl-act:hover { color: var(--yellow); }
.pl-controls { display: flex; align-items: center; gap: .15rem; }
.ctl { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); }
.ctl svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.ctl:hover { color: var(--yellow); }
.ctl:active { transform: translate(2px, 2px); }
.ctl[hidden] { display: none; }
.ctl-play { --ch: 10px; width: 3.1rem; height: 3.1rem; background: var(--paper); color: var(--paper-ink); }
.ctl-play:hover { background: var(--ink); color: var(--ground); }
.ctl-play .i-pause, .is-playing .ctl-play .i-play { display: none; }
.is-playing .ctl-play .i-pause { display: block; }
.pl-time { flex: none; min-width: 6.6rem; text-align: right; font-size: .8rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.ctl-sm svg { width: 1.2rem; height: 1.2rem; }
#pl-expand[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 640px) {
  .pl-time, #pl-expand { display: none; }
  .pl-art { width: 2.9rem; height: 2.9rem; }
  .ctl { width: 2.5rem; }
  .ctl-play { width: 2.9rem; height: 2.9rem; }
}
@media (max-width: 380px) { #pl-prev { display: none; } }

/* --- now playing sheet ----------------------------------------------------- */
.np {
  position: fixed; left: 0; right: 0; top: 0; bottom: calc(var(--player-h) + env(safe-area-inset-bottom)); z-index: 55;
  background: var(--ground); overflow: hidden;
  transform: translateY(100%); transition: transform .38s cubic-bezier(.16, 1, .3, 1);
}
.np[hidden] { display: none; }
.np.is-open { transform: none; }
.np::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .035; animation: grain 1.1s step-end infinite; }
.np-inner {
  position: relative; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem; padding: calc(1rem + env(safe-area-inset-top)) var(--gutter) 0;
}
.np-side { display: grid; grid-template-columns: 5rem minmax(0, 1fr); grid-template-areas: "close close" "plate act" "plate title" "actions actions"; column-gap: 1rem; row-gap: .3rem; align-items: end; }
.np-close { grid-area: close; justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .2rem; margin-bottom: .5rem; border: 0; background: none; cursor: pointer; font: 800 .7rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.np-close svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.np-close:hover { color: var(--yellow); }
.np-plate { grid-area: plate; }
.np-plate::before { --ch: 14px; transform: translate(5px, 5px); }
.np-plate img { --ch: 14px; }
.np-act { grid-area: act; margin: 0; font-size: .62rem; color: var(--paper); }
.np-title { grid-area: title; margin: 0; font: 900 clamp(1.5rem, 5vw, 2.4rem)/.9 var(--display); letter-spacing: -.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.np-actions { grid-area: actions; display: flex; gap: .5rem; margin-top: .8rem; }
.np-actions .btn { min-height: 2.6rem; padding: .6rem .9rem; font-size: .66rem; }
.np-lyrics { max-height: none; height: 100%; padding-block: 8vh 40vh; }
.np-lyrics.untimed { padding-block: 1rem 6rem; }
.np .follow { right: var(--gutter); bottom: 1.25rem; }
@media (min-width: 900px) {
  .np-inner { grid-template-rows: 1fr; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); padding-top: calc(1.5rem + env(safe-area-inset-top)); }
  .np-side { grid-template-columns: 1fr; grid-template-areas: "close" "plate" "act" "title" "actions"; align-content: center; row-gap: .6rem; }
  .np-plate { max-width: min(30rem, 56vh); margin-bottom: 1.5rem; }
  .np-plate::before { --ch: 30px; transform: translate(10px, 10px); }
  .np-plate img { --ch: 30px; }
  .np-act { font-size: .78rem; }
  .np-title { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
  .np-lyrics.timed { padding-block: 30vh 45vh; }
  .np-lyrics.untimed { padding-block: 12vh 8rem; }
  .np .ly { font-size: clamp(1.7rem, 2.8vw, 2.7rem); }
}
body.np-open { overflow: hidden; }

/* --- empty, 404, footer --------------------------------------------------------- */
.empty p, .lost .hero-lede { color: var(--dim); }
.lost { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.lost .hero-h span + span { color: var(--coral); }
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin: 0 var(--gutter); padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line);
  color: var(--faint); font-size: .85rem;
}
.foot p { margin: 0; }
.foot a:hover { color: var(--yellow); }
.strip { display: flex; align-items: center; gap: 2px; }
.strip i { display: block; width: 12px; height: 12px; background: var(--ink); }
.strip i + i + i + i { margin-left: 6px; }
.strip .reg { position: relative; width: 12px; height: 12px; margin: 0 10px; border-radius: 50%; border: 1px solid var(--faint); }
.strip .reg::before, .strip .reg::after { content: ""; position: absolute; background: var(--faint); }
.strip .reg::before { left: 50%; top: -4px; bottom: -4px; width: 1px; transform: translateX(-50%); }
.strip .reg::after { top: 50%; left: -4px; right: -4px; height: 1px; transform: translateY(-50%); }

/* page swaps: the new sheet lands, it does not fade */
@keyframes land { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
main.is-landing > * { animation: land .22s cubic-bezier(.16, 1, .3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tile:active, .btn:active, .ctl:active, .act-tile:active { transform: none; }
}
