:root {
  --ink: #17354a;
  --muted: #607482;
  --blue: #215de4;
  --sky: #eaf3f7;
  --line: #dce7ee;
  --paper: #fff;
  --teal: #b6e6e5;
  --yellow: #f1d47c;
  --sidebar: 222px;
  --player: 106px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--sky);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button,
a,
select,
input {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
}
button {
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
[hidden] {
  display: none !important;
}
.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;
}
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--player));
  padding-bottom: var(--player);
}
.sidebar {
  width: var(--sidebar);
  flex: none;
  padding: 36px 24px;
  position: fixed;
  top: 0;
  bottom: var(--player);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  font-size: 19px;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 3px;
  color: var(--muted);
}
.brand-symbol {
  font-size: 42px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -7px;
  margin-right: 6px;
}
.brand-symbol span {
  display: inline-block;
  transform: translateY(-5px);
}
nav {
  margin-top: 58px;
  display: grid;
  gap: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 14px 15px;
  border-radius: 12px;
  font-size: 14px;
}
.nav-item > span:first-child {
  font-size: 24px;
  line-height: 1;
}
.nav-item.active {
  background: var(--paper);
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 3px 12px #17354a06;
}
.count {
  margin-left: auto;
  font-size: 12px;
}
.side-note {
  margin-top: auto;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  padding: 24px 12px 0;
}
.side-note strong {
  font-weight: 600;
  color: var(--ink);
}
.side-note p {
  margin: 10px 0;
}
.side-note a {
  color: var(--blue);
}
.connection-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #319a8e;
  margin-right: 7px;
}
main {
  margin: 18px 18px 0 var(--sidebar);
  padding: 38px 44px 22px;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  min-width: 0;
  flex: 1;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.date-line {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
h1 {
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 650;
}
.account-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--muted);
}
.account-name {
  font-weight: 600;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  white-space: nowrap;
}
.account-name:empty {
  display: none;
}
.account-bar a {
  color: var(--blue);
}
.account-bar .text-button {
  padding: 6px 2px;
}
.account-quota {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.primary-button {
  padding: 11px 22px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.field input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--ink);
  background: #f8fbfd;
  min-width: 0;
}
.search-section {
  margin-top: 30px;
}
#search-form {
  display: flex;
  align-items: center;
  border-radius: 13px;
  background: #f3f7fa;
  padding: 7px 8px 7px 18px;
  gap: 10px;
}
.search-symbol {
  font-size: 29px;
  color: var(--muted);
  line-height: 1;
}
#query {
  border: 0;
  min-width: 0;
  flex: 1;
  color: var(--ink);
  background: transparent;
  padding: 10px;
  font-size: 14px;
}
#query::placeholder {
  color: #8395a0;
}
#search-button {
  padding: 11px 24px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.search-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
}
.search-options label {
  display: flex;
  align-items: center;
  gap: 8px;
}
select {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 6px 24px 6px 9px;
  border-radius: 6px;
  font-size: 12px;
  max-width: 100%;
}
#quota {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 36px;
  margin-top: 36px;
  min-height: 480px;
}
.library {
  min-width: 0;
}
.downloads {
  margin-top: 28px;
  min-width: 0;
}
.download-section-heading,
.download-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.download-section-heading {
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.download-section-heading h2 {
  margin: 0;
  font-size: 15px;
}
.download-section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
#download-list {
  display: grid;
  gap: 10px;
}
.download-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f5f9fc;
  min-width: 0;
  overflow-wrap: anywhere;
}
.download-card-heading strong {
  min-width: 0;
  font-size: 13px;
}
.download-card-heading button {
  flex: none;
}
.download-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  flex: none;
}
.download-card p {
  margin: 8px 0 0;
  line-height: 1.65;
}
.download-status {
  font-size: 12px;
  color: var(--blue);
}
.download-metrics {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.download-details {
  font-size: 10px;
  color: var(--muted);
}
.download-card progress {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe8f1;
  accent-color: var(--blue);
}
.download-card progress::-webkit-progress-bar {
  background: #dfe8f1;
  border-radius: 10px;
}
.download-card progress::-webkit-progress-value {
  background: var(--blue);
  border-radius: 10px;
}
.download-card progress::-moz-progress-bar {
  background: var(--blue);
  border-radius: 10px;
}
.download-card.complete .download-status {
  color: #21766b;
}
.download-card.error .download-status {
  color: #ab472a;
}
.download-retry {
  margin-top: 8px;
}
.download-card.queued .download-status {
  color: var(--muted);
}
.download-items {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.download-items[hidden] {
  display: none;
}
.download-item {
  display: grid;
  /* 失败原因再长也只截断状态列，曲名至少保留四成宽度。 */
  grid-template-columns: minmax(40%, 1fr) minmax(0, auto) auto;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.download-item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.download-item-state {
  max-width: 22em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.download-item.complete .download-item-state {
  color: #21766b;
}
.download-item.error .download-item-state {
  color: #ab472a;
}
.download-item .text-button {
  padding: 6px 4px;
}
/* 标签报告与待裁选择：单曲卡片里跟在提示后面，多首任务里跟在每一行下面（占满整行）。 */
.tag-panel {
  margin-top: 10px;
  font-size: 12px;
  min-width: 0;
}
.tag-panel[hidden] {
  display: none;
}
.download-item .tag-panel {
  grid-column: 1 / -1;
  margin: 0 0 10px;
}
.tag-report summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 600;
}
.tag-fields {
  display: grid;
  /* 标签名一列有上限，长名字（REPLAYGAIN_TRACK_GAIN）折行，窄屏上不挤掉取值。 */
  grid-template-columns: minmax(6em, 15em) minmax(0, 1fr);
  gap: 4px 12px;
  margin: 8px 0 0;
}
.tag-fields dt {
  color: var(--muted);
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .tag-fields {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  }
}
.tag-fields dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag-panel h4 {
  margin: 10px 0 2px;
  font-size: 12px;
}
.tag-panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}
.tag-warnings li {
  color: #ab472a;
}
.tag-notes li,
.tag-pending li {
  color: var(--muted);
}
.tag-review {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.tag-review-intro {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.tag-field {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.tag-field legend {
  float: left;
  width: 100%;
  padding: 0;
  font-weight: 600;
}
.tag-reason {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.tag-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag-custom {
  width: 12em;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 12px;
  color: var(--ink);
}
.tag-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.tag-submit {
  padding: 8px 18px;
  background: var(--blue);
  color: white;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 56px 12px;
}
.empty-art {
  position: relative;
  margin: 0 auto 25px;
  width: 125px;
  height: 106px;
  display: grid;
  place-items: center;
}
.empty-art > span {
  width: 77px;
  height: 90px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 46px;
  background: #eaf0ff;
  transform: rotate(-12deg);
  position: relative;
  z-index: 1;
}
.empty-art > i {
  position: absolute;
  width: 66px;
  height: 79px;
  border-radius: 14px;
  background: #dcefed;
  transform: rotate(12deg);
  right: 8px;
  top: 20px;
}
.empty-art > i:last-child {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  left: 0;
  top: 12px;
}
.empty-state h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.notice {
  padding: 12px 14px;
  margin: 16px 0;
  background: #edf3ff;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.notice.error {
  background: #fff0eb;
  color: #914b32;
}
.track-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin-top: 9px;
}
.track {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 12px 10px;
  border-radius: 9px;
}
.track:hover {
  background: #f5f8fa;
}
.track.current {
  background: #edf3ff;
}
.track-index {
  color: #8b9ba6;
  font-size: 11px;
  width: 17px;
  flex: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.track-open {
  min-width: 0;
  flex: 1;
  background: transparent;
  text-align: left;
  padding: 0;
  color: var(--ink);
  line-height: 1.55;
}
.track-open strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.track-open small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-top: 3px;
}
.track-actions {
  display: flex;
  gap: 4px;
}
.track-actions button {
  background: transparent;
  color: var(--muted);
  width: 31px;
  height: 34px;
  border-radius: 6px;
  font-size: 20px;
}
.track-actions button:hover {
  background: #e3ebf4;
  color: var(--blue);
}
.track-actions button.saved {
  color: var(--blue);
}
.track-actions .row-download {
  font-size: 20px;
}
.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 12px;
}
.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.load-more {
  display: block;
  margin: 20px auto;
}
.listening-panel {
  min-width: 0;
}
.album-art {
  position: relative;
  overflow: hidden;
  height: 254px;
  border-radius: 15px;
  background: var(--teal);
  display: grid;
  place-items: center;
}
.album-art:before {
  content: "";
  position: absolute;
  background: #9dd7d6;
  width: 320px;
  height: 150px;
  transform: rotate(-35deg);
  top: -20px;
  left: -100px;
}
.album-art:after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: var(--yellow);
  border-radius: 50%;
  right: -42px;
  bottom: -62px;
}
.record {
  width: 174px;
  height: 174px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #213f51 0,
    #213f51 2px,
    #294b5c 3px,
    #213f51 4px
  );
  box-shadow: 9px 12px 0 #17354a12;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}
#cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}
.album-art.has-cover .record,
.album-art.has-cover .art-caption {
  visibility: hidden;
}
.record-label {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f4f5;
  color: var(--ink);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -3px;
}
.record-label:after {
  position: absolute;
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #315165;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.record-label span {
  transform: translateY(-14px);
}
.art-caption {
  position: absolute;
  bottom: 14px;
  left: 18px;
  font-size: 10px;
  color: #305e64;
  z-index: 1;
}
.album-art.playing .record {
  animation: turntable 14s linear infinite;
}
.now-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
  font-size: 10px;
  color: var(--muted);
}
.section-label {
  color: var(--blue);
  font-weight: 600;
}
.listening-panel h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 9px 0 5px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
#playing-artist {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}
#playing-album {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.quality-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  margin-top: 25px;
}
.quality-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 9px 0 15px;
}
.audio-info-panel {
  min-width: 0;
  margin: 12px 0 18px;
  padding: 12px 14px;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.audio-info-panel .quality-note {
  margin: 0;
}
#audio-spec {
  margin: 7px 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.text-button {
  font-size: 12px;
  color: var(--blue);
  background: transparent;
  padding: 10px;
}
.lyrics {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 2.1;
  max-height: 250px;
  overflow: auto;
  overflow-wrap: anywhere;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
}
.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.page-footer a {
  color: var(--blue);
}
.player {
  height: var(--player);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(270px, 1.6fr) minmax(
      150px,
      1fr
    );
  gap: 35px;
  align-items: center;
  padding: 14px 35px;
  background: white;
  border-top: 1px solid var(--line);
}
.player-track {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.mini-art {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: var(--teal);
  border-radius: 8px;
  font-size: 24px;
  color: #305e64;
  flex: none;
}
.player-track > div:last-child {
  min-width: 0;
}
.player-track strong,
.player-track span {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.player-track strong {
  font-size: 12px;
  font-weight: 600;
}
.player-track span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.transport-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.icon-button {
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  width: 28px;
  padding: 0;
}
.play-toggle {
  background: var(--blue);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  padding: 0;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  font-size: 9px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timeline > span {
  min-width: 28px;
}
.timeline > span:last-child {
  text-align: right;
}
input[type="range"] {
  accent-color: var(--blue);
  height: 12px;
  min-width: 0;
  cursor: pointer;
}
.timeline input {
  flex: 1;
}
.volume-control {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}
.volume-control input {
  max-width: 80px;
}
#player-state {
  flex-basis: 100%;
  text-align: right;
  font-size: 10px;
  min-height: 14px;
}
.loading .search-symbol {
  animation: breathe 1s ease-in-out infinite;
}
@keyframes turntable {
  to {
    transform: rotate(360deg);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.25;
  }
}
@media (min-width: 1500px) {
  main {
    padding-left: 65px;
    padding-right: 65px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 55px;
  }
  .album-art {
    height: 294px;
  }
  .record {
    width: 196px;
    height: 196px;
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar: 180px;
  }
  .sidebar {
    padding: 30px 15px;
  }
  .brand {
    font-size: 16px;
    gap: 10px;
  }
  main {
    padding: 32px 26px;
  }
  .workspace {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .album-art {
    height: 226px;
  }
  .player {
    gap: 22px;
    padding: 14px 24px;
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 22px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
  }
  .brand-symbol {
    font-size: 34px;
  }
  .brand small,
  .side-note {
    display: none;
  }
  .sidebar nav {
    display: flex;
    margin: 0;
    gap: 5px;
  }
  .nav-item {
    font-size: 12px;
    gap: 6px;
    padding: 9px 11px;
  }
  .nav-item > span:first-child {
    font-size: 20px;
  }
  .app-shell {
    display: block;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
  }
  main {
    margin: 0 12px;
    padding: 27px 24px;
  }
  .player {
    grid-template-columns: minmax(130px, 1fr) minmax(230px, 1.6fr);
    gap: 20px;
  }
  .volume-control {
    display: none;
  }
  .empty-state {
    padding: 50px 0;
  }
  h1 {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  :root {
    --player: 145px;
  }
  .sidebar {
    padding: 14px 18px;
  }
  .brand {
    font-size: 15px;
  }
  .brand-symbol {
    font-size: 30px;
  }
  .nav-item {
    padding: 8px;
  }
  .nav-item > span:first-child,
  .nav-item .count {
    display: none;
  }
  main {
    margin: 0 8px;
    padding: 24px 17px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .account-bar {
    justify-content: flex-start;
  }
  .date-line {
    font-size: 11px;
  }
  h1 {
    font-size: 27px;
  }
  .search-section {
    margin-top: 23px;
  }
  #search-form {
    padding-left: 10px;
    gap: 3px;
  }
  #query {
    font-size: 13px;
    padding-left: 4px;
  }
  #search-button {
    padding: 11px 17px;
  }
  .search-options {
    align-items: flex-start;
    font-size: 10px;
  }
  .search-options label {
    gap: 4px;
    flex: none;
  }
  select {
    font-size: 11px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 28px;
  }
  .library {
    min-height: 250px;
  }
  .listening-panel {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .album-art {
    height: 185px;
  }
  .record {
    width: 140px;
    height: 140px;
  }
  .now-heading {
    margin-top: 18px;
  }
  .quality-control {
    justify-content: flex-start;
    gap: 25px;
  }
  .detail-actions {
    justify-content: flex-start;
    gap: 15px;
  }
  .page-footer {
    margin-top: 25px;
  }
  .player {
    height: var(--player);
    grid-template-columns: 1fr;
    padding: 10px 20px 13px;
    gap: 5px;
  }
  .player-track {
    justify-content: center;
    gap: 9px;
  }
  .mini-art {
    width: 27px;
    height: 27px;
    font-size: 17px;
  }
  .player-track strong {
    font-size: 11px;
  }
  .player-track span {
    display: none;
  }
  .transport-buttons {
    gap: 35px;
  }
  .play-toggle {
    width: 32px;
    height: 32px;
  }
  .timeline {
    margin-top: 5px;
  }
  .track {
    padding: 12px 3px;
    gap: 8px;
  }
  .track-index {
    width: 15px;
  }
  .track-actions {
    gap: 1px;
  }
  .empty-state {
    padding: 36px 0;
  }
  .empty-art {
    margin-bottom: 20px;
  }
  .lyrics {
    max-height: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* 登录、邀请注册与重置密码 */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
main.auth-card {
  flex: none;
  width: min(100%, 400px);
  margin: 0;
  padding: 36px 32px 28px;
  border-radius: 24px;
  box-shadow: 0 10px 40px #17354a10;
}
.auth-card h1 {
  margin-top: 30px;
  font-size: 26px;
}
.auth-lead {
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.auth-card form .quality-note {
  margin: 12px 0 0;
}
.auth-card .notice {
  margin: 14px 0 0;
}
#auth-submit {
  width: 100%;
  margin-top: 20px;
}
.auth-foot {
  margin: 22px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

/* 修改密码 */
.password-dialog {
  border: 0;
  border-radius: 18px;
  padding: 26px 28px;
  width: min(92vw, 380px);
  color: var(--ink);
  box-shadow: 0 18px 60px #17354a30;
}
.password-dialog::backdrop {
  background: #17354a40;
}
.password-dialog h2 {
  margin: 0 0 4px;
  font-size: 18px;
}
.password-dialog .quality-note {
  margin: 12px 0 0;
}
.password-dialog .notice {
  margin: 12px 0 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

/* 站长管理页 */
.admin-body {
  padding-bottom: 40px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 24px 36px;
}
main.admin-main {
  margin: 0 18px;
  padding: 30px 36px;
  border-radius: 24px;
  display: grid;
  gap: 36px;
}
.admin-main .notice {
  margin: 0;
}
.panel {
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 12px;
}
.panel-heading h2 {
  margin: 0;
  font-size: 16px;
}
.panel-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.stat {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f5f9fc;
  font-size: 12px;
  line-height: 1.6;
}
.stat strong {
  font-size: 13px;
}
.stat .text-button {
  justify-self: start;
  padding: 0;
}
.qr-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 12px;
}
.qr-box[hidden] {
  display: none;
}
.qr-box img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: white;
}
.qr-box p {
  flex: 1 1 200px;
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.table-wrap th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.table-wrap td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.table-wrap td .text-button {
  padding: 2px 10px 2px 0;
  white-space: nowrap;
}
.table-wrap .quality-note {
  margin: 0;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin-bottom: 14px;
}
.inline-form label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.inline-form input {
  min-width: 12em;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 12px;
  color: var(--ink);
}
.inline-form .primary-button {
  padding: 8px 16px;
  font-size: 12px;
}
.once {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--blue);
  border-radius: 12px;
  background: #edf3ff;
}
.once strong {
  font-size: 13px;
}
.once-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.once-row input {
  flex: 1 1 22em;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 9px;
  background: white;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}
.once .quality-note {
  margin: 0;
}
@media (max-width: 600px) {
  .admin-header {
    padding: 16px 18px;
  }
  main.admin-main {
    margin: 0 8px;
    padding: 22px 16px;
  }
  main.auth-card {
    padding: 28px 22px 24px;
  }
}
.search-options #quota {
  margin-left: auto;
}
.album-head {
  padding: 14px 4px 4px;
  border-bottom: 1px solid var(--line);
}
.album-back {
  padding: 0 0 8px;
}
.album-meta,
.album-warning {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.album-warning {
  color: #914b32;
}
.album-preflight {
  color: var(--ink);
}
.disc-heading {
  margin: 14px 10px 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.track.missing-slot {
  min-height: 44px;
  color: #8b9ba6;
  font-size: 12px;
  border: 1px dashed var(--line);
  font-variant-numeric: tabular-nums;
}
.preflight {
  flex: none;
  max-width: 15em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--muted);
}
.preflight.ok {
  background: #e3f4ef;
  color: #21766b;
}
.preflight.downgraded {
  background: #fdf3d8;
  color: #85631a;
}
.preflight.unavailable {
  background: #fff0eb;
  color: #ab472a;
}
.track-actions .row-album {
  font-size: 16px;
}
@media (max-width: 640px) {
  .preflight {
    max-width: 8em;
  }
}
/* 整张下载：专辑页上的计划确认，下载卡片里的整张面板。 */
.album-plan {
  display: grid;
  gap: 8px;
  margin: 10px 0 8px;
  font-size: 12px;
  min-width: 0;
}
.album-plan > .album-download {
  justify-self: start;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 600;
}
.album-plan > .album-download:disabled {
  opacity: 0.6;
}
.album-plan-hint {
  color: var(--muted);
  font-size: 11px;
}
.album-plan-summary {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.album-plan h4 {
  margin: 4px 0 2px;
  font-size: 12px;
}
.album-plan ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.album-plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.album-panel {
  margin-top: 10px;
  font-size: 12px;
  min-width: 0;
}
.album-panel[hidden] {
  display: none;
}
.album-panel h4 {
  margin: 10px 0 2px;
  font-size: 12px;
}
.album-panel ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.album-manifest > div > .text-button {
  display: inline-block;
  margin-top: 8px;
}
.download-item.held .download-item-state {
  color: var(--blue);
}
