/* The soundtrack page. Dark on purpose: the page is a stage for the visualizer, and the
   whole thing re-tints to the playing track through --h, which @property lets transition. */

@property --h {
  syntax: "<number>";
  inherits: true;
  initial-value: 285;
}

:root {
  --h: 285;
  --ink: #06060b;
  --ink-2: #0c0d15;
  --glass: rgba(13, 13, 22, 0.58);
  --glass-strong: rgba(12, 12, 20, 0.78);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f2fa;
  --dim: #a9a8bd;
  --faint: #6c6c82;

  --accent: hsl(var(--h) 96% 66%);
  --accent-hot: hsl(calc(var(--h) + 18) 100% 82%);
  --accent-2: hsl(calc(var(--h) + 42) 98% 62%);
  --accent-soft: hsl(var(--h) 90% 60% / 0.16);
  --accent-glow: hsl(var(--h) 100% 62% / 0.55);

  --kick: 0;
  --bass: 0;

  --display: "Unbounded", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --dock-h: 96px;
  color-scheme: dark;
  transition: --h 1.4s cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + 40px + env(safe-area-inset-bottom));
}

a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- stage */

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(3, 3, 7, 0.55) 80%, rgba(3, 3, 7, 0.9) 100%),
    linear-gradient(180deg, rgba(6, 6, 11, 0) 60%, rgba(6, 6, 11, 0.6) 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

main, .topbar { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(6, 6, 11, 0.55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s, transform .2s;
}
.brand:hover .brand__mark { border-color: var(--accent); transform: translateX(-2px); }
.brand__slash { color: var(--faint); font-weight: 500; }
.brand__page { color: var(--accent); transition: color 1.4s; }

.pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  isolation: isolate;
  transition: border-color .2s, transform .15s, box-shadow .3s;
}
.pill:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 40px -10px var(--accent-glow); }
.pill:active { transform: scale(.97); }
.pill__icon { font-size: 16px; color: var(--accent); }
.pill__meta { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--dim); }
.pill__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-soft), hsl(var(--h) 95% 60% / .38));
  transition: transform .2s linear;
}
.pill.is-busy { border-color: var(--accent); }
.pill.is-done .pill__icon { color: #7dffb8; }

.pill__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: 8px;
  border-radius: 16px;
  background: var(--glass-strong);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  transform-origin: top right;
  animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
}
.pill__menu[hidden] { display: none; }
.pill__menu button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 14px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.pill__menu button:hover, .pill__menu button:focus-visible { background: var(--accent-soft); }
.pill__menu b { font-family: var(--head); font-size: 15px; }
.pill__menu small { grid-column: 1; color: var(--dim); font-size: 12.5px; }
.pill__menu code { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.dl-wrap { position: relative; }

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } }

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: calc(100svh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(16px, 4vw, 40px) calc(var(--dock-h) + 40px);
  text-align: center;
  position: relative;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.kicker__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.kicker b { color: var(--text); font-weight: 600; }

.title {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(44px, min(11.4vw, 17vh), 196px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  user-select: none;
}

.title__letters { display: inline-flex; position: relative; z-index: 1; }

.title__letters span {
  --e: 0;
  display: inline-block;
  transform-origin: 50% 100%;
  background: linear-gradient(178deg, #fff 8%, var(--accent-hot) 46%, var(--accent) 72%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 calc(4px + var(--e) * 30px) hsl(var(--h) 100% 60% / calc(.25 + var(--e) * .6)));
  will-change: transform;
}

.title__ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px hsl(var(--h) 100% 70% / .5);
  transform: translate(calc(var(--kick) * 10px), calc(var(--kick) * -6px)) scale(calc(1 + var(--kick) * .035));
  opacity: calc(.15 + var(--kick) * .8);
  filter: blur(calc(var(--kick) * 1.5px));
  pointer-events: none;
}

.tagline {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--dim);
  text-wrap: balance;
}
.tagline em { font-style: normal; color: var(--text); border-bottom: 1px dashed var(--accent); }

/* the deck: cover + now-playing */

.deck {
  margin-top: clamp(24px, 4.5vh, 56px);
  display: grid;
  grid-template-columns: auto minmax(0, 500px);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  text-align: left;
}

.deck__art {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: clamp(200px, min(26vw, 31vh), 340px);
  aspect-ratio: 1;
  perspective: 900px;
}

.deck__halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, hsl(var(--h) 100% 60% / calc(.18 + var(--bass) * .35)), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.deck__cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  background: var(--ink-2);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(calc(1 + var(--kick) * .028));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .1),
    0 50px 100px -30px rgba(0, 0, 0, .9),
    0 0 calc(40px + var(--bass) * 80px) -10px var(--accent-glow);
}

