:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --font-display: 'Cabinet Grotesk', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --header-h: 4.25rem;
  --player-h: 4.75rem;
}

:root,
[data-theme='light'] {
  --color-bg: #f3eee6;
  --color-surface: #faf6ef;
  --color-surface-2: #fffdf8;
  --color-surface-offset: #ebe4d8;
  --color-divider: #ddd4c6;
  --color-border: oklch(0.28 0.03 60 / 0.14);
  --color-text: #1c1712;
  --color-text-muted: #6d6458;
  --color-text-faint: #9a9184;
  --color-text-inverse: #f7f1e8;
  --color-primary: #a34b1a;
  --color-primary-hover: #833910;
  --color-primary-active: #64280b;
  --color-error: #a12c7b;
  --color-success: #3d6b22;
  --shadow-sm: 0 1px 2px oklch(0.28 0.03 60 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.28 0.03 60 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.28 0.03 60 / 0.14);
}

[data-theme='dark'] {
  --color-bg: #070b14;
  --color-surface: #0d1422;
  --color-surface-2: #121a2b;
  --color-surface-offset: #162033;
  --color-divider: #1e2a40;
  --color-border: oklch(0.75 0.06 250 / 0.18);
  --color-text: #e8eef8;
  --color-text-muted: #9aa8c0;
  --color-text-faint: #6f7f99;
  --color-text-inverse: #070b14;
  --color-primary: #3db4ff;
  --color-primary-hover: #6cc7ff;
  --color-primary-active: #1a8fd9;
  --color-error: #d163a7;
  --color-success: #6daa45;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 8px 28px oklch(0.45 0.12 250 / 0.25);
  --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #100e0c;
    --color-surface: #181512;
    --color-surface-2: #1f1b17;
    --color-surface-offset: #241f1a;
    --color-divider: #2c2722;
    --color-border: oklch(0.9 0.02 80 / 0.12);
    --color-text: #ede6da;
    --color-text-muted: #9a9184;
    --color-text-faint: #6e675c;
    --color-text-inverse: #161310;
    --color-primary: #e09458;
    --color-primary-hover: #f0ab72;
    --color-primary-active: #c56a2d;
    --color-error: #d163a7;
    --color-success: #6daa45;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.28);
    --shadow-md: 0 8px 24px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.5);
  }
}

body.has-player {
  padding-bottom: calc(var(--player-h) + var(--space-6));
}

.cart-actions {
  display: grid;
  gap: var(--space-3);
}

.cart-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.cart-note {
  margin-top: var(--space-3);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-3);
}

.wrap {
  width: min(100% - var(--space-8), var(--content-wide));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - var(--space-8), var(--content-default));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  min-height: 44px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: var(--text-sm);
  text-transform: uppercase;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: var(--radius-md);
}

.icon-btn:hover {
  background: var(--color-surface-offset);
}

.icon-btn:active {
  transform: scale(0.97);
}

.icon-btn:focus {
  outline: none;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count.is-on {
  display: inline-flex;
}

.nav-toggle {
  display: inline-flex;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: var(--space-2) var(--space-4) var(--space-4);
  box-shadow: var(--shadow-md);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--color-border);
}

/* Pages */
.page {
  display: none;
}

.page.is-active {
  display: block;
}

#page-about,
#page-contact {
  padding-top: calc(var(--header-h) + var(--space-4));
}

/* Hero */
.hero {
  display: grid;
  gap: var(--space-8);
  padding-block: clamp(var(--space-10), 8vw, var(--space-20));
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: end;
    gap: var(--space-12);
    min-height: 72vh;
  }
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin-bottom: var(--space-6);
}

.hero-copy {
  color: var(--color-text-muted);
  max-width: 38ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
}

.palm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.palm-bg {
  position: absolute;
  bottom: -6%;
  width: min(280px, 32vw);
  height: auto;
  opacity: 0.22;
  color: #0a1628;
}

