/* Printed-catalogue look: neutral paper and black ink, so the sleeves supply the colour. */
@property --paper { syntax: "<color>"; inherits: true; initial-value: #e8e8e3; }
@property --card { syntax: "<color>"; inherits: true; initial-value: #f4f4f0; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #bdbdb5; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #5d5d57; }
@property --player { syntax: "<color>"; inherits: true; initial-value: #111110; }
:root {
  color-scheme: light;
  --paper: #e8e8e3;
  --card: #f4f4f0;
  --ink: #111110;
  --muted: #5d5d57;
  --line: #bdbdb5;
  --signal: #d4380d;
  --player: #111110;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wave: #8f8f87;
  --placeholder: #8d8d85;
  --on-ink: #fff;
}

/* Dark theme: near-black paper and light ink, so the sleeves glow. */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121211;
  --card: #1d1d1b;
  --ink: #ecebe5;
  --muted: #a3a29b;
  --line: #3b3b37;
  --signal: #ff6b3d;
  --player: #050505;
  --wave: #5f5f59;
  --placeholder: #7d7c76;
  --on-ink: #121211;
}
html[data-theme="dark"] .partner-row img { padding: 8px 12px; background: #ecebe5; }
html[data-theme="dark"] .save-status, html[data-theme="dark"] .count { color: #121211; }

.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  padding-bottom: 128px;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
main:focus { outline: none; }
.data { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sleeve { display: block; width: 100%; height: 100%; }

/* Masthead */
.masthead {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 20px max(28px, calc((100% - 1240px) / 2 + 28px)) 14px;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  font-size: 25px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.035em;
  text-decoration: none;
}
.masthead nav { display: flex; gap: 2px 13px; flex: 1; flex-wrap: wrap; margin-left: 12px; }
/* The menu and search bar stay at the top while the page scrolls. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 8;
  flex-wrap: wrap;
  row-gap: 12px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
html { scroll-padding-top: calc(var(--head, 80px) + 80px); }
/* The search bar follows you down the page, just below the menu. */
#view > .search-box, .browse > .search-box {
  position: sticky;
  top: calc(var(--head, 80px) + 10px);
  z-index: 7;
}
#view > .search-box { width: calc(100% - 56px); margin: 22px auto 0; box-shadow: 0 6px 22px rgb(0 0 0 / .18); }
.masthead nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-color: var(--line); }
.masthead nav a[aria-current="page"] { border-color: var(--ink); font-weight: 700; }
.count {
  display: inline-block;
  min-width: 19px;
  padding: 0 5px;
  background: var(--signal);
  color: #fff;
  font: 700 11px/19px var(--mono);
  text-align: center;
}
.client-toggle {
  background: none;
  border: 1px solid var(--ink);
  padding: 6px 12px;
  white-space: nowrap;
}
.client-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
body.client .owner-only { display: none !important; }

/* Buttons and chips */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 11px 18px;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--on-ink); }
.btn.secondary { background: none; color: var(--ink); font-weight: 400; }
.btn.secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plain { background: none; border: 0; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }
.plain:hover { color: var(--signal); }
.danger { color: var(--signal); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 11px;
  font-size: 13.5px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.hinted::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  vertical-align: 1px;
  background: var(--signal);
}

/* Front page opening */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(56px, 16vh, 150px) 28px 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; }

