:root {
  color-scheme: light;
  --paper: #f8f4ec;
  --ink: #24211b;
  --muted: #756d60;
  --line: #d8cebd;
  --accent: #54736c;
  --accent-dark: #2f4b46;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(84, 115, 108, 0.16), transparent 34rem),
    linear-gradient(145deg, #fbf8f1 0%, var(--paper) 58%, #efe6d7 100%);
  font-family: Georgia, "Times New Roman", serif;
}

.player-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.player {
  width: min(100%, 430px);
  padding: 34px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.82);
  box-shadow: 0 20px 60px rgba(60, 47, 31, 0.14);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 12vw, 4rem);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
}

.subhead {
  margin: 18px 0 28px;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.tracks {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.track-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  font: inherit;
  text-align: left;
}

.track-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(84, 115, 108, 0.12);
}

.track-title {
  display: block;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

.track-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
}

.primary-play {
  width: 100%;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  border: 0;
  border-radius: 8px;
  color: #fffaf1;
  background: var(--accent-dark);
  box-shadow: 0 14px 34px rgba(47, 75, 70, 0.28);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.primary-play:disabled {
  cursor: wait;
  opacity: 0.58;
}

.primary-play.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 250, 241, 0.42);
  border-top-color: #fffaf1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

audio {
  display: block;
  width: 100%;
  height: 48px;
  accent-color: var(--accent);
}
