/* XDMusic download site. Plain CSS, no build step. */

:root {
  --bg-deep: #0f0f10;
  --bg: #141415;
  --card: #19191b;
  --raised: #232325;
  --raised-hover: #2c2c2f;
  --text: #ededed;
  --text-2: #a1a1a6;
  --text-3: #85858b;
  --line: rgba(237, 237, 237, 0.08);
  --line-strong: rgba(237, 237, 237, 0.14);
  --amber: #ffb224;
  --amber-hover: #ffc353;
  --on-amber: #141415;
  --seg-off: #323235;

  /* artwork palette: only used inside the product preview */
  --art-a: #1f6f6b;
  --art-b: #f0603c;
  --art-c: #f2e3c2;
  --art-d: #123b44;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
  flex: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--amber);
  color: var(--on-amber);
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(100% - 80px, 1320px);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.btn-primary {
  background: var(--amber);
  color: var(--on-amber);
}

.btn-primary:hover {
  background: var(--amber-hover);
}

.btn-secondary {
  background: var(--raised);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--raised-hover);
  border-color: var(--line-strong);
}

.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

/* ---------- Nav ---------- */

.nav {
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.logo-xd {
  font-weight: 600;
  color: var(--text);
}

.logo-music {
  font-weight: 400;
  color: var(--text-2);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--card);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 4.3vw, 62px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 24px;
  max-width: 34em;
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-req {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

.rise {
  animation: rise 520ms var(--ease) both;
}

.rise-late {
  animation-delay: 90ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Product preview (built in CSS) ---------- */

.pv {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--bg);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.pv-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}

.pv-bar svg {
  width: 16px;
  height: 16px;
}

.pv-bar-ctl {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

.pv-bar-ctl i {
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--text-3);
}

.pv-bar-ctl i:first-child {
  height: 0;
  border-width: 1.5px 0 0;
  align-self: center;
}

.pv-bar-ctl i:last-child {
  border: 0;
  background:
    linear-gradient(45deg, transparent 44%, var(--text-3) 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--text-3) 44% 56%, transparent 56%);
}

.pv-body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 196px;
}

.pv-side {
  padding: 12px 8px;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
}

.pv-side li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text-2);
}

.pv-side li svg {
  width: 16px;
  height: 16px;
}

.pv-side li.on {
  background: var(--raised);
  color: var(--text);
}

.pv-side-rule {
  height: 1px;
  margin: 8px;
  background: var(--line);
}

.pv-main {
  min-width: 0;
  padding: 16px 16px 12px;
}

.pv-main-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pv-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pv-count {
  color: var(--text-3);
  font-size: 11px;
}

.pv-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 8px;
  border-radius: 8px;
}

.pv-row + .pv-row {
  box-shadow: 0 -1px 0 var(--line);
}

.pv-row.on {
  background: var(--card);
  box-shadow: none;
}

.pv-row.on + .pv-row {
  box-shadow: none;
}

.pv-num {
  color: var(--text-3);
  font-size: 11px;
  text-align: right;
}

.pv-row.on .pv-num,
.pv-row.on .pv-name {
  color: var(--amber);
}

.pv-track {
  min-width: 0;
}

.pv-name,
.pv-artist {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pv-name {
  color: var(--text);
  font-weight: 500;
}

.pv-artist {
  color: var(--text-3);
  font-size: 12px;
}

.pv-src {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-2);
  font-size: 11px;
}

.pv-dur {
  color: var(--text-2);
  font-size: 12px;
  text-align: right;
}

/* now-playing panel: the one place with rich color */

.pv-now {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--card);
  border-left: 1px solid var(--line);
}

.pv-now-label {
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 12px;
}

.art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--art-a);
  overflow: hidden;
}

.art::before {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -30%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--art-b);
}

.art::after {
  content: "";
  position: absolute;
  right: -34%;
  top: -34%;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 20px solid var(--art-c);
}

.art i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 9%;
  background: var(--art-d);
  z-index: 1;
}

.pv-now-name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.pv-now-artist {
  color: var(--text-2);
  font-size: 12px;
}

.spectrum {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  margin-top: auto;
  padding-top: 16px;
}

.spectrum i {
  flex: 1;
  height: var(--h);
  min-width: 2px;
  border-radius: 1px;
  background: var(--art-b);
  transform-origin: bottom;
  animation: bounce 900ms var(--ease) infinite alternate;
}

.spectrum i:nth-child(3n + 1) {
  animation-duration: 760ms;
}

