/* --- GRILLE AUDIO PRINCIPALE --- */
.audio-test-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 900px) {
    .audio-test-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* --- PANNEAU DE RENDU VISUEL (GAUCHE) --- */
.audio-main-panel {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    justify-content: space-between;
}

.visualizer-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: #090d16; /* Sombre absolu */
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.visualizer-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.visualizer-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.visualizer-placeholder.hidden {
    opacity: 0;
}

/* VOLUME MASTER */
.volume-container {
    margin-bottom: 25px;
}

.volume-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 14px;
}

.volume-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.volume-row input[type="range"] {
    flex-grow: 1;
    height: 6px;
    border-radius: 3px;
    accent-color: var(--primary);
    background: var(--border);
    cursor: pointer;
}

/* --- CARTES DE DIAGNOSTIC (DROITE) --- */
.audio-diag-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.audio-diag-panel .diag-card {
    padding: 20px;
}

.audio-diag-panel h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.audio-diag-panel p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Actions spécifiques */
.balance-actions, .sweep-actions {
    display: flex;
    gap: 12px;
}

.balance-actions button {
    flex: 1;
    font-weight: 600;
}

/* FREQUENCE SWEEP DISPLAY */
.frequency-row {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.freq-display {
    font-family: monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    min-width: 160px;
    text-align: center;
}

#freq-slider {
    accent-color: var(--primary);
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
}

/* Boutons allumés en cours de lecture */
.btn-outline.playing {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}
