@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --paper: #f3efe4;
  --paper-2: #e9e3d3;
  --paper-3: #ded6c2;
  --ink: #15140f;
  --ink-soft: #4d493a;
  --muted: #8b8471;
  --line: rgba(21, 20, 15, 0.18);
  --line-strong: rgba(21, 20, 15, 0.55);
  --accent: #e8401f;
  --accent-deep: #c22f12;
  --lime: #c9f24d;
  --font-display: "Instrument Serif", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Archivo", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --pad: clamp(18px, 4.2vw, 60px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(to right, rgba(21, 20, 15, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(to bottom, rgba(21, 20, 15, 0.035) 1px, transparent 1px) 0 0 / 96px 96px,
    radial-gradient(1200px 700px at 82% -10%, rgba(232, 64, 31, 0.06), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(21, 20, 15, 0.05), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  transition: top 0.2s;
}
.skip:focus {
  top: 16px;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 239, 228, 0.9);
  backdrop-filter: blur(12px) saturate(1.1);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
}

.brand-mark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.brand-mark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.brand-cn {
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.ticker {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: marquee 46s linear infinite;
}

.ticker-track i {
  color: var(--accent);
  font-style: normal;
}

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

.topnav {
  display: flex;
  gap: 22px;
  flex: none;
}

.linkbtn {
  position: relative;
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.linkbtn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.linkbtn:hover {
  color: var(--ink);
}
.linkbtn:hover::after {
  transform: scaleX(1);
}

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

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) var(--pad) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 64, 31, 0.4);
  }
  55% {
    box-shadow: 0 0 0 7px rgba(232, 64, 31, 0);
  }
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(58px, 9.6vw, 138px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

h1 .accent {
  display: inline-block;
  padding: 0 0.1em 0.04em;
  margin-right: 0.04em;
  background: var(--accent);
  color: var(--paper);
  font-style: italic;
  transform: rotate(-1.4deg);
  box-shadow: 4px 5px 0 rgba(21, 20, 15, 0.9);
}

.lede {
  max-width: 48ch;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 34px;
  padding-top: 6px;
}

.stamp {
  width: 138px;
  height: 138px;
  transform: rotate(-9deg);
  color: var(--ink);
}

.stamp-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}
.stamp-ring.inner {
  stroke: var(--accent);
  stroke-dasharray: 2 4;
}
.stamp-text {
  font-family: var(--font-mono);
  font-size: 8.7px;
  letter-spacing: 0.16em;
  fill: var(--ink);
}
.stamp-center {
  font-family: var(--font-display);
  font-size: 30px;
  text-anchor: middle;
  fill: var(--accent);
}
.stamp-small {
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.2em;
  text-anchor: middle;
  fill: var(--muted);
}

.stats {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 0;
}

.stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.stats div:last-child {
  border-bottom: 1px solid var(--line);
}

.stats dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  text-align: right;
}

.stats dd span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- search ---------- */

.search {
  margin-top: clamp(42px, 6vw, 72px);
  border-top: 2px solid var(--ink);
  padding-top: 8px;
}

.search-line {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  outline: none;
  appearance: none;
}

.search input[type="search"]::placeholder {
  color: rgba(21, 20, 15, 0.32);
}

.search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.search-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}

.search-go .icon {
  width: 22px;
  height: 22px;
}

.search-go:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: rotate(-45deg);
}

.quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick > span {
  margin-right: 4px;
}

.quick button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: all 0.18s;
}

.quick button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- catalog ---------- */

.catalog {
  max-width: var(--max);
  margin: clamp(56px, 8vw, 104px) auto 0;
  padding: 0 var(--pad);
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 9px 14px 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  transition: all 0.18s;
}

.tab span {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.tab:hover {
  border-color: var(--ink);
}

.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.tab.is-active span {
  color: var(--lime);
}

.catalog-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#result-count {
  font-size: 11px;
  color: var(--ink);
}

