/* Musique — onglet d'essai (signaux sonores), 2026-10-14. Voir staff-music.js. */
.m-intro { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--t-muted); font-weight: 600; }
.m-list { display: grid; gap: 10px; }
.m-btn {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border: 0; border-radius: 18px; background: #fff; color: var(--t-text);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 24px -18px rgba(var(--t-glow), .5); outline: 3px solid transparent; transition: outline-color .15s, background .2s;
}
.m-btn:active { transform: scale(.985); }
.m-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-size: 28px; border-radius: 15px; background: var(--mc); }
.m-txt { min-width: 0; flex: 1; }
.m-txt b { display: block; font-size: 17px; font-weight: 800; }
.m-txt small { display: block; font-size: 12.5px; font-weight: 600; color: var(--t-muted); }
.m-dur { flex: none; font-size: 12.5px; font-weight: 800; color: var(--t-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--mc); transition: width .25s linear; }
.m-btn.playing { outline-color: var(--mc); }
.m-btn.playing .m-dur { color: var(--t-text); }
.m-btn.done .m-dur { color: #2f9e62; }
.m-btn.ending { background: #fff1cf; outline-color: #f0a020; animation: m-pulse .5s ease-in-out infinite alternate; }
.m-btn.ending .m-bar { background: #f0a020; }
.m-btn.ending .m-dur { color: #b25e00; font-size: 14px; }
@keyframes m-pulse { from { outline-color: #f0a020; } to { outline-color: #ffd37a; } }

.m-now {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--t-accent); color: #fff; font-weight: 800; box-shadow: 0 12px 26px -16px rgba(var(--t-glow), .7);
}
.m-now.ending { background: #f0a020; animation: m-now-pulse .5s ease-in-out infinite alternate; }
@keyframes m-now-pulse { from { opacity: 1; } to { opacity: .72; } }
.m-now-txt { flex: 1; min-width: 0; }
.m-now-txt b { display: block; font-size: 16px; }
.m-now-txt span { font-size: 13px; opacity: .9; font-variant-numeric: tabular-nums; }
.m-now button { flex: none; border: 0; border-radius: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .22); color: #fff; font: inherit; font-weight: 800; }

html[data-mode="dark"] .m-btn { background: var(--dk-surface-2); box-shadow: none; }
html[data-mode="dark"] .m-btn.ending { background: #4a3a14; }
html[data-mode="dark"] .m-ico { color: #111; }
