/* ============ 在线录音：工具专属组件样式（公共类见 common.css） ============ */

/* 录音计时器 */
.timer {
    color: #ef4444;
    font-weight: 600;
    margin-left: 4px;
}

/* 波形动画 */
.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 48px;
    margin: 12px 0;
}

.wave-bar {
    width: 4px;
    height: 20%;
    background: #8b5cf6;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.sound-wave.paused .wave-bar {
    animation-play-state: paused;
}

@keyframes wave {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

/* 空状态 */
.empty-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.empty-hint {
    font-size: 13px;
    color: #9ca3af;
}

/* 录音中预览 */
.audio-preview {
    padding: 12px 0;
}

.preview-info {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}

.preview-audio {
    width: 100%;
}

.audio-completed {
    padding: 8px 0;
}

/* 保存提示条 */
.save-tip-bar {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #92400e;
    margin: 12px 0;
    line-height: 1.6;
}

/* 录音列表 */
.clip-list {
    margin-top: 16px;
}

.clip-list-count {
    font-size: 13px;
    color: #8b5cf6;
    font-weight: 500;
}

.clip-list-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.clip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.clip-item:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

.clip-item.playing {
    border-color: #7c3aed;
    background: #ede9fe;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.clip-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.clip-thumb {
    position: relative;
    width: 88px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-thumb-audio {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.clip-no-cover {
    font-size: 28px;
}

.clip-play-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #7c3aed;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-duration-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
}

.clip-info {
    flex: 1;
    min-width: 0;
}

.clip-file-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.clip-index {
    background: #8b5cf6;
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clip-file-name-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    outline: none;
}

.clip-file-name-input:focus {
    border-color: #8b5cf6;
}

.clip-file-ext {
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.clip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.clip-format-tag {
    background: #ede9fe;
    color: #7c3aed;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.clip-bitrate {
    background: #e0f2fe;
    color: #0369a1;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* 自动下载勾选 */
.audio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.audio-name {
    font-size: 13px;
    color: #374151;
}

/* 设置项提示 */
.setting-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

/* 小按钮（下载单条） */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .clip-item {
        flex-wrap: wrap;
    }
    .clip-info {
        min-width: 100%;
    }
}
