:root {
  --bg: #fff9f0;
  --card: #ffffff;
  --text: #2d2a26;
  --muted: #8a8682;
  --line: #eee3d4;
  --coral: #ff6b6b;
  --blue: #4f8cff;
  --yellow: #ffd93d;
  --shadow: 0 4px 16px rgba(0,0,0,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.top {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 42%, #ffd93d 100%);
  color: #fff;
  position: relative;
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 24px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
}
.top-inner {
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 38px;
  position: relative;
  z-index: 1;
}
.back {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.title-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 380px);
  gap: 18px;
  align-items: end;
  margin-top: 16px;
}
h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}
p { margin: 8px 0 0; opacity: .9; }
input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  font: inherit;
  outline: none;
  box-shadow: var(--shadow);
}
main {
  width: min(980px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 0 0 44px;
}
.now {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-top: -12px;
}
.disc {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 9px, #2d2a26 10px 15px, transparent 16px),
    conic-gradient(from 30deg, #4f8cff, #51cf66, #ffd93d, #ff6b6b, #845ef7, #4f8cff);
  box-shadow: inset 0 0 0 8px rgba(255,255,255,.35);
}
.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.15;
}
.now-copy p {
  margin: 2px 0 10px;
  color: var(--muted);
  opacity: 1;
}
audio { width: 100%; display: block; }
.toolbar {
  margin: 18px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.toolbar button, select {
  border: 0;
  border-radius: 999px;
  background: #e8f4fd;
  color: #1a7fcc;
  font: inherit;
  font-weight: 800;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
}
select {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #1a7fcc 50%), linear-gradient(135deg, #1a7fcc 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.list {
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.track {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 16px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.track:last-child { border-bottom: 0; }
.track:hover { background: #fff5ee; }
.track.active {
  background: #fff0e6;
  box-shadow: inset 4px 0 0 var(--coral);
}
.num {
  color: #bbb0a5;
  font-weight: 800;
  font-size: 13px;
}
.song {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.song strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.song small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 680px) {
  .title-row { grid-template-columns: 1fr; align-items: start; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .controls { justify-content: flex-start; }
  .now { grid-template-columns: 1fr; }
  .disc { display: none; }
  .track { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 11px 12px; }
}
