/* ========================================
   AI 音乐模块样式 - 创作 + MV 四步向导
   ======================================== */

/* === 通用布局 === */
#music-create .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

#mv-create .content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.music-page-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.music-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    padding: 24px;
}

.music-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.music-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.music-panel-title i {
    color: var(--primary);
}

.btn-music-secondary {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-music-secondary:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === 输入表单 === */
.music-form-group {
    margin-bottom: 16px;
}

.music-form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.music-input,
.music-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.music-input:focus,
.music-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
}

.music-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.music-textarea.lyrics-area {
    min-height: 200px;
    font-family: 'Courier New', monospace;
}

/* === MV：我的歌手与项目准备 === */
.mv-singer-panel,
.mv-project-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 16px;
}

.mv-singer-panel-header,
.mv-project-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.mv-section-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.mv-guide-heading {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.mv-guide-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 11px;
    border: 1px solid rgba(34, 211, 238, 0.38);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.11);
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mv-guide-title-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mv-guide-desc {
    color: var(--text-tertiary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.mv-panel-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.mv-section-title,
.mv-project-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.mv-section-count {
    font-size: 13px;
    color: var(--text-tertiary);
}

.mv-singer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mv-section-divider {
    height: 1px;
    margin: 18px 0 18px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.34), transparent);
}

#mv-create .mv-guide-attention {
    position: relative;
    border-radius: 12px;
    animation: mvGuideAttention 2.2s ease-out;
}

#mv-create .mv-singer-card-nudge {
    animation: mvSingerCardNudge 2.2s ease-out;
}

@keyframes mvGuideAttention {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65);
        background: rgba(34, 211, 238, 0.08);
    }
    45% {
        box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.2);
        background: rgba(34, 211, 238, 0.06);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
        background: transparent;
    }
}

@keyframes mvSingerCardNudge {
    0%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-3px);
        box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45), 0 12px 28px rgba(34, 211, 238, 0.18);
    }
}

.btn-mv-source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mv-source:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-mv-source.active {
    border-color: rgba(34, 211, 238, 0.7);
    color: #e0faff;
    background: rgba(34, 211, 238, 0.12);
}

.mv-manual-carousel {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    position: relative;
}

.mv-carousel-nav {
    width: 28px;
    height: 28px;
    min-height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.72);
    color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.mv-carousel-nav:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(43, 109, 229, 0.18);
}

.mv-singer-list {
    display: flex;
    gap: 18px;
    min-height: 154px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 10px;
    scrollbar-width: none;
}

.mv-singer-list::-webkit-scrollbar {
    display: none;
}

.mv-singer-card {
    position: relative;
    flex: 0 0 132px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mv-singer-card:hover {
    transform: translateY(-1px);
}

.mv-singer-card.selected {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
}

.mv-singer-card.disabled {
    opacity: 0.62;
}

.mv-singer-card.processing {
    opacity: 0.88;
}

.mv-singer-card.selection-mode .mv-singer-thumb {
    cursor: pointer;
}

.mv-singer-select-mark {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.36);
    background: rgba(2, 6, 23, 0.66);
    color: rgba(226, 232, 240, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.mv-singer-card.selected .mv-singer-select-mark {
    border-color: rgba(34, 211, 238, 0.86);
    background: rgba(34, 211, 238, 0.95);
    color: #06202a;
}

.mv-singer-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-tertiary);
    font-size: 34px;
    padding: 0;
    cursor: zoom-in;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.mv-singer-card.selected .mv-singer-thumb {
    border-color: rgba(34, 211, 238, 0.74);
}

.mv-singer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-singer-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-tertiary);
}

.mv-singer-name {
    margin-top: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-singer-status {
    margin-top: 3px;
    color: var(--text-tertiary);
    font-size: 11px;
    text-align: center;
}

.mv-singer-status.generating,
.mv-singer-status.auditing {
    color: var(--primary-light);
}

.mv-singer-status.rejected {
    color: var(--warning);
}

.mv-singer-card-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 8px;
}

.mv-singer-mini-btn {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}

.mv-singer-mini-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(43, 109, 229, 0.12);
}

.mv-singer-preview-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 4px;
}

.mv-singer-preview-processing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-size: 13px;
}

.mv-singer-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.28);
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mv-project-prepare-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
    gap: 16px;
    align-items: start;
    margin-top: 0;
}

.mv-upload-cell {
    min-width: 0;
}

.mv-upload-tile {
    min-height: 42px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.42);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.2s ease;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mv-upload-tile span {
    line-height: 1.35;
}

.mv-upload-tile:hover {
    border-color: rgba(34, 211, 238, 0.58);
    background: rgba(34, 211, 238, 0.08);
}

.mv-upload-tile i {
    color: var(--primary-light);
}

.mv-upload-tile.is-uploading {
    cursor: progress !important;
    border-color: rgba(34, 211, 238, 0.72);
    background: rgba(34, 211, 238, 0.11);
    color: var(--primary-light);
    pointer-events: none;
}

.mv-upload-tile.is-uploading i {
    animation: mvUploadSpin 1s linear infinite;
}