/* The colourful background stays still behind every page while the pages scroll over it. */
body { background: var(--paper); }
.backdrop {
  --c1: oklch(.62 .16 25);
  --c2: oklch(.75 .14 140);
  --c3: oklch(.55 .15 280);
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* A blend of all three colours underneath, so no black ever shows between the moving shapes. */
  background: linear-gradient(135deg, var(--c1), var(--c2) 50%, var(--c3));
  pointer-events: none;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgb(0 0 0 / .12), rgb(0 0 0 / .22));
}
/* Pages and the menu sit on panels of paper so the text stays easy to read. */
.masthead, #view > :not(.hero, .hero-paths, .search-box) {
  background: color-mix(in oklab, var(--paper) 92%, transparent);
}
#view > :not(.hero, .hero-paths, .search-box) {
  width: calc(100% - 48px);
  margin-block: 28px;
}
#view > .review-head { margin-bottom: 0; }
#view > .review { margin-top: 0; }
.hero-paths + .home, .hero + .home { margin-top: 0; }
.motion-toggle {
  position: fixed;
  right: 16px;
  bottom: 44px;
  z-index: 7;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 50%;
  background: rgb(0 0 0 / .45);
  color: #fff;
  font-size: 10px;
}
.motion-toggle:hover { background: rgb(0 0 0 / .7); }
body:has(#player:not([hidden])) .motion-toggle { bottom: 116px; }
.blob {
  position: absolute;
  width: 75vmax;
  height: 75vmax;
  border-radius: 50%;
  filter: blur(70px) saturate(1.5);
  opacity: .95;
}
.b1 { background: var(--c1); left: -18vmax; top: -24vmax; }
.b2 { background: var(--c2); right: -20vmax; top: -8vmax; }
.b3 { background: var(--c3); left: 18vmax; bottom: -34vmax; }
.hero-wave { position: absolute; left: 0; right: 0; top: 0; height: 90px; opacity: .22; }
.hero-only .hero-wave { top: auto; bottom: 18%; }
.hero-wave svg { display: block; width: 100%; height: 100%; fill: #fff; }
.hero-content { position: relative; max-width: 860px; }
.hero h1 {
  margin-inline: auto;
  max-width: 15ch;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 800;
  text-shadow: 0 2px 30px rgb(0 0 0 / .35);
}
.hero .lede { max-width: 52ch; margin: 18px auto 0; font-size: 18px; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .45); }
.hero-only { min-height: min(76vh, 680px); padding-bottom: 72px; }
.hero-paths { position: relative; isolation: isolate; padding: 18px 28px clamp(72px, 18vh, 160px); }
#view > .search-box input, .hero .search-box input { background: rgb(255 255 255 / .96); border-color: #fff; color: #111110; }
#view > .search-box input::placeholder { color: #6b6b65; }
#view > .search-box .btn, .hero-paths .home-paths .btn:not(.secondary) { background: #fff; border-color: #fff; color: #111110; }
.hero-paths .home-paths .btn.secondary { border-color: #fff; color: #fff; background: rgb(0 0 0 / .28); }
.hero-paths .btn:hover, #view > .search-box .btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.hero-paths .home-paths { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hero + .home { padding-top: 8px; }

/* Library */
.home, .browse { padding: 24px 28px; }
/* Pages sit in a centred column instead of hugging the left edge. */
.home, .browse, .feature, .review-head, .review { max-width: 1240px; margin-inline: auto; }
.search-box { display: flex; gap: 6px; width: 100%; max-width: 640px; margin: 20px auto 0; }
.search-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-size: 16px;
}
.search-box input:focus { outline: none; border-color: var(--signal); }
.browse > .search-box { margin: 0 auto 16px; max-width: none; }
.home-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 8px; text-align: center; }
.home-head .home-paths { justify-content: center; }
.home-head h1 { font-size: clamp(36px, 5.4vw, 72px); line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 15ch; margin-inline: auto; }
.home-head .lede { margin: 14px auto 0; }
.home-head .home-paths { margin-top: 16px; }
.home-paths { display: flex; flex-wrap: wrap; gap: 8px; }
.door { margin-top: 34px; }
.door h2 {
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
  font-size: 19px;
  letter-spacing: -.015em;
}
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 22px 16px; }
.tile { display: block; text-decoration: none; }
.tile strong { display: block; margin-top: 9px; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.tile:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.tile .data { color: var(--muted); }
.tile-art { aspect-ratio: 1; overflow: hidden; }
.tile-art.four { display: grid; grid-template-columns: 1fr 1fr; }
.key-grid { display: grid; grid-template-columns: repeat(6, minmax(38px, 54px)); gap: 3px; }
.key-swatch {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid transparent;
  font: 700 12px var(--mono);
  text-decoration: none;
}
a.key-swatch:hover, .key-swatch[aria-current] { border-color: var(--ink); }
.key-swatch[aria-current] { box-shadow: inset 0 0 0 2px var(--paper); }
.key-swatch.none { opacity: .25; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; min-height: 32px; }
.crumbs > a:first-child { font-weight: 700; margin-right: 6px; text-underline-offset: 3px; }
.chip { text-decoration: none; color: inherit; }
.chip.on, .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.facets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.facet { background: none; border: 1px solid var(--ink); padding: 7px 12px; }
.facet span { font-size: 9px; margin-left: 3px; vertical-align: 1px; }
.facet:hover, .facet[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.facet strong { font-weight: 800; }
.facet-panel { padding: 12px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--ink); }
.facet-panel .chip .data { opacity: .7; margin-left: 3px; }
.browse .notice { margin-top: 12px; }
.browse .row.head { margin-top: 16px; }
.browse .grid { margin-top: 16px; }
.save-status { margin: 0; padding: 9px 28px; background: var(--signal); color: #fff; font-weight: 700; }
body.signed-out .masthead nav, body.signed-out .client-toggle { display: none; }
.sign-in { max-width: 460px; }
.sign-in .text-field { margin-top: 18px; }

.results-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; margin-bottom: 14px; }
.results-bar h1 { font-size: 34px; line-height: 1; letter-spacing: -.035em; font-weight: 800; margin-right: auto; }
.results-bar select {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 0;
}
.view-switch button { background: none; border: 0; padding: 4px 6px; color: var(--muted); }
.view-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 11px 14px;
  margin-bottom: 14px;
  background: var(--card);
  border-left: 4px solid var(--signal);
}
.notice a { font-weight: 700; }