[data-theme='dark'] .palm-bg {
  color: #5ec8ff;
  opacity: 0.18;
  filter: drop-shadow(0 0 24px rgba(62, 180, 255, 0.35));
}

.palm-bg-1 { left: -4%; transform: rotate(-8deg); }
.palm-bg-2 { right: -5%; transform: rotate(7deg); }
.palm-bg-3 { left: 38%; bottom: -18%; width: min(220px, 26vw); opacity: 0.12; transform: rotate(2deg); }

[data-theme='dark'] .palm-bg-3 { opacity: 0.1; }

body > *:not(.palm-backdrop) {
  position: relative;
  z-index: 1;
}

.hero-frame {
  pointer-events: none;
  position: absolute;
  inset: -8% -10% -2%;
  z-index: 2;
  overflow: visible;
}

.palm {
  position: absolute;
  bottom: 0;
  width: clamp(110px, 28%, 200px);
  height: auto;
  color: #061018;
  opacity: 0.92;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.45));
}

[data-theme='dark'] .palm {
  color: #04101c;
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(62, 180, 255, 0.35));
}

[data-theme='light'] .palm {
  color: #1a2433;
  opacity: 0.55;
}

.palm-left {
  left: -6%;
  transform: rotate(-8deg);
}

.palm-right {
  right: -6%;
  transform: rotate(8deg);
}

html[data-theme='dark'] body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(40, 110, 200, 0.28), transparent 62%),
    radial-gradient(ellipse 45% 35% at 92% 85%, rgba(220, 120, 40, 0.12), transparent 55%);
  background-attachment: fixed;
}




.hero-slides {
  position: relative;
  width: 100%;
  height: min(62vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-offset);
}

.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider .hero-slide:first-child {
  object-position: center 30%;
}

.hero-slider .hero-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide { transition: none; }
}

.hero-caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-primary:active {
  background: var(--color-primary-active);
  transform: translateY(1px);
}

.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--color-surface-offset);
}

.btn-small {
  min-height: 40px;
  padding: 0 var(--space-4);
}

/* Featured */
.featured {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

.featured-card {
  display: grid;
  gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .featured-card {
    grid-template-columns: 220px 1fr;
    padding: var(--space-5);
    gap: var(--space-8);
    align-items: center;
  }
}

.featured-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - var(--space-4));
  background: var(--color-surface-offset);
}

.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.featured h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.wave {
  margin-top: var(--space-5);
  width: 100%;
  height: 48px;
  border-radius: var(--radius-sm);
}