.mv-upload-tile.is-complete {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.mv-upload-progress {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
}

.mv-upload-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.mv-upload-progress-head span:last-child {
    color: var(--primary-light);
    font-weight: 700;
}

.mv-upload-progress-track {
    height: 4px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.mv-upload-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #22c55e);
    transition: width 0.25s ease;
}

@keyframes mvUploadSpin {
    to { transform: rotate(360deg); }
}

.mv-upload-secondary-btn {
    width: 100%;
    min-height: 32px;
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.46);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mv-upload-secondary-btn:hover {
    border-color: rgba(34, 211, 238, 0.55);
    color: var(--primary-light);
    background: rgba(34, 211, 238, 0.08);
}

.mv-hidden-lyrics-input {
    display: none;
    min-height: 0;
    height: 0;
    opacity: 0;
    padding: 0;
    border: 0;
    resize: none;
    pointer-events: none;
}

.mv-singer-delete:hover {
    background: var(--error);
}

.mv-legacy-protag-fields {
    display: none;
}

.mv-upload-hint {
    color: var(--text-tertiary);
    font-size: 12px;
}

.mv-generate-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mv-storyboard-action-row {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.34);
}

.btn-mv-storyboard-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 10px 18px;
    border: 1px solid rgba(34, 211, 238, 0.36);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(43, 109, 229, 0.96), rgba(14, 165, 233, 0.86));
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(43, 109, 229, 0.22);
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.btn-mv-storyboard-main:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-mv-storyboard-main:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.mv-step-desc {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.mv-modal,
.mv-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mv-modal-content,
.mv-confirm-box {
    width: min(620px, 96vw);
    max-height: 86vh;
    overflow: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.mv-singer-modal-content {
    width: min(680px, 96vw);
}

.mv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-base);
}

.mv-modal-header h3,
.mv-confirm-box h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.mv-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-base);
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
}

.mv-modal-body {
    padding: 18px;
}

.mv-modal-actions,
.mv-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px 18px;
}

.mv-singer-upload-preview {
    width: 120px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    background: var(--bg-input);
}

.mv-singer-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-asset-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 12px;
    padding: 18px;
}

.mv-asset-picker-item {
    border: 1px solid var(--border-base);
    border-radius: 8px;
    background: var(--bg-card-hover);
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    text-align: left;
    transition: all 0.2s ease;
}

.mv-asset-picker-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.mv-asset-picker-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.mv-asset-picker-item span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-confirm-box {
    width: min(420px, 92vw);
    padding: 20px;
}

.mv-confirm-box p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 12px 0 0;
}

.mv-singer-preview-content {
    width: min(880px, 94vw);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.mv-singer-preview-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.mv-singer-preview-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
    gap: 0;
}

.mv-singer-preview-image-wrap {
    background: #05070c;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-singer-preview-image-btn {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.mv-singer-preview-image-wrap img,
.mv-singer-preview-image-btn img {
    width: 100%;
    height: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.mv-singer-preview-info {
    padding: 34px 28px;
    border-left: 1px solid var(--border-base);
}

.mv-singer-preview-info h3 {
    margin: 0 34px 12px 0;
    color: var(--text-primary);
    font-size: 24px;
}

.mv-singer-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.mv-singer-preview-meta span {
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--primary-light);
    font-size: 12px;
    background: rgba(34, 211, 238, 0.08);
}

.mv-singer-preview-info p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

.mv-singer-preview-download {
    margin-top: 20px;
}

.mv-singer-zoom-content {
    width: min(96vw, 1100px);
    height: min(92vh, 820px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 18px;
}

.mv-singer-zoom-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mv-singer-zoom-download {
    position: absolute;
    right: 18px;
    bottom: 18px;
}

/* === 模式切换 === */
.music-mode-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: 8px;
}

.music-mode-toggle label {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.music-mode-toggle .active-label {
    color: var(--primary);
    font-weight: 600;
}

.music-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.music-toggle-switch:checked {
    background: var(--primary);
}

.music-toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.music-toggle-switch:checked::before {
    transform: translateX(20px);
}

/* === 开关组件 === */
.music-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.music-switch-row span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* === 按钮 === */
.btn-music-generate {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
}

.btn-music-generate:hover {
    opacity: 0.9;
}

.btn-music-generate:active {
    transform: scale(0.98);
}

.btn-music-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === 结果卡片 === */
.music-result-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
}

.music-result-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1.2fr);
    gap: 16px;
    align-items: stretch;
}

.music-result-left,
.music-result-right {
    min-width: 0;
}

.music-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.music-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.music-result-duration {
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
}

.music-player-wrapper {
    margin-bottom: 12px;
}

.music-player-wrapper audio {
    width: 100%;
    height: 40px;
    border-radius: 6px;
}

.music-result-cover {
    height: 100%;
}

.music-result-cover img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-base);
}

.music-result-cover-empty {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-base);
    border-radius: 8px;
}

.music-result-meta {
    margin: 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.music-result-lyrics {
    margin: 10px 0 14px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    white-space: normal;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    max-height: 180px;
    overflow: auto;
}

.music-result-lyrics.is-empty {
    color: var(--text-tertiary);
}

.music-result-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .music-result-layout {
        grid-template-columns: 1fr;
    }
}

.btn-music-download,
.btn-music-mv {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-music-download:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-music-mv:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

/* === 历史列表 === */
#musicHistoryList {
    margin-top: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    overflow: hidden;
}

.music-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-base);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.music-history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.music-history-item:hover {
    background: var(--bg-card-hover);
}

