/* mp4-to-mp3 页面专属样式 - Tailwind 无法覆盖的功能性样式（纯色主题，无渐变） */

/* 上传区 */
.m4m-dropzone {
    border: 2px dashed #bae6fd;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    outline: none;
}
.m4m-dropzone:hover, .m4m-dropzone:focus, .m4m-dropzone.drag-over {
    border-color: #0ea5e9;
    background-color: #f0f9ff;
}

/* 表单字段 */
.m4m-field { min-width: 0; }
.m4m-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}
.m4m-select, .m4m-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.m4m-select:focus, .m4m-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* 高级选项折叠 */
.m4m-adv-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.m4m-adv-toggle:hover { background: #f1f5f9; border-color: #94a3b8; }
.m4m-adv-arrow { transition: transform 0.2s ease; font-size: 0.75rem; }
.m4m-adv-toggle.open .m4m-adv-arrow { transform: rotate(180deg); }
.m4m-advanced {
    margin-top: 0.875rem;
    padding: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

/* 按钮组 */
.m4m-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: #0ea5e9;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.m4m-btn-primary:hover:not(:disabled) { background: #0284c7; }
.m4m-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.m4m-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.m4m-btn-secondary:hover:not(:disabled) { background: #f8fafc; border-color: #94a3b8; }

/* 音量滑块 */
.m4m-range { width: 100%; margin-top: 0.625rem; accent-color: #0ea5e9; }

/* 引擎状态 */
.m4m-engine-status {
    margin-top: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.8125rem;
    text-align: center;
}

/* 文件列表行 */
.m4m-file-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #f8fafc;
}
.m4m-file-icon { color: #0ea5e9; flex-shrink: 0; }
.m4m-file-info { flex: 1; min-width: 0; }
.m4m-file-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m4m-file-meta { font-size: 0.75rem; color: #64748b; margin-top: 0.125rem; }
.m4m-status-wait { color: #64748b; }
.m4m-status-running { color: #0284c7; }
.m4m-status-done { color: #059669; }
.m4m-status-error { color: #dc2626; }
.m4m-progress {
    height: 0.375rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.375rem;
}
.m4m-progress-bar {
    height: 100%;
    background: #0ea5e9;
    border-radius: 9999px;
    width: 0;
    transition: width 0.3s ease;
}
.m4m-file-status { font-size: 0.75rem; flex-shrink: 0; white-space: nowrap; }
.m4m-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    color: #fff;
    background: #0ea5e9;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
}
.m4m-dl-btn:hover { background: #0284c7; }

/* 通用区块卡片 / 特性条目 / 工具卡片（对齐 pg- 规范） */
.m4m-section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    margin-top: 1rem;
}
.m4m-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: #f8fafc;
}
.m4m-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.875rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.m4m-tool-card:hover { border-color: #bae6fd; background: #f0f9ff; }