.row {
  display: grid;
  grid-template-columns: 58px minmax(140px, 1.15fr) minmax(90px, 1fr) 44px 74px 46px var(--acts, 42px);
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.row.head {
  padding: 0 0 6px;
  border: 0;
  color: var(--muted);
  font: 700 10.5px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.row.playing { box-shadow: inset 4px 0 0 var(--signal); padding-left: 10px; }
.art-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
}
.art-play .glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / .55);
  color: #fff;
  opacity: 0;
  font-size: 15px;
}
.art-play:hover .glyph, .art-play:focus-visible .glyph, .is-playing .glyph { opacity: 1; }
.row-title { min-width: 0; }
.row-title strong { display: block; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.row-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.tag-draft { color: var(--signal); font: 700 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.uncertain { color: var(--signal); cursor: help; }

.wave {
  --p: 0%;
  position: relative;
  height: 38px;
  color: var(--line);
  cursor: pointer;
}
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--wave); }
.wave svg + svg { fill: var(--ink); clip-path: inset(0 calc(100% - var(--p)) 0 0); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 26px 18px;
}
.cover strong { display: block; margin-top: 9px; line-height: 1.2; overflow-wrap: anywhere; }
.cover small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }

.empty { padding: 56px 0; max-width: 460px; }
.empty h2 { font-size: 26px; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 10px; }
.empty p { margin-bottom: 18px; color: var(--muted); }

.legend { margin-top: 42px; padding-top: 14px; border-top: 2px solid var(--ink); max-width: 700px; }
.legend h2 { font-size: 15px; margin-bottom: 8px; }
.legend ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.page-foot { margin-top: 16px; }

/* Albums and artists */
.nav-owner { margin-left: 6px; }
.tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-art.blank { background: var(--line); }
.tile-empty { color: var(--muted); }
.tile-sub { display: block; font-size: 13.5px; }
.tile .tag-draft { display: block; margin-top: 3px; }
.feature {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: 36px;
  padding: 28px 28px 10px;
  align-items: start;
}
.feature.no-art { display: block; }
.feature-text h1 { margin-top: 10px; font-size: clamp(36px, 5vw, 66px); line-height: 1; letter-spacing: -.04em; font-weight: 800; overflow-wrap: anywhere; }
.feature-by { margin-top: 10px; font-size: 19px; font-weight: 700; }
.feature-text > p:first-child a { font-weight: 700; text-underline-offset: 3px; }
.feature-text .home-paths { margin-top: 20px; }
.story { margin-top: 18px; max-width: 62ch; font-size: 17px; white-space: pre-line; overflow-wrap: anywhere; }
.row small a { color: inherit; text-underline-offset: 2px; }
.meta-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.meta-link:hover { color: var(--signal); text-decoration-color: currentColor; }
.album-form { max-width: 980px; }
.album-fields { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.album-fields > .text-field { margin-top: 0; }
.album-fields .text-field:first-child { margin-top: 0; }
.text-field input, .text-field textarea { display: block; width: 100%; margin-top: 5px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 0; font-weight: 400; }
.cover-preview { display: grid; place-items: center; aspect-ratio: 1; background: var(--card); border: 1px dashed var(--ink); color: var(--muted); overflow: hidden; }
.cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.file-btn { display: block; margin-top: 8px; text-align: center; cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.file-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form-heading { margin: 30px 0 8px; padding-top: 8px; border-top: 2px solid var(--ink); font-size: 19px; }
.album-order { margin: 0 0 14px; padding-left: 24px; }
.album-order li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.album-order li > * { vertical-align: middle; }
.album-order-title { display: inline-block; width: calc(100% - 195px); min-width: 150px; overflow-wrap: anywhere; }
.album-order button[disabled] { opacity: .3; cursor: default; }
.album-available { display: flex; flex-wrap: wrap; gap: 6px; }
.album-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.album-actions .danger { margin-left: auto; }

/* Worked with */
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin: 18px 0 0; padding: 0; list-style: none; }
.partner-row li { display: flex; align-items: center; justify-content: center; height: 64px; }
.partner-row img { display: block; max-height: 56px; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.partner-row a:hover img, .partner-row a:focus-visible img { filter: none; opacity: 1; }
.partner-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--muted); }
.partner-row a { text-decoration: none; }
.partner-row a:hover .partner-name { color: var(--ink); }
.partner-admin { margin-top: 40px; }
.logo-preview img { object-fit: contain; padding: 14px; }

