:root {
  --ink: #251b2f;
  --ink-soft: #62586a;
  --paper: #f6f1e8;
  --paper-deep: #ebe2d5;
  --card: rgba(255, 253, 248, 0.86);
  --white: #fffdf9;
  --plum: #4b233f;
  --plum-light: #774968;
  --gold: #b78446;
  --gold-light: #e5c58e;
  --line: rgba(67, 43, 60, 0.13);
  --shadow: 0 22px 70px rgba(52, 34, 48, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 5%, rgba(205, 169, 111, 0.22), transparent 28rem),
    radial-gradient(circle at 0 32%, rgba(111, 71, 98, 0.1), transparent 34rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="range"] {
  cursor: pointer;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(183, 132, 70, 0.42);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.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-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--plum);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(1240px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 52px;
  height: 44px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(89, 49, 75, 0.3);
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(43, 24, 37, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.28em;
}

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

.collection-pill,
.quiet-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.45);
  font-size: 12px;
}

.collection-pill b {
  color: var(--plum);
}

.quiet-button {
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quiet-button:hover {
  background: var(--white);
  border-color: rgba(75, 35, 63, 0.25);
}

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  display: grid;
  min-height: 535px;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 8vw, 116px);
  align-items: center;
  padding: 64px 3vw 76px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.intro h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.intro h1 em {
  position: relative;
  color: var(--plum-light);
  font-style: normal;
}

.intro h1 em::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 8px;
  height: 7px;
  content: "";
  background: radial-gradient(ellipse, rgba(183, 132, 70, 0.45), transparent 70%);
}

.intro-text {
  max-width: 520px;
  margin: 25px 0 30px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
}

.intro-actions {
  display: flex;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 49px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: white;
  border: 0;
  background: var(--plum);
  box-shadow: 0 12px 28px rgba(75, 35, 63, 0.2);
}

.primary-button:hover {
  box-shadow: 0 14px 32px rgba(75, 35, 63, 0.28);
  transform: translateY(-2px);
}

.primary-button span:first-child {
  font-size: 12px;
}

