/* 音频分割 - 组件专属样式（公共类见 common.css） */

/* 左侧原文件音频试听（原生控件） */
.audio-preview-player {
    margin-top: 10px;
    padding: 8px 4px;
    background: #faf9ff;
    border: 1px solid #ede9fe;
    border-radius: 8px;
}
.audio-preview-player audio {
    display: block;
}

/* 左侧选择音频上传区 - 紧凑版（参考 yinpinpinjie） */
.settings-card .upload-zone {
    min-height: 100px !important;
    padding: 16px !important;
}
.settings-card .upload-zone .empty-icon {
    font-size: 28px !important;
    margin-bottom: 4px !important;
}
.settings-card .upload-zone .empty-title {
    font-size: 13px !important;
}
.settings-card .upload-zone .empty-hint,
.settings-card .upload-placeholder .upload-text,
.settings-card .upload-placeholder .upload-hint {
    font-size: 11px !important;
}

/* 已选文件信息 */
.selected-file-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: #f5f3ff;
    border: 1px solid #e9e3ff;
    border-radius: 8px;
    font-size: 13px;
}
.selected-file-name {
    font-weight: 500;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.selected-file-meta {
    color: #8b5cf6;
    font-variant-numeric: tabular-nums;
}
.selected-file-remove {
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
}
.selected-file-remove:hover {
    background: #fee2e2;
}

/* 处理进度条容器 */
.process-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

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

/* card-header 右侧下载按钮 */
.card-header-right-btn-download {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    background: #8b5cf6;
    border: 1px solid #8b5cf6;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-header-right-btn-download:hover:not(:disabled) {
    background: #7c3aed;
    border-color: #7c3aed;
}
.card-header-right-btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* card-header 右侧清空按钮（参考 yinpintiaozhengyinliang） */
.card-header-right-btn-clear {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-header-right-btn-clear:hover:not(:disabled) {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}
.card-header-right-btn-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 卡片头部居中数量统计 */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.header-count {
    font-size: 13px;
    color: #8b5cf6;
    background: #f5f3ff;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 上传区域 */
.empty-preview {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #fafafa;
}

.empty-preview.upload-zone {
    cursor: pointer;
    transition: all 0.2s;
}

.empty-preview.upload-zone:hover,
.empty-preview.upload-zone.drag-over {
    border-color: #8b5cf6;
    background: #f5f3ff;
}

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

.empty-title {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
}

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

/* ===== 分割结果列表（参考 yinpinjianqie 剪切列表样式） ===== */
.clip-list {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.clip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f4;
}
.clip-item:last-child {
    border-bottom: none;
}
.clip-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f3e8ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}
.clip-thumb:hover {
    background: #ede9fe;
}
.clip-thumb.playing {
    background: #8b5cf6;
    color: #fff;
}
.clip-play-btn {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.clip-info {
    flex: 1;
    min-width: 0;
}
.clip-file-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.clip-index {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
    padding: 1px 7px;
}
.clip-file-name-input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 13px;
    color: #374151;
    background: #fff;
    transition: border-color 0.15s;
}
.clip-file-name-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
}
.clip-file-ext {
    flex-shrink: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}
.clip-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
}
.clip-format-tag {
    font-size: 11px;
    font-weight: 600;
    color: #7c3aed;
    background: #ede9fe;
    padding: 1px 8px;
    border-radius: 4px;
}
.clip-size {
    color: #9ca3af;
}
.clip-time {
    color: #9ca3af;
    font-variant-numeric: tabular-nums;
}
.clip-progress {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    min-width: 80px;
    overflow: hidden;
}
.clip-progress-fill {
    display: block;
    height: 100%;
    background: #8b5cf6;
    transition: width 0.1s linear;
}
.clip-item .btn {
    flex-shrink: 0;
}
.clip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}
.clip-delete-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #9ca3af;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s;
}
.clip-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

/* 处理进度条 */
.process-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 4px;
    transition: width 0.2s;
}
.process-bar-fill.processing { background: linear-gradient(90deg, #f59e0b, #d97706); }
.process-bar-fill.done { background: linear-gradient(90deg, #10b981, #059669); }
.process-bar-fill.error { background: linear-gradient(90deg, #ef4444, #dc2626); }

/* 响应式 */
@media (max-width: 992px) {
    .clip-list {
        margin-top: 12px;
    }
}
@media (max-width: 600px) {
    .clip-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .clip-item .btn {
        width: 100%;
    }
}
