/* 声音克隆（/voice）：在 vent.css、holiday.css 的基础上 */
.vc-guest { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 28px 20px; }
.vc-guest-t { margin: 0; font-size: 18px; font-weight: 700; }
.vc-guest .hint { max-width: 460px; margin: 0 0 6px; }

.vc-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.vc-row-head .label, .vc-row-head label { margin: 0; }
#vcCount.over { color: var(--err); font-weight: 600; }

.vc-voices { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-voice { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 34px 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.vc-voice:hover { border-color: var(--accent); }
.vc-voice[aria-checked=true] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.vc-voice.off { opacity: .65; cursor: default; }
.vc-voice-n { font-weight: 600; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-voice-s { font-size: 12px; color: var(--text-3); }
.vc-voice[aria-checked=true] .vc-voice-s { color: var(--accent-text); }
.vc-voice-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); font-size: 12px; cursor: pointer; }
.vc-voice-del:hover { background: var(--card); color: var(--err); }
.vc-add { padding-right: 14px; border-style: dashed; background: transparent; color: var(--accent-text); font-weight: 600; }

#vcText { font-size: 16px; line-height: 1.6; min-height: 150px; }
.vc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.vc-tags .hint { margin: 0 2px 0 0; }
.vc-tag { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; }
.vc-tag:hover { border-color: var(--accent); color: var(--text); }

.vc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.vc-speed { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.vc-speed select { width: auto; min-width: 88px; }
.vc-go { flex: 1 1 240px; }
.vc-go.busy, .vc-clone-go.busy { opacity: .75; cursor: progress; }

.vc-result { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--bg-2); display: grid; gap: 10px; }
.vc-result audio { width: 100%; }
.vc-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vc-result-actions .hint { margin: 0; }

.vc-history { margin-top: 16px; }
.vc-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vc-hist li { padding: 12px 0; border-top: 1px solid var(--line); }
.vc-hist li:first-child { border-top: 0; padding-top: 0; }
.vc-hist-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vc-hist-top .hint { margin: 0; }
.vc-hist p { margin: 6px 0 8px; color: var(--text-2); font-size: 14px; line-height: 1.5; word-break: break-word; }
.vc-hist-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vc-hist-row audio { flex: 1 1 260px; height: 36px; }

/* 克隆弹窗 */
.vc-dialog { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--card); color: var(--text); padding: 24px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; box-shadow: var(--shadow-lg); }
.vc-dialog::backdrop { background: rgba(4, 8, 12, .62); backdrop-filter: blur(3px); }
.vc-dialog h2 { margin: 0 0 14px; font-size: 20px; }
.vc-dialog > .seg { margin-bottom: 14px; }
.vc-dlg-x { position: absolute; right: 14px; top: 12px; margin: 0; }
.vc-dlg-x .link { font-size: 16px; padding: 6px; }
.vc-dialog { position: fixed; }
.vc-script { margin: 8px 0 14px; padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--bg-2); font-size: 16px; line-height: 1.7; }
.vc-rec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-bottom: 14px; }
.vc-rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--err, #e5484d); background: transparent; display: grid; place-items: center; cursor: pointer; grid-row: span 2; }
.vc-rec-btn span { width: 26px; height: 26px; border-radius: 50%; background: var(--err, #e5484d); transition: border-radius .15s, width .15s, height .15s; }
.vc-rec-btn.on span { width: 22px; height: 22px; border-radius: 5px; }
.vc-rec-btn.on { animation: vc-pulse 1.4s ease-in-out infinite; }
@keyframes vc-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--err, #e5484d) 18%, transparent); } }
.vc-rec-info { display: flex; align-items: baseline; gap: 10px; }
.vc-rec-info b { font-size: 22px; font-variant-numeric: tabular-nums; }
.vc-rec-info .hint { margin: 0; }
.vc-meter { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.vc-meter span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .08s; }
.vc-file { display: block; padding: 22px 16px; border: 1px dashed var(--line-2); border-radius: 14px; text-align: center; color: var(--text-2); font-size: 14px; cursor: pointer; margin-bottom: 14px; }
.vc-file:hover { border-color: var(--accent); }
.vc-file input { display: block; margin: 0 auto 10px; max-width: 100%; }
.vc-sample { display: grid; gap: 6px; margin-bottom: 14px; }
.vc-sample audio { width: 100%; }
.vc-sample .hint { margin: 0; }
.vc-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--text); margin: 4px 0 14px; }
.vc-consent input { margin-top: 3px; flex: none; }
.vc-clone-go { width: 100%; }
.vc-how { margin-top: 32px; }

@media (max-width: 640px) {
  .vc-dialog { padding: 20px 16px; }
  .vc-go { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vc-rec-btn.on { animation: none; } }