#catalog-note {
  color: var(--muted);
}

.legend {
  display: grid;
  grid-template-columns: 42px 56px minmax(0, 1fr) 130px 108px 64px 44px;
  gap: 14px;
  padding: 16px 6px 8px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tracklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.track {
  --cols: 42px 56px minmax(0, 1fr) 130px 108px 64px 44px;
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease, padding 0.25s var(--ease);
  animation: row-in 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: height 0.2s ease;
}

.track:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 12px;
}

.track:hover .tartist,
.track:hover .tmeta,
.track:hover .time,
.track:hover .idx {
  color: rgba(243, 239, 228, 0.58);
}

.track:hover .sleeve {
  transform: rotate(-3deg) scale(1.05);
}

.track:hover .rowplay {
  border-color: var(--paper);
  color: var(--paper);
}

.track:hover .rowplay:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.track.is-playing::before {
  height: 62%;
}

.idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.sleeve {
  position: relative;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 1px solid rgba(21, 20, 15, 0.28);
  background: var(--s1, #ddd);
  transition: transform 0.3s var(--ease);
  flex: none;
}

.sleeve::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.sleeve[data-p="0"] {
  background: linear-gradient(var(--angle, 135deg), var(--s1) 0 50%, var(--s2) 50% 100%);
}
.sleeve[data-p="1"] {
  background: repeating-radial-gradient(circle at 32% 32%, var(--s1) 0 5px, var(--s2) 5px 10px);
}
.sleeve[data-p="2"] {
  background: repeating-linear-gradient(90deg, var(--s1) 0 5px, var(--s2) 5px 10px);
}
.sleeve[data-p="3"] {
  background: radial-gradient(circle at 72% 72%, var(--s2) 0 38%, var(--s1) 38% 100%);
}
.sleeve[data-p="4"] {
  background: conic-gradient(from 45deg, var(--s1) 0 25%, var(--s2) 0 50%, var(--s1) 0 75%, var(--s2) 0);
}

.sleeve img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sleeve-letter {
  position: absolute;
  left: 3px;
  bottom: 3px;
  z-index: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(21, 20, 15, 0.4);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
}

.tinfo {
  min-width: 0;
}

.ttitle {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tartist {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}

.tmeta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}

.lic {
  justify-self: start;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
  transition: color 0.18s;
}

.track:hover .lic {
  color: var(--paper);
}

.time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rowplay {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.18s;
}

.rowplay .icon {
  width: 12px;
  height: 12px;
}

.rowplay:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.track.is-playing .rowplay {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.track.is-playing .ttitle {
  color: var(--accent);
}

.track:hover.is-playing .ttitle {
  color: var(--lime);
}

/* skeleton */

.track.skeleton {
  cursor: default;
  pointer-events: none;
}

.track.skeleton:hover {
  background: none;
  padding-left: 6px;
}

.sk {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--paper-3) 25%, #f7f3e8 45%, var(--paper-3) 65%);
  background-size: 240% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 2px;
}

.sk.sleeve-sk {
  height: 50px;
  width: 50px;
  border-radius: 0;
}

.sk.title-sk {
  width: 42%;
  height: 12px;
  margin-bottom: 7px;
}
.sk.artist-sk {
  width: 26%;
  height: 9px;
}
.sk.meta-sk {
  width: 60%;
}
.sk.lic-sk {
  width: 64px;
  height: 18px;
  border-radius: 999px;
}
.sk.time-sk {
  width: 32px;
  justify-self: end;
}

@keyframes shimmer {
  to {
    background-position: -180% 0;
  }
}

/* empty */

.empty {
  padding: clamp(44px, 7vw, 90px) 0 clamp(50px, 8vw, 100px);
  max-width: 56ch;
}

.empty-kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--accent);
}

.empty h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
}