.deck__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 34px;
  color: #07070c;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), 0 20px 50px -10px var(--accent-glow);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s, transform .25s cubic-bezier(.2, .9, .3, 1.3);
}
.deck__play .icon-play { margin-left: 4px; }
.deck__art:hover .deck__play,
.deck__play:focus-visible,
body:not(.has-played) .deck__play { opacity: 1; transform: scale(1); }
body:not(.has-played) .deck__play { animation: breathe 2.4s ease-in-out infinite; }

@keyframes breathe {
  50% { box-shadow: 0 0 0 22px rgba(255, 255, 255, .05), 0 20px 60px -10px var(--accent-glow); }
}

.icon-pause { display: none; }
body.is-playing .icon-play { display: none; }
body.is-playing .icon-pause { display: block; }

.deck__state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--faint);
}
body.is-playing .live-dot {
  background: var(--accent);
  box-shadow: 0 0 0 calc(var(--kick) * 8px) hsl(var(--h) 100% 60% / .25), 0 0 14px var(--accent);
}

.deck__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.deck__genre {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 16px;
}

.deck__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 600; }
.chip--accent { border-color: hsl(var(--h) 90% 60% / .4); color: var(--accent); background: var(--accent-soft); }

.deck__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s, box-shadow .3s, background .3s, border-color .2s;
}
.btn svg { font-size: 18px; }
.btn:active { transform: scale(.97); }

.btn--primary {
  color: #07070c;
  background: linear-gradient(135deg, #fff, var(--accent-hot) 55%, var(--accent));
  box-shadow: 0 14px 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--primary:hover { box-shadow: 0 18px 60px -10px var(--accent-glow), 0 0 0 4px var(--accent-soft); }

.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--ghost svg { color: var(--accent); }

.scroll-cue {
  position: absolute;
  bottom: calc(var(--dock-h) + 30px);
  left: 50%;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border-radius: 12px;
  border: 1.5px solid var(--line-2);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: cue 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- tracklist */

.tracklist, .about {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.tracklist__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.section-sub { margin: 10px 0 0; color: var(--dim); font-family: var(--mono); font-size: 13px; }

.filters {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.filter {
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  color: var(--dim);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filter span { font-family: var(--body); font-weight: 400; font-size: 12.5px; color: var(--faint); margin-left: 4px; }
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px hsl(var(--h) 90% 60% / .35); }

.disc {
  margin-bottom: 44px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 16, 27, .72), rgba(10, 10, 18, .6));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8);
}

.disc__head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.disc__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--accent);
  letter-spacing: -0.04em;
}
.disc__label { display: flex; flex-direction: column; gap: 2px; }
.disc__label b { font-family: var(--head); font-size: 17px; }
.disc__label span { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .06em; }

.tracks { list-style: none; margin: 0; padding: 8px; }

.track {
  position: relative;
  border-radius: 14px;
  transition: background .25s;
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.track + .track::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: var(--line);
}
.track:hover { background: rgba(255, 255, 255, .035); }
.track:hover::before, .track:hover + .track::before,
.track.is-current::before, .track.is-current + .track::before { opacity: 0; }

.track.is-current {
  background: linear-gradient(90deg, hsl(var(--h) 90% 60% / .2), hsl(var(--h) 90% 60% / .04) 60%, transparent);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 90% 60% / .28);
}

.track__row {
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 10px;
}

.track__main {
  display: contents;
}

.track__hit {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
}
.track__row > :not(.track__hit) { position: relative; z-index: 1; pointer-events: none; }
.track__row > .icon-btn { pointer-events: auto; }