/* Catalog */
.catalog {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.chip {
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: transparent;
}

.chip:hover {
  color: var(--color-text);
  border-color: oklch(from var(--color-text) l c h / 0.28);
}

.chip[aria-pressed='true'] {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.track-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.track {
  display: grid;
  grid-template-columns: 44px 56px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 720px) {
  .track {
    grid-template-columns: 44px 64px minmax(0, 1.4fr) 90px 90px 80px auto;
  }
}

.track.is-playing {
  background: oklch(from var(--color-primary) l c h / 0.06);
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.play-btn:hover {
  background: var(--color-surface-offset);
}

.play-btn[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.track-cover {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-surface-offset);
}

@media (min-width: 720px) {
  .track-cover {
    width: 64px;
    height: 64px;
  }
}

.track-title {
  font-weight: 600;
  font-size: var(--text-sm);
}

.track-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.stems-btn {
  margin-top: var(--space-2);
}

.track-meta,
.track .price {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .track-meta,
  .track .price {
    display: block;
  }
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--text-sm);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-12) 0;
  color: var(--color-text-muted);
}

.empty-state h3 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.empty-state p {
  margin-bottom: var(--space-6);
}

/* Licenses */
.licenses {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.license-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .license-layout {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.license-copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.license-copy p {
  color: var(--color-text-muted);
}

.license-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.license-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.license-row h3 {
  font-size: var(--text-base);
  font-weight: 600;
}

.license-row p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.license-row .price {
  font-size: var(--text-lg);
  font-family: var(--font-display);
}

.license-row.is-exclusive {
  background: var(--color-surface);
  margin-inline: calc(var(--space-4) * -1);
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-top: var(--space-4);
}

/* About */
.about-hero {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

.about-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.about-grid h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  max-width: 12ch;
}

.prose p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
}

.facts {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.facts h2 {
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.facts p {
  color: var(--color-text);
  max-width: 28ch;
}

/* Contact */
.contact {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

.contact-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

.contact h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.contact-lead {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

form {
  display: grid;
  gap: var(--space-4);
}

label {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  color: var(--color-error);
  font-size: var(--text-xs);
  min-height: 1em;
}

.form-status {
  font-size: var(--text-sm);
  color: var(--color-success);
  min-height: 1.4em;
}



.feedback {
  padding: var(--space-16) 0 var(--space-10);
}

.feedback h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: var(--space-2) 0 var(--space-6);
}

.feedback-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  max-width: 42rem;
}

.feedback-stars {
  color: #f0c14b;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.feedback-card blockquote {
  margin: 0;
}

.feedback-card blockquote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--color-text);
}

.feedback-by {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.feedback-player {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  flex-wrap: wrap;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
}

.feedback-cover {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.feedback-player-meta {
  display: grid;
  gap: var(--space-2);
  flex: 1;
  min-width: 14rem;
}

.feedback-track {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
}

.feedback-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}


.feedback-audio {
  width: min(100%, 22rem);
  height: 2.25rem;
}

/* Hide Chrome/Edge download affordance if still exposed */
.feedback-audio::-webkit-media-controls-enclosure {
  overflow: hidden;
}
.feedback-audio::-webkit-media-controls-download-button {
  display: none !important;
}


.feedback-player-meta .btn {
  justify-self: start;
}

.list-signup {
  padding-bottom: var(--space-16);
}

.list-signup form {
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.list-prompt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.list-row {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 720px) {
  .list-row {
    grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 1fr) auto;
    align-items: center;
  }
}

.hp {
  position: absolute;
  left: -10000px;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0 var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer-inner a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--color-primary);
}

/* Sticky player */
.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: oklch(from var(--color-surface) l c h / 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  min-height: var(--player-h);
  transform: translateY(110%);
  transition: transform 300ms var(--ease-out);
}

.player.is-on {
  transform: translateY(0);
}

.player-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-2);
  min-height: var(--player-h);
}

.player-now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  min-width: 0;
}

.player-cover {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-surface-offset);
}

.player-title {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.seek {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.seek input[type='range'] {
  min-height: 24px;
  padding: 0;
  accent-color: var(--color-primary);
  background: transparent;
  border: 0;
}

.time {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .player-inner {
    grid-template-columns: auto minmax(160px, 220px) minmax(0, 1fr);
  }
  .seek {
    display: flex;
  }
  .player-cover {
    width: 52px;
    height: 52px;
  }
}

/* Dialogs */
dialog {
  width: min(100% - var(--space-8), 420px);
  margin: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  color: var(--color-text);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

dialog::backdrop {
  background: rgb(16 14 12 / 0.72);
}

dialog[open] {
  transform: scale(1);
  transition: transform 300ms var(--ease-out);
}

@starting-style {
  dialog[open] {
    transform: scale(0.95);
  }
}

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

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.dialog-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.license-options {
  display: grid;
  gap: var(--space-3);
}

.license-option {
  display: block;
  color: inherit;
  text-decoration: none;
  text-align: left;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.license-option:hover {
  border-color: oklch(from var(--color-text) l c h / 0.28);
}

.license-option.is-picked {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.license-option strong {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.license-option p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.cart-item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item button {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  min-height: 44px;
  padding-inline: var(--space-2);
}

.cart-item button:hover {
  color: var(--color-error);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
  font-variant-numeric: tabular-nums;
}

.img-fallback {
  background: var(--color-surface-offset);
  display: grid;
  place-items: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}
