/* public/assets/css/audio/music-maker.css */

.maker-wrapper { padding: 32px; border-radius: var(--radius-lg); position: relative; }
.maker-header { text-align: center; margin-bottom: 32px; }
.maker-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.5px; }
.maker-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* 🎛️ Groovebox 硬件面板 */
.groovebox-panel { max-width: 1100px; margin: 0 auto; background: linear-gradient(135deg, #27272a 0%, #18181b 100%); border: 2px solid #3f3f46; border-radius: 12px; padding: 24px; box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), 0 20px 50px rgba(0,0,0,0.6); }

/* 顶部操作面板 */
.gb-top-panel { display: flex; justify-content: space-between; align-items: stretch; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid #3f3f46; }

/* 母带效果区 */
.gb-master-fx { display: flex; gap: 20px; align-items: center; background: #09090b; padding: 12px 16px; border-radius: 8px; border: 1px solid #3f3f46; }
.gb-preset-group label, .gb-knob-group label { display: block; font-size: 0.7rem; font-weight: 800; color: #a1a1aa; text-transform: uppercase; margin-bottom: 6px; }
.gb-select { background: #18181b; color: #38bdf8; border: 1px solid #52525b; padding: 4px 8px; border-radius: 4px; font-weight: 700; outline: none; cursor: pointer; }
.gb-slider-small { -webkit-appearance: none; width: 80px; height: 6px; background: #27272a; border-radius: 3px; outline: none; border: 1px solid #3f3f46; }
.gb-slider-small::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; cursor: pointer; }

/* 液晶屏 */
.gb-lcd { background: #022c22; border: 3px solid #064e3b; border-radius: 8px; padding: 10px 20px; box-shadow: inset 0 0 15px rgba(0,0,0,0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 140px; }
.lcd-bpm { font-family: 'Courier New', Courier, monospace; font-size: 2.2rem; font-weight: 800; color: #10b981; line-height: 1; text-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.lcd-bpm small { font-size: 0.9rem; color: #047857; }
.lcd-status { font-family: monospace; color: #34d399; font-size: 0.75rem; font-weight: 700; margin-top: 4px; letter-spacing: 2px; }
.lcd-status.playing { color: #facc15; animation: blink 1s infinite; }
.lcd-status.recording { color: #ef4444; animation: blink 0.5s infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

/* 走带控制区 */
.gb-controls { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 20px; flex-wrap: wrap; }
.gb-slider-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gb-slider-group label { font-size: 0.75rem; font-weight: 800; color: #a1a1aa; text-transform: uppercase; }
.gb-slider { -webkit-appearance: none; width: 140px; height: 8px; background: #09090b; border-radius: 4px; outline: none; border: 1px solid #3f3f46; }
.gb-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 28px; border-radius: 4px; background: linear-gradient(to bottom, #d4d4d8, #71717a); cursor: pointer; border: 1px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }

.gb-actions { display: flex; gap: 10px; }
.gb-btn { padding: 10px 16px; font-size: 0.8rem; font-weight: 800; color: #fff; border: none; border-radius: 6px; cursor: pointer; text-transform: uppercase; transition: 0.1s; box-shadow: 0 4px 0 rgba(0,0,0,0.3); }
.gb-btn:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn-primary { background: linear-gradient(to bottom, #3b82f6, #1d4ed8); }
.btn-danger { background: linear-gradient(to bottom, #52525b, #3f3f46); }
.btn-save { background: linear-gradient(to bottom, #10b981, #047857); }

/* 核心：独立轨道与混音台 */
.gb-sequencer { display: flex; flex-direction: column; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.gb-sequencer::-webkit-scrollbar { height: 8px; }
.gb-sequencer::-webkit-scrollbar-thumb { background: #52525b; border-radius: 4px; }

.gb-track { display: flex; align-items: center; gap: 12px; min-width: max-content; background: #18181b; border-radius: 8px; padding-right: 8px; border: 1px solid #27272a; }

/* 混音控制区 */
.gb-track-control { width: 160px; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #09090b; border-radius: 8px 0 0 8px; border-right: 2px solid #3f3f46; }
.track-name { font-size: 0.8rem; font-weight: 800; color: #f4f4f5; text-transform: uppercase; font-family: 'Courier New', Courier, monospace; letter-spacing: 1px; }
.track-mixer { display: flex; align-items: center; gap: 6px; }
.btn-mute, .btn-solo { width: 24px; height: 24px; border: 1px solid #52525b; background: #27272a; color: #a1a1aa; border-radius: 4px; font-size: 0.7rem; font-weight: 800; cursor: pointer; transition: 0.2s; padding: 0; }
.btn-mute.active { background: #ef4444; color: #fff; border-color: #b91c1c; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.btn-solo.active { background: #facc15; color: #000; border-color: #ca8a04; box-shadow: 0 0 8px rgba(250, 204, 21, 0.5); }
.track-vol { -webkit-appearance: none; width: 60px; height: 4px; background: #3f3f46; outline: none; border-radius: 2px; }
.track-vol::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 10px; height: 16px; background: #a1a1aa; border-radius: 2px; cursor: pointer; }

/* 16个步进打击垫 */
.gb-steps { display: flex; gap: 6px; padding: 10px; border-radius: 8px; }
.gb-step { width: 34px; height: 44px; background: #27272a; border: 1px solid #3f3f46; border-radius: 4px; cursor: pointer; transition: 0.1s; position: relative; box-shadow: inset 0 2px 2px rgba(255,255,255,0.05), 0 2px 4px rgba(0,0,0,0.2); }
.gb-step:nth-child(4n+1) { background: #3f3f46; border-color: #52525b; }
.gb-step:hover { background: #52525b; }

/* 各轨道发光颜色 */
.gb-track[data-inst="kick"] .gb-step.active { background: #ef4444; border-color: #f87171; box-shadow: 0 0 10px rgba(239,68,68,0.6); }
.gb-track[data-inst="snare"] .gb-step.active { background: #3b82f6; border-color: #60a5fa; box-shadow: 0 0 10px rgba(59,130,246,0.6); }
.gb-track[data-inst="clap"] .gb-step.active { background: #d946ef; border-color: #e879f9; box-shadow: 0 0 10px rgba(217,70,239,0.6); }
.gb-track[data-inst="hihat"] .gb-step.active { background: #f59e0b; border-color: #fbbf24; box-shadow: 0 0 10px rgba(245,158,11,0.6); }
.gb-track[data-inst="ohat"] .gb-step.active { background: #eab308; border-color: #fde047; box-shadow: 0 0 10px rgba(234,179,8,0.6); }
.gb-track[data-inst="bass"] .gb-step.active { background: #8b5cf6; border-color: #a78bfa; box-shadow: 0 0 10px rgba(139,92,246,0.6); }

/* 播放指引线 */
.gb-step.playing::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.4); border-radius: 4px; box-shadow: 0 0 15px rgba(255,255,255,0.8); z-index: 10; pointer-events: none; }

.maker-info-card { background: var(--bg-surface); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 1100px; margin: 0 auto; box-sizing: border-box; }

@media (max-width: 860px) {
    .gb-top-panel { flex-direction: column; align-items: stretch; gap: 16px; }
    .gb-master-fx { flex-wrap: wrap; justify-content: space-between; }
    .gb-controls { justify-content: space-between; }
    .gb-actions { flex-wrap: wrap; }
    .gb-track-control { width: 120px; }
    .gb-step { width: 28px; height: 40px; }
}