.music-history-item:hover::before {
    background: var(--primary);
}

.music-history-item:last-child {
    border-bottom: none;
}

.music-history-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.music-history-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(43, 109, 229, 0.25);
}

.music-history-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.music-history-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-history-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.music-history-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.status-badge.succeeded {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
}

.status-badge.failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.btn-music-play-small,
.btn-music-delete-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-music-play-small:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-music-delete-small:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.music-history-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.music-history-empty::before {
    content: '\f001';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 36px;
    opacity: 0.25;
}

/* MV 历史记录保留原样式 */
.mv-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-base);
    transition: background 0.15s;
    cursor: pointer;
}

.mv-history-item:hover {
    background: var(--bg-card-hover);
}

.mv-history-item:last-child {
    border-bottom: none;
}

.mv-history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mv-history-title {
    font-size: 13px;
    color: var(--text-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-history-meta {
    font-size: 11px;
    color: var(--text-tertiary);
}

.mv-history-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mv-history-empty,
.mv-music-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.btn-mv-view {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.btn-mv-view:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === 消息提示 === */
.music-message {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    display: none;
}

.music-message-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.music-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.music-message-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* === 进度条 === */
.music-progress-bar,
#musicProgressBar {
    display: none;
    margin: 12px 0;
}

.music-progress-bar .progress-track {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.music-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: progressPulse 2s infinite;
}

#musicProgressBar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

#musicProgressBar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-purple), transparent);
    animation: progressSlide 1.5s infinite;
}

@keyframes progressSlide {
    to { left: 100%; }
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === MV 音乐选择 === */
.mv-audio-section {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mv-audio-section .btn-mv-source {
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: border-color 0.2s;
}

.mv-audio-section .btn-mv-source:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mv-audio-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(43, 109, 229, 0.08);
    border: 1px solid rgba(43, 109, 229, 0.3);
    border-radius: 8px;
    color: var(--primary-light);
    font-size: 13px;
    margin-top: 10px;
}

.mv-audio-display-wide {
    grid-column: 1 / -1;
}

.mv-audio-selected span {
    flex: 0 1 240px;
    min-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-main-audio-control {
    flex: 1 1 720px;
    min-width: min(100%, 520px);
    width: 100%;
    height: 42px;
}

.mv-music-item {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-base);
    transition: background 0.15s;
}

.mv-music-item:hover {
    background: var(--bg-card-hover);
}

.mv-music-item-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-music-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

#mvMusicListDropdown {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

/* === 比例选择 === */
.mv-ratio-group {
    display: flex;
    gap: 10px;
}

.mv-ratio-option {
    flex: 1;
}

.mv-ratio-option input[type="radio"] {
    display: none;
}

.mv-ratio-option label {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.mv-ratio-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(43, 109, 229, 0.1);
    color: var(--primary-light);
    font-weight: 600;
}

/* === MV 结果 === */
.mv-result-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 16px;
}

.mv-result-actions {
    margin-top: 12px;
    text-align: center;
}

.btn-mv-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-purple) 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.btn-mv-download:hover {
    opacity: 0.9;
}

/* ========================================
   MV 四步向导专有样式
   ======================================== */

.mv-wizard-layout {
    max-width: 100%;
}

/* === 步骤指示器 === */
.mv-step-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 12px;
}

.mv-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.mv-step-indicator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    font-size: 12px;
    font-weight: 600;
}

.mv-step-indicator.active {
    color: var(--primary-light);
    background: rgba(43, 109, 229, 0.1);
}

