﻿:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6f6a62;
  --paper: #fbfaf7;
  --line: #e8e1d7;
  --soft: #f2eee7;
  --brand: #116a5b;
  --gold: #c08a2b;
  --rose: #b85f62;
  --shadow: 0 18px 50px rgba(23, 23, 23, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.welcome {
  min-height: 100svh;
  display: grid;
  align-content: end;
  gap: 30px;
  padding: max(24px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom));
}

.welcome__mark span {
  display: block;
  max-width: 10ch;
  font-size: clamp(54px, 18vw, 88px);
  line-height: .86;
  font-weight: 780;
  letter-spacing: 0;
}

.welcome__mark p {
  max-width: 23rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.welcome__actions,
.auth-actions {
  display: grid;
  gap: 12px;
}

.button {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  font-weight: 760;
  background: #fff;
  color: var(--ink);
}

.button--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button--brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.button--light {
  background: #fff;
}

.button--text {
  min-height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand);
}

.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.auth-copy {
  align-self: end;
  padding-bottom: 24px;
}

.auth-copy h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(42px, 14vw, 72px);
  line-height: .92;
  letter-spacing: 0;
}

.auth-copy p,
.empty p,
.legal-page p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-panel {
  min-height: 40svh;
  display: grid;
  align-content: end;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(17, 106, 91, .12);
}

.notice {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  color: var(--muted);
  line-height: 1.45;
}

.app-shell {
  width: 100%;
  min-height: 100svh;
  padding: calc(70px + env(safe-area-inset-top)) 16px calc(146px + env(safe-area-inset-bottom));
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: calc(58px + env(safe-area-inset-top));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top) 16px 9px;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 225, 215, .72);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 160deg, var(--brand), var(--gold), var(--rose), var(--brand));
}

