/* 首页「音色克隆」面板样式：与深度复刻面板同一套深色卡片风格，尺寸更紧凑。 */
.vcp[hidden] { display: none; }
.vcp {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 6, 18, .62);
    backdrop-filter: blur(6px);
}
.vcp-dialog {
    width: min(720px, 100%);
    max-height: min(86vh, 860px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: linear-gradient(180deg, #11131c 0%, #0b0d15 100%);
    color: #e5e7eb;
    box-shadow: 0 30px 90px rgba(2, 6, 23, .65);
}
.vcp-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.vcp-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vcp-identity-icon {
    width: 38px; height: 38px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(99, 102, 241, .16); color: #a5b4fc;
}
.vcp-identity-icon svg { width: 20px; height: 20px; }
.vcp-identity-copy { display: flex; flex-direction: column; min-width: 0; }
.vcp-identity-copy strong { font-size: 15px; }
.vcp-identity-copy small { color: #94a3b8; font-size: 12px; line-height: 1.5; }
.vcp-top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* 面板右上角「作品库」入口：直接跳到我的作品库（作品/角色/音色都在那里管理） */
.vcp-top-link {
    height: 32px; padding: 0 12px; border-radius: 10px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(148, 163, 184, .12); color: #cbd5e1; font-size: 12.5px; white-space: nowrap;
}
.vcp-top-link svg { width: 15px; height: 15px; }
.vcp-top-link:hover { background: rgba(148, 163, 184, .2); color: #e2e8f0; }
@media (max-width: 560px) {
    .vcp-top-link { padding: 0 9px; }
    .vcp-top-link span { display: none; }
}
.vcp-close {
    width: 32px; height: 32px; border-radius: 10px; border: 0; cursor: pointer;
    background: rgba(148, 163, 184, .12); color: #cbd5e1;
    display: inline-flex; align-items: center; justify-content: center;
}
.vcp-close svg { width: 16px; height: 16px; }
.vcp-close:hover { background: rgba(148, 163, 184, .2); }
.vcp-body {
    padding: 18px 20px 22px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vcp-card {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: rgba(15, 18, 30, .72);
}
.vcp-card-head { font-size: 13.5px; margin-bottom: 8px; }
.vcp-hint { margin: 0 0 10px; color: #94a3b8; font-size: 12.5px; line-height: 1.7; }
.vcp-drop {
    display: flex; align-items: center; justify-content: center;
    min-height: 84px; border-radius: 12px; cursor: pointer;
    border: 1px dashed rgba(148, 163, 184, .35);
    background: rgba(99, 102, 241, .06);
    color: #cbd5e1; font-size: 13px;
}
.vcp-drop:hover { border-color: rgba(129, 140, 248, .6); background: rgba(99, 102, 241, .12); }
.vcp-drop.is-set { border-style: solid; border-color: rgba(129, 140, 248, .5); }
.vcp-preview { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.vcp-preview[hidden] { display: none; }
.vcp-preview audio { flex: 1; height: 34px; }
.vcp-duration { color: #94a3b8; font-size: 12px; white-space: nowrap; }
.vcp-input {
    width: 100%; box-sizing: border-box; padding: 10px 12px;
    border-radius: 10px; border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(2, 6, 23, .55); color: #e5e7eb; font-size: 13px;
}
.vcp-input:focus { outline: none; border-color: rgba(129, 140, 248, .6); }
.vcp-consent {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 12px 0; color: #94a3b8; font-size: 12.5px; line-height: 1.6;
}
.vcp-consent input { margin-top: 2px; }
.vcp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vcp-primary, .vcp-secondary {
    border: 0; border-radius: 10px; padding: 10px 16px;
    font-size: 13px; cursor: pointer;
}
.vcp-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.vcp-primary:disabled { opacity: .55; cursor: not-allowed; }
.vcp-secondary {
    background: rgba(148, 163, 184, .14); color: #cbd5e1;
}
.vcp-secondary:disabled { opacity: .5; cursor: not-allowed; }
.vcp-status { margin: 10px 0 0; min-height: 18px; font-size: 12.5px; color: #94a3b8; }
.vcp-status.is-ok { color: #34d399; }
.vcp-status.is-error { color: #f87171; }
.vcp-steps { margin: 0; padding-left: 18px; color: #94a3b8; font-size: 12.5px; line-height: 1.8; }
/* ===== 音色库 / 我的音色 ===== */
.vcp-dialog { width: min(920px, 100%); }
.vcp-tabs {
    display: flex; gap: 6px; padding: 10px 20px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.vcp-tab {
    border: 0; background: transparent; color: #94a3b8; cursor: pointer;
    padding: 9px 14px 11px; font-size: 13px; border-bottom: 2px solid transparent;
    display: inline-flex; align-items: center; gap: 6px;
}
.vcp-tab:hover { color: #e2e8f0; }
.vcp-tab.is-active { color: #e5e7eb; border-bottom-color: #818cf8; }
.vcp-tab-count { color: #64748b; font-size: 11.5px; }
.vcp-pane { display: flex; flex-direction: column; gap: 12px; }
.vcp-pane[hidden] { display: none; }
.vcp-toolbar { display: flex; gap: 10px; }
.vcp-search { flex: 1; }
.vcp-select {
    min-width: 148px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
    border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(2, 6, 23, .55); color: #e5e7eb;
}
.vcp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.vcp-chips button {
    border: 1px solid rgba(148, 163, 184, .22); background: rgba(148, 163, 184, .08);
    color: #cbd5e1; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer;
}
.vcp-chips button.is-active { border-color: rgba(129, 140, 248, .65); background: rgba(99, 102, 241, .2); color: #e5e7eb; }
.vcp-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    min-height: 80px;
}
.vcp-grid.is-loading { opacity: .55; }
.vcp-voice {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 13px; border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .16);
    background: rgba(15, 18, 30, .74);
}
.vcp-voice:hover { border-color: rgba(129, 140, 248, .38); }
.vcp-voice-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vcp-voice-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcp-voice-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vcp-voice-tags span {
    font-size: 11.5px; color: #94a3b8; padding: 2px 8px; border-radius: 6px;
    background: rgba(148, 163, 184, .12);
}
.vcp-voice-tags span.is-error { color: #fca5a5; background: rgba(248, 113, 113, .14); }
.vcp-voice-actions { display: flex; gap: 8px; margin-top: auto; }
.vcp-ghost {
    flex: 1; border: 1px solid rgba(148, 163, 184, .22); background: rgba(148, 163, 184, .08);
    color: #e2e8f0; border-radius: 8px; padding: 6px 0; font-size: 12.5px; cursor: pointer;
}
.vcp-ghost:hover { background: rgba(148, 163, 184, .16); }
.vcp-ghost.is-playing { border-color: rgba(129, 140, 248, .6); color: #c7d2fe; }
.vcp-ghost--primary { border-color: rgba(129, 140, 248, .45); background: rgba(99, 102, 241, .18); color: #e0e7ff; }
.vcp-ghost--primary.is-active { background: rgba(52, 211, 153, .18); border-color: rgba(52, 211, 153, .5); color: #a7f3d0; }
.vcp-ghost--danger { color: #fca5a5; border-color: rgba(248, 113, 113, .3); flex: 0 0 62px; }
.vcp-badge {
    margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px;
    background: rgba(148, 163, 184, .16); color: #cbd5e1; white-space: nowrap;
}
.vcp-voice.is-ready .vcp-badge { background: rgba(52, 211, 153, .16); color: #6ee7b7; }
.vcp-voice.is-cloning .vcp-badge { background: rgba(250, 204, 21, .16); color: #fde68a; }
.vcp-voice.is-failed .vcp-badge { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.vcp-mine {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-top: 8px;
}
.vcp-mine-count, .vcp-cost { margin-left: auto; color: #94a3b8; font-size: 12px; }
.vcp-card-head { display: flex; align-items: center; gap: 8px; }
.vcp-empty { margin: 4px 0 0; color: #94a3b8; font-size: 12.5px; text-align: center; padding: 14px 0; }
.vcp-empty[hidden] { display: none; }
.vcp-pager { display: flex; align-items: center; justify-content: center; gap: 14px; }
.vcp-pager button {
    border: 1px solid rgba(148, 163, 184, .22); background: rgba(148, 163, 184, .08);
    color: #e2e8f0; border-radius: 8px; padding: 6px 14px; font-size: 12.5px; cursor: pointer;
}
.vcp-pager button:disabled { opacity: .45; cursor: not-allowed; }
.vcp-pager span { color: #94a3b8; font-size: 12.5px; }
.vcp-selected {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-top: 1px solid rgba(148, 163, 184, .14);
    background: rgba(99, 102, 241, .08); font-size: 12.5px; color: #94a3b8;
}
.vcp-selected[hidden] { display: none; }
.vcp-selected strong { color: #e5e7eb; font-weight: 600; }
.vcp-selected button {
    margin-left: auto; border: 1px solid rgba(148, 163, 184, .22); background: transparent;
    color: #cbd5e1; border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.vcp-hint--foot { margin-top: 10px; }

/* 中文单语种：语言筛选隐藏，提示行贴紧工具栏 */
.vcp-select[hidden] { display: none; }
.vcp-hint--lang { margin: -2px 0 2px; color: #64748b; font-size: 12px; }

/* 从作品库引用样本（不重复上传） */
.vcp-pick {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 56px; border-radius: 12px; cursor: pointer;
    border: 1px dashed rgba(148, 163, 184, .35);
    background: rgba(99, 102, 241, .06); color: #dbe3f0; font-size: 13px;
}
.vcp-pick svg { width: 18px; height: 18px; color: #a5b4fc; }
.vcp-pick:hover { border-color: rgba(129, 140, 248, .6); background: rgba(99, 102, 241, .12); }
.vcp-pick.is-set { border-style: solid; border-color: rgba(129, 140, 248, .5); }
.vcp-picked { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(15, 18, 30, .8); border: 1px solid rgba(148, 163, 184, .16); }
.vcp-picked[hidden] { display: none; }
.vcp-picked-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vcp-picked-head strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcp-picked-head .vcp-ghost--danger { flex: 0 0 58px; padding: 4px 0; }
.vcp-picked audio { width: 100%; height: 34px; }
