@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --ink: #15191e;
  --ink-soft: #5b6570;
  --paper: #eef1f5;
  --paper-2: #f7f8fa;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(21, 25, 30, 0.1);
  --studio: #1a3c36;
  --studio-deep: #102822;
  --brass: #c4a15a;
  --brass-soft: #e6d3a3;
  --danger: #b33a3a;
  --ok: #2a7a52;
  --radius: 20px;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Sora", sans-serif;
  --shadow: 0 20px 48px rgba(21, 25, 30, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(26, 60, 54, 0.14), transparent 55%),
    radial-gradient(70% 50% at 100% 0%, rgba(196, 161, 90, 0.14), transparent 50%),
    linear-gradient(180deg, #e9eef3 0%, var(--paper) 40%, #e4e9ef 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.app-shell {
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

/* Typography casing system */
.hero-kicker,
.hero-meta,
.stat .label,
.profile-metrics span,
.splash-top .mark,
.section-head span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.tabs a,
.track-card .badge,
.quick-item b,
.list-link .meta b,
.btn,
.floor-nav a span,
.field label,
.auth-links a,
.grab-cta .count {
  text-transform: capitalize;
}

.page-pad { padding: 18px 18px 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}
.topbar .brand { font-size: 34px; }
.topbar-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: transform .18s ease;
}
.icon-btn:active { transform: scale(0.96); }
.icon-btn svg { width: 18px; height: 18px; }

/* Music ornaments */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.eq i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: var(--brass);
  animation: eqpulse 1.1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq i:nth-child(2) { height: 16px; animation-delay: .15s; }
.eq i:nth-child(3) { height: 11px; animation-delay: .3s; }
.eq i:nth-child(4) { height: 20px; animation-delay: .08s; }
.eq i:nth-child(5) { height: 9px; animation-delay: .22s; }
.eq.light i { background: rgba(255,255,255,.85); }

.vinyl-spin {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #c4a15a 0 10%, #15191e 11% 14%, transparent 15%),
    repeating-radial-gradient(circle at center, #15191e 0 2px, #1d242b 2px 4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 40px rgba(0,0,0,.28);
  animation: spin 12s linear infinite;
}

.wave-line {
  height: 28px;
  width: 100%;
  background:
    radial-gradient(8px 14px at 8% 50%, transparent 45%, var(--brass) 46% 54%, transparent 55%),
    radial-gradient(10px 18px at 22% 50%, transparent 45%, rgba(255,255,255,.55) 46% 54%, transparent 55%),
    radial-gradient(8px 12px at 36% 50%, transparent 45%, var(--brass) 46% 54%, transparent 55%),
    radial-gradient(12px 20px at 52% 50%, transparent 45%, rgba(255,255,255,.45) 46% 54%, transparent 55%),
    radial-gradient(8px 14px at 68% 50%, transparent 45%, var(--brass) 46% 54%, transparent 55%),
    radial-gradient(10px 16px at 84% 50%, transparent 45%, rgba(255,255,255,.4) 46% 54%, transparent 55%);
  opacity: .75;
}

/* Hero compositions */
.hero-stage {
  margin: 6px 18px 16px;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  color: #f6f3ec;
  background:
    linear-gradient(180deg, rgba(16,40,34,.28) 0%, rgba(16,40,34,.72) 55%, rgba(16,40,34,.92) 100%),
    url("/static_app/img/hero-vinyl.jpg") center/cover;
  animation: fadein .7s ease both;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px 20px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 40%, rgba(196,161,90,.18) 100%);
  pointer-events: none;
}
.hero-stage > * { position: relative; z-index: 1; }
.hero-stage .brand {
  font-size: clamp(52px, 15vw, 68px);
  margin-bottom: 8px;
  animation: rise .65s ease both;
}
.hero-stage .headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 34px);
  margin: 0 0 8px;
  max-width: 14ch;
  line-height: 1.05;
  animation: rise .75s ease both;
}
.hero-stage .sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .88;
  max-width: 28ch;
  animation: rise .85s ease both;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}

