body {
    margin: 0;
    background: #0e0f14;
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Arial, sans-serif;
}

.app-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
}

/* 顶部栏 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* BETA */
.beta-badge {
    background: linear-gradient(135deg, #4ea3ff, #7c4dff);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
}

/* 卡片 */
.panel {
    background: #171823;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 0 22px rgba(0,0,0,0.4);
}
.panel h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* 上传 */
.upload-zone {
    display: flex;
    align-items: center;
    gap: 15px;
}
.file-label {
    font-size: 13px;
    color: #aaa;
}

/* 上传条 */
#uploadProgressWrapper {
    display: none;
    margin-top: 15px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #2b2c3c;
    border-radius: 10px;
    margin-top: 5px;
    overflow: hidden;
}
#uploadProgress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00e676, #00b0ff);
    transition: width 0.3s;
}

/* 预设区 */
.preset-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* 参数区 */
.control-panel {
    background: #10111a;
    padding: 12px;
    border-radius: 10px;
}
.control-item {
    margin-bottom: 12px;
}
.control-item label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}
.control-item input {
    width: 260px;
}
.control-item span {
    margin-left: 8px;
    color: #4ea3ff;
}

/* 预览 */
.preview-block {
    margin-bottom: 14px;
}
.preview-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 波形 */
.visual-area {
    display: flex;
    gap: 20px;
}
#waveform {
    flex: 1;
    height: 140px;
    background: #050509;
    border-radius: 10px;
}
#liveSpectrum {
    width: 100%;
    height: 140px;   /* ✅ 放大频谱高度 */
    background: linear-gradient(180deg, #050509, #0d0d18);
    border-radius: 14px;
    border: 1px solid #222231;

    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.6),
        0 10px 22px rgba(0,0,0,0.45);
}

/* 按钮 */
button {
    background: #292b3d;
    border: none;
    color: #eee;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}
button:hover {
    background: #373a55;
}

/* 主按钮 */
.main-btn {
    background: linear-gradient(135deg, #4ea3ff, #7c4dff);
    font-weight: bold;
}
.main-btn:hover {
    background: linear-gradient(135deg, #5eb4ff, #885dff);
}

/* 导出专用 */
.export-btn {
    margin-top: 15px;
    background: linear-gradient(135deg, #00d2ff, #3a47d5);
    font-weight: bold;
}

/* 导出区 */
.export-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

/* 文本输出 */
pre {
    margin-top: 10px;
    background: #0c0d15;
    padding: 10px;
    border-radius: 8px;
    color: #bbb;
    font-size: 12px;
}

/* 实时预览区域 */
.preview-block {
    margin-top: 12px;
}

.preview-label {
    font-size: 13px;
    margin-bottom: 6px;
    color: #bbb;
}

.transport-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transport-bar button {
    width: 40px;
    height: 32px;
}

.seek-container {
    flex: 1;
}

/* 进度条轨道 */
#previewSeekBar,
#rawSeekBar {
    width: 100%;
    height: 8px;
    background: #2b2b38;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
}

/* 播放进度 */
#previewProgress,
#rawProgress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4ea3ff, #7c4dff);
    border-radius: 999px;
    transition: width 0.1s linear;
}

/* ========== 实时预览修复区 ========== */

/* 整体区块 */
.preview-section {
    margin-top: 10px;
}

/* 单个预览块 */
.preview-block {
    margin-top: 16px;
}

/* 标题 */
.preview-label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #ccc;
}

/* 横向布局 */
.preview-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 播放 / 暂停按钮 */
.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: #222235;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: #2f2f50;
}

/* 进度条 */
.preview-row input[type=range] {
    flex: 1;
    height: 6px;
    appearance: none;
    background: #2a2a3a;
    border-radius: 999px;
    outline: none;
}

/* 进度条已播放部分 */
.preview-row input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
}

/* 小圆点滑块 */
.preview-row input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #4ea3ff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
}

/* 时间显示 */
#previewTime,
#rawTime {
    font-size: 12px;
    color: #aaa;
    min-width: 100px;
    text-align: right;
}


/* 播放图标（三角形） */
.play-icon {
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

/* 暂停状态 */
.icon-btn.playing .play-icon {
    border: none;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: space-between;
}

/* 暂停两条竖线 */
.icon-btn.playing .play-icon::before,
.icon-btn.playing .play-icon::after {
    content: "";
    display: block;
    width: 5px;
    height: 18px;
    background: white;
    border-radius: 2px;
}

.visual-row {
    display: flex;
    gap: 20px;
    margin-top: 14px;
}

.visual-col {
    width: 50%;
}


.header-left h1 {
    margin: 0;
    font-size: 26px;
}

/* 右侧标题区 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 右侧副标题 */
.subtitle {
    color: #aaa;
    font-size: 13px;
    white-space: nowrap;
}

/* BETA 标签 */
.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: linear-gradient(135deg, #4ea3ff, #7c4dff);
    color: #fff;
    white-space: nowrap;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header-tagline {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

.brand-link {
    color: #2da8ff;              /* 更亮的科技蓝 */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.brand-link:hover {
    color: #79c7ff;              /* 悬停变浅蓝 */
    text-decoration: underline;
}

.title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.version {
    font-size: 14px;
    font-weight: 400;
    margin-left: 6px;
    color: #888;
    vertical-align: middle;
}

.params.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 32px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-row input[type=range] {
    flex: 1;
}

/* 导出区整体间距优化 */
.export-section {
    margin-top: 16px;
}

/* 导出选项（格式 + 比特率）和按钮拉开 */
.export-row {
    margin-bottom: 14px;   /* 加一行底部间距 */
}

/* 导出按钮单独拉开 */
.export-btn {
    margin-top: 8px;       /* 不要太大，这样有种“分层感” */
    display: inline-block;
}

/* ③ 波形 & 频谱 - 按钮间距 */
.analyze-row {
    margin-top: 16px;   /* 跟可视区域拉开 */
    text-align: left;
}

#analyzeBtn {
    margin-top: 4px;
    padding: 8px 16px;
}

/* 强制清除 AutoMix Pro 标题链接样式 */
.header-left .title-link,
.header-left .title-link:link,
.header-left .title-link:visited,
.header-left .title-link:hover,
.header-left .title-link:active {
    color: #fff !important;
    text-decoration: none !important;
    outline: none;
}

/* 分析混音按钮 loading 动画 */
.btn-loading {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}





