/* ==========================================================================
CYBER HUD - AUDIO RECORDER PANEL & PLAYER HUD
========================================================================== */

.audio-recorder-panel {
    background: rgba(3, 10, 25, 0.95);
    border: 1px solid var(--hud-panel-border);
    border-radius: 4px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glow-red-rec {
    border-color: rgba(255, 62, 62, 0.4);
}

.glow-red-rec:hover, .hud-icon-btn.active-rec {
    color: #fff;
    background-color: var(--hud-red) !important;
    border-color: var(--hud-red) !important;
    box-shadow: var(--hud-red-glow), 0 0 15px rgba(255, 62, 62, 0.4) !important;
}

/* 錄音呼吸燈動畫 */
.pulse {
    animation: textPulse 1.5s infinite alternate;
}

@keyframes textPulse {
    from { opacity: 0.6; text-shadow: 0 0 2px var(--hud-red); }
    to { opacity: 1; text-shadow: var(--hud-red-glow), 0 0 8px rgba(255,62,62,0.8); }
}

.visualizer-container {
    border: 1px dashed rgba(0, 243, 255, 0.15);
    background: rgba(2, 5, 12, 0.8);
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#audio-visualizer {
    display: block;
}

#record-pause:disabled, #record-stop:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(0, 243, 255, 0.05);
}

/* HUD 內置音訊播放控制列補齊樣式 */
.audio-playback-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.audio-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(3, 10, 25, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#audio-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--hud-blue), var(--hud-cyan));
    box-shadow: var(--hud-cyan-glow);
    border-radius: 3px;
    transition: width 0.1s linear;
}

#audio-time-display {
    font-size: 0.75rem;
    color: var(--hud-cyan);
    white-space: nowrap;
    text-shadow: var(--hud-cyan-glow);
}