:root {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --primary-color: #03dac6;
    --secondary-color: #bb86fc;
    --text-color: #e0e0e0;
    --error-color: #f44336;
    --record-color: #cf6679;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 { color: var(--primary-color); margin: 0; }
.version { font-size: 0.5em; vertical-align: middle; opacity: 0.7; }

.visualizer-container {
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
    height: 200px;
    overflow: hidden;
}

canvas { width: 100%; height: 100%; display: block; }

.controls-main {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-record { background: var(--record-color); color: white; }
.btn-stop { background: #555; color: white; }
.btn-play { background: var(--primary-color); color: #000; }
.btn-load { background: var(--secondary-color); color: #000; }
.btn-save { background: #4caf50; color: white; }
.btn-magic { background: linear-gradient(45deg, #6200ea, #03dac6); color: white; }
.btn-apply { background: var(--primary-color); color: #000; margin-top: 15px; }

.full-width { width: 100%; }

.studio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .studio-layout { grid-template-columns: 1fr; }
}

.effects-panel, .eq-panel {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label { display: block; margin-bottom: 5px; font-size: 0.9em; }
.control-group input[type="range"] { width: 100%; }

.effects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.btn-fx {
    padding: 8px;
    background: #333;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
}

.btn-fx:hover { background: #444; color: white; }

/* MODERN VERTICAL EQ FOR ALL BROWSERS (Firefox fix) */
.eq-container {
    display: flex;
    justify-content: space-around;
    height: 180px;
    padding: 10px 0;
    align-items: flex-end;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    height: 100%;
}

.eq-band input[type="range"] {
    appearance: none;
    background: #444;
    height: 4px;
    width: 120px;
    margin-bottom: 60px;
    transform: rotate(-90deg);
    transform-origin: center;
    cursor: pointer;
}

.eq-band input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
}

.eq-band input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
}

.eq-band label {
    font-size: 0.6em;
    margin-top: auto;
    color: #888;
}
