:root {
  --ink: #102033;
  --muted: #627084;
  --paper: #f7f3ea;
  --white: #ffffff;
  --line: rgba(16, 32, 51, 0.14);
  --teal: #126c68;
  --gold: #c89037;
  --coral: #cf6044;
  --night: #0b1725;
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(18, 108, 104, 0.16), transparent 32%),
    radial-gradient(circle at 86% 6%, rgba(200, 144, 55, 0.2), transparent 30%),
    linear-gradient(180deg, #fbf8f1 0%, #edf4f1 100%);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
iframe {
  font: inherit;
}

.home-shell {
  min-height: 100vh;
}

.hero {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 72px 20px 48px;
}

.hero-inner {
  width: min(980px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 14vw, 170px);
  line-height: 0.95;
  letter-spacing: 0;
}

.subtle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
}

.music-panel {
  padding: clamp(38px, 7vw, 82px) clamp(16px, 4vw, 56px) clamp(56px, 9vw, 110px);
}

.section-heading,
.player-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.player-card,
.track-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.player-card {
  position: sticky;
  top: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(207, 96, 68, 0.14);
}

.player-frame-wrap {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--night);
}

.player-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.player-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.player-actions button,
.player-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 900;
}

.player-actions button {
  color: var(--white);
  border: 0;
  background: var(--teal);
  cursor: pointer;
}

.player-actions a {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
}

.track-list {
  padding: 8px;
}

#tracks {
  display: grid;
  gap: 8px;
}

.track {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.track:hover,
.track:focus-within,
.track.is-active {
  border-color: rgba(18, 108, 104, 0.24);
  background: rgba(18, 108, 104, 0.08);
}

.track-play {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.track-index {
  width: 34px;
  color: var(--gold);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.track-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.track-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .hero {
    min-height: 42vh;
    place-items: end start;
  }

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

  .player-card {
    position: static;
  }

  .player-frame-wrap iframe {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 52px;
  }

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

  .track-link {
    grid-column: 1;
    justify-self: start;
    padding-left: 46px;
  }
}
