:root {
  color-scheme: light;
  --page: #f7f3ea;
  --surface: #fffdf8;
  --ink: #181713;
  --muted: #6d665b;
  --line: #ded6c8;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #d9eee9;
  --rose: #c2415c;
  --shadow: 0 18px 44px rgba(44, 38, 28, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(rgba(24, 23, 19, 0.035) 1px, transparent 1px) 0 0 / 100% 54px,
    radial-gradient(circle at 10% 0%, rgba(15, 118, 110, 0.13), transparent 26rem),
    linear-gradient(135deg, #f8f1df 0%, #f7f3ea 42%, #e9f3ee 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(18px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.sound-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 8px;
  color: #f9fffc;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.22);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.sound-button:active {
  transform: translateY(1px);
}

.sound-button.is-ready {
  color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: none;
}

.sound-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-strong);
  background: #fffdf8;
  font-weight: 800;
}

.hero {
  position: relative;
  margin-bottom: 24px;
  padding: 12px 2px 6px;
}

.hero::after {
  content: "";
  display: block;
  width: min(100%, 440px);
  height: 12px;
  margin-top: 22px;
  border-block: 2px solid rgba(24, 23, 19, 0.18);
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(194, 65, 92, 0.8) 8% 10%, transparent 10% 18%, rgba(15, 118, 110, 0.85) 18% 20%, transparent 20% 32%, rgba(194, 65, 92, 0.7) 32% 34%, transparent 34% 50%, rgba(15, 118, 110, 0.72) 50% 52%, transparent 52% 100%),
    linear-gradient(rgba(24, 23, 19, 0.18) 2px, transparent 2px) 0 4px / 100% 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 74px);
  line-height: 0.92;
  letter-spacing: 0;
}

.track-list {
  display: grid;
  gap: 12px;
}

.track-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 106px;
  padding: 16px;
  border: 1px solid rgba(97, 88, 76, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.track-card.is-playing {
  border-color: rgba(15, 118, 110, 0.45);
  background: #ffffff;
}

.track-action {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.track-action:active {
  transform: scale(0.97);
}

.track-card.is-playing .track-action {
  background: var(--rose);
}

.track-action-icon {
  display: block;
  margin-left: 2px;
  font-size: 18px;
  line-height: 1;
}

.track-card.is-playing .track-action-icon {
  width: 16px;
  height: 16px;
  margin-left: 0;
  border-radius: 2px;
  background: currentColor;
  font-size: 0;
}

.track-main {
  min-width: 0;
}

.track-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.track-heading h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.track-duration,
.track-meta {
  color: var(--muted);
  font-size: 13px;
}

.track-duration {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.track-meta {
  margin: 5px 0 12px;
  line-height: 1.35;
}

.track-progress {
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 12px;
  }

  .topbar {
    justify-content: stretch;
  }

  .sound-button {
    width: 100%;
    justify-content: center;
  }

  .track-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    min-height: 100px;
    padding: 14px 12px;
  }

  .track-action {
    width: 48px;
    height: 48px;
  }

  .track-heading h2 {
    font-size: 16px;
  }
}