/* Playlists */
.pl-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.pl-info h2 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pl-info h2 a { text-decoration: none; }
.pl-info h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-link { display: block; width: 100%; max-width: 620px; margin-top: 10px; padding: 7px 9px; background: var(--card); border: 1px solid var(--line); border-radius: 0; font: 12.5px var(--mono); }
.pl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.pl-actions .btn { padding: 8px 13px; }
.shared-play { margin-top: 18px; }
.shared-list { padding: 18px 0 0; }

/* Add music */
.page { max-width: 880px; padding: 34px 28px; margin-inline: auto; }
.page h1, .review-head h1 { font-size: 44px; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.lede { margin: 14px 0 26px; font-size: 17px; max-width: 58ch; }
.drop {
  display: block;
  padding: 58px 24px;
  background: var(--card);
  border: 2px dashed var(--ink);
  text-align: center;
  cursor: pointer;
}
.drop strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.drop.over, .drop:hover { background: var(--ink); color: var(--paper); }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 2px; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.intake-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.intake-head h2 { font-size: 19px; }
.intake-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.intake-row .thumb { width: 46px; height: 46px; background: var(--line); }
.intake-row .name { overflow-wrap: anywhere; }
.message { margin-top: 12px; color: var(--signal); }

.drop-small { padding: 26px 18px; margin-bottom: 14px; }
.drop-small strong { font-size: 17px; }
.drop.busy { opacity: .55; }
.album-save-hint { margin-top: 12px; }
.add-mode { display: flex; gap: 6px; margin-top: 18px; }
.add-mode button { background: none; border: 1px solid var(--ink); padding: 8px 16px; }
.add-mode button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.add-mode + .lede { margin-top: 18px; }
#album-upload .album-fields { margin-top: 24px; }
.success { margin-top: 14px; padding: 11px 14px; background: var(--card); border-left: 4px solid var(--ink); }
.album-order li[draggable] { cursor: grab; }
.drag-handle { display: inline-block; width: 18px; color: var(--muted); font-size: 16px; }

/* Naming flow */
.review-head { padding: 28px 28px 18px; }
.progress { height: 5px; margin-top: 16px; background: var(--line); }
.progress div { height: 100%; background: var(--ink); }
.review { display: grid; grid-template-columns: minmax(250px, 370px) minmax(0, 1fr); gap: 42px; padding: 0 28px 40px; align-items: start; }
.listen { position: sticky; top: 16px; }
.listen .big-art { aspect-ratio: 1; }
.listen .wave { height: 54px; margin: 12px 0; }
.listen-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.file-name { margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.steps { display: grid; gap: 28px; max-width: 660px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); }
.step-no { font: 700 13px var(--mono); padding-top: 4px; }
.step h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.hint { margin: 3px 0 11px; color: var(--muted); font-size: 13.5px; }
.title-input {
  width: 100%;
  padding: 9px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.025em;
}
.title-input::placeholder { color: var(--placeholder); font-weight: 400; }
.title-input:focus { outline: none; border-color: var(--signal); }
.ideas { margin-top: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.tech-grid label, .text-field { display: block; font-size: 13.5px; font-weight: 700; }
.tech-grid select, .text-field input, .text-field textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 400;
}
.edit-bpm { display: flex; align-items: center; gap: 3px; margin-top: 5px; font-weight: 400; }
.edit-bpm input { padding: 8px; }
.check { margin-top: 5px; font-size: 12.5px; font-weight: 400; color: var(--signal); }
.text-field { margin-top: 14px; }
.feel-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; margin-top: 2px; }
.feel-choices .field-label { margin-top: 16px; }
.energy-notice { margin-top: 34px; margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: 34px; }

