/* Mini studio d'enregistrement (js/mini-studio.js) : pistes en forme d'onde, sombre et or */
.ms { display: flex; flex-direction: column; gap: 10px; }
.ms button, .ms select { flex: 0 0 auto; width: auto; }
.ms-top, .ms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ms-sp { flex: 1; }
.ms-proj { min-width: 260px; max-width: 100%; }
.ms-time { font-variant-numeric: tabular-nums; min-width: 64px; color: #f3c24f; font-size: 15px; }
.ms-zoom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.ms-file { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 9px; border: 1px dashed rgba(79, 182, 243, .6); color: #9fd6fb; cursor: pointer; }
.ms-take { background: #e62b2b !important; color: #fff !important; border-color: #e62b2b !important; }
.ms-recdot { color: #ff6b6b; font-weight: 700; animation: msBlink 1s steps(2) infinite; }
@keyframes msBlink { 50% { opacity: .3; } }
.ms-grid { display: grid; grid-template-columns: 210px 1fr; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; overflow: hidden; background: #0a0f16; }
.ms-heads { border-right: 1px solid rgba(255, 255, 255, .08); }
.ms-rulerh { height: 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ms-th { height: 66px; padding: 4px 8px; box-sizing: border-box; border-bottom: 1px solid rgba(255, 255, 255, .06); display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; font-size: 11px; }
.ms-th b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.ms-th label { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: #8f9bad; }
.ms-th input[type=range] { flex: 1; height: 14px; }
.ms-btns { display: flex; gap: 3px; }
.ms-btns button { padding: 1px 6px; font-size: 11px; border-radius: 5px; min-width: 0; }
.ms-m.on { background: #e8803a !important; color: #fff !important; }
.ms-s.on { background: #f3c24f !important; color: #1a1205 !important; }
.ms-lanes { overflow-x: auto; position: relative; }
.ms-inner { position: relative; }
.ms-ruler { display: block; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ms-lane { position: relative; height: 66px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ms-wave { position: absolute; top: 4px; border-radius: 6px; }
.ms-wave.off { opacity: .3; }
.ms-wave.movable { cursor: grab; outline: 1px solid rgba(255, 255, 255, .15); }
.ms-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .6); pointer-events: none; }
@media (max-width: 760px) { .ms-grid { grid-template-columns: 130px 1fr; } .ms-proj { min-width: 0; width: 100%; } }
.ms-choir.on { border-color: #27c76f !important; color: #3fdc86 !important; }
.ms-cpanel { border: 1px solid rgba(39, 199, 111, .35); background: rgba(39, 199, 111, .06); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ms-crow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-crow input { flex: 1 1 200px; min-width: 0; }
.ms-clink { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
/* la page n'est visible que lorsqu'elle est ouverte (les autres pages sont listées dans studio.css) */
body[data-page="mstudio"] .page[data-page="mstudio"] { display: flex; }
/* prise en cours : bien visible */
.ms-recbox { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(230,43,43,.15); border: 1px solid rgba(230,43,43,.6); font-size: 13px; }
.ms-recbox .ms-recdot { font-weight: 800; }
.ms-rect { font-variant-numeric: tabular-nums; color: #fff; min-width: 44px; }
.ms-recmeter { width: 90px; height: 8px; border-radius: 4px; background: #05080c; overflow: hidden; }
.ms-recmeter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #27c76f, #c8e35a 70%, #f3c24f); }
.ms-recmeter i.hot { background: #e62b2b; }
.ms-recwarn { color: #ffb4b4; font-size: 12.5px; }
.ms-recth { background: rgba(230,43,43,.12); } .ms-recth b { color: #ff6b6b; } .ms-recth span { color: #c9d1dc; }
.ms-reclane { position: relative; }
.ms-recclip { position: absolute; top: 4px; height: 58px; overflow: hidden; width: 0; border-left: 2px solid #e62b2b; }
.ms-recclip canvas { display: block; }