.mv-step-indicator.active span {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mv-step-indicator.done {
    color: var(--success);
}

.mv-step-indicator.done span {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.mv-step-connector {
    width: 40px;
    height: 2px;
    background: var(--border-base);
    margin: 0 4px;
}

/* === 步骤面板 === */
.mv-step-panel {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mv-step-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* === 两列布局 === */
.mv-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* === Radio 行 === */
.mv-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.mv-radio-row label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* === 风格选择 === */
.mv-style-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mv-style-option {
    cursor: pointer;
}

.mv-style-option input[type="radio"] {
    display: none;
}

.mv-style-option span {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.mv-style-option input[type="radio"]:checked + span {
    border-color: var(--primary);
    background: rgba(43, 109, 229, 0.1);
    color: var(--primary-light);
    font-weight: 600;
}

/* === Step 3 头部 === */
.mv-step3-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mv-step3-actions {
    display: flex;
    gap: 10px;
}

.btn-mv-batch {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent-purple));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-mv-batch:hover {
    opacity: 0.9;
}

.btn-mv-batch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-mv-next-step {
    padding: 8px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mv-next-step:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === 分镜网格 === */
.mv-storyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.mv-shot-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mv-shot-card:hover {
    border-color: var(--primary);
}

.mv-shot-header {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-base);
}

.mv-shot-index {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(43, 109, 229, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.mv-shot-lyrics {
    font-size: 12px;
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-shot-image {
    width: 100%;
    background: var(--bg-input);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: visible;
}

.mv-shot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-shot-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.mv-shot-img-download {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    z-index: 2;
    transition: background 0.2s;
}

.mv-shot-img-download:hover {
    background: rgba(0,0,0,0.85);
}

.mv-shot-image-wrap:hover .mv-shot-img-download {
    display: flex;
}

.mv-shot-video-wrap {
    padding: 0 12px 4px;
}

.mv-shot-vid-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.mv-shot-vid-download:hover {
    background: rgba(99,102,241,0.1);
}

/* === 图片版本轮播 === */
.mv-img-carousel {
    position: relative;
    width: 100%;
    min-height: 120px;
    overflow: visible;
    border-radius: 6px;
    background: var(--bg-input);
    display: flex;
    flex-direction: column;
}

.mv-img-carousel-track {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.mv-img-carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.mv-img-carousel-slide.active {
    display: block;
}

.mv-img-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-img-carousel-prev,
.mv-img-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 11px;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.2s;
}

.mv-img-carousel:hover .mv-img-carousel-prev,
.mv-img-carousel:hover .mv-img-carousel-next {
    opacity: 1;
}

.mv-img-carousel-prev { left: 6px; }
.mv-img-carousel-next { right: 6px; }

.mv-img-carousel-prev:hover,
.mv-img-carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.mv-img-carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
}

.mv-img-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s;
}

.mv-img-carousel-dot.active {
    background: #fff;
}

/* 缩略图列表 */
.mv-img-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
}
.mv-img-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.58;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.mv-img-thumb-pending {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    border: 2px dashed rgba(43, 109, 229, 0.75);
    background: rgba(43, 109, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mv-img-thumb:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.mv-img-thumb.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(43, 109, 229, 0.2);
}

.mv-img-carousel-footer {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 4;
    pointer-events: none;
}

.mv-img-carousel-tip {
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 8px;
    border-radius: 999px;
}

.mv-img-carousel-footer .mv-shot-img-download {
    pointer-events: auto;
}

/* 图片计数器（第X/共N张）*/
.mv-img-counter {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: rgba(124, 58, 237, 0.75);
    padding: 2px 8px;
    border-radius: 999px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* 分镜动作区张数标记 */
.mv-shot-version-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #7c3aed;
    font-weight: 600;
}

.mv-shot-version-badge {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.mv-shot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 24px;
    width: 100%;
    min-height: 160px;
}

.mv-shot-placeholder span {
    font-size: 13px;
}

.mv-scene-generating {
    color: var(--primary);
    border: 1px dashed rgba(43, 109, 229, 0.35);
    border-radius: 8px;
    background: rgba(43, 109, 229, 0.08);
}

.mv-scene-generating i {
    font-size: 30px;
}

.mv-scene-failed {
    color: #ef4444;
    border: 1px dashed rgba(239, 68, 68, 0.35);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.06);
}

.mv-shot-progress {
    width: min(82%, 320px);
    margin-top: 8px;
}

.mv-shot-progress-text {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.mv-shot-progress-track {
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-base);
}

.mv-shot-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent-purple));
    transition: width 0.4s ease;
}

.mv-shot-prompt {
    padding: 8px 12px;
}

.mv-shot-prompt-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-primary);
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
    box-sizing: border-box;
    line-height: 1.5;
}

.mv-shot-prompt-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.mv-shot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-base);
}

.btn-mv-redraw,
.btn-mv-gen-single,
.btn-mv-pick-scene {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mv-redraw:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-mv-gen-single:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.btn-mv-pick-scene:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-mv-redraw:disabled,
.btn-mv-gen-single:disabled,
.btn-mv-pick-scene:disabled,
.btn-mv-lipsync-test:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-mv-lipsync-test {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-mv-lipsync-test:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.mv-shot-done {
    margin-left: auto;
    color: var(--success);
    font-size: 14px;
}

.mv-shot-processing {
    margin-left: auto;
    color: var(--primary-light);
    font-size: 14px;
}

.mv-lyric-timeline-section {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 10px;
    background: rgba(76, 29, 149, 0.08);
}

.mv-lyric-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mv-lyric-timeline-head p {
    margin: 5px 0 0;
    color: var(--text-tertiary);
    font-size: 12px;
}

.mv-lyric-analyze-btn {
    width: auto;
    min-width: 160px;
    margin-top: 0;
}

.mv-lyric-confirm-btn {
    min-width: 132px;
}

.mv-lyric-timeline-status {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.mv-lyric-timeline-list {
    display: grid;
    gap: 6px;
    max-height: 340px;
    margin-top: 10px;
    overflow: auto;
}

.mv-lyric-reanalyze-confirm {
    display: block;
    width: min(420px, calc(100vw - 32px));
    padding: 20px 20px 0;
    overflow: visible;
    border-color: rgba(255, 255, 255, 0.1);
    background: #171821;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5);
}

.mv-confirm-copy h3 {
    padding-top: 0;
    font-size: 18px;
    font-weight: 650;
}

.mv-confirm-copy p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.mv-confirm-cost-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #a9a6b7;
    font-size: 13px;
}

.mv-confirm-cost-note i {
    color: #a78bfa;
}

.mv-lyric-reanalyze-confirm .mv-confirm-actions {
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    padding: 14px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mv-confirm-secondary,
.mv-confirm-primary {
    min-width: 108px;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.mv-confirm-secondary {
    border: 1px solid var(--border-base);
    background: var(--bg-input);
    color: var(--text-secondary);
}

.mv-confirm-primary {
    border: 1px solid #805ad5;
    background: #805ad5;
    color: #fff;
}

.mv-confirm-secondary:hover {
    border-color: rgba(167, 139, 250, 0.48);
    color: var(--text-primary);
}

.mv-confirm-primary:hover {
    background: #7048c5;
}

.mv-lyric-timeline-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 12px;
}

.mv-lyric-timeline-tools button,
.mv-lyric-preview-btn {
    border: 1px solid rgba(167, 139, 250, 0.38);
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.14);
    color: #c4b5fd;
    cursor: pointer;
}

.mv-lyric-timeline-tools button {
    padding: 5px 9px;
}

.mv-lyric-timeline-tools small {
    color: var(--text-tertiary);
}

.mv-lyric-timeline-row {
    display: grid;
    grid-template-columns: 30px minmax(210px, 250px) minmax(140px, 1fr) minmax(110px, auto);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.38);
    font-size: 12px;
}

.mv-lyric-timeline-time {
    color: #a78bfa;
    font-variant-numeric: tabular-nums;
}

.mv-lyric-preview-btn {
    width: 28px;
    height: 28px;
    padding: 0;
}

.mv-lyric-timeline-time-editor {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 5px;
    align-items: center;
}

.mv-lyric-time-input {
    width: 100%;
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    color: #ddd6fe;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.mv-lyric-time-input:focus {
    border-color: #8b5cf6;
    outline: none;
}

.mv-lyric-timeline-singers {
    color: var(--text-tertiary);
    text-align: right;
}

.mv-lyric-singer-picker {
    position: relative;
    min-width: 0;
}

.mv-lyric-singer-picker summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 30px;
    color: #c4b5fd;
    cursor: pointer;
    list-style: none;
    padding: 5px 7px;
    border: 1px solid rgba(167, 139, 250, 0.32);
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.1);
}