.spectrum i:nth-child(4n + 2) {
  animation-duration: 1140ms;
  animation-delay: -300ms;
}

.spectrum i:nth-child(5n) {
  animation-duration: 640ms;
  animation-delay: -150ms;
}

.spectrum i:nth-child(n + 8) {
  background: var(--art-c);
}

.spectrum i:nth-child(n + 15) {
  background: #3fa39c;
}

@keyframes bounce {
  to {
    transform: scaleY(0.45);
  }
}

/* player bar */

.pv-player {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 16px 0 12px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.pv-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pv-mini .art {
  width: 40px;
  flex: none;
  border-radius: 6px;
}

.pv-mini .art::after {
  border-width: 5px;
}

.pv-mini-text {
  min-width: 0;
}

.pv-transport {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pv-keys {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}

.pv-keys svg {
  width: 16px;
  height: 16px;
}

.pv-keys .pv-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.pv-keys .pv-play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.pv-keys .lit {
  color: var(--amber);
}

.pv-time {
  color: var(--text-2);
  font-size: 11px;
}

/* the segmented meter */

.meter {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--seg-off) 0 4px, transparent 4px 7px);
}

.meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 41%);
  background: repeating-linear-gradient(90deg, var(--amber) 0 4px, var(--bg-deep) 4px 7px);
}

.pv-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.pv-vol svg {
  width: 16px;
  height: 16px;
}

.pv-vol-track {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--seg-off);
}

.pv-vol-track::before {
  content: "";
  display: block;
  width: 70%;
  height: 100%;
  border-radius: 2px;
  background: var(--text-2);
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

/* ---------- Features: EQ block ---------- */

.eq-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 56px;
  align-items: center;
}

.eq {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.eq-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.chip.on {
  background: var(--raised);
  border-color: var(--line-strong);
  color: var(--text);
}

.eq-bass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--text-2);
  font-size: 13px;
}

.eq-bass .mono {
  color: var(--text);
}

.switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--amber);
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--on-amber);
}

.eq-desk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: stretch;
}

.eq-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 184px;
  margin-top: 26px;
  color: var(--text-3);
  font-size: 11px;
  text-align: right;
}

.eq-bands {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
}

.band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.band-db {
  height: 18px;
  color: var(--text);
  font-size: 12px;
}

.band-hz {
  color: var(--text-3);
  font-size: 12px;
}

.fader {
  position: relative;
  width: 100%;
  height: 184px;
  /* slot + centre (0 dB) tick */
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) center / 18px 1px no-repeat,
    linear-gradient(var(--bg-deep), var(--bg-deep)) center / 4px 100% no-repeat;
  border-radius: 2px;
}

.fader::after {
  /* fader cap */
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(50% + var(--v) * 4.1667% - 8px);
  width: 28px;
  height: 16px;
  margin-left: -14px;
  border-radius: 3px;
  background:
    linear-gradient(var(--bg), var(--bg)) center / 100% 2px no-repeat,
    var(--text);
}

.eq-pre {
  width: 44px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  box-sizing: content-box;
}

.eq-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.eq-out .band-db {
  color: var(--text-3);
}

.vmeter {
  display: flex;
  gap: 3px;
  height: 184px;
}

.vmeter i {
  position: relative;
  width: 8px;
  background: repeating-linear-gradient(0deg, var(--seg-off) 0 5px, transparent 5px 8px);
}

.vmeter i::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: var(--fill);
  background: repeating-linear-gradient(0deg, var(--amber) 0 5px, var(--card) 5px 8px);
}

.eq-text h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eq-text p {
  margin-top: 16px;
  color: var(--text-2);
}

.eq-text .note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.eq-text .note strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Features: shuffle + list ---------- */

.more {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  margin-top: 96px;
  align-items: start;
}

.shuffle {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.shuffle-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--raised);
  color: var(--amber);
}

.shuffle h3 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.shuffle > p {
  margin-top: 12px;
  color: var(--text-2);
}

.rules {
  margin-top: 24px;
  counter-reset: rule;
}

.rules li {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  counter-increment: rule;
}

.rules li::before {
  content: "0" counter(rule);
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 23px;
}

.flist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.flist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.flist .icon {
  margin-top: 3px;
  color: var(--text-2);
}

