@import url("https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800&family=Big+Shoulders+Text:wght@500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap");

:root {
  --bg: #0c1018;
  --panel: #121824;
  --paper: #f3ecdc;
  --muted: #b4bcc9;
  --line: rgba(243, 236, 220, 0.1);
  --tungsten: #d4a056;
  --rec: #c44536;
  --ink: #1a2233;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --sans: "Big Shoulders Text", "Segoe UI", sans-serif;
  --serif: Newsreader, "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--paper);
  overflow-x: hidden;
}
body.studio {
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #101624 0%, var(--bg) 140px);
}
button, input, select, textarea { font: inherit; color: inherit; }
.hint {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
}
.appbar {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(12, 16, 24, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.brand-name span { color: var(--rec); }
.working-on { display: flex; flex-direction: column; gap: 4px; }
.working-on .label {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1;
}
.working-on strong { color: var(--tungsten); font-size: 18px; font-weight: 600; }
.app-actions { margin-left: auto; }
.state { font-size: 15px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.desk { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100dvh - 56px); }
.studio-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 16px 12px;
  background: #0a0e16;
  border-right: 1px solid var(--line);
}
.rail-kicker {
  margin: 14px 8px 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rail-kicker:first-child { margin-top: 4px; }
.rail-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.rail-btn b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.rail-btn b:empty { visibility: hidden; }
.rail-btn span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rail-btn.active {
  color: var(--paper);
  background: rgba(212, 160, 86, 0.22);
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.45);
}
.rail-btn.active b { border-color: var(--tungsten); color: var(--tungsten); }
.workspace {
  display: block;
  padding: 22px;
  max-width: none;
}
.stage {
  display: grid;
  grid-template-columns: minmax(280px, 1.19fr) minmax(340px, 0.86fr);
  gap: 16px;
  align-items: start;
}
.stage[hidden] { display: none; }
.save-side { position: sticky; top: 16px; }
.panel[hidden] { display: none; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.shelf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.shelf-find { margin-top: 14px; }
.shelf-find input { width: 100%; }
.shelf-head .btn { flex: 0 0 auto; }
.mix-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--muted);
  font-weight: 700;
}
.mix-pick input { width: 16px; height: 16px; accent-color: var(--tungsten); }
.panel-head strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.moods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
  max-height: 220px;
  overflow: auto;
}
.mood {
  text-align: left;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #161d2a;
  cursor: pointer;
}
.mood b { display: block; font-size: 18px; }
.mood span { color: var(--muted); font-size: 15px; }
.mood.active {
  border-color: var(--tungsten);
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.45);
  background: rgba(212, 160, 86, 0.12);
}
.instruments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
}
.instrument-actions { margin-top: 16px; }
.nameplay-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}
.nameplay-form .btn { min-height: 40px; }
.edit-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.edit-box[hidden] { display: none; }
.edit-box textarea {
  min-height: 64px;
  padding-top: 9px;
  resize: vertical;
}
.edit-box .btn { min-height: 40px; }
.loop-tone { max-width: 280px; margin-top: 16px; }
.tune { margin-top: 16px; }
.tune strong {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tune-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tune-notes .btn { min-width: 52px; }
.tune-phrase {
  min-height: 1.4em;
  margin: 0 0 10px;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
.instrument-group { border: 1px solid var(--line); border-radius: 8px; background: #0c1018; }
.group-head,
.pick-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-head {
  padding: 8px 10px;
}
.group-head strong {
  color: var(--tungsten);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.group-head span {
  flex: 1;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.fold-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tungsten);
  cursor: pointer;
}
.fold-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  transform: rotate(-90deg);
}
.fold-btn[aria-expanded="true"] svg { transform: rotate(0deg); }
.fold-btn:hover { background: #24180c; }
.pick:not(.is-off) {
  border-color: var(--tungsten);
  background: #1c140c;
}
.group-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  padding: 0 8px 8px;
}
.instrument-group.shut .group-body { display: none; }
.pick {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121824;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--paper);
  font-weight: 600;
}
.pick { grid-column: 1 / -1; }
.pick-head { padding: 8px; }
.pick-head span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-body { padding: 0 8px 8px; }
.pick.shut .pick-body { display: none; }
.pick-tune { margin-top: 4px; }
.pick-tune strong {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.pick-tune .tune-notes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pick-tune .tune-notes .btn,
.pick-tune .tune-actions .btn { min-width: 44px; height: 32px; padding: 0 8px; }
.pick-tune .tune-phrase {
  min-height: 1.3em;
  margin: 0 0 8px;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
.pick-tune .tune-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pick input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--tungsten); }
.pick select {
  width: 100%;
  height: 28px;
  margin-top: 6px;
  padding: 0 6px;
  font-size: 14px;
}
.manual-order {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1018;
}
.manual-order strong,
.order-controls span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.manual-order div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.manual-order span {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(212, 160, 86, 0.1);
  color: var(--paper);
  font-size: 13px;
}
.order-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.order-controls .btn {
  min-width: 44px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}
.pick.is-off span { color: var(--muted); }
.track-prompt {
  margin: 6px 0 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.step-next { margin-top: 18px; }
.btn.danger { color: #e7a39b; }
.btn.danger:hover { color: #ffd2cb; background: rgba(196, 69, 54, 0.16); border-color: #c44536; }
.prompt-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
#prompt {
  min-height: 72px;
  max-height: 220px;
  height: 72px;
  padding: 16px 14px;
  font-size: 20px;
  line-height: 1.35;
  resize: none;
  overflow: hidden;
}
.prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.prompt-row .btn { min-width: 108px; height: 44px; }
.best-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}
.best-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--tungsten);
}
.best-toggle:has(input:checked) { color: var(--paper); }
.best-toggle:has(input:focus-visible) {
  outline: 2px solid rgba(212, 160, 86, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}
.example-toggle {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
}
.examples {
  display: grid;
  gap: 8px;
  margin: 10px 0 4px;
}
.examples[hidden] { display: none; }
.example {
  height: auto;
  padding: 10px 12px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  line-height: 1.35;
}
#promptRead { min-height: 1.2em; margin: 8px 0 16px; }
.fields {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(92px, 0.55fr) minmax(110px, 0.65fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr);
  gap: 12px;
  margin-bottom: 16px;
}
label { display: grid; gap: 6px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
input, select, textarea {
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0c1018;
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: 18px;
  color: var(--paper);
}
input[type="range"] {
  height: 28px;
  padding: 0;
  accent-color: var(--tungsten);
  background: transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 160, 86, 0.42);
  background: #161d2a;
  color: var(--paper);
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.14);
}
.btn.primary {
  background: var(--paper);
  border-color: var(--tungsten);
  color: #121824;
  box-shadow: 0 0 0 1px rgba(212, 160, 86, 0.45);
  min-width: 140px;
}
.btn.primary:hover { background: #fff8ea; }
.icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn.is-active {
  background: var(--paper);
  color: #121824;
  border-color: var(--tungsten);
  box-shadow: 0 0 0 2px rgba(212, 160, 86, 0.34);
}
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.shelf-actions {
  flex-wrap: nowrap;
  align-items: center;
}
.mix-mode {
  width: 132px;
  height: 40px;
  padding: 0 8px;
  font-size: 15px;
}
#mixBtn {
  min-width: 72px;
  padding-inline: 12px;
}
#allBtn {
  min-width: 92px;
  padding-inline: 12px;
}
.listen {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--tungsten);
  background: rgba(212, 160, 86, 0.08);
}
.from-tag {
  margin: 0 0 8px;
  color: var(--tungsten);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.listen audio {
  width: 100%;
  height: 36px;
  margin: 8px 0 12px;
  accent-color: var(--tungsten);
  filter: invert(1) hue-rotate(180deg);
}
.btn:disabled { opacity: 0.55; cursor: progress; }
.track-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.track {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 14px;
  align-items: start;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1018;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.track-copy { min-width: 0; display: grid; gap: 4px; }
.track-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.track-player {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.track-player-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.track-player audio { display: none; }
.track-player .btn {
  height: 34px;
  width: 34px;
  min-width: 34px;
}
.track-playback {
  display: grid;
  grid-template-columns: 76px auto;
  gap: 6px;
  align-items: center;
}
.track-progress {
  width: 76px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 236, 220, 0.16);
}
.track-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--tungsten);
}
.track-time {
  min-width: 70px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.track-volume {
  position: relative;
  height: 34px;
}
.volume-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  display: none;
  width: 34px;
  height: 112px;
  padding: 10px 0;
  place-items: center;
  border: 1px solid rgba(212, 160, 86, 0.42);
  border-radius: 8px;
  background: #0c1018;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  z-index: 4;
}
.track-volume.is-open .volume-popover,
.track-volume:focus-within .volume-popover {
  display: grid;
}
.volume-rail {
  position: relative;
  display: block;
  width: 4px;
  height: 86px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 236, 220, 0.2);
}
.volume-rail span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--tungsten);
}
.volume-popover input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ns-resize;
  writing-mode: vertical-lr;
  direction: rtl;
}
.track-speed {
  display: inline-flex;
  align-items: center;
  height: 34px;
}
.track-speed select {
  width: 52px;
  height: 30px;
  padding: 0 4px;
  font-size: 14px;
  border-radius: 6px;
}
.track strong { font-size: 18px; line-height: 1.25; }
.track p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.35; }
.track-meta { color: var(--paper); font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.03em; }
.music-more {
  margin-top: 2px;
  color: var(--muted);
}
.music-more summary {
  display: inline-flex;
  width: max-content;
  cursor: pointer;
  color: var(--tungsten);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.music-more summary:hover { color: #fff1d2; }
.music-more div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(230, 219, 197, 0.12);
}
.music-more p {
  margin: 0;
  overflow-wrap: anywhere;
}
.track-detail {
  padding-top: 6px;
  border-top: 1px solid rgba(230, 219, 197, 0.1);
  overflow-wrap: anywhere;
}
.track-prompt {
  color: var(--paper);
  overflow-wrap: anywhere;
}
.track-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.track-actions .btn {
  height: 36px;
}
.mix-pick {
  cursor: pointer;
}
.mix-pick input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.mix-pick:has(input:checked) {
  background: var(--paper);
  color: #121824;
  border-color: var(--tungsten);
}
.track-confirm {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(196, 69, 54, 0.12);
  border: 1px solid rgba(196, 69, 54, 0.45);
}
.track.asking .track-actions { display: none; }
.track.asking .track-confirm { display: flex; }
.track-confirm p { margin: 0; color: var(--paper); font-size: 18px; }
.track audio {
  width: 100%;
  height: 28px;
  accent-color: var(--tungsten);
  filter: invert(1) hue-rotate(180deg);
}
.empty { color: var(--muted); font-family: var(--serif); }
.name-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 10, 16, 0.72);
}
.name-dialog[hidden] { display: none; }
.name-card {
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--tungsten);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.name-card strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.name-card input { width: 100%; margin: 14px 0; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; }
  .studio-rail {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .rail-kicker { width: 100%; margin: 4px 8px; }
  .rail-btn { width: auto; }
  .workspace { max-width: none; }
  .stage { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .nameplay-form { grid-template-columns: 1fr; }
  .edit-box { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .track-actions { justify-content: flex-start; }
  .save-side { position: static; }
}

@media (max-width: 560px) {
  body.studio { font-size: 16px; }
  .appbar {
    height: auto;
    min-height: 56px;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 10px 12px;
  }
  .working-on { min-width: 0; }
  .working-on .label { font-size: 13px; }
  .working-on strong { font-size: 16px; }
  .app-actions {
    width: 100%;
    margin-left: 0;
  }
  .state { display: block; font-size: 13px; }
  .studio-rail {
    padding: 10px 8px;
    flex-wrap: nowrap;
  }
  .rail-kicker { display: none; }
  .rail-btn {
    flex: 0 0 auto;
    padding: 9px 10px;
  }
  .rail-btn span {
    font-size: 16px;
    white-space: nowrap;
  }
  .workspace { padding: 12px; }
  .panel { padding: 14px; }
  .panel-head strong { font-size: 24px; }
  .prompt-row { grid-template-columns: 1fr; }
  #prompt {
    min-height: 104px;
    height: 104px;
    font-size: 18px;
  }
  .prompt-row .btn {
    width: 100%;
    height: 44px;
  }
  .prompt-actions { align-items: stretch; }
  .best-toggle { justify-content: flex-start; }
  .fields,
  .moods {
    grid-template-columns: 1fr;
  }
  .moods { max-height: none; }
  .pick-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .actions .btn,
  .track-actions .btn {
    flex: 1 1 132px;
    min-width: 0;
  }
  .shelf-head {
    flex-direction: column;
    align-items: stretch;
  }
  .shelf-head .btn { width: 100%; }
  .shelf-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .shelf-actions .btn {
    flex: 0 0 auto;
    width: auto;
  }
  .mix-mode {
    flex: 0 0 132px;
    width: 132px;
  }
  .track {
    padding: 12px;
    gap: 10px;
  }
  .track-head { grid-template-columns: 1fr; }
  .track-player {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .track-player .icon-btn,
  .track-actions .icon-btn {
    flex: 0 0 36px;
  }
  .track-speed select { width: 52px; }
  .track strong { font-size: 17px; }
  .track audio { height: 30px; }
  .track-confirm {
    justify-content: stretch;
    flex-wrap: wrap;
  }
  .track-confirm .btn { flex: 1 1 120px; }
  .name-card {
    padding: 18px;
    width: calc(100vw - 24px);
  }
}