.mv-lyric-singer-picker summary:hover {
    border-color: rgba(167, 139, 250, 0.68);
    background: rgba(124, 58, 237, 0.2);
}

.mv-lyric-singer-picker summary::-webkit-details-marker {
    display: none;
}

.mv-lyric-singer-picker summary span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-lyric-singer-label {
    flex: none;
    color: var(--text-secondary);
}

.mv-lyric-singer-edit-icon,
.mv-lyric-singer-edit-text {
    flex: none;
    color: #a78bfa;
}

.mv-lyric-singer-menu {
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 170px;
    max-height: 220px;
    margin-top: 5px;
    padding: 7px;
    overflow-y: auto;
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 8px;
    background: #151429;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.mv-lyric-singer-menu label {
    display: grid;
    grid-template-columns: 18px 28px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    padding: 5px;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.mv-lyric-singer-menu label:hover {
    background: rgba(124, 58, 237, 0.16);
}

.mv-lyric-singer-menu img,
.mv-lyric-singer-menu label > i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.mv-lyric-singer-menu label > i {
    display: grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.18);
}

.mv-lyric-singer-menu label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-lyric-timing-warning {
    color: #fbbf24;
}

@media (max-width: 760px) {
    .mv-lyric-timeline-row {
        grid-template-columns: 30px minmax(190px, 1fr);
    }

    .mv-lyric-timeline-row > span:nth-last-child(-n + 2) {
        grid-column: 2;
    }

    .mv-lyric-timeline-singers {
        text-align: left;
    }
}

.mv-shot-queued {
    margin-left: auto;
    color: var(--warning);
    font-size: 14px;
}

/* === Step 4: 封面设置 === */
.mv-cover-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.mv-cover-preview-area {
    aspect-ratio: 16/9;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mv-cover-preview-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 32px;
}

.mv-cover-placeholder span {
    font-size: 13px;
}

.mv-cover-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mv-color-input {
    width: 48px;
    height: 36px;
    border: 1px solid var(--border-base);
    border-radius: 6px;
    background: var(--bg-input);
    cursor: pointer;
    padding: 2px;
}

.mv-switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding-top: 8px;
}

/* === 主角形象选择 === */
.mv-protagonist-image-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mv-protagonist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.mv-protagonist-preview {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid var(--border-base);
    overflow: hidden;
}

.mv-protagonist-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-mv-protag-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-mv-protag-remove:hover {
    background: var(--error);
}

/* === 素材库弹窗 === */
.mv-protag-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-protag-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    width: 600px;
    max-width: 90vw;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mv-protag-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-base);
}

.mv-protag-modal-header h4 {
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
}

.mv-protag-modal-header .btn-mv-protag-remove {
    position: static;
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.mv-protag-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 16px 20px;
    overflow-y: auto;
}

.mv-protag-asset-item {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.mv-protag-asset-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.mv-protag-asset-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === 分镜横向卡片（提示词式）=== */
.mv-storyboard-horizontal {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mv-scene-manual-carousel {
    align-items: stretch;
    display: block;
    position: relative;
    padding: 0;
}

.mv-scene-manual-carousel .mv-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9;
    width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    border-color: rgba(148, 163, 184, 0.36);
    background: rgba(8, 13, 20, 0.84);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.mv-scene-manual-carousel .mv-carousel-nav:hover {
    transform: translateY(-50%) scale(1.06);
}

#mvScenePrevBtn {
    left: 10px;
}

#mvSceneNextBtn {
    right: 10px;
}