.hero-panel {
  margin: 8px 18px 16px;
  padding: 22px 20px;
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(26,60,54,.96), rgba(16,40,34,.94) 60%, rgba(21,25,30,.95)),
    url("/static_app/img/hero-wave.jpg") right top / cover;
  color: #f6f3ec;
  position: relative;
  overflow: hidden;
  animation: rise .55s ease both;
}
.hero-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(196,161,90,.18);
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 40px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  max-width: 12ch;
  line-height: 1;
}
.hero-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .86;
  max-width: 28ch;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 18px 18px;
}
.stat {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  animation: rise .6s ease both;
}
.stat:nth-child(2) { animation-delay: .05s; }
.stat .label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.stat .value {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 6px 18px 12px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-head span {
  font-size: 12px;
  color: var(--ink-soft);
}

.album-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 118px;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 8px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.album-row::-webkit-scrollbar { display: none; }
.album-tile {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background: #1a3c36;
  animation: rise .65s ease both;
}
.album-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.album-tile:active img { transform: scale(1.04); }
.album-tile span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 18px 20px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
  animation: rise .65s ease both;
}
.quick-item:nth-child(2) { animation-delay: .04s; }
.quick-item:nth-child(3) { animation-delay: .08s; }
.quick-item:nth-child(4) { animation-delay: .12s; }
.quick-item:active { transform: translateY(1px); border-color: rgba(26,60,54,.28); }
.quick-ico {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(26,60,54,.12), rgba(196,161,90,.18)),
    #fff;
  color: var(--studio);
  font-family: var(--font-display);
  font-size: 18px;
}
.quick-item b {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
}