.flist h3 {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.flist p {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- Sources table ---------- */

.table-scroll {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.sources {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.sources th,
.sources td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.sources thead th {
  border-top: 0;
  background: var(--card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.sources tbody th {
  width: 34%;
  font-weight: 500;
}

.sources tbody th small {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 400;
}

.cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cell .icon {
  margin-top: 3px;
}

.cell.yes {
  color: var(--text);
}

.cell.yes .icon {
  color: var(--amber);
}

.cell.no {
  color: var(--text-3);
}

.table-foot {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 14px;
  max-width: 760px;
}

/* ---------- Download ---------- */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dl {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dl-os {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
}

.dl h3 {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dl-req {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.dl-extra {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 15px;
}

.dl .btn {
  align-self: flex-start;
  margin-top: 28px;
}

.dl-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.footer-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}

.footer-links a:hover {
  color: var(--text);
  background: var(--card);
}

.footer-legal {
  width: 100%;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Privacy page ---------- */

.doc {
  padding: 72px 0 96px;
}

.doc-inner {
  max-width: 720px;
}

.doc h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.doc-date {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 13px;
}

.doc-lead {
  margin-top: 32px;
  color: var(--text);
  font-size: 19px;
}

.doc h2 {
  margin-top: 56px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.doc p {
  margin-top: 16px;
  color: var(--text-2);
}

.doc ul {
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}

.doc ul li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.doc ul li strong {
  color: var(--text);
  font-weight: 500;
}

.doc a {
  color: var(--text);
  text-underline-offset: 3px;
}

.doc a:hover {
  color: var(--amber);
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .eq-split,
  .more {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .more {
    margin-top: 72px;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: min(100% - 48px, 1320px);
  }

  .hero {
    padding: 56px 0 72px;
  }

  .section {
    padding: 72px 0;
  }

  .pv-body {
    grid-template-columns: 152px minmax(0, 1fr);
  }

  .pv-now {
    display: none;
  }

  .pv-vol {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, 1320px);
  }

  .nav-inner {
    height: 64px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav .btn {
    margin-left: auto;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .section-head p {
    font-size: 17px;
  }

  /* simplified preview: list + compact now-playing strip + player */
  .pv-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .pv-side {
    display: none;
  }

  .pv-now {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .pv-now-label,
  .pv-now-name,
  .pv-now-artist {
    display: none;
  }

  .pv-now .art {
    grid-row: 1 / 3;
    border-radius: 8px;
  }

  .pv-now .art::after {
    border-width: 7px;
  }

  .spectrum {
    grid-row: 1 / 3;
    height: 56px;
    margin: 0;
    padding: 0;
  }

  .pv-main {
    padding: 12px 8px 8px;
  }

  .pv-main-head {
    padding: 0 8px;
  }

  .pv-row:nth-of-type(n + 6) {
    display: none;
  }

  .pv-player {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    padding: 12px;
    gap: 10px;
  }

  .pv-mini .art {
    display: none;
  }

  .pv-keys .pv-shuffle {
    display: none;
  }

  .eq {
    padding: 16px;
  }

  .eq-bass {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }

  .eq-desk {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .eq-scale,
  .eq-pre {
    display: none;
  }

  .eq-bands {
    gap: 0;
  }

  .band-db,
  .band-hz {
    font-size: 11px;
  }

  .fader::after {
    width: 20px;
    margin-left: -10px;
  }

  .fader {
    background:
      linear-gradient(var(--line-strong), var(--line-strong)) center / 14px 1px no-repeat,
      linear-gradient(var(--bg-deep), var(--bg-deep)) center / 4px 100% no-repeat;
  }

  .vmeter i {
    width: 6px;
  }

  .shuffle {
    padding: 20px;
  }

  .flist {
    grid-template-columns: minmax(0, 1fr);
  }

  /* table becomes stacked rows */
  .sources thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .sources,
  .sources tbody,
  .sources tr,
  .sources th,
  .sources td {
    display: block;
    width: 100%;
  }

  .sources tbody th {
    width: 100%;
    padding: 16px 16px 8px;
  }

  .sources tbody tr:first-child th {
    border-top: 0;
  }

  .sources td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 4px 16px;
    border-top: 0;
    font-size: 15px;
  }

  .sources td::before {
    content: attr(data-label);
    color: var(--text-3);
    font-size: 14px;
  }

  .sources td:last-child {
    padding-bottom: 16px;
  }

  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .dl {
    padding: 24px;
  }

  .dl .btn {
    align-self: stretch;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
  }

  .footer-links a {
    padding-left: 0;
  }

  .doc {
    padding: 48px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise,
  .spectrum i {
    animation: none;
  }

  * {
    transition-duration: 0ms !important;
  }
}

.footer-credit { color: var(--text-2, #a1a1a6); }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