.mv-scene-carousel-list {
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 18px;
    padding: 2px 0 14px;
}

.mv-scene-carousel-list::-webkit-scrollbar {
    display: none;
}

.mv-scene-carousel-list .mv-step2-shot-card {
    flex: 0 0 calc((100% - 36px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

.mv-shot-card-horizontal {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mv-shot-card-horizontal:hover {
    border-color: var(--primary);
}

.mv-shot-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}

.mv-shot-body-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mv-shot-body-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.mv-step2-shot-card {
    border-radius: 8px;
    cursor: zoom-in;
}

.mv-scene-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
}

.mv-scene-image-area,
.mv-scene-prompt-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mv-step2-shot-card .mv-img-carousel,
.mv-step2-shot-card .mv-scene-placeholder {
    width: 100%;
    min-height: 220px;
}

.mv-step2-shot-card .mv-shot-prompt-input {
    min-height: 130px;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px;
}

.mv-shot-prompt-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0;
}

.mv-shot-ref-upload {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mv-ref-image {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mv-ref-image:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.mv-shot-ref-name {
    font-size: 11px;
    color: var(--success);
}

.mv-shot-card-horizontal .mv-shot-header {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-base);
}

.mv-shot-time {
    font-size: 12px;
    color: var(--primary-light);
    background: rgba(43, 109, 229, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
}

.mv-shot-audio-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-base);
}

.mv-shot-audio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.mv-shot-audio-head i {
    color: var(--primary-light);
    margin-right: 6px;
}

.mv-shot-audio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.mv-shot-audio-card {
    border: 1px solid var(--border-base);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    padding: 10px;
}

.mv-shot-audio-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mv-shot-audio-index {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.mv-shot-audio-duration {
    font-size: 12px;
    color: var(--success);
    background: rgba(34, 197, 94, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
}

.mv-shot-audio-lyrics {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mv-shot-audio-card audio {
    width: 100%;
    display: block;
}

.mv-shot-audio-clip {
    margin-top: 8px;
    width: 100%;
    min-width: min(100%, 420px);
}

.mv-shot-audio-control {
    display: block;
    width: 100%;
    min-width: min(100%, 420px);
    height: 40px;
}

.mv-shot-lyric-timeline {
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.2);
    overflow: hidden;
}

.mv-shot-lyric-timeline-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    padding: 7px 9px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.mv-shot-lyric-timeline-summary::-webkit-details-marker {
    display: none;
}

.mv-shot-lyric-timeline-summary:hover {
    background: rgba(148, 163, 184, 0.06);
}

.mv-shot-lyric-timeline-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
}

.mv-shot-lyric-timeline-meta .fa-chevron-down {
    transition: transform 160ms ease;
}

.mv-shot-lyric-timeline[open] .mv-shot-lyric-timeline-meta .fa-chevron-down {
    transform: rotate(180deg);
}

.mv-shot-lyric-timeline-body {
    display: grid;
    gap: 5px;
    padding: 0 8px 8px;
}

.mv-shot-lyric-cue {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.32);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

.mv-shot-lyric-cue > span:first-child {
    color: #a78bfa;
    font-variant-numeric: tabular-nums;
}

.mv-shot-audio-missing {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 8px;
    border-radius: 6px;
    background: var(--bg-input);
}

.mv-shot-card-horizontal .mv-shot-image {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
}

.mv-shot-card-horizontal .mv-shot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.mv-shot-card-horizontal .mv-shot-image img:hover {
    opacity: 0.85;
}

.mv-shot-card-horizontal .mv-shot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border-base);
}