.empty p:last-of-type {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.empty .retry {
  margin-top: 22px;
}

.empty .retry:hover {
  background: var(--ink);
  color: var(--paper);
}

.more-wrap {
  display: flex;
  justify-content: center;
  padding: 34px 0 0;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.more:hover {
  background: var(--ink);
  color: var(--paper);
}

.more span {
  color: var(--accent);
  font-size: 14px;
}

/* ---------- footer ---------- */

.footer {
  max-width: var(--max);
  margin: clamp(80px, 10vw, 140px) auto 0;
  padding: 44px var(--pad) 26px;
  border-top: 2px solid var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
}

.footer-mark {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 17px;
}

.footer-mark span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 400;
}

.footer-note {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.footer-h {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  border-top: 1px solid var(--line);
}

.footer li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 12.5px;
  transition: color 0.18s;
}

.footer li a span {
  color: var(--accent);
}

.footer li a:hover {
  color: var(--accent);
}

.linkbtn.underline {
  margin-top: 16px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.linkbtn.underline::after {
  display: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- player ---------- */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid #000;
  transform: translateY(105%);
  transition: transform 0.4s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}

.player.is-up {
  transform: none;
}

.player[hidden] {
  display: none;
}

.player-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 11px var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.now-art {
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid rgba(243, 239, 228, 0.25);
  position: relative;
  overflow: hidden;
  background: #2a2820;
}

.now-art .sleeve {
  width: 100%;
  height: 100%;
  border: 0;
}

.now-art .sleeve-letter {
  width: 14px;
  height: 14px;
  font-size: 9px;
  left: 2px;
  bottom: 2px;
}

.now-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.now-title {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-artist {
  font-size: 10px;
  color: rgba(243, 239, 228, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 300px;
}

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

.ctl {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(243, 239, 228, 0.75);
  transition: color 0.15s, background 0.15s;
}

.ctl .icon {
  width: 15px;
  height: 15px;
}

.ctl:hover {
  color: var(--paper);
  background: rgba(243, 239, 228, 0.1);
}

.ctl.big {
  width: 40px;
  height: 40px;
  background: var(--paper);
  color: var(--ink);
}

.ctl.big .icon {
  width: 16px;
  height: 16px;
}

.ctl.big:hover {
  background: var(--accent);
  color: var(--paper);
}

.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(243, 239, 228, 0.5);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  background: transparent;
  cursor: pointer;
}

.timeline input[type="range"] {
  flex: 1;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(to right, var(--accent) 0 var(--p, 0%), rgba(243, 239, 228, 0.25) var(--p, 0%) 100%);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: rgba(243, 239, 228, 0.25);
}

input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--accent);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 9px;
  height: 9px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--paper);
  border: 0;
}

input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 0;
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.source-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid rgba(243, 239, 228, 0.3);
  color: rgba(243, 239, 228, 0.7);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(243, 239, 228, 0.35);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.18s;
}

.pill .icon {
  width: 13px;
  height: 13px;
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.pill[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.volume {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(243, 239, 228, 0.6);
}

.volume .icon {
  width: 14px;
  height: 14px;
}

.volume input {
  width: 64px;
}

/* ---------- dialog ---------- */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
}

dialog::backdrop {
  background: rgba(21, 20, 15, 0.55);
  backdrop-filter: blur(5px);
}

.detail-panel {
  width: min(880px, 92vw);
  max-height: 88vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  position: relative;
  animation: dialog-in 0.3s var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
}

.detail-art {
  border-right: 1px solid var(--ink);
  background: var(--paper-2);
  min-height: 300px;
  position: relative;
}

.detail-art .sleeve {
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-art .sleeve-letter {
  left: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  border-color: var(--ink);
}

.detail-body {
  padding: 34px 32px 30px;
}

.detail-body .kicker {
  margin-bottom: 14px;
  font-size: 9px;
}

.detail-body h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.detail-artist {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
}

.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--line);
}

