/*
 * NOWON Band - Music page
 * Sections of music.html. Behaviour: assets/js/pages/music.js.
 *
 * TABLE OF CONTENTS
 *  1. Section heads
 *  2. Latest release: head and track row
 *  3. Latest release: scrubbed waveform
 *  4. Discography: timeline
 *  5. Discography: release details
 *  6. Top tracks chart
 *  7. Liner notes: session scrubber
 *  8. Liner notes: diary and credits
 *  9. Formats
 * 10. Media queries
 */

/* ==========================================================================
   1. Section heads
   ========================================================================== */
.mu-head {
  margin-bottom: 56px;
}

.mu-head--48 {
  margin-bottom: 48px;
}

/* ==========================================================================
   2. Latest release: head and track row
   ========================================================================== */
.mu-rel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 40px;
}

.mu-rel__title {
  margin-top: 22px;
}

.mu-rel__thin {
  display: block;
  font-weight: 200;
  font-size: clamp(40px, 5.3vw, 76px);
  line-height: .9;
  letter-spacing: -.03em;
}

.mu-rel__bold {
  display: block;
  color: var(--acc);
  font-weight: 900;
  font-size: clamp(64px, 8.9vw, 128px);
  line-height: .86;
  letter-spacing: -.05em;
}

.mu-rel__clock {
  margin-left: auto;
  text-align: right;
}

.mu-rel__big {
  color: transparent;
  font-weight: 800;
  font-size: clamp(64px, 16vw, 230px);
  line-height: .78;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  -webkit-text-stroke: 2px var(--acc);
  transition: -webkit-text-stroke-color .2s ease;
}

.mu-rel__clock.is-scrub .mu-rel__big {
  -webkit-text-stroke-color: var(--cream);
}

.mu-rel__cap {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.mu-rel__now {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  margin-top: 56px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--cream);
}

.mu-rel__track {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  min-width: 0;
}

.mu-rel__code,
.mu-rel__name {
  font-size: clamp(28px, 3.9vw, 56px);
  line-height: 1;
}

.mu-rel__code {
  color: var(--acc);
  font-weight: 200;
  letter-spacing: -.03em;
}

.mu-rel__name {
  font-weight: 900;
  letter-spacing: -.04em;
}

.mu-rel__len {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
}

.mu-rel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mu-rel__step {
  width: 48px;
  height: 48px;
  box-shadow: inset 0 0 0 1px rgba(245, 237, 216, .4);
  font-size: 14px;
}

.mu-rel__play {
  height: 56px;
  padding: 0 30px;
  letter-spacing: .2em;
}

.mu-when-playing,
.is-playing .mu-when-paused {
  display: none;
}

.is-playing .mu-when-playing {
  display: inline;
}

.mu-rel__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  margin-top: 44px;
}

.mu-rel__sides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .25em;
}

