:root {
  --bg: #000;
  --text: #f5f5f7;
  --t2: #a1a1a6;
  --t3: #86868b;
  --line: rgba(255,255,255,.12);
  --accent: #2997ff;
  --pad: max(24px, env(safe-area-inset-left));
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled { opacity: .35; cursor: default; }
.screen { min-height: 100svh; }
.player { display: none; }
body.playing .player { display: flex; flex-direction: column; }
body.playing #list { display: none; }
.head { padding: calc(env(safe-area-inset-top) + 38px) var(--pad) 22px; }
h1 { margin: 0; font-size: 44px; font-weight: 600; letter-spacing: -1.3px; line-height: 1.06; }
.sub { margin: 10px 0 0; font-size: 16px; color: var(--t2); letter-spacing: -.3px; }
.project { margin: 4px 0 0; color: var(--t3); font-size: 13px; }
.songs { list-style: none; margin: 0; padding: 0 var(--pad) 8px; }
.songs li { border-bottom: 1px solid var(--line); }
.songs li:last-child { border-bottom: 0; }
.song-button { display: flex; align-items: center; gap: 16px; padding: 16px 0; width: 100%; text-align: left; }
.song-button:active { opacity: .6; }
.n { width: 22px; flex: 0 0 22px; font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; text-align: right; }
.t { flex: 1; min-width: 0; }
.ttl { display: block; font-size: 17px; letter-spacing: -.4px; }
.mt { display: block; font-size: 12px; color: var(--t3); margin-top: 4px; }
.songs li.on .ttl { color: var(--accent); }
.foot { padding: 18px var(--pad) calc(env(safe-area-inset-bottom) + 24px); font-size: 13px; color: var(--t3); }
.back { display: flex; align-items: center; gap: 2px; min-height: 48px; padding: calc(env(safe-area-inset-top) + 16px) var(--pad) 0; font-size: 17px; color: var(--accent); align-self: flex-start; }
.now { padding: 36px var(--pad) 0; }
.p-index { margin: 0 0 12px; font-size: 12px; color: var(--t3); letter-spacing: 1px; text-transform: uppercase; }
#p-title { margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -1px; line-height: 1.08; overflow-wrap: anywhere; }
.p-meta { margin: 12px 0 0; font-size: 16px; color: var(--t2); letter-spacing: -.25px; }
.scrub { margin-top: 32px; padding: 0 var(--pad); }
#seek { appearance: none; -webkit-appearance: none; width: 100%; height: 30px; margin: 0; background: none; display: block; }
#seek::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(to right, #f5f5f7 var(--pct, 0%), rgba(255,255,255,.2) var(--pct, 0%)); }
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #f5f5f7; }
#seek::-moz-range-track { height: 4px; border-radius: 3px; background: rgba(255,255,255,.2); }
#seek::-moz-range-progress { height: 4px; background: #f5f5f7; }
#seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #f5f5f7; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--t3); font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; justify-content: center; gap: 40px; padding-top: 20px; }
.tbtn { display: grid; place-items: center; width: 48px; height: 48px; }
.play { width: 70px; height: 70px; border-radius: 50%; background: #f5f5f7; color: #000; display: grid; place-items: center; }
.play:active:not(:disabled) { transform: scale(.96); }
.play svg { margin-left: 2px; grid-area: 1 / 1; }
.play #icon-pause { display: none; margin-left: 0; }
.play.is-playing #icon-play { display: none; }
.play.is-playing #icon-pause { display: block; }
.status { margin: 14px var(--pad) 0; min-height: 20px; font-size: 12px; color: var(--t2); text-align: center; }
.mix { padding: 28px var(--pad) 0; }
.mix-heading { display: flex; align-items: baseline; justify-content: space-between; }
.mix h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
.text-button { color: var(--accent); min-height: 44px; font-size: 14px; padding: 0 4px; }
.mix-help { margin: 0 0 16px; color: var(--t3); font-size: 13px; }
.stem-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stem-toggle { min-height: 64px; padding: 12px 15px; border: 1px solid #343436; border-radius: 14px; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.stem-name { font-size: 15px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.stem-state { font-size: 11px; color: var(--t3); }
.stem-toggle[aria-pressed="true"] { background: rgba(41,151,255,.14); border-color: rgba(41,151,255,.28); }
.stem-toggle[aria-pressed="true"] .stem-name { color: #6dbaff; }
.stem-toggle[aria-pressed="true"] .stem-state { color: #91caff; }
.stem-toggle[aria-pressed="false"] .stem-name { color: var(--t3); }
.stem-toggle:active { transform: scale(.98); }
.practice-note { margin: 28px var(--pad) 0; font-size: 11px; color: var(--t3); line-height: 1.7; }
.player { padding-bottom: calc(env(safe-area-inset-bottom) + 28px); }
@media (min-width: 700px) {
  .screen { max-width: 620px; margin: 0 auto; }
  .now { padding-top: 52px; }
  h1 { font-size: 52px; }
  #p-title { font-size: 46px; }
  .stem-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { button:active { transform: none !important; } }