.panel {
  margin: 0 18px 16px;
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.list-link:last-child { border-bottom: 0; }
.list-link .left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.list-link .glyph {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(160deg, #e8f0ee, #f4ecdc);
  color: var(--studio-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  flex: 0 0 auto;
}
.list-link .meta { min-width: 0; }
.list-link .meta b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.list-link .meta span {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.list-link .chev { color: var(--ink-soft); font-size: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font-weight: 600;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--studio), var(--studio-deep));
  color: #f7f3ea;
}
.btn-accent {
  background: linear-gradient(135deg, var(--brass), #a8863f);
  color: #15191e;
}
.btn-ghost {
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  padding: 0 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  border-color: rgba(26,60,54,.5);
  box-shadow: 0 0 0 4px rgba(26,60,54,.1);
}

/* Auth / splash */
.auth-page, .splash {
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.auth-visual, .splash {
  color: #f6f3ec;
  background:
    linear-gradient(180deg, rgba(16,40,34,.2), rgba(16,40,34,.78) 55%, rgba(16,40,34,.94)),
    url("/static_app/img/hero-vinyl.jpg") center/cover;
}
.auth-visual {
  min-height: 44vh;
  padding: 28px 24px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: fadein .7s ease both;
}
.auth-visual .brand, .splash .brand {
  font-size: clamp(56px, 16vw, 78px);
  margin-bottom: 10px;
}
.auth-visual p {
  margin: 0;
  max-width: 22ch;
  font-size: 15px;
  line-height: 1.45;
  opacity: .9;
}
.auth-sheet {
  flex: 1;
  margin-top: -24px;
  border-radius: 30px 30px 0 0;
  background: rgba(247,248,250,.97);
  padding: 28px 22px 34px;
  position: relative;
  z-index: 2;
  animation: rise .55s ease both;
}
.auth-sheet h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
}
.auth-sheet .lead {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.auth-links a { color: var(--studio); font-weight: 600; }
.auth-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-soft);
}

.splash {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px calc(34px + var(--safe-b));
}
.splash .tag {
  margin: 8px 0 28px;
  font-size: 16px;
  opacity: .9;
  max-width: 18ch;
  animation: rise .8s ease both;
}
.splash-actions {
  display: grid;
  gap: 10px;
  animation: rise .9s ease both;
}
.splash-top {
  position: absolute;
  top: 22px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.splash-top .mark {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.splash-ornament {
  position: absolute;
  top: 18%;
  right: 8%;
  opacity: .9;
  animation: fadein 1s ease both;
}

.floor-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(480px, 100%);
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 10px 18px var(--safe-b);
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  align-items: center;
  background: rgba(247,248,250,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  z-index: 50;
}
.floor-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  border-radius: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}
.floor-nav a svg { width: 20px; height: 20px; }
.floor-nav a.active {
  color: var(--studio-deep);
  background: rgba(26,60,54,.08);
}
.floor-nav a.center {
  transform: translateY(-16px);
  background: linear-gradient(145deg, var(--studio), var(--studio-deep));
  color: #f7f3ea;
  box-shadow: 0 14px 28px rgba(16,40,34,.28);
  min-height: 60px;
}
.floor-nav a.center.active { color: #f7f3ea; }

.toast-wrap {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 200;
  width: min(420px, calc(100% - 28px));
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  animation: rise .25s ease both;
}

.modal-mask, .review-sheet, .sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(21,25,30,.52);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-mask { align-items: center; padding: 24px; }
.modal-mask.show, .review-sheet.show, .sheet-mask.show { display: flex; }
.modal, .review-panel, .sheet-panel {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 18px 18px calc(20px + var(--safe-b));
  animation: rise .3s ease both;
  max-height: 86vh;
  overflow: auto;
}
.modal {
  border-radius: 22px;
  max-height: 70vh;
  width: min(420px, 100%);
}
.modal h3, .sheet-panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}
.modal .close, .sheet-close {
  float: right;
  border: 0;
  background: #eef1f5;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.grab-stage {
  margin: 8px 18px 16px;
  border-radius: 28px;
  overflow: hidden;
  min-height: 220px;
  position: relative;
  color: #f6f3ec;
  background:
    linear-gradient(180deg, rgba(16,40,34,.25), rgba(16,40,34,.88)),
    url("/static_app/img/hero-eq.jpg") center/cover;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.grab-stage .vinyl-spin {
  position: absolute;
  right: 18px;
  top: 24px;
  width: 96px;
  height: 96px;
}
.grab-card {
  margin: 0 18px 16px;
  padding: 6px 16px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.grab-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.grab-card .row:last-child { border-bottom: 0; }
.grab-card .label { color: var(--ink-soft); font-size: 13px; }
.grab-card .money {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.02em;
}
.grab-cta {
  margin: 0 18px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
  align-items: center;
}
.grab-cta .count { font-size: 13px; color: var(--ink-soft); }

.review-panel .cover,
.track-cover {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}
.star-rating { font-size: 28px; }
.star-rating .star,
.star-rating .star1 {
  display: inline-block;
  margin: 0 3px;
  color: #d7dde3;
  cursor: pointer;
}
.star-rating .star.active,
.star-rating .star1.active1 { color: var(--brass); }

.profile-hero {
  margin: 8px 18px 16px;
  padding: 24px 18px 18px;
  border-radius: 28px;
  color: #f6f3ec;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(26,60,54,.94), rgba(16,40,34,.92) 65%, rgba(21,25,30,.95)),
    url("/static_app/img/hero-wave.jpg") center/cover;
}
.profile-hero .vinyl-spin {
  position: absolute;
  right: -24px;
  top: -20px;
  width: 110px;
  height: 110px;
  opacity: .55;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  margin: 0 auto 12px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 30px;
  position: relative;
}
.profile-hero .name {
  font-family: var(--font-display);
  font-size: 30px;
  margin-bottom: 4px;
  position: relative;
}
.profile-hero .sub { opacity: .8; font-size: 13px; position: relative; }
.profile-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  position: relative;
}
.profile-metrics div {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px;
}
.profile-metrics span {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 6px;
}
.profile-metrics b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.marquee-bar {
  margin: 0 18px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.marquee-bar marquee { width: 100%; }

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 18px 14px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.tabs a.active {
  background: var(--studio);
  border-color: var(--studio);
  color: #f7f3ea;
}

.track-card {
  margin: 0 18px 12px;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  animation: rise .45s ease both;
}
.track-card .head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}
.track-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(196,161,90,.16);
  color: #8a6b2d;
  font-size: 11px;
  font-weight: 600;
}
.track-card .badge.warn { background: rgba(179,58,58,.12); color: var(--danger); }
.track-card .body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}
.track-card .body img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}
.track-card .title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 6px;
}
.track-card .meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 12px;
  font-size: 12px;
}
.track-card .meta-grid span { color: var(--ink-soft); display: block; }
.track-card .meta-grid b { font-weight: 600; }
.track-card .actions { margin-top: 12px; }