.mu-rel__listen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mu-rel__listen-label {
  margin-right: 14px;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.mu-rel__stream {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(245, 237, 216, .35);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mu-rel__stream:hover,
.mu-rel__stream:focus-visible {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

/* ==========================================================================
   3. Latest release: scrubbed waveform
   The whole album as one waveform: one segment per track, as wide as the
   track is long. Bars are drawn by music.js.
   ========================================================================== */
.mu-wave {
  position: relative;
  display: flex;
  gap: 4px;
  margin-top: 60px;
  cursor: crosshair;
}

.mu-wave__seg {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: crosshair;
}

.mu-wave__seg:nth-child(1) { flex-grow: 222; }
.mu-wave__seg:nth-child(2) { flex-grow: 258; }
.mu-wave__seg:nth-child(3) { flex-grow: 185; }
.mu-wave__seg:nth-child(4) { flex-grow: 321; }
.mu-wave__seg:nth-child(5) { flex-grow: 178; }
.mu-wave__seg:nth-child(6) { flex-grow: 242; }
.mu-wave__seg:nth-child(7) { flex-grow: 216; margin-left: 26px; }
.mu-wave__seg:nth-child(8) { flex-grow: 287; }
.mu-wave__seg:nth-child(9) { flex-grow: 194; }
.mu-wave__seg:nth-child(10) { flex-grow: 309; }
.mu-wave__seg:nth-child(11) { flex-grow: 231; }
.mu-wave__seg:nth-child(12) { flex-grow: 380; }

.mu-wave__seg.is-current,
.mu-wave__seg.is-hover {
  color: var(--acc);
}

.mu-wave__seg:focus-visible {
  outline-offset: 6px;
}

.mu-wave__bars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  height: clamp(150px, 21vw, 300px);
}

.mu-wave__bar {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1px;
  background: rgba(245, 237, 216, .22);
}

.mu-wave__bar.is-preview {
  background: rgba(245, 237, 216, .75);
}

.mu-wave__bar.is-played {
  background: var(--acc);
}

.mu-wave__foot {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  overflow: hidden;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 237, 216, .2);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
}

.mu-wave__seg.is-current .mu-wave__foot {
  border-top-color: var(--acc);
}

.mu-wave__len {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0;
}

.mu-wave__head {
  position: absolute;
  left: var(--x, 0%);
  top: -34px;
  bottom: 30px;
  width: 2px;
  margin-left: -1px;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
}

.mu-wave.is-scrub .mu-wave__head {
  opacity: 1;
}

.mu-wave__tip,
.mu-disco__tip {
  position: absolute;
  left: 10px;
  top: 0;
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

.is-flip .mu-wave__tip,
.is-flip .mu-disco__tip {
  left: -10px;
  transform: translateX(-100%);
}

/* ==========================================================================
   4. Discography: timeline
   music.js writes --k (timeline width / 1320) so every size scales with it.
   ========================================================================== */
.mu-disco__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.mu-disco__line {
  --k: 1;
  position: relative;
  overflow-x: clip;
  cursor: ew-resize;
  touch-action: pan-y;
}

.mu-disco__ghost {
  position: absolute;
  left: var(--gx, 70%);
  top: 20px;
  color: transparent;
  font-weight: 800;
  font-size: calc(var(--k) * 380px);
  line-height: .8;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 2px var(--acc-45);
  transform: translateX(-50%);
  transition: left .3s ease-out;
  pointer-events: none;
}

.mu-disco__stage {
  position: relative;
  height: calc(var(--k) * 230px + 80px);
}

.mu-disco__item {
  position: absolute;
  bottom: 0;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  text-align: left;
  transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, color .3s ease;
}

.mu-disco__item--0 { left: 71.212%; width: 17.424%; }
.mu-disco__item--1 { left: 89.394%; width: 10.606%; }
.mu-disco__item--2 { left: 40.693%; width: 17.424%; }
.mu-disco__item--3 { left: 21.861%; width: 14.394%; }
.mu-disco__item--4 { left: 0; width: 17.424%; }

.mu-disco__item.is-on {
  z-index: 1;
  color: var(--acc);
  transform: translateY(-30px) rotate(-3deg);
}

.mu-disco__item.is-dim {
  opacity: .15;
}

.mu-disco__kind {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .2em;
  white-space: nowrap;
}

.is-k60 .mu-disco__kind {
  visibility: hidden;
}

.is-k70 .mu-disco__cover .slot-size {
  display: none;
}

.mu-disco__cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(245, 237, 216, .14);
  transition: box-shadow .3s ease;
}

.mu-disco__cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mu-disco__item.is-on .mu-disco__cover {
  box-shadow: inset 0 0 0 1.5px var(--acc), 0 30px 60px rgba(0, 0, 0, .65);
}

.mu-disco__cover .slot-size {
  font-size: 10px;
}

.mu-disco__axis {
  position: relative;
  height: 70px;
  border-top: 2px solid var(--cream);
}

.mu-disco__years {
  position: absolute;
  left: 8.712%;
  right: 20.076%;
  top: 0;
  display: flex;
  justify-content: space-between;
}

.mu-disco__year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 0;
  color: var(--faint);
}

.mu-disco__year.has-release {
  color: var(--cream);
}

.mu-disco__year.is-on {
  color: var(--acc);
}

.mu-disco__tick {
  display: block;
  width: 2px;
  height: 8px;
  background: currentColor;
}

.has-release > .mu-disco__tick {
  height: 14px;
}

.is-on > .mu-disco__tick {
  height: 20px;
}

.mu-disco__num {
  display: block;
  font-weight: 500;
  font-size: max(9px, calc(var(--k) * 13px));
  line-height: 1.2;
  letter-spacing: -.02em;
  transition: font-size .2s ease;
}

.has-release > .mu-disco__num {
  font-weight: 900;
  font-size: max(11px, calc(var(--k) * 18px));
}

