/* ===== 音频拼接 yinpinpinjie - 统一公共样式 ===== */
#yinpinpinjie { }

/* 左侧设置 */
.setting-hint {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 右侧头部统计 */
.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-right: 8px;
}
.header-count {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 10px;
}

/* 上传区域（美化） */
.upload-zone {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: linear-gradient(135deg, #faf5ff 0%, #f0f4ff 100%);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139,92,246,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.upload-zone:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 12px rgba(139,92,246,0.15);
}
.upload-zone:hover::before { opacity: 1; }
.upload-zone.drag-over {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    box-shadow: 0 0 16px rgba(124,58,237,0.2);
}

.upload-zone .empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.25s ease;
    z-index: 1;
}
.upload-zone:hover .empty-icon { transform: scale(1.05); }

.upload-zone .empty-title {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    z-index: 1;
}
.upload-zone .empty-hint {
    font-size: 11px;
    color: #9ca3af;
    z-index: 1;
}

/* 队列列表（行式） */
.recordings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.recording-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: move;
}
.recording-item:hover { border-color: #8b5cf6; background: #f5f3ff; }
.recording-item.processing { border-color: #f59e0b; background: #fffbeb; }
.recording-item.preview-active { border-color: #8b5cf6; background: #ede9fe; box-shadow: 0 0 0 2px rgba(139,92,246,0.25); }

/* 上传占位行 */
.upload-row { cursor: pointer; border-style: dashed; justify-content: center; gap: 12px; }
.upload-row .empty-icon { font-size: 28px; margin-bottom: 0; }
.upload-row-text { text-align: left; }
.upload-row .empty-title { margin-bottom: 2px; }
.upload-row:hover { border-color: #8b5cf6; background: #f5f3ff; }

.recording-index {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    background: #ede9fe;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 6px;
    flex-shrink: 0;
    margin-right: 10px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.play-btn { background: #ede9fe; color: #7c3aed; }
.play-btn:hover:not(:disabled) { background: #ddd6fe; }
.delete-btn { background: #fee2e2; color: #dc2626; margin-left: 8px; }
.delete-btn:hover:not(:disabled) { background: #fecaca; }

.recording-info { flex: 1; min-width: 0; margin: 0 12px; }
.recording-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recording-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
}
.meta-format {
    background: #e0f2fe;
    color: #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.meta-duration { color: #374151; font-variant-numeric: tabular-nums; }
.meta-size { color: #6b7280; }

.recording-progress-bar { margin-top: 8px; }
.progress-track { height: 4px; background: #fde68a; border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #d97706); transition: width 0.2s; }

/* 右侧列容器：音频队列 + 拼接预览上下排列 */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.right-column > .preview-card { margin-top: 0; }

/* 拼接预览区（右侧列下方卡片） */
.merge-preview-card {
    /* 无额外 margin，由 right-column gap 控制间距 */
}
.merge-preview-body {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 预览信息行（参考录音完成 preview-info 风格） */
.preview-info {
    font-size: 13px;
    color: #7c3aed;
    text-align: center;
}

/* 自定义拼接预览播放器（视觉为整段，实际顺序播放） */
.merge-player {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
    border: 1px solid #e9d5ff;
}
.merge-player-cover {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.merge-player-cover:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.45);
}
.merge-player-cover.playing { animation: clip-pulse 2s ease-in-out infinite; }
.merge-player-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #8b5cf6;
    margin-left: 2px;
}
.merge-player-main { flex: 1; min-width: 0; }
.merge-player-bar {
    height: 8px;
    background: #ddd6fe;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.merge-player-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 4px;
    position: relative;
    transition: width 0.08s linear;
}
.merge-player-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(124, 58, 237, 0.4);
}
.merge-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 500;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* 保存提示条（参考录音完成 save-tip-bar） */
.save-tip-bar {
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #92400e;
    margin-top: 4px;
    line-height: 1.6;
}
.merge-preview-cover {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.merge-preview-cover.playing { animation: clip-pulse 1.5s ease-in-out infinite; }
.merge-preview-play {
    width: 32px; height: 32px; border-radius: 50%;
    background: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #8b5cf6;
}
.merge-preview-info { flex: 1; min-width: 0; }
.merge-preview-name { font-size: 14px; font-weight: 500; color: #1f2937; margin-bottom: 6px; }
.merge-preview-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #6b7280; }
.merge-preview-hint { color: #9ca3af; }

/* 已拼接结果卡（参考录音完成 preview-card 风格） */
.merge-preview-result { padding: 8px 0; }
.preview-audio { width: 100%; }

/* 拼接操作按钮行：开始拼接 + 下载拼接音频 */
.btn-container-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.merge-processing-tip {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
}

/* 拼接进行中：禁用下载按钮 */
.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