.detail-meta div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.detail-meta dt {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-meta dd {
  margin: 2px 0 0;
  font-size: 12px;
}

.detail-license {
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  font-size: 11.5px;
  line-height: 1.7;
}

.detail-license strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-license a {
  border-bottom: 1px solid currentColor;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.18s;
}

.btn .icon {
  width: 13px;
  height: 13px;
}

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.text {
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  color: var(--ink-soft);
}

.btn.text:hover {
  color: var(--accent);
}

.btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.detail-hint {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  transition: all 0.18s;
}

.detail-close:hover {
  background: var(--ink);
  color: var(--paper);
}

.detail-close .icon {
  width: 15px;
  height: 15px;
}

/* about sheet */

.sheet-panel {
  width: min(660px, 92vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  padding: 40px 38px 32px;
  position: relative;
  animation: dialog-in 0.3s var(--ease) both;
}

.sheet-panel h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sheet-copy p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.sheet-block {
  margin-top: 30px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.sheet-block h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}

.license-list {
  margin: 0;
}

.license-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.license-list dt {
  font-size: 11.5px;
  font-weight: 600;
}

.license-list dd {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.sheet-foot {
  margin: 26px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--paper-2);
  padding: 1px 4px;
}

/* toast */

.toasts {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(340px, 86vw);
}

.toast {
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-left: 3px solid var(--accent);
  font-size: 11.5px;
  line-height: 1.6;
  animation: toast-in 0.3s var(--ease) both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
}

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

@media (max-width: 1120px) {
  .legend,
  .track {
    --cols: 38px 50px minmax(0, 1fr) 112px 96px 52px 40px;
    grid-template-columns: var(--cols);
    gap: 11px;
  }
  .sleeve {
    width: 46px;
    height: 46px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 190px;
  }
}

@media (max-width: 920px) {
  .ticker {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 0;
  }
  .stamp {
    width: 104px;
    height: 104px;
    flex: none;
  }
  .stats {
    flex: 1;
    max-width: 340px;
  }
  .stats div {
    padding: 6px 0;
  }
  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .catalog-meta {
    align-items: flex-start;
  }
  .legend {
    display: none;
  }
  .track {
    grid-template-columns: 32px 48px minmax(0, 1fr) 72px 38px;
    padding: 10px 4px;
  }
  .track .tmeta,
  .track .lic {
    display: none;
  }
  .time {
    font-size: 9.5px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .player-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 9px var(--pad) 10px;
  }
  .controls {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
  }
  .player-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .volume,
  .source-badge {
    display: none;
  }
  .toasts {
    bottom: 132px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }
  .topbar {
    height: 62px;
    gap: 14px;
  }
  .brand-cn {
    display: none;
  }
  .brand-mark {
    font-size: 15px;
  }
  .topnav {
    gap: 14px;
  }
  h1 {
    font-size: clamp(42px, 13vw, 60px);
    line-height: 0.92;
  }
  .lede {
    font-size: 13px;
    margin-top: 24px;
  }
  .hero-side {
    display: none;
  }
  .search {
    margin-top: 34px;
  }
  .search input[type="search"] {
    font-size: 22px;
    padding: 10px 0;
  }
  .search-go {
    width: 48px;
    height: 48px;
  }
  .quick > span {
    width: 100%;
  }
  .track {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 10px;
    padding: 10px 2px;
  }
  .track .idx,
  .track .time {
    display: none;
  }
  .sleeve {
    width: 42px;
    height: 42px;
  }
  .ttitle {
    font-size: 13px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .detail-panel {
    grid-template-columns: 1fr;
    width: 94vw;
  }
  .detail-art {
    min-height: 0;
    height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .detail-art .sleeve-letter {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .detail-body {
    padding: 24px 20px;
  }
  .sheet-panel {
    padding: 30px 20px 24px;
  }
  .license-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .player-inner {
    padding: 8px 14px 10px;
  }
  .now-art {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