.is-on > .mu-disco__num {
  font-weight: 900;
  font-size: max(15px, calc(var(--k) * 30px));
}

.mu-disco__head {
  position: absolute;
  left: var(--x, 0);
  top: 0;
  bottom: 60px;
  width: 2px;
  margin-left: -1px;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
}

.mu-disco__line.is-scrub .mu-disco__head {
  opacity: 1;
}

.mu-disco__tip {
  letter-spacing: .08em;
}

/* ==========================================================================
   5. Discography: release details
   ========================================================================== */
.mu-disco__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: end;
  gap: 40px 60px;
  margin-top: 36px;
}

.mu-disco__about {
  min-width: 0;
}

.mu-disco__meta {
  color: var(--acc);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
}

.mu-disco__title {
  margin-top: 14px;
  font-weight: 900;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: .88;
  letter-spacing: -.05em;
}

.mu-disco__note {
  max-width: 460px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.mu-disco__page {
  height: 44px;
  padding: 0 20px;
  box-shadow: inset 0 0 0 1px rgba(245, 237, 216, .4);
  font-size: 11px;
  letter-spacing: .2em;
}

.mu-disco__rows {
  border-top: 2px solid var(--cream);
}

.mu-disco__row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}

.mu-disco__row:hover {
  background: var(--acc-10);
}

.mu-disco__row.is-on {
  background: var(--acc);
  color: var(--ink);
}

.mu-disco__n {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
}

.mu-disco__song {
  font-weight: 600;
}

.mu-disco__time {
  font-size: 12px;
}

/* ==========================================================================
   6. Top tracks chart
   Columns as tall as the plays (--f = plays / top plays). music.js writes
   --kk (column scale) and --hmin; the playing track fills from the bottom (--p).
   ========================================================================== */
.mu-top__chart {
  --k: 1;
  --kk: 1;
  --hmin: 0px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: calc(120px + var(--k) * 480px);
  border-bottom: 2px solid var(--cream);
}

.mu-top__item {
  flex: 1 1 0;
  min-width: 0;
}

.mu-top__item:nth-child(1) { --f: 1; }
.mu-top__item:nth-child(2) { --f: .8125; }
.mu-top__item:nth-child(3) { --f: .6458; }
.mu-top__item:nth-child(4) { --f: .5625; }
.mu-top__item:nth-child(5) { --f: .4583; }
.mu-top__item:nth-child(6) { --f: .3958; }
.mu-top__item:nth-child(7) { --f: .2917; }
.mu-top__item:nth-child(8) { --f: .2292; }

.mu-top__row {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  text-align: left;
}

.mu-top__n {
  display: block;
  flex: none;
  color: transparent;
  font-weight: 800;
  font-size: calc(var(--k) * 112px);
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .5);
  transition: color .25s ease, -webkit-text-stroke-color .25s ease;
}

.mu-top__col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: max(var(--hmin), calc((120px + var(--f) * 340px) * var(--kk)));
  overflow: hidden;
  padding: 16px 14px;
  border: 1.5px solid rgba(245, 237, 216, .25);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.mu-top__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--p, 0%);
  background: color-mix(in srgb, var(--acc) 30%, transparent);
  transition: height .3s linear;
}

.mu-top__plays,
.mu-top__song {
  position: relative;
  display: block;
}

.mu-top__big {
  display: block;
  font-weight: 900;
  font-size: max(22px, calc(var(--k) * 34px));
  line-height: 1.1;
  letter-spacing: -.03em;
}

.mu-top__sub {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.mu-top__name {
  display: block;
  font-weight: 700;
  font-size: max(13px, calc(var(--k) * 16px));
  line-height: 1.15;
}

.mu-top__album {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
}

.mu-top__row.is-shown {
  color: var(--ink);
}

.mu-top__row.is-shown .mu-top__n {
  color: var(--acc);
  -webkit-text-stroke-color: var(--acc);
}

.mu-top__row.is-shown .mu-top__col {
  border-color: var(--acc);
  background: var(--acc);
}

.mu-top__row.is-shown .mu-top__fill {
  height: 0;
}

.mu-top__now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 32px;
}

.mu-top__state {
  color: var(--acc);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
  white-space: nowrap;
}

.mu-top__title {
  font-weight: 700;
  font-size: 18px;
}

.mu-top__bar {
  flex: 1 1 160px;
  height: 3px;
}

