:root {
  --paper: #f1eadc;
  --paper-deep: #e4dac6;
  --ink: #191a17;
  --muted: #777264;
  --line: rgba(25, 26, 23, 0.15);
  --red: #c14b32;
  --olive: #6e7655;
  --shadow: 0 24px 70px rgba(63, 48, 28, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(126px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(rgba(31, 29, 23, 0.11) 0.55px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.7) 0.55px, transparent 0.7px);
  background-position: 0 0, 5px 7px;
  background-size: 9px 9px, 11px 11px;
}

.topbar {
  width: min(1400px, calc(100% - 64px));
  height: 104px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "STSong", "Songti SC", serif;
  font-size: 24px;
  transform: rotate(-8deg);
}

.brand strong {
  display: block;
  font-family: "STSong", "Songti SC", serif;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.24em;
}

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

.search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.search input {
  width: 150px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.button {
  height: 44px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.ghost {
  border-color: var(--line);
}

main {
  width: min(1400px, calc(100% - 64px));
  margin: auto;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.hero h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(44px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hero-note {
  max-width: 540px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.now-card {
  min-height: 286px;
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 3px 34px 3px 3px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.now-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 95px;
  height: 9px;
  background: var(--red);
}

.record-art {
  --cover-a: #bd5038;
  --cover-b: #d9ba78;
  width: 210px;
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 7%, #24231f 7.5% 11%, transparent 11.5%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px 7px),
    conic-gradient(from 20deg, var(--cover-a), #24231f 28%, var(--cover-b), #1d1d1a 66%, var(--cover-a));
  box-shadow: 0 18px 36px rgba(36, 30, 21, 0.25);
  transition: background 500ms ease;
  overflow: hidden;
}

.record-art.playing {
  animation: spin 7s linear infinite;
}

.record-art img,
.mini-cover img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.record-art img {
  border-radius: 50%;
}

.record-art span {
  position: absolute;
  color: rgba(255, 255, 255, 0.86);
  font-family: "STSong", "Songti SC", serif;
  font-size: 16px;
  transform: translateY(35px);
}

.record-hole {
  width: 19px;
  height: 19px;
  position: absolute;
  z-index: 2;
  border: 6px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
}

.now-meta {
  min-width: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(193, 75, 50, 0.1);
}

#playingState {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.now-meta h2 {
  margin: 24px 0 10px;
  overflow: hidden;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.now-meta p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-overflow: ellipsis;
}

.song-studio {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(360px, 1.45fr) minmax(180px, 0.55fr);
  gap: 36px;
  padding: 38px 0;
  border-top: 1px solid var(--ink);
}

.ios-install-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 0 0 38px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 3px 26px 3px 3px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: var(--shadow);
}

.ios-install-icon img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 15px;
}

.ios-install-card .eyebrow {
  margin-bottom: 7px;
}

.ios-install-card h2 {
  margin: 0 0 5px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
}

.ios-install-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.studio-sidebar {
  padding-right: 18px;
}

.studio-sidebar h2 {
  margin: 0 0 18px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 36px;
  font-weight: 500;
}

.studio-sidebar > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.studio-actions .button {
  height: 38px;
  padding: 0 14px;
  font-size: 11px;
}

.lyrics-stage {
  height: 320px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px 28px 3px 3px;
  background: #1c1d19;
  color: var(--paper);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lyrics-stage::before,
.lyrics-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 70px;
  pointer-events: none;
}

.lyrics-stage::before {
  top: 0;
  background: linear-gradient(#1c1d19, transparent);
}

.lyrics-stage::after {
  bottom: 0;
  background: linear-gradient(transparent, #1c1d19);
}

.lyrics-empty {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.lyrics-empty span {
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.4em;
}

.lyrics-empty h3 {
  margin: 20px 0 8px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 28px;
  font-weight: 400;
}

.lyrics-empty p {
  margin: 0;
  color: rgba(241, 234, 220, 0.46);
  font-size: 11px;
}

.lyrics-scroll {
  height: 100%;
  padding: 128px 48px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.lyrics-scroll::-webkit-scrollbar {
  display: none;
}

.lyric-line {
  min-height: 42px;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(241, 234, 220, 0.35);
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
  transform-origin: left center;
  transition: color 250ms ease, font-size 250ms ease, transform 250ms ease;
}

.lyric-line:hover {
  color: rgba(241, 234, 220, 0.75);
}

.lyric-line.active {
  color: var(--paper);
  font-size: 23px;
  transform: translateX(8px);
}

.song-notes {
  padding: 8px 0 0 18px;
  border-left: 1px solid var(--line);
}

.notes-label {
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.song-notes dl {
  margin: 20px 0;
}

.song-notes dl div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.song-notes dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.song-notes dd {
  margin: 0;
  overflow: hidden;
  font-family: "STSong", "Songti SC", serif;
  font-size: 14px;
  text-overflow: ellipsis;
}

.source-link {
  color: var(--ink);
  font-size: 11px;
  text-underline-offset: 4px;
}

.library-shell {
  position: relative;
  min-height: 330px;
  padding: 36px 0 50px;
  border-top: 1px solid var(--ink);
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.library-heading h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 32px;
  font-weight: 500;
}

.library-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.divider {
  width: 20px;
  height: 1px;
  background: var(--line);
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-disc {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 0 8%, var(--ink) 9% 14%, var(--paper-deep) 15% 31%, var(--ink) 32%);
  opacity: 0.85;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 22px;
  font-weight: 500;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.track-list {
  border-top: 1px solid var(--line);
}

.track-row {
  display: grid;
  grid-template-columns: 52px minmax(180px, 1.5fr) minmax(120px, 1fr) 92px 76px;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 180ms ease, background 180ms ease;
}

.track-row:hover,
.track-row.active {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.3);
}

.track-index {
  color: var(--muted);
  font-family: "Iowan Old Style", "Times New Roman", serif;
  font-size: 14px;
}

.track-row.active .track-index {
  color: var(--red);
}

.track-name {
  min-width: 0;
}

.track-name strong,
.track-name span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.track-name strong {
  font-family: "STSong", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
}

.track-name span,
.track-date,
.track-duration {
  color: var(--muted);
  font-size: 11px;
}

.track-date {
  letter-spacing: 0.08em;
}

.track-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.small-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.small-button:hover {
  background: var(--paper-deep);
}

.small-button.favorite {
  color: var(--red);
}

.drop-hint {
  position: absolute;
  inset: 20px 0;
  z-index: 5;
  display: none;
  place-items: center;
  align-content: center;
  border: 2px dashed var(--red);
  background: rgba(241, 234, 220, 0.94);
  color: var(--red);
  text-align: center;
}

.drop-hint strong,
.drop-hint span {
  display: block;
}

.drop-hint strong {
  font-family: "STSong", "Songti SC", serif;
  font-size: 28px;
}

.drop-hint span {
  margin-top: 8px;
  font-size: 12px;
}

.library-shell.dragging .drop-hint {
  display: grid;
}

.player {
  width: min(1400px, calc(100% - 36px));
  height: 94px;
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(360px, 1.7fr) minmax(180px, 1fr);
  align-items: center;
  gap: 30px;
  padding: 12px 22px;
  border: 1px solid rgba(241, 234, 220, 0.16);
  border-radius: 4px 20px 4px 4px;
  background: rgba(25, 26, 23, 0.96);
  color: var(--paper);
  box-shadow: 0 18px 70px rgba(25, 26, 23, 0.3);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.player-track {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.player-track > div:last-child {
  min-width: 0;
}

.player-track strong,
.player-track span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-track strong {
  font-family: "STSong", "Songti SC", serif;
  font-size: 15px;
}

.player-track span {
  margin-top: 4px;
  color: rgba(241, 234, 220, 0.55);
  font-size: 10px;
}

.mini-cover {
  --cover-a: #bd5038;
  --cover-b: #d9ba78;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 20deg, var(--cover-a), #24231f 32%, var(--cover-b), #1d1d1a 70%, var(--cover-a));
  position: relative;
  overflow: hidden;
}

.mini-cover span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 9px;
}

.player-center {
  min-width: 0;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.icon-button,
.play-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.68;
}

.icon-button:hover,
.icon-button.active {
  background: rgba(255, 255, 255, 0.09);
  opacity: 1;
}

.play-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.timeline {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
  color: rgba(241, 234, 220, 0.55);
  font-size: 9px;
}

input[type="range"] {
  height: 3px;
  margin: 0;
  appearance: none;
  border-radius: 10px;
  background: rgba(241, 234, 220, 0.2);
  cursor: pointer;
}

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

.volume {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.volume input {
  width: min(130px, 10vw);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 126px;
  z-index: 40;
  padding: 12px 16px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sheet {
  width: min(920px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 0;
  border-radius: 4px 32px 4px 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(20, 18, 13, 0.45);
  overflow-y: auto;
}

.sheet::backdrop {
  background: rgba(20, 20, 17, 0.68);
  backdrop-filter: blur(10px);
}

.sheet-card {
  padding: 30px;
}

.sheet-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.sheet-header h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 34px;
  font-weight: 500;
}

.close-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.sheet-help {
  margin: 18px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.sheet-help code {
  padding: 2px 5px;
  background: var(--paper-deep);
  color: var(--ink);
}

#lyricsEditor {
  width: 100%;
  min-height: 360px;
  padding: 20px;
  resize: vertical;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 15px;
  line-height: 1.9;
}

.sheet-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  margin-top: 20px;
}

.split-actions {
  grid-template-columns: auto auto 1fr auto auto;
}

.cover-lab {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.65fr);
  gap: 28px;
  margin-top: 24px;
}

#coverCanvas {
  width: 100%;
  max-height: 470px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.cover-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cover-controls label span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
}

.cover-controls textarea,
.cover-controls select,
.resource-search input {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
}

.cover-controls textarea {
  min-height: 105px;
  padding: 12px;
  resize: vertical;
}

.cover-controls select {
  height: 44px;
  padding: 0 10px;
}

.cover-controls > p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.resource-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.resource-search input {
  height: 46px;
  padding: 0 16px;
}

.license-note {
  margin: 15px 0;
  padding: 12px 15px;
  border-left: 3px solid var(--red);
  background: rgba(193, 75, 50, 0.07);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.resource-results {
  min-height: 260px;
  max-height: 430px;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}

.resource-placeholder {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.resource-placeholder strong,
.resource-placeholder span {
  display: block;
}

.resource-placeholder strong {
  color: var(--ink);
  font-family: "STSong", "Songti SC", serif;
  font-size: 22px;
  font-weight: 500;
}

.resource-placeholder span {
  margin-top: 7px;
  font-size: 10px;
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.resource-row h3 {
  margin: 0 0 5px;
  overflow: hidden;
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.resource-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.resource-row a {
  color: var(--red);
}

.resource-row .button {
  height: 36px;
  padding: 0 13px;
  font-size: 10px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.guide-grid section {
  min-height: 160px;
  padding: 22px;
  background: var(--paper);
}

.guide-number {
  color: var(--red);
  font-family: "Iowan Old Style", serif;
  font-size: 12px;
}

.guide-grid h3 {
  margin: 18px 0 8px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.storage-panel {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
}

.storage-panel > div:first-child span,
.storage-panel > div:first-child strong {
  display: block;
}

.storage-panel > div:first-child span {
  color: var(--muted);
  font-size: 9px;
}

.storage-panel > div:first-child strong {
  margin-top: 5px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 15px;
}

.storage-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-deep);
}

.storage-meter span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--red);
  transition: width 400ms ease;
}

.iphone-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
}

.iphone-steps strong {
  margin-right: auto;
  color: var(--ink);
}

.iphone-steps i {
  color: var(--red);
  font-style: normal;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .now-card {
    max-width: 680px;
  }

  .song-studio {
    grid-template-columns: 1fr 2fr;
  }

  .song-notes {
    display: none;
  }

  .player {
    grid-template-columns: 1fr 1.4fr;
  }

  .volume {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .topbar,
  main {
    width: min(100% - 32px, 1400px);
  }

  .topbar {
    height: 82px;
  }

  .search,
  .top-actions .button.ghost {
    display: none;
  }

  .button {
    padding: 0 14px;
  }

  #resourceButton {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 43px;
  }

  .now-card {
    grid-template-columns: 108px 1fr;
    min-height: 180px;
    gap: 20px;
    padding: 18px;
  }

  .record-art {
    width: 108px;
  }

  .record-art span {
    transform: translateY(23px);
  }

  .now-meta h2 {
    margin-top: 16px;
    font-size: 25px;
  }

  .track-row {
    grid-template-columns: 34px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .song-studio {
    grid-template-columns: 1fr;
  }

  .ios-install-card {
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    padding: 16px;
  }

  .ios-install-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .ios-install-card h2 {
    font-size: 19px;
  }

  .studio-sidebar {
    padding-right: 0;
  }

  .lyrics-stage {
    height: 300px;
  }

  .lyrics-scroll {
    padding-right: 26px;
    padding-left: 26px;
  }

  .cover-lab {
    grid-template-columns: 1fr;
  }

  .sheet-card {
    padding: 20px;
  }

  .sheet-actions,
  .split-actions {
    grid-template-columns: 1fr 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .storage-panel {
    grid-template-columns: 1fr;
  }

  .iphone-steps strong {
    width: 100%;
  }

  .sheet-actions span {
    display: none;
  }

  .track-date,
  .track-duration {
    display: none;
  }

  .player {
    width: calc(100% - 20px);
    height: 92px;
    grid-template-columns: minmax(110px, 0.8fr) 1.2fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .mini-cover {
    width: 42px;
    height: 42px;
  }

  .transport {
    gap: 4px;
  }

  .transport .icon-button:first-child,
  .transport .icon-button:last-child {
    display: none;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline span {
    display: none;
  }
}

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

/* Quiet record-book direction: fewer containers, stronger hierarchy, more air. */
:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --ink: #171815;
  --muted: #777267;
  --line: rgba(23, 24, 21, 0.11);
  --red: #a9432f;
  --shadow: 0 30px 90px rgba(50, 40, 27, 0.1);
}

.paper-noise {
  opacity: 0.17;
}

.topbar,
main {
  width: min(1320px, calc(100% - 80px));
}

.topbar {
  height: 88px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  font-size: 21px;
  transform: rotate(-6deg);
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.15em;
}

.top-actions {
  gap: 7px;
}

.search {
  height: 38px;
  padding: 0 10px;
}

.button {
  height: 38px;
  padding: 0 15px;
  border-color: transparent;
  font-size: 12px;
}

.button.ghost {
  border-color: transparent;
  color: var(--muted);
}

.button.ghost:hover {
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  min-height: 540px;
  grid-template-columns: minmax(280px, 0.68fr) minmax(600px, 1.32fr);
  gap: clamp(60px, 8vw, 130px);
  padding: 72px 0 64px;
}

.eyebrow {
  margin-bottom: 22px;
  font-size: 9px;
}

.hero h1 {
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.hero-note {
  margin-top: 34px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 13px;
  line-height: 2;
}

.now-card {
  min-height: 390px;
  grid-template-columns: minmax(270px, 0.88fr) minmax(230px, 1fr);
  gap: clamp(42px, 5vw, 76px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.now-card::before {
  top: 46px;
  right: auto;
  left: calc(50% - 8px);
  width: 1px;
  height: 290px;
  background: var(--line);
}

.record-art {
  width: min(100%, 310px);
  box-shadow: 0 35px 70px rgba(36, 30, 21, 0.22);
}

.record-art span {
  font-size: 18px;
  transform: translateY(48px);
}

.status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

#playingState {
  font-size: 9px;
  letter-spacing: 0.22em;
}

.now-meta h2 {
  margin: 34px 0 14px;
  font-size: clamp(36px, 3.7vw, 54px);
  font-weight: 400;
  line-height: 1.05;
}

.now-meta p {
  font-size: 12px;
}

.song-studio {
  min-height: 530px;
  grid-template-columns: minmax(200px, 0.48fr) minmax(520px, 1.52fr) minmax(150px, 0.34fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 58px 0 72px;
}

.studio-sidebar h2 {
  font-size: 46px;
  font-weight: 400;
}

.studio-actions {
  align-items: flex-start;
  gap: 0;
  margin-top: 32px;
}

.studio-actions .button {
  width: 100%;
  height: auto;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.studio-actions .button:hover,
.studio-actions .button.ink {
  background: transparent;
  color: var(--ink);
  transform: translateX(5px);
}

.lyrics-stage {
  height: 430px;
  border: 0;
  border-radius: 2px;
  background: #191a17;
  box-shadow: 0 34px 90px rgba(23, 24, 21, 0.15);
}

.lyrics-empty h3 {
  font-size: 34px;
}

.lyrics-scroll {
  padding: 180px 64px;
}

.lyric-line {
  min-height: 50px;
  font-size: 19px;
}

.lyric-line.active {
  font-size: 28px;
}

.song-notes {
  padding-left: 22px;
}

.library-shell {
  padding: 58px 0 70px;
}

.library-heading h2 {
  font-size: 42px;
  font-weight: 400;
}

.track-row {
  min-height: 84px;
}

.track-row:hover,
.track-row.active {
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.22);
}

.track-name strong {
  font-size: 20px;
  font-weight: 500;
}

.player {
  width: min(1120px, calc(100% - 56px));
  height: 78px;
  gap: 24px;
  padding: 10px 18px;
  border: 1px solid rgba(244, 240, 232, 0.12);
  border-radius: 18px;
  background: rgba(23, 24, 21, 0.94);
  box-shadow: 0 20px 60px rgba(23, 24, 21, 0.22);
  backdrop-filter: blur(24px);
}

.mini-cover {
  width: 48px;
  height: 48px;
}

.transport {
  gap: 13px;
}

.play-button {
  width: 40px;
  height: 40px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .now-card::before {
    display: none;
  }

  .song-studio {
    grid-template-columns: 1fr;
  }

  .song-notes {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar,
  main {
    width: min(100% - 32px, 1320px);
  }

  .hero {
    padding: 46px 0 54px;
    gap: 50px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .now-card {
    grid-template-columns: 128px 1fr;
    min-height: 190px;
    gap: 24px;
    padding: 0;
  }

  .record-art {
    width: 128px;
  }

  .record-art span {
    transform: translateY(26px);
  }

  .now-meta h2 {
    margin-top: 19px;
    font-size: 30px;
  }

  .studio-sidebar h2 {
    font-size: 38px;
  }

  .song-studio {
    min-width: 0;
    padding-top: 50px;
  }

  .lyrics-stage {
    width: 100%;
    min-width: 0;
    height: 360px;
  }

  .player {
    height: 76px;
    border-radius: 16px;
  }
}