/* Rolling text */
.ticker {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 6;
  height: 32px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font: 700 12.5px/32px var(--mono);
  white-space: nowrap;
}
.ticker-track { display: inline-flex; }
.ticker-item { display: inline-block; padding-right: 56px; }
.ticker-item::after { content: "•"; margin-left: 56px; }
body.signed-out .ticker { display: none; }

/* Player */
.player {
  position: fixed;
  inset: auto 0 32px 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 42px 48px minmax(120px, 230px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 28px;
  background: var(--player);
  color: #e8e8e3;
}
.player-play { width: 42px; height: 42px; background: #e8e8e3; color: #111110; border: 0; font-size: 14px; }
.player-art { width: 48px; height: 48px; outline: 1px solid rgb(255 255 255 / .3); }
.player-info { min-width: 0; line-height: 1.25; }
.player-info strong, .player-info span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .wave svg { fill: #63635e; }
.player .wave svg + svg { fill: #fff; }
.player .plain:hover { color: #fff; }

@media (max-width: 980px) {
  .row { grid-template-columns: 54px minmax(0, 1fr) 42px 66px var(--acts, 42px); }
  .row > .row-wave, .row > .row-len { display: none; }
  .row.head { display: none; }
}
@media (max-width: 820px) {
  .hero { padding: 44px 16px 0; }
  .hero-only { min-height: 0; padding-bottom: 70px; }
  .hero-paths { padding: 14px 16px 60px; }
  #view > .search-box { width: calc(100% - 32px); margin-top: 18px; }
  #view > :not(.hero, .hero-paths, .search-box) { width: calc(100% - 16px); margin-block: 8px; }
  body:has(#player:not([hidden])) .motion-toggle { bottom: 110px; }
  .hero .lede { font-size: 16px; }
  .pl-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .nav-owner { margin-left: 0; }
  .feature { display: block; padding: 18px 16px 6px; }
  .feature-art { margin-bottom: 18px; }
  .album-fields { grid-template-columns: minmax(0, 1fr); }
  .cover-preview { max-width: 240px; }
  .file-btn { max-width: 240px; }
  .masthead { flex-wrap: wrap; gap: 10px 22px; padding: 12px 16px; }
  .masthead nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .masthead nav a { flex: none; }
  .masthead nav { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 28px; }
  .masthead nav::-webkit-scrollbar { display: none; }
  .wordmark { font-size: 21px; }
  .client-toggle { margin-left: auto; }
  .theme-toggle { order: 2; }
  .review { display: block; }
  .home, .browse, .page { padding: 18px 16px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .review-head { padding: 20px 16px 14px; }
  .review { padding: 0 16px 30px; }
  .listen { position: static; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; margin-bottom: 26px; }
  .listen .wave { margin: 0 0 8px; height: 42px; }
  .page h1, .review-head h1 { font-size: 34px; }
  .form-actions { margin-left: 0; }
  .player { grid-template-columns: 42px minmax(0, 1fr) auto; height: 66px; padding: 0 14px; gap: 10px; }
  .player-art, #player-time { display: none; }
  .player .wave { position: absolute; top: -8px; left: 0; right: 0; height: 8px; background: var(--player); }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 50px minmax(0, 1fr) 62px var(--acts, 38px); gap: 10px; }
  .row > .row-bpm { display: none; }
  .row-key::before { content: attr(data-bpm); display: block; }
}
/* Without motion, the pause button has nothing to do. */
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .art-play .glyph { transition: opacity .12s; }
  .ticker-track { animation: ticker 70s linear infinite; }
  .b1 { animation: drift1 26s ease-in-out infinite alternate; }
  .b2 { animation: drift2 32s ease-in-out infinite alternate; }
  .b3 { animation: drift3 38s ease-in-out infinite alternate; }
  .hero-wave { animation: wave-breathe 9s ease-in-out infinite alternate; transform-origin: center; }
  .backdrop.paused .blob, .backdrop.paused ~ main .hero-wave { animation-play-state: paused; }
  html { transition: --paper .9s ease, --card .9s ease, --line .9s ease, --muted .9s ease, --player .9s ease; }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes drift1 { to { transform: translate(22vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-18vmax, 18vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-14vmax, -16vmax) scale(1.2); } }
@keyframes wave-breathe { from { transform: scaleY(.7); } to { transform: scaleY(1.25); } }

/* Listeners, guests and the Stats page */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body:not(.visitor) .visitor-only, body:not(.guest) .guest-only { display: none !important; }
body.guest .visitor-only { opacity: .75; }
body.visitor .client-toggle:not(.guest-only) { display: none; }
body.visitor { --acts: 76px; }
.row-acts { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.like-btn, .add-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
}
.like-btn[aria-pressed="true"] { color: var(--signal); border-color: var(--signal); }
.like-btn:hover, .add-btn:hover { border-color: var(--ink); }
.cover-acts { display: flex; gap: 6px; margin-top: 6px; }
.player .like-btn { color: #e8e8e3; border-color: rgb(255 255 255 / .4); }
.player .like-btn[aria-pressed="true"] { color: #ff6b3d; border-color: #ff6b3d; }
.pl-menu {
  position: absolute;
  z-index: 20;
  width: 250px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.pl-menu-head { margin: 2px 4px 6px; color: var(--muted); font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pl-menu-item { display: block; width: 100%; padding: 8px; background: none; border: 0; text-align: left; }
.pl-menu-item:hover:not([disabled]) { background: var(--ink); color: var(--paper); }
.pl-menu-item[disabled] { color: var(--muted); cursor: default; }
.pl-menu-new { display: flex; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.pl-menu-new input { flex: 1; min-width: 0; padding: 7px 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 0; }
.pl-menu-new .btn { padding: 7px 12px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 30;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  box-shadow: 0 6px 22px rgb(0 0 0 / .25);
}
.toast.problem { background: var(--signal); color: #fff; }
.mine-new { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.mine-new input { flex: 1 1 220px; max-width: 360px; padding: 10px 12px; background: var(--card); border: 1px solid var(--ink); border-radius: 0; }
.mine-tools { display: flex; gap: 6px; justify-content: flex-end; padding: 0 0 8px; }
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.invite span { flex: 1 1 260px; }
.account-links { margin-top: 18px; color: var(--muted); }
.account-links .plain { color: var(--ink); }
.privacy { margin-top: 16px; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-weight: 700; }
.sign-in .success { margin: 14px 0 0; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.stat-card { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); }
.stat-card strong { display: block; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.stat-card span { color: var(--muted); font-size: 13px; }
.stats-tabs { display: flex; gap: 20px; margin: 8px 0 12px; border-bottom: 1px solid var(--line); }
.stats-tabs a { padding: 6px 0; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.stats-tabs a[aria-current] { border-color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th { padding: 0 8px 6px; text-align: left; color: var(--muted); font: 700 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.stats-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.stats-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-sort { padding: 0; background: none; border: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.th-sort:hover { color: var(--ink); }
.stats-track { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.stats-track small { display: block; color: var(--muted); }
.mini-play { width: 28px; height: 28px; flex: none; padding: 0; background: var(--ink); color: var(--paper); border: 0; font-size: 10px; }
.activity { list-style: none; margin: 8px 0 18px; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.stats-user .form-heading { margin-top: 26px; }

/* The sign-in box: small, and in the middle of the screen. */
#view:has(> .sign-in) {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--head, 80px) - 128px);
}
#view > .page.sign-in { width: min(420px, calc(100% - 32px)); max-width: none; margin: 28px auto; padding: 30px 28px; }
.sign-in h1 { font-size: 34px; }
@media (max-width: 820px) {
  #view > .page.sign-in { width: calc(100% - 16px); padding: 24px 18px; }
}

/* Admins get Edit and Delete on every track. */
body:not(.visitor):not(.client) { --acts: 104px; }
.row-acts .row-delete, .cover-admin .row-delete { margin-left: 2px; }
.cover-admin { display: flex; gap: 8px; margin-top: 4px; }
@media (max-width: 480px) {
  body:not(.visitor):not(.client) { --acts: 38px; }
  .row-acts .row-delete { display: none; }
}
