/* ==========================================================================
   DJ RECORDER - Compacto (WAV 44.1kHz/16bit)
   ========================================================================== */

/* Container principal - Compacto */
.recorder-container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(145deg, #1a1a24, #12121a);
    border: 1px solid #2a2a3a;
    border-radius: 6px;
}

/* Botones de control */
.recorder-controls {
    display: flex;
    gap: 4px;
}

.recorder-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #3a3a4a;
    background: linear-gradient(145deg, #252532, #1a1a24);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 11px;
}

.recorder-btn:hover {
    border-color: #4a4a5a;
    color: #aaa;
    transform: scale(1.08);
}

.recorder-btn:active {
    transform: scale(0.92);
}

.recorder-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

/* Botón REC */
.recorder-btn-rec {
    border-color: #4a2a2a;
}

.recorder-btn-rec:hover {
    border-color: #6a3a3a;
    color: #ff6b6b;
}

.recorder-btn-rec.recording {
    background: linear-gradient(145deg, #3a1a1a, #2a1010);
    border-color: #ff4444;
    color: #ff4444;
    animation: rec-pulse 1s ease-in-out infinite;
}

.recorder-btn-rec.recording .rec-icon {
    animation: rec-blink 0.8s ease-in-out infinite;
}

@keyframes rec-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
    50% { box-shadow: 0 0 8px 3px rgba(255, 68, 68, 0.3); }
}

@keyframes rec-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Botón PAUSE */
.recorder-btn-pause {
    border-color: #3a3a2a;
}

.recorder-btn-pause:hover {
    border-color: #5a5a3a;
    color: #ffd93d;
}

.recorder-btn-pause.paused {
    background: linear-gradient(145deg, #2a2a1a, #1a1a10);
    border-color: #ffd93d;
    color: #ffd93d;
}

/* Botón STOP */
.recorder-btn-stop {
    border-color: #2a4a3a;
}

.recorder-btn-stop:hover {
    border-color: #3a6a5a;
    color: #22c55e;
}

.recorder-btn-stop:not(:disabled):hover::after {
    content: '↓';
    position: absolute;
    font-size: 8px;
    top: -8px;
    color: #22c55e;
}

/* Display de tiempo - Compacto */
.recorder-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
    min-width: 70px;
}

.recorder-time {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #6bcfff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(107, 207, 255, 0.3);
}

.recorder-time.recording {
    color: #ff6b6b;
    text-shadow: 0 0 6px rgba(255, 107, 107, 0.4);
}

.recorder-status {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-top: 1px;
}

.recorder-status.recording {
    color: #ff6b6b;
    font-weight: bold;
}

.recorder-status.paused {
    color: #ffd93d;
}

/* VU Meter mini - Compacto */
.recorder-vu {
    display: flex;
    gap: 2px;
    height: 24px;
    align-items: flex-end;
}

.recorder-vu-bar {
    width: 3px;
    background: linear-gradient(to top, #22c55e 0%, #22c55e 60%, #ffd93d 60%, #ffd93d 85%, #ff4444 85%, #ff4444 100%);
    border-radius: 1px;
    transition: height 0.05s ease;
    min-height: 3px;
}

.recorder-vu-bar.left {
    opacity: 0.9;
}

.recorder-vu-bar.right {
    opacity: 0.65;
}

/* Responsive móvil */
@media (max-width: 768px) {
    .recorder-container {
        padding: 5px 8px;
        gap: 5px;
    }

    .recorder-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .recorder-time {
        font-size: 16px;
    }

    .recorder-display {
        min-width: 75px;
    }

    .recorder-vu {
        height: 28px;
    }

    .recorder-vu-bar {
        width: 4px;
    }
}

/* Selector de formato */
.recorder-format {
    display: flex;
    align-items: center;
}

.recorder-format-select {
    background: linear-gradient(145deg, #1a1a24, #252532);
    border: 1px solid #3a3a4a;
    border-radius: 4px;
    color: #6bcfff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 6px;
    cursor: pointer;
    outline: none;
    min-width: 70px;
}

.recorder-format-select:hover {
    border-color: #4a4a5a;
    background: linear-gradient(145deg, #252532, #1a1a24);
}

.recorder-format-select:focus {
    border-color: #6bcfff;
    box-shadow: 0 0 4px rgba(107, 207, 255, 0.3);
}

.recorder-format-select option {
    background: #1a1a24;
    color: #ccc;
    padding: 4px;
}

/* Panel position */
.recorder-panel {
    position: relative;
}