.empty-state {
  margin: 40px 24px;
  text-align: center;
  color: var(--ink-soft);
}
.empty-state img {
  width: 96px;
  margin: 0 auto 14px;
  opacity: .9;
}

.payment-bar {
  position: sticky;
  bottom: calc(var(--nav-h) + var(--safe-b) + 8px);
  margin: 16px 18px 0;
  padding: 14px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}
.payment-bar .row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes eqpulse {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

/* Record pages — shared compact system */
.rec-hero {
  margin: 4px 18px 14px;
  min-height: 132px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  color: #f6f3ec;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(16,40,34,.35), rgba(16,40,34,.92)),
    url("/static_app/img/hero-wave.jpg") center/cover;
}
.rec-hero.vinyl {
  background:
    linear-gradient(160deg, rgba(16,40,34,.35), rgba(16,40,34,.92)),
    url("/static_app/img/hero-vinyl.jpg") center/cover;
}
.rec-hero.eq {
  background:
    linear-gradient(160deg, rgba(16,40,34,.35), rgba(16,40,34,.92)),
    url("/static_app/img/hero-eq.jpg") center/cover;
}
.rec-hero .kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 6px;
}
.rec-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.rec-hero p {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .86;
  max-width: 28ch;
}

.rec-block {
  margin: 0 18px 14px;
}

.summary-strip {
  margin: 0 18px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.summary-strip .label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.summary-strip .value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.summary-strip .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--studio);
  color: #f7f3ea;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tabs.rec-tabs {
  margin: 0 18px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: visible;
}
.tabs.rec-tabs.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tabs.rec-tabs a {
  flex: none;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-list {
  margin: 0 18px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  overflow: hidden;
}
.ledger-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.ledger-item:last-child { border-bottom: 0; }
.ledger-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: #eef2f0;
  color: var(--studio-deep);
}
.ledger-ico.in { background: #e5f3ea; color: var(--ok); }
.ledger-ico.out { background: #f6e6e6; color: var(--danger); }
.ledger-ico.wait { background: #f4edd8; color: #8a6b2d; }
.ledger-meta {
  min-width: 0;
}
.ledger-meta .row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ledger-meta .row1 b {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.ledger-meta b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ledger-meta > span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #eef1f3;
  color: var(--ink-soft);
}
.pill.ok { background: rgba(42,122,82,.12); color: var(--ok); }
.pill.wait { background: rgba(196,161,90,.16); color: #8a6b2d; }
.pill.fail { background: rgba(179,58,58,.12); color: var(--danger); }
.ledger-amt {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ledger-amt.pos { color: var(--ok); }
.ledger-amt.neg { color: var(--danger); }

/* Order records */
.order-card {
  margin: 0 18px 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
}
.order-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.order-card .top time {
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.order-card .main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.order-card .main img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #e8eee9;
}
.order-card .main h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.order-card .nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.order-card .nums div span {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 3px;
}
.order-card .nums div b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.order-card .actions { margin-top: 12px; }
.secure-note {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(26,60,54,.06);
  border: 1px solid rgba(26,60,54,.1);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.order-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brass);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 18px 18px;
}
.amount-grid button {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.amount-grid button.active {
  background: var(--studio);
  color: #f7f3ea;
  border-color: var(--studio);
}

.choice-list {
  margin: 0 18px 14px;
  display: grid;
  gap: 8px;
}
.choice-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  cursor: pointer;
}
.choice-list label.is-on {
  border-color: rgba(26,60,54,.45);
  background: rgba(26,60,54,.06);
}
.choice-list input { margin-top: 3px; }
.choice-list b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.choice-list span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.bank-chip {
  margin: 0 18px 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
}
.bank-chip .label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.bank-chip .num {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.bank-chip .sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
}

.history-item {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.history-item:last-child { border-bottom: 0; }

@media (min-width: 481px) {
  body { background-color: #dce3ea; }
}