.mu-top__time {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.mu-top__cta {
  height: 56px;
  padding: 0 30px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
}

.mu-top__cta[hidden] {
  display: none;
}

/* ==========================================================================
   7. Liner notes: session scrubber
   music.js writes --x (position of the picked day, 0-100%).
   ========================================================================== */
.mu-notes__wrap {
  padding: 0 clamp(14px, 2.1vw, 30px);
}

.mu-notes__scrub {
  --x: 42.857%;
  position: relative;
  height: clamp(250px, 23vw, 330px);
  cursor: ew-resize;
  touch-action: pan-y;
}

.mu-notes__big {
  position: absolute;
  left: clamp(16%, var(--x), 84%);
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transform: translateX(-50%);
  transition: left .25s ease-out;
  pointer-events: none;
}

.mu-notes__day {
  display: block;
  color: transparent;
  font-weight: 800;
  font-size: min(260px, max(130px, 18vw), calc((clamp(250px, 23vw, 330px) - 106px) * 1.25));
  line-height: .8;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 2px var(--acc);
}

.mu-notes__month {
  display: block;
  margin-top: 8px;
  color: var(--acc);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .3em;
}

.mu-notes__axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  height: 2px;
  background: var(--cream);
}

.mu-notes__ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.mu-notes__tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
  color: rgba(245, 237, 216, .35);
}

.mu-notes__tick.has-song {
  color: var(--cream);
}

.mu-notes__tick.is-done,
.mu-notes__tick.is-on {
  color: var(--acc);
}

.mu-notes__code {
  display: block;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .1em;
  white-space: nowrap;
}

.mu-notes__mark {
  display: block;
  width: 2px;
  height: 12px;
  margin-top: 6px;
  background: currentColor;
}

.has-song > .mu-notes__mark {
  height: 34px;
}

.mu-notes__date {
  display: flex;
  align-items: center;
  height: 44px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.is-on > .mu-notes__date {
  color: var(--acc);
}

.mu-notes__head {
  position: absolute;
  left: var(--x);
  top: 0;
  bottom: 44px;
  width: 2px;
  margin-left: -1px;
  background: var(--acc);
  transition: left .12s ease-out;
  pointer-events: none;
}

/* ==========================================================================
   8. Liner notes: diary and credits
   ========================================================================== */
.mu-notes__diary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
  gap: 40px clamp(32px, 4.8vw, 70px);
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(245, 237, 216, .14);
}

.mu-notes__title,
.mu-notes__song {
  margin-top: 12px;
  font-weight: 900;
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: .95;
  letter-spacing: -.04em;
}

.mu-notes__text {
  max-width: 520px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.mu-notes__tape {
  min-width: 0;
}

.mu-notes__song {
  min-height: clamp(66px, 7.4vw, 106px);
}

.mu-notes__song.is-none {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .5);
}

.mu-notes__sub {
  color: var(--muted);
  font-size: 15px;
}

.mu-notes__cells {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 5px;
  margin-top: 26px;
}

.mu-notes__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid rgba(245, 237, 216, .3);
  border-radius: 5px;
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .08em;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.mu-notes__cell.is-done {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink);
}

.mu-notes__cell.is-now {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.mu-notes__count {
  margin-top: 12px;
  letter-spacing: .25em;
}

.mu-notes__credits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 48px;
  border-top: 2px solid var(--cream);
}

.mu-notes__credit {
  padding: 16px 12px 18px;
  transition: background-color .2s ease, color .2s ease;
}

.mu-notes__credit dt {
  color: var(--acc);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
}

.mu-notes__credit dd {
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.mu-notes__credit:hover {
  background: var(--acc);
  color: var(--ink);
}

.mu-notes__credit:hover dt {
  color: var(--ink);
}

/* ==========================================================================
   9. Formats
   Live cards: tilt (main.js [data-tilt]) with a spotlight over the photo.
   ========================================================================== */
.mu-fmt__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.mu-fmt__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(245, 237, 216, .14);
  border-radius: 14px;
  background: #181716;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .2s ease-out, border-color .2s ease, box-shadow .3s ease;
}

.mu-fmt__card:hover,
.mu-fmt__card:focus-within {
  --lift: -8px;
  border-color: var(--acc);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}

.mu-fmt__card.is-tilting {
  transition: transform .08s linear, border-color .2s ease, box-shadow .3s ease;
}

