:root {
  color-scheme: light;
  --bg: #eef2ee;
  --bg-2: #dfe9ec;
  --paper: #fffaf0;
  --surface: rgba(255, 250, 240, 0.84);
  --surface-solid: #fffaf0;
  --text: #242321;
  --muted: #746f66;
  --line: rgba(51, 46, 39, 0.16);
  --accent: #5b8f6b;
  --accent-dark: #2f6746;
  --accent-warm: #c87955;
  --accent-soft: #dce7d7;
  --shadow: 0 24px 70px rgba(44, 38, 30, 0.14);
  --soft-shadow: 0 14px 38px rgba(44, 38, 30, 0.1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(36, 35, 33, 0.035) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(36, 35, 33, 0.025) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(135deg, rgba(200, 121, 85, 0.12), transparent 34%),
    linear-gradient(220deg, rgba(74, 107, 132, 0.2), transparent 42%),
    linear-gradient(310deg, rgba(91, 143, 107, 0.16), transparent 38%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

button,
select,
input {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  right: max(-120px, -9vw);
  top: 128px;
  width: clamp(300px, 34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f4f0e8 0 8%, #262521 8.5% 12%, transparent 12.5%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.16) 0 2px, rgba(22, 22, 19, 0.08) 2px 6px),
    conic-gradient(from 20deg, #191815, #302d27, #171613, #3b362f, #191815);
  box-shadow: 0 36px 80px rgba(36, 35, 33, 0.2);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.app-shell::after {
  content: "";
  position: fixed;
  left: -120px;
  bottom: 78px;
  width: clamp(260px, 26vw, 420px);
  height: clamp(190px, 20vw, 320px);
  border: 1px solid rgba(51, 46, 39, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.62), rgba(255, 250, 240, 0.1)),
    repeating-linear-gradient(0deg, rgba(36, 35, 33, 0.07) 0 1px, transparent 1px 18px);
  transform: rotate(-8deg);
  box-shadow: 0 28px 70px rgba(44, 38, 30, 0.12);
  pointer-events: none;
  z-index: 0;
}

.topbar,
.player,
.controls,
.site-footer,
.policy-page {
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.66);
  backdrop-filter: blur(18px) saturate(1.08);
}

.brand-lockup {
  display: grid;
  gap: 8px;
}

.brand {
  color: #1f211d;
  font-family: var(--font-display);
  font-size: 40px;
  font-variation-settings:
    "SOFT" 70,
    "WONK" 1;
  font-weight: 820;
  line-height: 0.92;
}

.brand::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 2px;
  background: var(--accent-warm);
  transform: translateY(-2px) rotate(8deg);
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.site-footer {
  padding: 24px 44px 32px;
  text-align: center;
}

.site-footer a,
.policy-link {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  text-underline-offset: 5px;
}

.site-footer a:hover,
.policy-link:hover {
  text-decoration: underline;
}

.policy-page {
  width: min(840px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(44px, 8vh, 80px) 0;
}

.policy-page h1 {
  margin: 0;
  text-align: left;
}

.policy-page .updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.policy-content {
  margin-top: 38px;
  display: grid;
  gap: 28px;
}

.policy-content section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-content h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 760;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.policy-content p {
  margin: 0;
}

.policy-content ul {
  margin: 0;
  padding-left: 22px;
}

.player {
  width: min(930px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(44px, 7vh, 82px) 0 30px;
  text-align: center;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.overline::before,
.overline::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(47, 103, 70, 0.36);
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 82px);
  font-variation-settings:
    "SOFT" 62,
    "WONK" 1;
  line-height: 0.94;
  font-weight: 820;
  text-wrap: balance;
  letter-spacing: 0;
}

.track-meta {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.35;
  text-wrap: balance;
}

.source-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  text-underline-offset: 5px;
}

.source-link:hover {
  text-decoration: underline;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(42px, 7vh, 70px);
  gap: clamp(24px, 5vw, 54px);
}

.play-button,
.transport-button {
  border: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.transport-button {
  width: clamp(58px, 6vw, 72px);
  height: clamp(58px, 6vw, 72px);
  border: 1px solid rgba(51, 46, 39, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 250, 240, 0.86)),
    var(--surface-solid);
  color: var(--accent-dark);
  box-shadow: var(--soft-shadow);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.transport-button:hover {
  border-color: rgba(47, 103, 70, 0.44);
  background: #fffdf7;
  box-shadow: 0 18px 42px rgba(44, 38, 30, 0.13);
  transform: translateY(-2px);
}

.transport-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.play-button {
  position: relative;
  width: clamp(104px, 11vw, 132px);
  height: clamp(104px, 11vw, 132px);
  border-radius: 50%;
  overflow: hidden;
  background: #4f865f;
  color: #fffaf0;
  box-shadow:
    0 24px 48px rgba(47, 103, 70, 0.24),
    inset 0 0 0 1px rgba(255, 250, 240, 0.28);
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.play-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 240, 0.84) 0 7%, rgba(255, 250, 240, 0.18) 7.5% 15%, transparent 15.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 250, 240, 0.18) 0 1px, transparent 1px 9px),
    conic-gradient(from 18deg, #6fa178, #3f7b58, #83a56f, #c87955, #5b8f6b, #6fa178);
  pointer-events: none;
  z-index: 0;
}

.play-button::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.play-button:hover {
  filter: saturate(1.08) brightness(0.98);
  transform: translateY(-2px) scale(1.01);
}

body.is-loading .play-button {
  animation: loadingPulse 1.15s ease-in-out infinite;
  filter: saturate(0.88);
}

body.is-playing .play-button::before {
  animation: playingDiscSpin 8s linear infinite;
}

.play-button svg {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.pause-icon,
body.is-playing .play-icon {
  display: none;
}

body.is-playing .pause-icon {
  display: block;
}

body.is-loading .play-icon,
body.is-loading .pause-icon {
  display: none;
}

body.is-loading .play-button::after {
  content: "";
  position: relative;
  inset: auto;
  width: 34px;
  height: 34px;
  border: 4px solid rgba(255, 250, 240, 0.35);
  border-top-color: #fffaf0;
  border-radius: 50%;
  animation: loadingSpin 900ms linear infinite;
  z-index: 2;
}

.playback-status {
  min-height: 22px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}

body.is-loading .playback-status {
  color: var(--accent-dark);
  font-weight: 700;
}

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

@keyframes loadingPulse {
  50% {
    box-shadow:
      0 30px 58px rgba(47, 103, 70, 0.28),
      inset 0 0 0 1px rgba(255, 250, 240, 0.34);
  }
}

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

.controls {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr;
  gap: 0;
  border: 1px solid rgba(51, 46, 39, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 250, 240, 0.74)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.control {
  display: grid;
  gap: 14px;
  padding: 24px 26px;
  border-right: 1px solid rgba(51, 46, 39, 0.12);
}

.control:last-child {
  border-right: 0;
}

.control span {
  color: #36342e;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

select,
input[type="range"] {
  width: 100%;
}

.category-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.category-button {
  min-height: 54px;
  border: 1px solid rgba(51, 46, 39, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 780;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.category-button:hover {
  border-color: rgba(47, 103, 70, 0.42);
  background: #fffdf7;
  transform: translateY(-1px);
}

.category-button.is-active {
  border-color: rgba(47, 103, 70, 0.2);
  background:
    linear-gradient(135deg, rgba(200, 121, 85, 0.18), transparent),
    var(--accent);
  color: #fffaf0;
}

select {
  height: 54px;
  padding: 0 42px 0 16px;
  appearance: none;
  border: 1px solid rgba(51, 46, 39, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, #403d36 50%) calc(100% - 23px) 24px /
      7px 7px no-repeat,
    linear-gradient(135deg, #403d36 50%, transparent 50%) calc(100% - 17px) 24px /
      7px 7px no-repeat,
    rgba(255, 253, 247, 0.82);
  color: var(--text);
  font-size: 16px;
  font-weight: 620;
}

select:focus,
.category-button:focus-visible,
input[type="range"]:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(91, 143, 107, 0.28);
  outline-offset: 3px;
}

.volume-control {
  align-content: center;
}

input[type="range"] {
  accent-color: var(--accent);
  height: 54px;
}

@media (max-width: 820px) {
  .app-shell::before {
    right: -180px;
    top: 116px;
    opacity: 0.18;
  }

  .topbar {
    min-height: 88px;
    padding: 0 20px;
  }

  .brand {
    font-size: 32px;
  }

  .brand-subtitle {
    font-size: 13px;
  }

  .player {
    padding-top: 34px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .category-buttons {
    grid-template-columns: 1fr;
  }

  .control {
    border-right: 0;
    border-bottom: 1px solid rgba(51, 46, 39, 0.12);
  }

  .control:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .app-shell::after {
    display: none;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .transport {
    gap: 16px;
  }

  .transport-button {
    width: 54px;
    height: 54px;
  }

  .transport-button svg {
    width: 26px;
    height: 26px;
  }

  .controls {
    margin-bottom: 20px;
  }
}