.track__num {
  position: relative;
  display: grid;
  place-items: center;
  height: 40px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--faint);
}
.track__num > * { grid-area: 1 / 1; transition: opacity .15s, transform .15s; }
.track__num svg { font-size: 16px; color: var(--text); opacity: 0; transform: scale(.6); }
.track:hover .track__num .n { opacity: 0; }
.track:hover .track__num svg { opacity: 1; transform: none; }

.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; opacity: 0; }
.eq i { width: 3px; border-radius: 2px; background: var(--accent); height: 30%; }
.track.is-current .track__num .n { opacity: 0; }
.track.is-current .eq { opacity: 1; }
.track.is-current:hover .eq { opacity: 0; }
body.is-playing .track.is-current .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; }
.eq i:nth-child(3) { animation-delay: -.6s !important; }
.eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.track__art {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: block;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px -8px rgba(0, 0, 0, .8);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), box-shadow .3s;
}
.track:hover .track__art { transform: scale(1.06) rotate(-2deg); }
.track.is-current .track__art { box-shadow: 0 0 0 1px hsl(var(--h) 90% 60% / .6), 0 0 24px -4px var(--accent-glow); }

.track__text { display: flex; flex-direction: column; min-width: 0; }
.track__title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 16.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track.is-current .track__title { color: var(--accent-hot); }
.track__genre {
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track__bpm { font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); }
.track__time { font-family: var(--mono); font-size: 13px; color: var(--dim); min-width: 40px; text-align: right; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  text-decoration: none;
  font-size: 17px;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); border-color: var(--line); }
.icon-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.icon-btn svg { transition: transform .3s; }

.dl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  pointer-events: auto !important;
}
.dl a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--dim);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.dl a + a { border-left: 1px solid var(--line); }
.dl a:hover { background: var(--accent-soft); color: var(--text); }
.dl svg { font-size: 13px; }

.track__notes {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1);
}
.track.is-open .track__notes { grid-template-rows: 1fr; }
.track__notes > div { overflow: hidden; }
.notes {
  margin: 0 12px 14px 122px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
}
.notes__label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.notes__prompt { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text); }
.notes__why { margin: 0 0 18px; font-family: var(--body); font-size: 14.5px; line-height: 1.65; color: var(--text); max-width: 72ch; }
.notes__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.notes__meta .link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; font-family: var(--mono); font-size: 12px; color: var(--dim); cursor: pointer;
}
.notes__meta .link-btn:hover { color: var(--text); border-color: var(--accent); }

.loading { display: flex; justify-content: center; gap: 8px; padding: 80px 0; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1s ease-in-out infinite; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-12px); opacity: .4; } }

.empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  background: var(--glass);
}
.empty code { font-family: var(--mono); color: var(--text); }

.notice {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid hsl(40 100% 60% / .35);
  background: hsl(40 100% 50% / .08);
  color: #ffe2a8;
  font-size: 14px;
}

/* ---------------------------------------------------------------- about */

.about { padding: 40px 0 20px; }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.about p { color: var(--dim); max-width: 62ch; }
.about strong { color: var(--text); }
.about code { font-family: var(--mono); font-size: .9em; color: var(--accent-hot); }
.about .section-title { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 16px; }
.keys h3 { margin: 6px 0 16px; font-family: var(--head); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.keys dl { margin: 0; display: grid; gap: 12px; }
.keys dl div { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.keys dd { margin: 0; color: var(--dim); font-size: 14px; }
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  background: rgba(255, 255, 255, .05);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  color: var(--text);
}
.fine { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 28px; }
.fine a { color: var(--dim); }

/* ---------------------------------------------------------------- dock */

.dock {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(1180px, 100% - 24px);
  height: var(--dock-h);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr) minmax(0, 250px);
  align-items: center;
  gap: 24px;
  padding: 12px 20px 12px 12px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: var(--glass-strong);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 -10px 60px -30px var(--accent-glow);
}
.dock::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: calc(.3 + var(--bass) * .7);
}

