/* music.css - music for a finished reel (music-picker.js), linked from index.html after templates.css: the picker borrows that file's
   fullscreen dialog (dialog.tbox, .tbox-top, button.tbox-x, html.tbox-open) and adds a column of its own, because this one scrolls. */
/* the reel, the moods, the tracks, the faders. Always dark, like the view it borrows; every control is 44 px or taller. */
.mbox { display: contents; }   /* the preview's music block: its lines and buttons lie in the page's own flow */
.mpick-col { flex: none; width: 100%; max-width: 430px; margin: auto 0; padding: env(safe-area-inset-top) 14px calc(20px + env(safe-area-inset-bottom)); }
.mpick-col .tbox-top { justify-content: space-between; align-items: center; padding: 8px 0; }
.mpick-h { margin: 0; font-size: 1.5rem; }
video.mpick-reel { display: block; width: auto; max-width: 100%; height: min(38vh, 380px); aspect-ratio: 9 / 16; margin: 0 auto; background: #000; border-radius: 18px; }
.mpick-now { margin: 10px 0 4px; font-weight: 700; text-align: center; }
.mpick-moods { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 8px; }
button.mpick-mood { flex: none; width: auto; min-height: 44px; margin: 0; padding: 8px 16px; background: transparent; color: var(--cream); border-color: rgba(251, 244, 234, .4); box-shadow: none; }
button.mpick-mood[aria-pressed=true] { background: var(--on-bg); color: var(--on-fg); border-color: transparent; }
.mpick-list { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
button.mpick-track { display: block; min-height: 56px; margin: 0; padding: 9px 16px; border-radius: 16px; text-align: left; background: rgba(251, 244, 234, .1); color: var(--cream);
  border-color: transparent; box-shadow: none; }
button.mpick-track b { display: block; }
button.mpick-track span { display: block; font-size: .82rem; font-weight: 600; opacity: .8; }
button.mpick-track[aria-pressed=true] { background: var(--on-bg); color: var(--on-fg); }
.mpick button:focus-visible, .mpick input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.mpick-set { margin-top: 12px; padding: 4px 14px 10px; border-radius: 18px; background: rgba(251, 244, 234, .1); }
.mpick-fader { display: block; padding-top: 10px; font-weight: 700; }
.mpick-name { display: flex; justify-content: space-between; }
.mpick-val { font-variant-numeric: tabular-nums; }
.mpick-fader input { display: block; width: 100%; height: 44px; margin: 0; accent-color: var(--yellow); }
.mpick-loop { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 600; }
.mpick-loop input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--yellow); }
.mpick button.ghost { color: var(--cream); border-color: rgba(251, 244, 234, .4); }
.mpick-free { margin-top: 12px; font-size: .82rem; opacity: .8; text-align: center; }
