/* ==========================================================================
   Niffty DJ - Deck 5-Slot Multi-FX Bars with Rotary Turn Knobs
   ========================================================================== */

.deck-fx-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 2px 5px;
    background-color: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.deck-fx-bar::-webkit-scrollbar {
    display: none;
}

.fx-unit-badge {
    font-size: 8px;
    font-weight: 900;
    padding: 2px 4px;
    background-color: var(--bg-primary);
    color: var(--neon-blue);
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.deck-fx-bar[data-unit="2"] .fx-unit-badge {
    color: var(--neon-pink);
}

/* 5 FX Slots Row */
.fx-slots-row {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.fx-slot-box {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    padding: 1px 3px;
    border-radius: 3px;
    flex: 1;
    min-width: 0;
}

.fx-select {
    background-color: #0b101b;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 7.5px;
    font-weight: 800;
    padding: 1px 2px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex: 1;
    min-width: 38px;
}

.fx-toggle-btn {
    background-color: #1a1e28;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 900;
    padding: 2px 3px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fx-toggle-btn.active {
    background-color: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.deck-fx-bar[data-unit="2"] .fx-toggle-btn.active {
    background-color: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 6px rgba(247, 37, 133, 0.4);
}

/* Rotary FX Turn Knob */
.fx-knob-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    cursor: ns-resize;
    user-select: none;
    touch-action: none;
    flex-shrink: 0;
}

.fx-knob {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a3346, #0e131d 70%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: grab;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx-knob:active {
    cursor: grabbing;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.deck-fx-bar[data-unit="2"] .fx-knob:active {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 8px rgba(247, 37, 133, 0.4);
}

.fx-knob-indicator {
    position: absolute;
    top: 1.5px;
    left: 50%;
    width: 2px;
    height: 5px;
    background-color: var(--neon-cyan);
    border-radius: 1px;
    transform: translateX(-50%);
    box-shadow: 0 0 4px var(--neon-cyan);
}

.deck-fx-bar[data-unit="2"] .fx-knob-indicator {
    background-color: var(--neon-magenta);
    box-shadow: 0 0 4px var(--neon-magenta);
}

.fx-knob-val {
    font-size: 6.5px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
}

/* Beat Division Chips */
.fx-beats-strip {
    display: flex;
    gap: 1px;
    background-color: var(--bg-primary);
    padding: 1px 2px;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.fx-beat-chip {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 6.5px;
    font-weight: 800;
    padding: 1px 2px;
    border-radius: 2px;
    cursor: pointer;
}

.fx-beat-chip.active {
    background-color: var(--neon-blue);
    color: #000;
}

.deck-fx-bar[data-unit="2"] .fx-beat-chip.active {
    background-color: var(--neon-pink);
    color: #000;
}

/* Master Wet/Dry Box */
.fx-wetdry-box {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    font-size: 7px;
    font-weight: 800;
    color: var(--text-secondary);
}

.fx-wetdry-label {
    font-size: 6.5px;
    font-weight: 900;
    color: var(--text-muted);
}

.fx-wetdry-knob {
    width: 20px;
    height: 20px;
}

.fx-wetdry-knob .fx-knob-indicator {
    background-color: #05ffa1;
    box-shadow: 0 0 4px #05ffa1;
}

.fx-wetdry-val {
    font-size: 6.5px;
    font-family: var(--font-mono);
    color: var(--text-primary);
    min-width: 18px;
}
