/* STYLE 1 MAIN FRAMEWORK & RESPONSIVE GRID MATRIX */ 
.stem-player-container { 
    background: #1a1a1a; 
    color: #dae0e7; 
    padding: 24px; 
    border-radius: 12px; 
    font-family: system-ui, sans-serif; 
    max-width: 960px; 
    margin: 20px auto; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.3); 
    box-sizing: border-box; 
} 

/* CLEAN FIXED OVERRIDE: Removed the duplicate layout block conflict entirely */
.dashboard-controls-row { 
    display: flex; 
    gap: 16px; 
    margin-top: 15px; 
    width: 100%; 
    box-sizing: border-box; 
} 

.playlist-menu-container { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #333333; padding-bottom: 16px; } 
.dropdown-label { font-size: 14px; font-weight: 600; color: #dae0e7; } 
.song-dropdown { background: #2a2a2a; color: #dae0e7; border: 2px solid #333333; padding: 10px 14px; border-radius: 6px; font-size: 16px; cursor: pointer; outline: none; transition: border-color 0.2s; } 
.song-dropdown:focus { border-color: #d45b12; } 
.player-title { margin-top: 0; text-align: center; color: #d45b12; font-size: 24px; font-weight: 700; margin-bottom: 20px; } 
.master-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px; margin-bottom: 0; } 
.control-btn { background: #d45b12; border: none; color: white; padding: 12px 0; border-radius: 6px; font-weight: bold; cursor: pointer; font-size: 14px; transition: all 0.2s ease; width: 100%; text-align: center; display: inline-block; box-sizing: border-box; } 
.control-btn:disabled { background: #555555; cursor: not-allowed; } 
.control-btn:hover:not(:disabled) { background: #b0490e; } 
.control-btn.counting { background: #0277bd !important; box-shadow: 0 0 10px rgba(2, 119, 189, 0.5); letter-spacing: 0.2px; } 
.control-btn.counting:hover { background: #01579b !important; } 
.practice-mode-btn { background: #4a148c; } 
.practice-mode-btn:hover { background: #311b92; } 
.practice-mode-btn.active-mode { background: #ba68c8 !important; color: #1a1a1a !important; box-shadow: 0 0 12px rgba(186, 104, 200, 0.6); } 

.control-sub-frame { flex: 1; margin-bottom: 0 !important; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px !important; box-sizing: border-box; } 
@media (max-width: 768px) { .dashboard-controls-row { flex-direction: column; } } 

.sections-menu-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 25px; background: #222222; padding: 16px; border-radius: 8px; border: 1px solid #333333; box-sizing: border-box; } 
.sections-label { font-size: 13px; font-weight: 600; color: #8a95a5 !important; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; width: 100%; text-align: left; } 
.sections-btn-grid { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; } 
.section-btn { background: #333333; border: 1px solid #444444; color: #dae0e7; padding: 8px 16px; border-radius: 4px; font-size: 13px; font-weight: bold; cursor: pointer; transition: all 0.2s ease; flex: 1; min-width: 100px; text-align: center; } 
.section-btn:hover { background: #444444; border-color: #d45b12; color: white; } 
.section-btn.active-section { background: #d45b12 !important; border-color: #ff7626 !important; color: white !important; box-shadow: 0 0 10px rgba(212, 91, 18, 0.5); } 
.chord-lead-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 4px; width: 100%; box-sizing: border-box; } 
@media (max-width: 600px) { .chord-lead-grid { grid-template-columns: repeat(2, 1fr); } } 
.chord-measure-cell { background: #2b2b2b; border: 1px solid #444444; border-left: 3px solid #666666; border-radius: 4px; padding: 14px 8px; text-align: center; position: relative; cursor: pointer; transition: all 0.2s ease; box-sizing: border-box; } 
.chord-measure-cell:hover { background: #383838; border-color: #ba68c8; } 
.chord-symbol-text { font-size: 20px; font-weight: 800; color: #ffffff; font-family: serif, sans-serif; letter-spacing: 0.5px; } 
.measure-number-tag { position: absolute; left: 6px; top: 4px; font-size: 10px; font-weight: bold; color: #8a95a5; font-family: monospace; } 
.chord-measure-cell.active-chord { background: rgba(212, 91, 18, 0.15) !important; border-color: #d45b12 !important; border-left-color: #ff7626 !important; box-shadow: 0 0 10px rgba(212, 91, 18, 0.4); transform: translateY(-1px); } 
.chord-measure-cell.active-chord .chord-symbol-text { color: #ff7626 !important; }








/* STYLE 2 HIGH-CONTRAST INSTRUMENT DECK & AUDIO MIXER FADERS */ 
.record-arm-btn { background: #2e7d32; } 
.record-arm-btn:hover { background: #1b5e20; } 
.record-arm-btn.armed { background: #c62828 !important; color: white !important; box-shadow: 0 0 12px rgba(198, 40, 40, 0.5); animation: pulseRecord 1.5s infinite ease-in-out; } 
.record-arm-btn.recording-live { background: #ff1744 !important; font-size: 13px; } 
@keyframes pulseRecord { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } } 

.take-review-panel { width: 100%; max-width: 440px; background: #1a1a1a; border: 1px dashed #ba68c8; padding: 10px; border-radius: 6px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; } 
.review-label { font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; color: #8a95a5; } 
.review-btn-row { display: flex; gap: 10px; width: 100%; } 
.review-action-btn { flex: 1; background: #333333; border: 1px solid #444444; color: white; padding: 8px 0; border-radius: 4px; font-size: 13px; font-weight: bold; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; transition: background 0.15s; } 
.review-action-btn:hover { background: #444444; border-color: #ba68c8; } 
.review-action-btn.playing-take { background: #ba68c8 !important; color: #1a1a1a !important; } 

.control-group { display: flex; flex-direction: column; font-size: 16px; } 
.speed-block { min-width: 170px; } 
.tempo-header-wrapper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; } 
.speed-title { font-weight: 600; font-size: 15px; white-space: nowrap; } 
.step-tempo-btn { background: #333333; border: 1px solid #444444; color: #dae0e7; width: 24px; height: 24px; border-radius: 4px; font-weight: bold; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s ease; } 
.step-tempo-btn:hover { background: #d45b12; border-color: #ff7626; color: white; } 
.step-tempo-btn:active { transform: scale(0.9); } 

.checkbox-group { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; cursor: pointer; } 
#autoLoop { accent-color: #d45b12; transform: scale(1.2); cursor: pointer; } 
.progress-container { width: 100%; margin-bottom: 20px; } 
.time-display-wrapper { display: flex; align-items: center; gap: 12px; } 
.time-stamp { font-size: 14px; font-weight: bold; font-family: monospace; color: #8a95a5; min-width: 35px; text-align: center; } 

.slider-timeline-wrapper { position: relative; flex-grow: 1; display: flex; align-items: center; margin: 0 10px; background: #222222; height: 32px; border-radius: 6px; overflow: hidden; border: 1px solid #333333; } 
#waveformCanvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; } 
#masterProgress.theme-slider { -webkit-appearance: none; appearance: none; background: transparent !important; width: 100%; height: 100%; margin: 0; cursor: pointer; position: relative; z-index: 3; } 
#masterProgress.theme-slider::-webkit-slider-runnable-track { background: transparent !important; border: none; } 
#masterProgress.theme-slider::-moz-range-track { background: transparent !important; border: none; } 
#masterProgress.theme-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 4px; height: 32px; background: #ffffff; box-shadow: 0 0 8px #ff7626; border-radius: 2px; cursor: pointer; } 
#masterProgress.theme-slider::-moz-range-thumb { width: 4px; height: 32px; background: #ffffff; box-shadow: 0 0 8px #ff7626; border-radius: 2px; cursor: pointer; border: none; } 

.theme-slider { accent-color: #d45b12; -webkit-appearance: none; appearance: none; background: #333333; border-radius: 4px; } 
.theme-slider::-webkit-slider-runnable-track { background: #333333; border-radius: 4px; } 
.theme-slider::-moz-range-track { background: #333333; border-radius: 4px; } 

/* DYNAMIC PIANO VISUALIZER ENGINE LAYOUT SPECIFICATIONS */ 
.piano-keyboard-viewport { background: #000000; padding: 3px; border-radius: 6px; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); box-sizing: content-box; } 
.white-key, .black-key-slot { flex: 1; width: 0; } 
.piano-key.white-key { height: 100%; background: #ffffff; border: 1px solid #b5b5b5; border-bottom: 6px solid #e0e0e0; border-radius: 0 0 4px 4px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 8px; box-sizing: border-box; } 
.black-key-slot { position: relative; height: 100%; } 
.piano-key.black-key { position: absolute; top: 0; left: 100%; width: 4.2%; height: 75%; background: #151515; border: 1px solid #000000; border-radius: 0 0 3px 3px; box-shadow: 0 3px 6px rgba(0,0,0,0.7); pointer-events: auto; z-index: 10; transform: translateX(-50%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; } 

/* FIXED ENFORCED FONT SCALING: Restored high-visibility 18px dimensions */ 
.key-label-text { font-size: 18px; font-weight: 800; font-family: system-ui, sans-serif; color: #757575; opacity: 0.15; margin-bottom: 4px; transition: color 0.1s ease, opacity 0.1s ease, text-shadow 0.1s ease; pointer-events: none; z-index: 15; } 
.key-label-text.black-label { font-size: 18px; color: #555555; margin-bottom: 2px; } 

/* Active Orange Glow States and High-Contrast White Label Reveals */ 
.piano-key.white-key.active-key { background: #ff7626 !important; border-color: #d45b12 !important; border-bottom-color: #b0490e !important; box-shadow: inset 0 -15px 20px rgba(0,0,0,0.1); } 
.piano-key.black-key.active-key { background: #ff7626 !important; border-color: #d45b12 !important; box-shadow: 0 0 10px rgba(212, 91, 18, 0.8); } 
.piano-key.active-key .key-label-text { opacity: 1 !important; color: #ffffff !important; text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,1); } 

/* UNIFIED VOLUME STREAM SLIDERS */ 
.track-sliders { display: flex; justify-content: space-between; gap: 10px; } 
.track-control { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; } 
.track-control label { font-size: 15px; margin-bottom: 12px; font-weight: 600; letter-spacing: 0.3px; white-space: nowrap; } 
.volume-slider { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 140px; cursor: pointer; margin-bottom: 14px; } 
.button-pad { display: flex; flex-direction: column; gap: 6px; width: 90%; align-items: center; } 
.mute-btn, .solo-btn { background: #d45b12; border: none; color: white; padding: 6px 0; width: 100%; border-radius: 4px; font-size: 11px; font-weight: bold; cursor: pointer; transition: background 0.2s, color 0.2s; text-transform: uppercase; letter-spacing: 0.5px; } 
.mute-btn:hover, .solo-btn:hover { background: #b0490e; } 
.mute-btn.muted { background: #333333; color: #8a95a5; } 
.solo-btn.soloed { background: #ffffff; color: #d45b12; box-shadow: 0 0 8px rgba(212, 91, 18, 0.4); }












/* STYLE 3 (THE HIGH-VISIBILITY LETTER LABELS LAYOUT ENGINE) */ 
.piano-keyboard-viewport { 
    background: #000000; 
    padding: 3px; 
    border-radius: 6px; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8); 
    box-sizing: content-box; 
} 
.white-key, .black-key-slot { flex: 1; width: 0; } 
.piano-key.white-key { 
    height: 100%; 
    background: #ffffff; 
    border: 1px solid #b5b5b5; 
    border-bottom: 6px solid #e0e0e0; 
    border-radius: 0 0 4px 4px; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    align-items: center; 
    padding-bottom: 8px; 
    box-sizing: border-box; 
} 
.black-key-slot { position: relative; height: 100%; } 

/* FIXED HEIGHT SPECIFICATION: Enforced your strict 75% geometric balance bounds */
.piano-key.black-key { 
    position: absolute; 
    top: 0; 
    left: 100%; 
    width: 4.2%; 
    height: 50%;
    background: #151515; 
    border: 1px solid #000000; 
    border-radius: 0 0 3px 3px; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.7); 
    pointer-events: auto; 
    z-index: 10; 
    transform: translateX(-50%); 
    display: flex; 
    align-items: flex-end; 
    justify-content: center; 
    padding-bottom: 8px; 
} 

/* ======================================================== */ 
/* KEYBOARD ALPHABETIC FONT MARKER DEFINITIONS              */ 
/* ======================================================== */ 
.key-label-text { 
    font-size: 18px; 
    font-weight: 800; 
    font-family: system-ui, sans-serif; 
    color: #757575; 
    opacity: 0.15; 
    margin-bottom: 4px; 
    transition: color 0.1s ease, opacity 0.1s ease, text-shadow 0.1s ease; 
    pointer-events: none; 
    z-index: 15; 
} 
.key-label-text.black-label { font-size: 18px; color: #555555; margin-bottom: 2px; } 

/* ACTIVE GLOW MATRICES */ 
.piano-key.white-key.active-key { 
    background: #ff7626 !important; 
    border-color: #d45b12 !important; 
    border-bottom-color: #b0490e !important; 
    box-shadow: inset 0 -15px 20px rgba(0,0,0,0.1); 
} 
.piano-key.black-key.active-key { 
    background: #ff7626 !important; 
    border-color: #d45b12 !important; 
    box-shadow: 0 0 10px rgba(212, 91, 18, 0.8); 
} 

/* Forces text characters to pop into clear high-contrast white over orange active fills */ 
.piano-key.active-key .key-label-text { 
    opacity: 1 !important; 
    color: #ffffff !important; 
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 1); 
}