.secondary-button {
  border: 1px solid rgba(75, 35, 63, 0.25);
  background: transparent;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.overview-card {
  position: relative;
  width: min(100%, 425px);
  min-height: 390px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 46% 46% var(--radius-lg) var(--radius-lg);
  background:
    radial-gradient(circle at 50% 27%, rgba(232, 203, 154, 0.2), transparent 31%),
    linear-gradient(155deg, #563249, #241927 72%);
  box-shadow: 0 32px 80px rgba(42, 27, 39, 0.22);
}

.overview-card::before {
  position: absolute;
  inset: 15px;
  content: "";
  border: 1px solid rgba(227, 194, 139, 0.17);
  border-radius: 46% 46% 20px 20px;
}

.halo-art {
  position: relative;
  height: 294px;
}

.halo {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(229, 197, 142, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.halo-one {
  width: 210px;
  height: 210px;
}

.halo-two {
  width: 132px;
  height: 132px;
  border-color: rgba(229, 197, 142, 0.52);
  box-shadow: 0 0 70px rgba(218, 175, 105, 0.12);
}

.light-cross,
.light-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: linear-gradient(#e6ca97, #9f6f38);
  border-radius: 5px;
  box-shadow: 0 0 24px rgba(228, 192, 131, 0.3);
  transform: translate(-50%, -50%);
}

.light-cross {
  width: 4px;
  height: 82px;
}

.light-cross::after {
  width: 44px;
  height: 4px;
  transform: translate(-50%, -10px);
}

.art-caption {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  color: rgba(232, 208, 168, 0.7);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.42em;
  text-align: center;
}

.overview-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 28px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  text-align: center;
}

.overview-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.overview-stats strong,
.overview-stats span {
  display: block;
}

.overview-stats strong {
  color: #f2dcc0;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.overview-stats span {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.45fr);
  gap: 22px;
  align-items: start;
  padding: 16px 0 92px;
}

.now-playing-card,
.library-card {
  border: 1px solid rgba(82, 55, 71, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.now-playing-card {
  position: sticky;
  top: 20px;
  min-height: 690px;
  padding: 29px clamp(24px, 3vw, 39px) 28px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 110% 0, rgba(219, 178, 113, 0.18), transparent 26rem),
    linear-gradient(160deg, #573146, #251a2b 68%);
}

.now-playing-card::before {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(231, 202, 155, 0.13);
  border-radius: 50%;
}

.card-kicker {
  position: relative;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.live-dot {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(229, 197, 142, 0.1);
}

.favorite-current {
  margin-left: auto;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #eed4aa;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 19px;
}

.icon-button.is-favorite {
  color: #f2c979;
  background: rgba(229, 197, 142, 0.12);
}

.current-copy {
  position: relative;
  min-height: 182px;
  padding-top: 43px;
}

.current-copy > p:first-child {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.current-copy h2 {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(23px, 2.7vw, 33px);
  font-weight: 500;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.current-copy > p:last-child {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.waveform {
  display: flex;
  height: 74px;
  gap: 4px;
  align-items: center;
  margin: 9px 0 11px;
  overflow: hidden;
  opacity: 0.75;
}

.waveform i {
  flex: 1;
  min-width: 2px;
  height: var(--h);
  background: linear-gradient(to top, rgba(229, 197, 142, 0.28), #e4c48f);
  border-radius: 5px;
  transform: scaleY(0.72);
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.is-playing .waveform i {
  animation: breathe-wave 1.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -55ms);
}

@keyframes breathe-wave {
  to { transform: scaleY(1); opacity: 0.55; }
}

.timeline input,
.volume-control input {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold-light) 0 var(--progress, 0%), rgba(255, 255, 255, 0.15) var(--progress, 0%) 100%);
}

.timeline input::-webkit-slider-thumb,
.volume-control input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 2px solid var(--plum);
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(229, 197, 142, 0.32);
}

.timeline input::-moz-range-thumb,
.volume-control input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid var(--plum);
  border-radius: 50%;
  background: var(--gold-light);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.38);
  font-family: Georgia, serif;
  font-size: 10px;
}

.transport {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  gap: clamp(9px, 2vw, 18px);
  align-items: center;
  margin: 21px 0;
}

.transport button {
  border: 0;
  background: transparent;
}

.transport-skip {
  padding: 10px 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.play-main {
  display: grid;
  width: 65px;
  height: 65px;
  padding: 0;
  color: var(--plum);
  border-radius: 50% !important;
  place-items: center;
  background: #f5e6ca !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease;
}

.play-main:hover:not(:disabled) {
  transform: scale(1.05);
}

.play-main span {
  transform: translateX(1px);
}

.utility-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  color: rgba(255, 255, 255, 0.58);
}

.utility-control span {
  font-family: Georgia, serif;
  font-size: 13px;
}

.utility-control small {
  margin-top: -4px;
  font-size: 8px;
}

.player-options {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.volume-control {
  display: flex;
  gap: 9px;
  align-items: center;
}

.volume-control span:first-child {
  color: rgba(255, 255, 255, 0.45);
  font-size: 16px;
}

.volume-control input {
  --progress: 100%;
  max-width: 110px;
  height: 3px;
}

.option-button,
.sleep-control {
  min-height: 34px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
}

.option-button {
  min-width: 44px;
  padding: 0 10px;
}

.sleep-control {
  display: flex;
  gap: 2px;
  align-items: center;
  padding-left: 10px;
}

.sleep-control select {
  max-width: 78px;
  padding: 0 7px 0 3px;
  color: rgba(255, 255, 255, 0.75);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 10px;
}

.sleep-control option {
  color: var(--ink);
}

.player-status {
  min-height: 18px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
}

.library-card {
  min-height: 690px;
  padding: clamp(25px, 4vw, 39px);
  background: var(--card);
  backdrop-filter: blur(18px);
}

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

.library-heading .eyebrow {
  margin-bottom: 5px;
}

.library-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 500;
}

.sort-button {
  padding: 8px 11px;
  color: var(--ink-soft);
  border: 0;
  background: transparent;
  font-size: 11px;
}

.sort-button span {
  display: inline-block;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.sort-button.is-desc span {
  transform: rotate(180deg);
}

.search-wrap {
  position: relative;
  margin-top: 20px;
}

.search-wrap > span {
  position: absolute;
  top: 50%;
  left: 17px;
  color: #8c8088;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-53%) rotate(-18deg);
}

.search-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 45px 0 46px;
  color: var(--ink);
  border: 1px solid rgba(74, 48, 66, 0.11);
  border-radius: 999px;
  outline: 0;
  background: rgba(237, 230, 220, 0.63);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap input:focus {
  border-color: rgba(183, 132, 70, 0.45);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(183, 132, 70, 0.08);
}

.search-wrap input::placeholder {
  color: #958a91;
  font-size: 12px;
}

.search-wrap button {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--ink-soft);
  border: 0;
  border-radius: 50%;
  background: rgba(69, 44, 60, 0.07);
  transform: translateY(-50%);
}

.filters {
  display: flex;
  gap: 7px;
  margin: 16px 0 14px;
  padding: 2px 1px 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 12px;
  color: var(--ink-soft);
  border: 1px solid rgba(73, 48, 64, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  border-color: var(--plum);
  background: var(--plum);
}

.library-subbar {
  display: flex;
  min-height: 33px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.library-subbar p {
  margin: 0;
  color: #92868e;
  font-size: 10px;
}

.favorites-filter {
  padding: 5px 8px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 10px;
}

.favorites-filter[aria-pressed="true"] {
  color: #755323;
  background: rgba(213, 172, 104, 0.15);
}

.track-list {
  max-height: 563px;
  overflow-y: auto;
  scrollbar-color: rgba(74, 47, 64, 0.18) transparent;
  scrollbar-width: thin;
}

.track-row {
  position: relative;
  display: grid;
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(72, 46, 63, 0.08);
  transition: background 0.16s ease;
}

.track-row:hover,
.track-row.is-current {
  background: rgba(116, 74, 99, 0.055);
}

.track-row.is-current {
  box-shadow: inset 3px 0 var(--gold);
}

.row-play {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--plum);
  border: 1px solid rgba(75, 35, 63, 0.18);
  border-radius: 50%;
  place-items: center;
  background: transparent;
  font-size: 10px;
}

.track-row:hover .row-play,
.track-row.is-current .row-play {
  color: white;
  border-color: var(--plum);
  background: var(--plum);
}

.row-play.has-progress::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  content: "";
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
}

.track-info {
  min-width: 0;
  padding: 11px 0;
}

.track-info button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row.is-current .track-info button {
  color: var(--plum);
  font-weight: 700;
}

.track-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 3px;
  color: #9a8f96;
  font-size: 9px;
}

.track-meta span + span::before {
  margin-right: 7px;
  content: "·";
}

.row-favorite {
  width: 34px;
  height: 34px;
  padding: 0;
  color: #a1969d;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
}

.row-favorite:hover,
.row-favorite.is-favorite {
  color: #a87530;
  background: rgba(213, 172, 104, 0.12);
}

.track-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 52px;
  height: 1px;
  overflow: hidden;
}

.track-progress i {
  display: block;
  width: var(--row-progress, 0%);
  height: 100%;
  background: var(--gold);
}

.load-more {
  display: block;
  width: 100%;
  margin-top: 13px;
  padding: 10px;
  color: var(--plum);
  border: 1px solid rgba(75, 35, 63, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.empty-state {
  padding: 63px 16px;
  color: var(--ink-soft);
  text-align: center;
}

.empty-state > span {
  display: block;
  color: var(--gold);
  font-size: 42px;
}

.empty-state h3 {
  margin: 4px 0 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.empty-state p {
  margin: 0 0 14px;
  font-size: 12px;
}

.empty-state button {
  padding: 8px 14px;
  color: var(--plum);
  border: 1px solid rgba(75, 35, 63, 0.22);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
}

footer {
  padding: 55px 24px 65px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-mark {
  position: relative;
  width: 46px;
  height: 28px;
  margin: 0 auto 13px;
}

.footer-mark::before,
.footer-mark::after {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  content: "";
  background: var(--gold);
}

.footer-mark::before { left: 0; }
.footer-mark::after { right: 0; }

.footer-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

footer p {
  margin: 0;
  font-family: var(--serif);
  font-size: 14px;
}

footer small {
  color: #9d9298;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.mobile-dock {
  display: none;
}

.shortcuts-dialog {
  width: min(430px, calc(100% - 30px));
  padding: 0;
  color: var(--ink);
  border: 1px solid rgba(75, 35, 63, 0.15);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 100px rgba(35, 22, 32, 0.28);
}

.shortcuts-dialog::backdrop {
  background: rgba(33, 22, 31, 0.45);
  backdrop-filter: blur(4px);
}

.shortcuts-dialog form {
  position: relative;
  padding: 31px;
}

.shortcuts-dialog h2 {
  margin: 0 0 19px;
  font-family: var(--serif);
  font-weight: 500;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
}

.shortcuts-dialog dl {
  margin: 0;
}

.shortcuts-dialog dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.shortcuts-dialog dt,
.shortcuts-dialog dd {
  margin: 0;
}

.shortcuts-dialog dd {
  color: var(--ink-soft);
  font-size: 12px;
}

kbd {
  display: inline-block;
  min-width: 28px;
  padding: 2px 7px;
  border: 1px solid rgba(75, 35, 63, 0.18);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(330px, calc(100% - 32px));
  padding: 10px 15px;
  color: white;
  border-radius: 999px;
  background: rgba(40, 27, 38, 0.93);
  box-shadow: 0 10px 38px rgba(25, 17, 24, 0.24);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

noscript {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 12px;
  color: white;
  background: #9b2d30;
  text-align: center;
}

@media (max-width: 980px) {
  .intro {
    min-height: 470px;
    grid-template-columns: 1fr 330px;
    gap: 40px;
    padding-right: 0;
    padding-left: 0;
  }

  .intro h1 {
    font-size: 52px;
  }

  .overview-card {
    min-height: 350px;
  }

  .halo-art {
    height: 260px;
  }

  .player-layout {
    grid-template-columns: minmax(300px, 0.75fr) minmax(410px, 1.25fr);
  }

  .now-playing-card {
    padding-right: 26px;
    padding-left: 26px;
  }

  .volume-control {
    display: none;
  }

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

@media (max-width: 760px) {
  body {
    padding-bottom: 82px;
  }

  .site-header,
  main {
    width: min(100% - 28px, 640px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small,
  .collection-pill,
  .quiet-button {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 37px;
    border-radius: 9px;
  }

  .intro {
    display: block;
    min-height: 0;
    padding: 53px 4px 56px;
  }

  .intro h1 {
    font-size: clamp(22px, 6.9vw, 30px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .desktop-title-break {
    display: none;
  }

  .intro-text {
    font-size: 15px;
  }

  .intro-actions {
    flex-wrap: wrap;
  }

  .overview-card {
    display: none;
  }

  .player-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
    padding-bottom: 40px;
  }

  .now-playing-card,
  .library-card {
    width: 100%;
    border-radius: 24px;
  }

  .now-playing-card {
    position: relative;
    top: 0;
    min-height: 625px;
    padding: 25px 24px;
  }

  .current-copy {
    min-height: 174px;
    padding-top: 35px;
  }

  .current-copy h2 {
    font-size: 27px;
  }

  .library-card {
    min-height: 600px;
    padding: 25px 17px;
  }

  .library-heading h2 {
    font-size: 29px;
  }

  .track-list {
    max-height: none;
    overflow: visible;
  }

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

  .mobile-dock:not([hidden]) {
    position: fixed;
    z-index: 30;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    display: grid;
    height: 66px;
    grid-template-columns: minmax(0, 1fr) 46px 42px;
    gap: 5px;
    align-items: center;
    padding: 7px 8px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(49, 31, 46, 0.94);
    box-shadow: 0 14px 40px rgba(30, 18, 28, 0.3);
    backdrop-filter: blur(18px);
  }

  .dock-track {
    display: grid;
    min-width: 0;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    padding: 0;
    color: white;
    border: 0;
    background: transparent;
    text-align: left;
  }

  .dock-track span:last-child {
    min-width: 0;
  }

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

  .dock-track small {
    color: var(--gold-light);
    font-size: 8px;
  }

  .dock-track strong {
    margin-top: 1px;
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 500;
  }

  .dock-disc {
    display: block;
    width: 38px;
    height: 38px;
    border: 10px solid #76506a;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: inset 0 0 0 2px #30202d;
  }

  .is-playing .dock-disc {
    animation: spin 5s linear infinite;
  }

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

  .dock-play,
  .dock-next {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
  }

  .dock-play {
    color: var(--plum);
    background: #f3dfbd;
  }

  .dock-next {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    font-size: 11px;
  }

  .toast {
    right: 16px;
    bottom: 86px;
    left: 16px;
    max-width: none;
    text-align: center;
  }

  footer {
    margin-right: -14px;
    margin-left: -14px;
  }
}

@media (max-width: 390px) {
  .primary-button,
  .secondary-button {
    padding: 0 17px;
    font-size: 13px;
  }

  .transport {
    gap: 6px;
  }

  .library-subbar {
    align-items: flex-start;
  }
}

@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;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(37, 27, 47, 0.28);
    --ink-soft: #493f4f;
  }

  .track-row,
  .search-wrap input,
  .filter-chip {
    border-color: rgba(37, 27, 47, 0.28);
  }
}