.brand-lockup strong {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.brand-lockup small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.icon-button,
.dock a,
.track-play {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  height: 66px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(232, 225, 215, .9);
  border-radius: 26px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dock a {
  min-width: 0;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.dock a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.page-stack {
  display: grid;
  gap: 24px;
}

.hero-record {
  display: grid;
  gap: 16px;
}

.hero-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: var(--soft);
}

.hero-art img,
.record-card img,
.collection-art img,
.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-copy h1,
.collection-copy h1 {
  margin: 0;
  font-size: clamp(34px, 11vw, 54px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy p,
.meta-line {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(164px, 42vw);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.record-card {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.record-card__art {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  background: var(--soft);
}

.record-card strong,
.track-main strong,
.mini-cover strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.18;
}

.record-card span,
.track-main span,
.mini-cover span,
.admin-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

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

.track-row {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(232, 225, 215, .72);
}

.track-index {
  color: var(--muted);
  font-weight: 760;
  text-align: center;
}

.track-play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.player-dock {
  position: fixed;
  z-index: 28;
  left: 14px;
  right: 14px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  min-height: 56px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(232, 225, 215, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 42px rgba(23, 23, 23, .08);
  backdrop-filter: blur(18px);
  transform: translateY(120%);
  transition: transform .22s ease;
}

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

.player-cover {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
}

.collection-head {
  display: grid;
  gap: 16px;
}

.collection-art {
  width: min(64vw, 280px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--soft);
}

.empty {
  min-height: 50svh;
  display: grid;
  align-content: center;
  gap: 16px;
}

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

.admin-metric,
.admin-row {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 14px;
}

.admin-metric strong {
  display: block;
  font-size: 28px;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  gap: 4px;
}

.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 44px 20px;
}

.legal-page h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 0;
}

@media (min-width: 760px) {
  .app-shell {
    max-width: 980px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-record,
  .collection-head {
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    align-items: end;
  }

  .hero-art {
    border-radius: 34px;
  }

  .dock,
  .player-dock {
    left: 50%;
    right: auto;
    width: min(560px, calc(100vw - 28px));
    transform: translateX(-50%);
  }

  .player-dock {
    transform: translate(-50%, 120%);
  }

  .player-dock.is-open {
    transform: translate(-50%, 0);
  }

  .rail {
    grid-auto-columns: 196px;
  }
}

/* Dark Mountain Melodies skin */
:root {
  color-scheme: dark;
  --ink: #f6f1e8;
  --muted: #a7a096;
  --paper: #090b0d;
  --line: rgba(255, 255, 255, .12);
  --soft: #171b1f;
  --panel: #111519;
  --panel-strong: #181e23;
  --brand: #22b99a;
  --gold: #d7a84e;
  --rose: #d46f76;
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

html,
body {
  background: radial-gradient(circle at 24% -10%, rgba(34, 185, 154, .18), transparent 30%), var(--paper);
  color: var(--ink);
}

.button,
.input,
.notice,
.icon-button,
.dock a,
.track-play,
.admin-metric,
.admin-row {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

.button--dark,
.button--brand,
.dock a.is-active {
  background: linear-gradient(135deg, var(--gold), #f0d98a);
  border-color: rgba(240, 217, 138, .82);
  color: #111315;
}

.button--light {
  background: var(--panel-strong);
  color: var(--ink);
}

.button--text {
  background: transparent;
  color: var(--gold);
}

.button:disabled {
  cursor: wait;
  opacity: .64;
}

.input::placeholder {
  color: #777f85;
}

.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 168, 78, .14);
}

.topbar {
  background: rgba(9, 11, 13, .84);
  border-bottom-color: var(--line);
}

.brand-dot {
  background: conic-gradient(from 160deg, var(--gold), var(--brand), var(--rose), var(--gold));
  box-shadow: 0 0 26px rgba(215, 168, 78, .2);
}

.dock,
.player-dock {
  background: rgba(17, 21, 25, .9);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.hero-art,
.record-card__art,
.collection-art,
.player-cover {
  background: linear-gradient(145deg, #171b1f, #0e1114);
}

.track-row {
  border-bottom-color: rgba(255, 255, 255, .09);
}

.auth-panel {
  border-top-color: var(--line);
}

.record-card__art,
.hero-art,
.collection-art {
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

/* Compact production polish */
.brand-logo {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--brand), var(--rose));
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-dot {
  display: none;
}

.page-intro {
  padding-top: 6px;
}

.hero-record--compact {
  gap: 18px;
}

.hero-art--banner {
  aspect-ratio: 16 / 10;
  max-height: 330px;
  border-radius: 20px;
}

.collection-head--calm,
.track-hero,
.artist-hero {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.collection-art--small,
.artist-photo {
  width: 108px;
  height: 108px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--soft);
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-hero .button {
  margin-top: 16px;
  width: fit-content;
  min-width: 132px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.rail--calm {
  grid-auto-columns: minmax(144px, 38vw);
}

.record-card__art,
.hero-art,
.collection-art,
.artist-photo {
  border-radius: 18px;
  box-shadow: none;
}

.record-card {
  gap: 8px;
}

.artist-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.artist-strip::-webkit-scrollbar {
  display: none;
}

.artist-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
}

.artist-pill img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
}

.quiet-list,
.admin-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.quiet-row,
.admin-row,
.empty-row {
  display: grid;
  gap: 4px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.quiet-row strong,
.admin-row strong,
.empty-row strong {
  line-height: 1.2;
}

.quiet-row span,
.admin-row span,
.empty-row,
.muted-copy {
  color: var(--muted);
  line-height: 1.4;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.admin-metric {
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .045);
}

.quick-form {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
}

.quick-form h3 {
  margin: 0 0 2px;
  font-size: 16px;
}

.quick-form textarea {
  min-height: 118px;
  padding-top: 14px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.lyrics-sheet {
  position: fixed;
  z-index: 34;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72svh, 620px);
  overflow: auto;
  border-top: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: rgba(17, 21, 25, .97);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .42);
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
}

.lyrics-sheet:not([open]) {
  max-height: 64px;
  overflow: hidden;
}

.lyrics-sheet summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  list-style: none;
  font-weight: 780;
  cursor: pointer;
}

.lyrics-sheet summary::-webkit-details-marker {
  display: none;
}

.pull-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.lyrics-body {
  display: grid;
  gap: 14px;
  padding-bottom: 72px;
  color: #eee7dc;
  line-height: 1.65;
}

.lyrics-body p {
  margin: 0;
}

.track-page {
  padding-bottom: 44svh;
}

.site-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: max(24px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
}

.site-hero {
  display: grid;
  gap: 24px;
}

.site-logo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), var(--brand), var(--rose));
}

.site-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-hero h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(50px, 16vw, 92px);
  line-height: .88;
}

.site-hero p {
  max-width: 33rem;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.site-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.site-strip span {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  text-align: center;
  font-weight: 720;
}

@media (min-width: 760px) {
  .hero-art--banner {
    max-height: 380px;
  }

  .collection-head--calm,
  .track-hero,
  .artist-hero {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .collection-art--small,
  .artist-photo {
    width: 160px;
    height: 160px;
  }

  .record-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lyrics-sheet {
    left: 50%;
    right: auto;
    width: min(720px, calc(100vw - 28px));
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
  }

  .site-page {
    max-width: 980px;
    margin: 0 auto;
  }
}

/* Softer airy pass */
:root {
  --paper: #0b0d10;
  --panel: #14191e;
  --panel-strong: #1a2026;
  --line: rgba(255, 255, 255, .105);
  --muted: #b6aea3;
}

.app-shell {
  padding-top: calc(82px + env(safe-area-inset-top));
}

.topbar {
  height: calc(68px + env(safe-area-inset-top));
  padding-bottom: 11px;
  background: rgba(11, 13, 16, .78);
}

.brand-lockup {
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle at 30% 20%, rgba(240, 217, 138, .95), rgba(34, 185, 154, .7) 45%, rgba(212, 111, 118, .72));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 38px rgba(0, 0, 0, .28);
}

.brand-logo img {
  border-radius: 50%;
}

.brand-lockup strong {
  font-size: 17px;
}

.icon-button,
.track-play,
.dock a,
.round-action span {
  border-radius: 50%;
}

.icon-button,
.track-play {
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.65;
}

.dock {
  height: 70px;
  border-radius: 999px;
  padding: 9px;
  gap: 10px;
}

.dock a {
  border-radius: 50%;
  width: 52px;
  height: 52px;
  justify-self: center;
}

.home-intro {
  padding: 8px 2px 0;
}

.home-intro h1,
.page-intro h1,
.account-hero h1 {
  font-size: clamp(38px, 12vw, 62px);
}

.hero-art--banner {
  display: none;
}

.page-stack {
  gap: 28px;
}

.rail--calm {
  grid-auto-columns: minmax(136px, 36vw);
}

.record-card__art {
  border-radius: 24px;
  background: rgba(255,255,255,.045);
}

.collection-art--small,
.artist-photo {
  border-radius: 26px;
}

.track-row {
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr) 52px;
  gap: 14px;
}

.track-play {
  width: 52px;
  height: 52px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 780;
  color: #111315;
  background: #f0d98a;
}

.tag-pill.tone-1 { background: #83e0c5; }
.tag-pill.tone-2 { background: #e79aa0; }
.tag-pill.tone-3 { background: #b8c7ff; }
.tag-pill.tone-4 { background: #d8b8ff; }

.account-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.account-orb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(240, 217, 138, .9), rgba(34, 185, 154, .72));
  color: #111315;
}

.account-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.round-action {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.round-action span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .055);
}

.round-action strong {
  font-size: 12px;
  line-height: 1.2;
}

.quiet-row,
.admin-row,
.empty-row {
  padding: 17px 2px;
}

.player-dock {
  border-radius: 999px;
  min-height: 62px;
  grid-template-columns: 48px minmax(0, 1fr) 52px;
  padding: 7px 8px;
}

.player-cover {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

@media (min-width: 760px) {
  .rail--calm {
    grid-auto-columns: 172px;
  }
}

/* Header wordmark cleanup */
.brand-wordmark {
  display: block;
  min-width: 0;
}

.brand-wordmark strong,
.brand-lockup strong {
  font-size: 20px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 820;
}

.brand-lockup small {
  display: none;
}

@media (max-width: 380px) {
  .brand-wordmark strong,
  .brand-lockup strong {
    font-size: 18px;
  }
}

/* Final polish pass */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.topbar {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-bottom: 4px;
}

.app-shell {
  padding-top: calc(70px + env(safe-area-inset-top));
}

.brand-logo {
  width: 50px;
  height: 50px;
}

.collection-copy h1,
.track-now h1,
.artist-hero h1 {
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1.04;
}

.record-card .tag-row,
.track-main .tag-row,
.quiet-row .tag-row,
.collection-copy .tag-row,
.track-now__copy .tag-row,
.hero-copy .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  min-width: 0;
}

.record-card .tag-pill,
.track-main .tag-pill,
.quiet-row .tag-pill,
.collection-copy .tag-pill,
.track-now__copy .tag-pill,
.hero-copy .tag-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 10.5px;
  letter-spacing: 0;
}

.soft-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.soft-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.mini-tile {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.035);
  color: var(--ink);
}

.mini-tile > span:first-child {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: #f0d98a;
}

.mini-tile small,
.muted-copy {
  color: var(--muted);
  line-height: 1.5;
}

.settings-list {
  display: grid;
  gap: 10px;
}

.setting-toggle {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--ink);
}

.setting-toggle input {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  position: relative;
}

.setting-toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.setting-toggle input:checked {
  background: #83e0c5;
}

.setting-toggle input:checked::after {
  transform: translateX(20px);
}

.quick-form--soft {
  display: grid;
  gap: 12px;
}

.track-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.track-now__art {
  width: min(74vw, 300px);
  aspect-ratio: 1;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.track-now__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-now__copy {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: #83e0c5;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 780;
}

.play-cta {
  width: max-content;
  min-height: 54px;
  margin-top: 10px;
  gap: 10px;
  border-radius: 999px;
}

.play-cta .icon {
  width: 18px;
  height: 18px;
}

.lyrics-sheet {
  position: static;
  transform: none;
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  padding: 0;
}

.lyrics-sheet summary {
  cursor: pointer;
  list-style: none;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 780;
}

.lyrics-sheet summary::-webkit-details-marker {
  display: none;
}

.lyrics-body {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.pull-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
}

.notice {
  margin: 0;
  color: #83e0c5;
  font-size: 13px;
}

.notice[data-error] {
  color: #e79aa0;
}

@media (min-width: 760px) {
  .track-now {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

/* Detail balance pass */
:root {
  --chip-bg: rgba(240, 217, 138, .16);
  --chip-fg: #f8e7a8;
  --chip-ring: rgba(240, 217, 138, .28);
  --chip-dot: #f0d98a;
  --chip-halo: rgba(240, 217, 138, .08);
  --touch-glow: 0 14px 36px rgba(240, 217, 138, .16), inset 0 1px 0 rgba(255,255,255,.12);
}

.topbar {
  height: calc(72px + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: linear-gradient(180deg, rgba(11, 13, 16, .94), rgba(11, 13, 16, .82));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.app-shell {
  padding-top: calc(78px + env(safe-area-inset-top));
}

.brand-lockup {
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  padding: 5px;
  background: radial-gradient(circle at 32% 18%, rgba(255, 238, 174, .95), rgba(131, 224, 197, .74) 44%, rgba(231, 154, 160, .76));
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.34);
}

.brand-wordmark strong,
.brand-lockup strong {
  font-size: 20px;
  font-weight: 820;
  color: #f8f3ea;
}

.icon-button,
.dock a,
.track-play,
.round-action span,
.mini-tile > span:first-child {
  border-radius: 50%;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
  color: #f8f3ea;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.icon-button,
.round-action span,
.mini-tile > span:first-child {
  color: #f0d98a;
}

.icon-button:hover,
.dock a:hover,
.round-action:hover span {
  background: rgba(255,255,255,.105);
  transform: translateY(-1px);
}

.button {
  gap: 9px;
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.button .icon,
.icon-button .icon,
.track-play .icon,
.dock .icon,
.round-action .icon {
  stroke-width: 1.72;
}

.button--brand,
.play-cta,
.dock a.is-active {
  background: linear-gradient(135deg, #f0d98a 0%, #83e0c5 100%);
  border-color: rgba(240, 217, 138, .45);
  color: #111315;
  box-shadow: var(--touch-glow);
}

.button--light {
  background: rgba(255,255,255,.065);
  color: #f8f3ea;
  border-color: rgba(255,255,255,.09);
}

.track-row .track-play,
.track-now .play-cta {
  background: linear-gradient(135deg, #f0d98a, #83e0c5);
  border-color: rgba(240, 217, 138, .48);
  color: #101315;
  box-shadow: 0 12px 28px rgba(131, 224, 197, .12), inset 0 1px 0 rgba(255,255,255,.28);
}

.track-row .track-play:hover,
.track-now .play-cta:hover {
  filter: saturate(1.05) brightness(1.03);
  transform: translateY(-1px);
}

.tag-row {
  gap: 7px;
}

.record-card .tag-row,
.track-main .tag-row,
.quiet-row .tag-row,
.collection-copy .tag-row,
.track-now__copy .tag-row,
.hero-copy .tag-row {
  gap: 7px;
  margin-top: 9px;
}

.tag-pill,
.record-card .tag-pill,
.track-main .tag-pill,
.quiet-row .tag-pill,
.collection-copy .tag-pill,
.track-now__copy .tag-pill,
.hero-copy .tag-pill {
  min-height: 25px;
  padding: 0 10px;
  gap: 6px;
  border: 1px solid var(--chip-ring);
  background: var(--chip-bg);
  color: var(--chip-fg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0;
}

.tag-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--chip-dot);
  box-shadow: 0 0 0 3px var(--chip-halo);
}

.genre-amapiano,
.genre-mugithi-amapiano-singles {
  --chip-bg: rgba(131, 224, 197, .14);
  --chip-fg: #b9f4e5;
  --chip-ring: rgba(131, 224, 197, .26);
  --chip-dot: #83e0c5;
  --chip-halo: rgba(131, 224, 197, .09);
}

.genre-benga,
.genre-mugithi-benga {
  --chip-bg: rgba(240, 217, 138, .15);
  --chip-fg: #f8e7a8;
  --chip-ring: rgba(240, 217, 138, .30);
  --chip-dot: #f0d98a;
  --chip-halo: rgba(240, 217, 138, .09);
}

.genre-acoustic,
.genre-acoustic-mugithi,
.genre-mugithi-slow-jazz {
  --chip-bg: rgba(184, 199, 255, .14);
  --chip-fg: #d9e1ff;
  --chip-ring: rgba(184, 199, 255, .25);
  --chip-dot: #b8c7ff;
  --chip-halo: rgba(184, 199, 255, .09);
}

.genre-gospel,
.genre-gospel-amapiano {
  --chip-bg: rgba(231, 154, 160, .13);
  --chip-fg: #ffd4d8;
  --chip-ring: rgba(231, 154, 160, .25);
  --chip-dot: #e79aa0;
  --chip-halo: rgba(231, 154, 160, .09);
}

.genre-road-trip,
.genre-road-trip-collection {
  --chip-bg: rgba(216, 184, 255, .13);
  --chip-fg: #eadbff;
  --chip-ring: rgba(216, 184, 255, .24);
  --chip-dot: #d8b8ff;
  --chip-halo: rgba(216, 184, 255, .09);
}

.genre-mountain {
  --chip-bg: rgba(255,255,255,.075);
  --chip-fg: #e8ded1;
  --chip-ring: rgba(255,255,255,.12);
  --chip-dot: #b6aea3;
  --chip-halo: rgba(182, 174, 163, .08);
}

.record-card__copy strong,
.track-main strong {
  color: #f8f3ea;
}

.record-card__copy > span:not(.tag-row),
.track-main > span:not(.tag-row),
.mini-cover span {
  color: #bfb6aa;
}

.player-dock {
  min-height: 64px;
  padding: 8px 9px;
  background: linear-gradient(180deg, rgba(20, 25, 30, .96), rgba(13, 16, 19, .94));
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
}

.player-dock .track-main strong {
  color: #f8f3ea;
  font-size: 13.5px;
}

.player-dock .track-main span {
  color: #83e0c5;
  font-weight: 680;
}

.player-dock.is-paused .track-main span {
  color: #f0d98a;
}

.player-dock .track-play {
  background: linear-gradient(135deg, #f0d98a, #83e0c5);
  border-color: rgba(240,217,138,.42);
  color: #101315;
  box-shadow: 0 12px 30px rgba(240,217,138,.16), inset 0 1px 0 rgba(255,255,255,.28);
}

.player-cover {
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.28);
}

.record-card__art,
.collection-art--small,
.track-now__art,
.artist-photo {
  box-shadow: 0 18px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

.quiet-row,
.empty-row,
.setting-toggle {
  border-color: rgba(255,255,255,.065);
}

@media (max-width: 380px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-wordmark strong,
  .brand-lockup strong {
    font-size: 18px;
  }

  .tag-pill,
  .record-card .tag-pill,
  .track-main .tag-pill {
    min-height: 24px;
    padding: 0 9px;
  }
}


/* Playlist and support tools */
.playlist-create,
.playlist-add {
  margin: 2px 0 14px;
}

.playlist-page .page-intro h1 {
  font-size: clamp(30px, 10vw, 48px);
}

.track-row--playlist {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.track-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 112px;
}

.track-actions .track-play,
.track-actions .icon-button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.track-actions .icon-button {
  color: #f0d98a;
}

.mini-tile[href] {
  text-decoration: none;
}

.quick-form .button .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 420px) {
  .track-row--playlist {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .track-actions {
    min-width: 96px;
    gap: 6px;
  }

  .track-actions .track-play,
  .track-actions .icon-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

/* Softer list rows and steadier record card text rhythm */
.track-list {
  gap: 6px;
}

.track-row {
  padding: 7px 6px;
  border-bottom: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.track-row:hover {
  background: rgba(255, 255, 255, .045);
}

.record-card__copy {
  display: grid;
  gap: 0;
  min-width: 0;
}

.record-card__copy strong {
  min-width: 0;
}

.record-card__copy > span:not(.tag-row) {
  width: 100%;
  min-height: 17px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.record-card .tag-row {
  min-height: 25px;
  align-items: center;
}

/* Modal action system */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

.modal-sheet {
  position: relative;
  width: min(100%, 520px);
  max-height: min(78vh, 680px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(22, 26, 30, .98), rgba(12, 15, 18, .98));
  box-shadow: 0 30px 80px rgba(0,0,0,.50), inset 0 1px 0 rgba(255,255,255,.10);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 10px 20px;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  color: #f8f3ea;
}

.modal-body {
  max-height: calc(min(78vh, 680px) - 68px);
  overflow: auto;
  padding: 0 16px 18px;
}

.modal-body .quick-form {
  margin: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.035);
}

.modal-copy {
  margin: 0 4px 16px;
  color: #cfc7bb;
  line-height: 1.45;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.modal-action-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  color: #f8f3ea;
  text-align: left;
  font: inherit;
}

.modal-action-card > span:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(131, 224, 197, .12);
  color: #83e0c5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.modal-action-card strong,
.modal-action-card small {
  display: block;
  min-width: 0;
}

.modal-action-card strong {
  overflow: hidden;
  color: #f8f3ea;
  font-size: 13.5px;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modal-action-card small {
  margin-top: 4px;
  color: #bfb6aa;
  font-size: 11.5px;
  line-height: 1.25;
}

.modal-action-card .button {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.modal-action-card:hover {
  background: rgba(255,255,255,.055);
  transform: translateY(-1px);
}

.icon .play-glyph {
  stroke-width: 2.05;
  vector-effect: non-scaling-stroke;
}

@media (min-width: 720px) {
  .modal-root {
    align-items: center;
  }
}