.mu-fmt__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 12px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
}

.mu-fmt__no {
  color: var(--acc);
  font-family: var(--mono);
}

.mu-fmt__shot {
  position: relative;
  margin: 0 18px;
}

.mu-fmt__photo {
  aspect-ratio: 1;
  border-radius: 8px;
}

.mu-fmt__spot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .2), transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.mu-fmt__card.is-tilting .mu-fmt__spot {
  opacity: 1;
}

.mu-fmt__name {
  position: absolute;
  left: -6px;
  bottom: -22px;
  z-index: 2;
  color: transparent;
  font-weight: 800;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px var(--acc);
  transition: color .25s ease;
}

.mu-fmt__card:hover .mu-fmt__name,
.mu-fmt__card:focus-within .mu-fmt__name {
  color: var(--acc);
}

.mu-fmt__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 40px 18px 18px;
}

.mu-fmt__desc {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.mu-fmt__bar {
  margin-top: 16px;
}

.mu-fmt__bar--0 { --w: 38%; }
.mu-fmt__bar--1 { --w: 80%; }
.mu-fmt__bar--2 { --w: 22%; }
.mu-fmt__bar--3 { --w: 100%; }

.mu-fmt__left {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
}

.mu-fmt__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 10px;
  margin-top: auto;
  padding-top: 22px;
}

.mu-fmt__price {
  font-weight: 900;
  font-size: 64px;
  line-height: .82;
  letter-spacing: -.05em;
}

.mu-fmt__cta {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(245, 237, 216, .4);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .2em;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mu-fmt__card:hover .mu-fmt__cta,
.mu-fmt__card:focus-within .mu-fmt__cta,
.mu-fmt__cta.is-added {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink);
}

.mu-fmt__bag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 30px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--cream);
}

.mu-fmt__sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}

.mu-fmt__items {
  font-weight: 700;
  font-size: 18px;
}

.mu-fmt__total {
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.mu-fmt__checkout {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border: 1.5px solid rgba(245, 237, 216, .4);
  border-radius: 999px;
  color: var(--cream);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .2em;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mu-fmt__checkout:hover {
  border-color: var(--cream);
  color: var(--cream);
}

.mu-fmt__checkout.is-on {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink);
}

/* ==========================================================================
   10. Media queries
   ========================================================================== */
@media (max-width: 1199px) {
  .mu-notes__cells {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1099px) {
  .mu-wave__len {
    display: none;
  }

  /* Top tracks turn into horizontal bars. */
  .mu-top__chart {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .mu-top__item {
    flex: 0 0 auto;
  }

  .mu-top__row {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .mu-top__n {
    width: 64px;
    font-size: 48px;
  }

  .mu-top__col {
    width: calc((100% - 78px) * (.5 + var(--f) * .5));
    height: auto;
    border: 1.5px solid rgba(245, 237, 216, .25);
    border-left: 0;
    border-radius: 0 12px 12px 0;
  }

  .mu-top__fill {
    top: 0;
    right: auto;
    width: var(--p, 0%);
    height: auto;
    transition: width .3s linear;
  }

  .mu-top__row.is-shown .mu-top__fill {
    width: 0;
    height: auto;
  }

  .mu-top__big {
    font-size: 26px;
  }

  .mu-top__name {
    font-size: 16px;
  }
}

@media (max-width: 1079px) {
  .mu-fmt__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 999px) {
  .mu-notes__tick:nth-child(even):not(.is-on) .mu-notes__date {
    visibility: hidden;
  }
}

@media (max-width: 899px) {
  .mu-notes__big {
    left: clamp(30%, var(--x), 70%);
  }
}

@media (max-width: 799px) {
  .mu-wave__seg:nth-child(7) {
    margin-left: 10px;
  }

  .mu-wave__bars {
    gap: 1px;
  }
}

@media (max-width: 699px) {
  .mu-notes__tick:not(.is-on) .mu-notes__code {
    visibility: hidden;
  }
}

@media (max-width: 599px) {
  .mu-fmt__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mu-notes__tick:not(:nth-child(3n + 1)):not(.is-on) .mu-notes__date {
    visibility: hidden;
  }

  .mu-top__sub {
    white-space: normal;
  }

  .mu-fmt__price {
    font-size: 52px;
  }

  .mu-wave__foot {
    font-size: 9px;
    letter-spacing: 0;
  }
}