.dock__meta { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dock__cover {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  flex: none;
  transform: scale(calc(1 + var(--kick) * .05));
}
.dock__text { display: flex; flex-direction: column; min-width: 0; }
.dock__title { font-family: var(--head); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__sub { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dock__center { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dock__controls { display: flex; align-items: center; justify-content: center; gap: 10px; }

.ctl {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dim);
  font-size: 19px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s, background .2s, transform .15s;
}
.ctl:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.ctl:active { transform: scale(.9); }
.ctl--toggle[aria-pressed="true"] { color: var(--accent); }
.ctl--toggle[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.ctl__badge {
  display: none;
  position: absolute;
  top: 5px; right: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--ink);
  background: var(--accent);
  border-radius: 5px;
  padding: 0 3px;
  line-height: 13px;
}
.ctl.is-one .ctl__badge { display: block; }

.ctl--play {
  width: 48px;
  height: 48px;
  font-size: 22px;
  color: #07070c;
  background: #fff;
  box-shadow: 0 8px 26px -6px var(--accent-glow);
}
.ctl--play:hover { background: var(--accent-hot); color: #07070c; }
.ctl--play .icon-play { margin-left: 2px; }

.scrub { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.scrub__time { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.scrub__wave { position: relative; height: 30px; cursor: pointer; touch-action: none; }
.scrub__wave canvas { width: 100%; height: 100%; display: block; }
.scrub__hover {
  position: absolute;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff;
  color: #07070c;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
}
.scrub__wave:hover .scrub__hover { opacity: 1; }

.dock__side { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-mute { display: none; }
.is-muted .icon-vol { display: none; }
.is-muted .icon-mute { display: block; }

.volume {
  --v: 85%;
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 18px;
  background: transparent;
  cursor: pointer;
}
.volume::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--v), rgba(255, 255, 255, .15) var(--v));
}
.volume::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.volume::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.volume::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--dock-h) + 34px);
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border-radius: 12px;
  background: #fff;
  color: #07070c;
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .dock { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .dock__side { display: none; }
  .track__bpm { display: none; }
}

@media (max-width: 760px) {
  :root { --dock-h: 124px; }
  .deck { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .deck__chips, .deck__actions { justify-content: center; }
  .deck__art { width: min(72vw, 300px); }
  .about__grid { grid-template-columns: 1fr; padding: 24px; gap: 24px; }

  .dock {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
    padding: 10px 12px 12px;
    border-radius: 20px;
    height: auto;
  }
  .dock__meta { grid-column: 1; grid-row: 1; }
  .dock__cover { width: 48px; height: 48px; border-radius: 11px; }
  .dock__center { display: contents; }
  .dock__controls { grid-column: 2; grid-row: 1; gap: 4px; }
  .dock__controls .js-shuffle, .dock__controls .js-repeat { display: none; }
  .scrub { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }

  .track__row { grid-template-columns: 30px 46px minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 6px; }
  .track__art { width: 46px; height: 46px; }
  .track__time { display: none; }
  .dl a span { display: none; }
  .dl a { padding: 7px 8px; }
  .dl a + a { display: none; }
  .notes { margin: 0 6px 12px; }
  .disc__head { padding: 18px 18px 14px; }
  .filter span { display: none; }
  .pill__meta { display: none; }
  .kicker { font-size: 10.5px; letter-spacing: .14em; }
  .kicker__more { display: none; }
}

@media (max-width: 420px) {
  .brand__name, .brand__slash { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .track { animation: none; }
  body:not(.has-played) .deck__play { animation: none; }
  .title__ghost { display: none; }
  :root { transition: none; }
}

/* ---------------------------------------------------------------- late additions */

.track__row { position: relative; }
.track.is-current .track__row::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 3px;
  height: 2px;
  width: calc((100% - 24px) * var(--prog-f, 0));
  max-width: calc(100% - 24px);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  box-shadow: 0 0 10px var(--accent-glow);
  pointer-events: none;
}

.notes__wave { display: block; width: 100%; height: 44px; margin-top: 16px; opacity: .85; }

.tagline, .deck__info, .deck__genre { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 24px rgba(4, 3, 10, .75); }