.btn-mv-gen-shot {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    background: rgba(43, 109, 229, 0.1);
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mv-gen-shot:hover {
    background: var(--primary);
    color: #fff;
}

.btn-mv-gen-shot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-mv-redraw-simple {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mv-redraw-simple:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 分镜工具栏 */
.mv-prompts-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.mv-storyboard-stream-panel {
    margin-top: 12px;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    background: var(--bg-input);
    overflow: hidden;
}

.mv-storyboard-stream-status {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-base);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.mv-storyboard-stream-text {
    margin: 0;
    max-height: 220px;
    overflow: auto;
    padding: 12px;
    color: var(--text-primary);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

/* 图片预览模态框 */
.mv-image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mv-image-preview-content {
    position: relative;
    width: min(1120px, 92vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mv-image-preview-main {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 18px;
    align-items: stretch;
}

.mv-image-preview-media {
    min-height: min(58vh, 620px);
    border-radius: 8px;
    background: #05080d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.mv-image-preview-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    background: #05080d;
}

.mv-image-preview-placeholder {
    width: 100%;
    min-height: min(58vh, 620px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    border: 1px dashed rgba(148, 163, 184, 0.28);
}

.mv-image-preview-placeholder i {
    font-size: 38px;
    color: var(--primary-light);
}

.mv-image-preview-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 78vh;
    overflow: auto;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(8, 13, 20, 0.88);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.mv-image-preview-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.mv-image-preview-meta,
.mv-image-preview-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.mv-image-preview-label {
    font-weight: 700;
    margin-top: 4px;
}

.mv-image-preview-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.mv-image-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mv-image-preview-close:hover {
    opacity: 1;
}

.mv-image-preview-toolbar {
    display: flex;
    gap: 12px;
}

/* 项目面板 - 横向手动轮播 */
.mv-project-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 16px;
    overflow: visible;
}

.mv-project-panel-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 12px;
    border-bottom: 0;
}

.mv-project-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

#mv-create #mvNewProjectBtn,
#mv-create #mvProtagFromAsset,
#mv-create #mvProtagUpload {
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(15, 23, 42, 0.76);
    color: #dbeafe;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

#mv-create #mvNewProjectBtn {
    min-height: 44px;
    padding: 0 15px;
    color: #dbeafe;
    font: 850 13px/1 Inter, "PingFang SC", sans-serif;
    background: linear-gradient(180deg, rgba(16, 24, 39, 0.86), rgba(8, 12, 22, 0.76));
    border: 1px solid rgba(125, 152, 196, 0.34);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

#mv-create #mvProtagUpload {
    color: #ede9fe;
}

#mv-create #mvNewProjectBtn i,
#mv-create #mvProtagFromAsset i,
#mv-create #mvProtagUpload i {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: currentColor;
}

#mv-create #mvNewProjectBtn:hover,
#mv-create #mvProtagFromAsset:hover,
#mv-create #mvProtagUpload:hover {
    transform: translateY(-1px);
    border-color: rgba(147, 197, 253, 0.52);
    color: #fff;
    box-shadow: 0 18px 38px rgba(59, 130, 246, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#mv-create #mvNewProjectBtn:hover {
    color: #ffffff;
    background: linear-gradient(180deg, rgba(24, 34, 55, 0.96), rgba(12, 18, 31, 0.9));
    border-color: rgba(148, 196, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px rgba(37, 99, 235, 0.18);
}

#mv-create #mvNewProjectBtn:active,
#mv-create #mvProtagFromAsset:active,
#mv-create #mvProtagUpload:active {
    transform: translateY(0);
}

.mv-project-card-list {
    min-height: 88px;
    padding: 4px 2px 10px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.mv-project-card-list::-webkit-scrollbar {
    display: none;
}

.mv-project-card {
    flex: 0 0 246px;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-base);
    background: rgba(15, 23, 42, 0.42);
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.mv-project-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-1px);
}

.mv-project-card.active {
    border-color: rgba(34, 211, 238, 0.7);
    background: rgba(34, 211, 238, 0.08);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.14);
}

.mv-project-card-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mv-project-card-title:hover {
    color: var(--primary);
}

.mv-project-card .status-badge {
    font-size: 10px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.btn-mv-project-del {
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-mv-project-del:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.mv-project-card-empty {
    flex: 1 0 240px;
    padding: 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.mv-project-carousel {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
}

/* 向导主区域 */
.mv-wizard-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mv-wizard-main {
    flex: 1;
    min-width: 0;
}

/* 禁用步骤 */
.mv-step-indicator.disabled-step {
    opacity: 0.5;
    cursor: default !important;
    pointer-events: none;
}

/* 封面提示词行 */
.mv-cover-prompt-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mv-cover-prompt-row textarea {
    flex: 1;
}

.mv-cover-info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.mv-cover-gen-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.mv-cover-style-section {
    padding: 16px;
    background: var(--bg-input);
    border-radius: 8px;
    border: 1px solid var(--border-base);
}

/* 歌词 + 字体风格并排布局 */
.mv-cover-lyrics-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.mv-cover-lyrics-left .music-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mv-cover-lyrics-left textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    box-sizing: border-box;
}

.mv-cover-style-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mv-cover-style-right .mv-cover-style-section {
    height: 100%;
    box-sizing: border-box;
}

/* 一键导出按钮 */
.btn-mv-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.btn-mv-export:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* 最终结果卡片头部 */
.mv-result-header {
    margin-bottom: 12px;
}

.mv-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.mv-result-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* 素材库分类 */
.mv-protag-category-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 0 4px;
    grid-column: 1 / -1;
}

.mv-protag-asset-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

@media (max-width: 768px) {
    #music-create .content-wrapper,
    #mv-create .content-wrapper {
        padding: 14px;
    }
    .mv-singer-panel-header,
    .mv-project-panel-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .mv-manual-carousel {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 8px;
    }
    .mv-carousel-nav {
        width: 28px;
        min-height: 28px;
    }
    .mv-scene-manual-carousel {
        padding: 0;
    }
    .mv-scene-manual-carousel .mv-carousel-nav {
        width: 38px;
        height: 38px;
        min-height: 38px;
        font-size: 14px;
    }
    #mvScenePrevBtn {
        left: 8px;
    }
    #mvSceneNextBtn {
        right: 8px;
    }
    .mv-singer-card {
        flex-basis: 118px;
    }
    .mv-project-prepare-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mv-singer-preview-layout {
        grid-template-columns: 1fr;
    }
    .mv-upload-tile {
        min-height: 46px;
    }
}

