:root {
  --ink: #1f1712;
  --muted: #75665e;
  --paper: #fff5e8;
  --paper-strong: #fffaf0;
  --accent: #d96c3b;
  --accent-dark: #8f3524;
  --mint: #78b7a4;
  --line: rgba(31, 23, 18, 0.13);
  --shadow: 0 28px 80px rgba(59, 35, 20, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Readex Pro", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(217, 108, 59, 0.28), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(120, 183, 164, 0.34), transparent 24rem),
    linear-gradient(135deg, #fff4df 0%, #f4d6be 46%, #e4b28f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(31, 23, 18, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 23, 18, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button,
input {
  font: inherit;
}

.shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 52px;
}

.hero,
.player,
.library {
  animation: rise 650ms ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", "Microsoft YaHei", serif;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 9vw, 7.8rem);
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.6rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 2.1rem;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.status-card {
  min-width: 184px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card span,
.muted,
.volume span {
  color: var(--muted);
}

.status-card strong {
  display: block;
  margin-top: 8px;
}

.player {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.cover-wrap {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(150deg, #2f211a, #b95b36 56%, #e9c197);
}

.orb {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.88), rgba(255,255,255,0.08) 58%, transparent 62%);
  filter: blur(2px);
  animation: spin 14s linear infinite;
}

.cover {
  position: relative;
  width: min(72%, 300px);
  aspect-ratio: 1;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 14px;
  align-items: center;
  margin: 36px 0 22px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

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

button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
  transition: transform 160ms ease, background 160ms ease;
}

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

.play {
  min-width: 92px;
  color: #fff;
  border-color: transparent;
  background: var(--accent);
}

.ghost.is-active {
  color: #fff;
  background: var(--accent-dark);
}

.volume {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.lyrics-card {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.lyrics {
  max-height: 190px;
  overflow: auto;
  color: var(--muted);
  line-height: 1.9;
  scroll-behavior: smooth;
}

.lyric-line {
  transition: color 180ms ease, transform 180ms ease;
}

.lyric-line.is-active {
  color: var(--ink);
  font-weight: 700;
  transform: translateX(6px);
}

.library {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 250, 240, 0.58);
  backdrop-filter: blur(18px);
}

.library-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.library input[type="search"] {
  width: min(100%, 340px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 15px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.55);
}

.playlist {
  display: grid;
  gap: 10px;
}

.track {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 12px;
  text-align: left;
}

.track img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.track small {
  color: var(--muted);
}

.track.is-active {
  border-color: rgba(217, 108, 59, 0.36);
  background: rgba(255, 255, 255, 0.62);
}

.empty {
  display: none;
  color: var(--muted);
}

.empty.is-visible {
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 820px) {
  .hero,
  .player,
  .library-head {
    grid-template-columns: 1fr;
  }

  .hero,
  .library-head {
    display: block;
  }

  .status-card {
    margin-top: 18px;
  }

  .player {
    padding: 14px;
    border-radius: 30px;
  }

  .cover-wrap {
    min-height: 300px;
  }

  .panel {
    padding: 8px;
  }

  .controls button {
    flex: 1;
  }
}
