/* MeloAz v2 — DJ Studiya (melo-studio.css) */
.melo-st { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 26px; color: #e2e8f0; background: radial-gradient(120% 100% at 50% 0%, #1e293b, #0b1020 70%); box-shadow: 0 30px 60px -30px rgba(2, 6, 23, .9); }
.melo-st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.melo-st-head h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; color: #fff; }
.melo-st-head h1 .melo-icon { color: #60a5fa; }
.melo-st-head p { margin: 4px 0 0; font-size: 13px; color: #94a3b8; }
.melo-st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.melo-st .melo-btn-ghost { color: #e2e8f0; border-color: rgba(148, 163, 184, .35); background: rgba(255, 255, 255, .04); }
.melo-st .melo-btn-ghost.is-on { background: #dc2626; border-color: #dc2626; color: #fff; }
.melo-st-tempo { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--melo-mono); color: #94a3b8; }
.melo-st-tempo input { width: 64px; height: 34px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, .35); background: #0f172a; color: #fff; text-align: center; font: 800 14px var(--melo-mono); }
.melo-st-board { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr); gap: 14px; }
.melo-st-deck { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: rgba(15, 23, 42, .85); border: 1px solid rgba(148, 163, 184, .15); }
.melo-st-deck[data-melo-st-deck=b] { --melo-st-c: #f472b6; }
.melo-st-deck { --melo-st-c: #60a5fa; }
.melo-st-dh { display: flex; align-items: center; gap: 10px; min-width: 0; }
.melo-st-tag { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--melo-st-c); color: #0b1020; font-weight: 900; }
.melo-st-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: #fff; }
.melo-st-bpm { font: 700 12px var(--melo-mono); color: #94a3b8; white-space: nowrap; }
.melo-st-deck.is-busy .melo-st-title { color: #fde047; }
.melo-st-wave { width: 100%; height: 90px; border-radius: 12px; background: #020617; cursor: pointer; }
.melo-st-load { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.melo-st-find { position: relative; display: flex; align-items: center; }
.melo-st-find > .melo-icon { position: absolute; left: 10px; color: #64748b; pointer-events: none; }
.melo-st-find .melo-input { height: 40px; padding-left: 32px; background: #020617; border-color: rgba(148, 163, 184, .25); color: #fff; }
.melo-st-sugg { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 4px; border-radius: 12px; background: #0f172a; border: 1px solid rgba(148, 163, 184, .3); max-height: 260px; overflow-y: auto; }
.melo-st-sugg a { display: block; padding: 8px 10px; border-radius: 8px; color: #e2e8f0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.melo-st-sugg a:hover { background: rgba(96, 165, 250, .15); }
.melo-st-file { height: 40px; cursor: pointer; }
.melo-st-tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; }
.melo-st-play { width: 54px; height: 54px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #0b1020; background: var(--melo-st-c); box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.melo-st-play.is-on { box-shadow: 0 0 22px var(--melo-st-c); }
.melo-st-play .melo-icon { width: 24px; height: 24px; }
.melo-st-cue { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .35); background: transparent; color: #fde047; font-weight: 900; cursor: pointer; }
.melo-st-sl { display: flex; flex-direction: column; gap: 4px; font: 700 11px var(--melo-mono); color: #94a3b8; }
.melo-st input[type=range] { width: 100%; accent-color: var(--melo-st-c, #60a5fa); }
.melo-st-knobs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.melo-st-k { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: #020617; font: 800 10px var(--melo-mono); color: #94a3b8; }
.melo-st-k input { writing-mode: vertical-lr; direction: rtl; width: 22px !important; height: 80px; }
.melo-st-pads { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.melo-st-loop, .melo-st-pad { height: 40px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, .25); background: #020617; color: #cbd5e1; font: 800 11px var(--melo-mono); cursor: pointer; transition: background .1s, box-shadow .1s; }
.melo-st-loop.is-on { background: var(--melo-st-c); color: #0b1020; box-shadow: 0 0 16px var(--melo-st-c); }
.melo-st-mixer { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; border-radius: 20px; background: rgba(2, 6, 23, .9); border: 1px solid rgba(148, 163, 184, .15); }
.melo-st-meter { position: relative; height: 90px; width: 18px; align-self: center; border-radius: 6px; background: #0f172a; overflow: hidden; }
.melo-st-meter i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(0deg, #22c55e, #eab308 70%, #ef4444); transition: height .06s linear; }
.melo-st-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.melo-st-pad { --melo-st-c: #a78bfa; }
.melo-st-pad.is-hit { background: #a78bfa; color: #0b1020; }
.melo-st-xf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; font-weight: 900; }
.melo-st-sync { justify-content: center; }
.melo-st-note { color: #94a3b8 !important; margin: 0; }
@media (max-width: 980px) { .melo-st-board { grid-template-columns: minmax(0, 1fr); } .melo-st-mixer { order: 3; } }
@media (max-width: 520px) { .melo-st { padding: 12px; border-radius: 18px; } .melo-st-knobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
