:root {
  color-scheme: dark;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #25121d;
  color: #fff8ed;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(38, 12, 27, 0.92), rgba(65, 22, 42, 0.76) 48%, rgba(22, 9, 21, 0.9)),
    url("assets/dreamy-wedding-background.webp") center / cover fixed,
    #25121d;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  inset: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 214, 153, 0.23), transparent 23rem),
    radial-gradient(circle at 8% 70%, rgba(246, 157, 192, 0.12), transparent 26rem);
  mix-blend-mode: screen;
}

body::after {
  inset: 1rem;
  border: 1px solid rgba(255, 239, 210, 0.22);
  border-radius: 1.8rem;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: 0.45; }

button:focus-visible, input:focus-visible {
  outline: 3px solid #ffe4aa;
  outline-offset: 3px;
}

.app-shell { width: min(100% - 2rem, 60rem); margin: 0 auto; padding: 3rem 0 4.5rem; }
.masthead { margin-bottom: 1.75rem; text-shadow: 0 0.15rem 1.4rem rgba(36, 7, 25, 0.85); }
.eyebrow, .section-label { margin: 0 0 0.35rem; color: #ffe0a0; font-weight: 700; letter-spacing: 0.14em; font-size: 0.78rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0.35rem; font-family: Georgia, "Songti SC", serif; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.12; letter-spacing: 0.04em; }
.subtitle, .track-meta, .status { color: #d6c6cd; }
.subtitle { margin-bottom: 0; }

.player-card, .playlist-section {
  border: 1px solid rgba(255, 234, 193, 0.43);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(81, 32, 53, 0.86), rgba(42, 17, 33, 0.9));
  box-shadow: 0 1.25rem 3.5rem rgba(13, 2, 10, 0.42), inset 0 1px rgba(255, 245, 224, 0.1);
  backdrop-filter: blur(0.65rem);
}

.player-card { padding: clamp(1.25rem, 4vw, 2rem); }
.now-playing-copy h2 { margin-bottom: 0.5rem; font-size: clamp(1.4rem, 4vw, 2rem); }
.track-meta { margin-bottom: 1.5rem; min-height: 1.5rem; }

.timeline { margin: 1.25rem 0; }
.time-row { display: flex; justify-content: space-between; gap: 1rem; color: #eadde1; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
input[type="range"] { accent-color: #e8c57d; width: 100%; }

.transport { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin: 1.5rem 0 1.25rem; }
.icon-button, .play-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 237, 0.55);
  border-radius: 50%;
  color: #fff8ed;
  background: transparent;
  transition: transform 120ms ease, background 120ms ease;
}
.icon-button { width: 3rem; height: 3rem; font-size: 1.3rem; }
.play-button { width: 4.5rem; height: 4.5rem; border-color: #ffe0a0; background: linear-gradient(145deg, #ffe7af, #d99c60); color: #3a1d2e; font-size: 1.55rem; box-shadow: 0 0.6rem 1.35rem rgba(44, 9, 29, 0.35); }
.icon-button:not(:disabled):hover, .play-button:not(:disabled):hover { transform: translateY(-2px); }
.icon-button:not(:disabled):hover { background: rgba(255, 248, 237, 0.12); }
.play-button:not(:disabled):hover { background: #ffe0a0; }

.volume-control { display: grid; grid-template-columns: auto minmax(7rem, 16rem) auto; align-items: center; justify-content: center; gap: 0.75rem; color: #e8c57d; }
.status { min-height: 1.5rem; margin: 1.25rem 0 0; text-align: center; }
.status[data-tone="error"] { color: #ffb9ab; }

.playlist-section { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading h2 { margin-bottom: 0; font-size: 1.35rem; }
.track-count { color: #e8c57d; white-space: nowrap; }
.playlist { display: grid; gap: 1.2rem; }
.stage-group + .stage-group { border-top: 1px solid rgba(255, 248, 237, 0.16); padding-top: 1.2rem; }
.stage-title { margin: 0 0 0.55rem; color: #e8c57d; font-size: 1rem; }
.track-list { display: grid; gap: 0.4rem; }
.track-button {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: inherit;
  text-align: left;
  background: rgba(255, 248, 237, 0.045);
}
.track-button:hover, .track-button.is-active { border-color: rgba(232, 197, 125, 0.75); background: rgba(232, 197, 125, 0.13); }
.track-number { color: #e8c57d; font-variant-numeric: tabular-nums; }
.track-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.track-artist { overflow: hidden; max-width: 11rem; color: #d6c6cd; text-overflow: ellipsis; white-space: nowrap; font-size: 0.88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 34rem) {
  body::after { inset: 0.5rem; border-radius: 1rem; }
  .app-shell { width: min(100% - 1.25rem, 60rem); padding-top: 2rem; }
  .track-button { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .track-artist { grid-column: 2; max-width: none; }
}