@media (max-width: 520px) {
    .mv-project-prepare-row,
    .mv-singer-preview-layout {
        grid-template-columns: 1fr;
    }
    .mv-project-card {
        flex-basis: 220px;
    }
    .mv-project-panel-header {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mv-singer-preview-image-wrap {
        min-height: 320px;
    }
    .mv-singer-preview-info {
        border-left: 0;
        border-top: 1px solid var(--border-base);
        padding: 22px;
    }
    .mv-modal-content,
    .mv-confirm-box {
        width: 96vw;
    }
    .mv-asset-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mv-shot-body {
        grid-template-columns: 1fr;
    }
    .mv-step2-shot-card .mv-shot-prompt-input {
        min-height: 180px;
    }
    .mv-prompts-toolbar {
        flex-direction: column;
    }
    .mv-scene-carousel-list .mv-step2-shot-card {
        flex-basis: calc((100% - 18px) / 2);
    }
    .mv-image-preview-main {
        grid-template-columns: 1fr;
        max-height: 86vh;
        overflow: auto;
    }
    .mv-image-preview-content img,
    .mv-image-preview-info {
        max-height: none;
    }
    .mv-project-sidebar {
        width: 100%;
        min-width: unset;
        position: static;
        max-height: none;
    }
    .mv-wizard-layout {
        flex-direction: column;
    }
    .mv-cover-prompt-row {
        flex-direction: column;
    }
    .mv-cover-info-row {
        flex-direction: column;
    }
    .mv-result-actions {
        flex-direction: column;
    }
    .mv-cover-gen-row {
        flex-direction: column;
    }
    .mv-cover-lyrics-row {
        grid-template-columns: 1fr;
    }
    .music-page-layout {
        grid-template-columns: 1fr;
    }
    .mv-audio-section {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .mv-audio-selected {
        flex-wrap: wrap;
    }
    .mv-main-audio-control {
        flex-basis: 100%;
        min-width: 0;
    }
    .mv-ratio-group {
        flex-wrap: wrap;
    }
    .mv-step-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
    .mv-step-connector {
        display: none;
    }
    .mv-row-2col {
        grid-template-columns: 1fr;
    }
    .mv-cover-layout {
        grid-template-columns: 1fr;
    }
    .mv-storyboard-grid {
        grid-template-columns: 1fr;
    }
    .mv-step3-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .mv-scene-carousel-list .mv-step2-shot-card {
        flex-basis: 100%;
    }
}

/* ========================================
   AI 音乐创作 - 新版布局样式
   ======================================== */

/* ---- 模式标签 ---- */
.mc-hidden-option {
    display: none !important;
}

.mc-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px;
}

.mc-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mc-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mc-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mc-tab i {
    font-size: 13px;
}

/* ---- 上传区 ---- */
.mc-upload-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.mc-upload-box {
    border: 2px dashed var(--border-base);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-upload-box:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.mc-upload-box.mc-upload-disabled {
    opacity: 0.5;
    cursor: default;
    border-style: solid;
}

.mc-upload-box.mc-upload-disabled:hover {
    border-color: var(--border-base);
    background: transparent;
}

.mc-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mc-upload-inner i {
    font-size: 28px;
    color: var(--primary);
    opacity: 0.7;
}

.mc-upload-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mc-upload-hint {
    font-size: 11px;
    color: var(--text-tertiary);
}

.mc-upload-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    width: 100%;
}

.mc-upload-file i {
    font-size: 18px;
    color: var(--primary);
}

.mc-file-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-file-remove {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.mc-file-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ---- 表单组 ---- */
.mc-form-group {
    margin-bottom: 16px;
}

.mc-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.mc-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.mc-label-row .mc-label {
    margin-bottom: 0;
}

.mc-textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mc-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
}

.mc-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-top: 8px;
}

.mc-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

/* ---- 幽灵按钮 ---- */
.mc-btn-ghost {
    padding: 4px 12px;
    border: 1px solid var(--border-base);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mc-btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.mc-btn-ghost i {
    font-size: 11px;
}

/* ---- 风格标签芯片 ---- */
.mc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mc-chip {
    cursor: pointer;
}

.mc-chip input {
    display: none;
}

.mc-chip span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-base);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.mc-chip:hover span {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.mc-chip input:checked + span {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.18);
    color: var(--primary);
    font-weight: 500;
}

/* ---- 面板切换 ---- */
.mc-panel {
    animation: mcFadeIn 0.25s ease;
}

@keyframes mcFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .mc-upload-row {
        grid-template-columns: 1fr;
    }
    .mc-tab {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* ---- 上传区播放按钮 ---- */
.mc-file-play {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.mc-file-play:hover {
    background: var(--primary);
    color: #fff;
}

/* ---- 歌词提示输入框 ---- */
.mc-lyrics-write-group {
    display: flex;
    flex-direction: column;
}

.mc-lyrics-prompt-row {
    margin-bottom: 8px;
}

.mc-gen-lyrics-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 8px;
}

.mc-lyrics-prompt-row .mc-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.mc-lyrics-prompt-row .mc-input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.mc-lyrics-prompt-row .mc-input::placeholder {
    color: var(--text-tertiary);
}

/* ---- 歌词变体选择 ---- */
.mc-lyrics-variants {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 10px;
}

.mc-lyrics-variants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mc-lyrics-variants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mc-lyrics-variant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.mc-lyrics-variant-card:hover {
    border-color: var(--primary);
}

.mc-lyrics-variant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.06);
    border-bottom: 1px solid var(--border-base);
}

.mc-lyrics-variant-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.mc-lyrics-variant-select {
    font-size: 12px;
    padding: 4px 10px;
    white-space: nowrap;
}

.mc-lyrics-variant-text {
    margin: 0;
    padding: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow-y: auto;
}
