Text to vertical video in 100+ styles: AI codes each scene (HTML/SVG/WebGL), renders a 9:16 MP4 with music and English/Vietnamese voice. MCP, CLI and REST for AI agents.
/* "Giọng của tôi" (voice-clone.js). Dùng token màu của style.css. */
.vc { margin-top: 12px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--panel-2); }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vc-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.vc-btn { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; }
.vc-btn:hover { background: var(--line); }
.vc-btn:active { transform: scale(.97); }
.vc-btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vc-btn:disabled { opacity: .5; cursor: not-allowed; }
.vc-btn svg { width: 18px; height: 18px; fill: currentColor; }
.vc-empty { margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.vc-dim { color: var(--ink-3); font-size: 13px; }
.vc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.vc-item { padding: 8px 0; border-top: 1px solid var(--line); }
.vc-item:first-child { border-top: 0; }
.vc-row { display: flex; align-items: center; gap: 8px; }
.vc-ph { flex: none; width: 44px; height: 44px; }
.vc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vc-name { font-weight: 600; overflow-wrap: anywhere; }
.vc-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }
.vc-chip.ok { color: var(--ok); }
.vc-chip.bad { color: var(--bad); }
.vc-chip .ap-spin { width: 12px; height: 12px; }
.vc-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; }
.vc-icon:hover { background: var(--line); color: var(--ink); }
.vc-icon:disabled { opacity: .4; cursor: not-allowed; }
.vc-icon svg { width: 20px; height: 20px; }
.vc-ren { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.vc-ren input { flex: 1 1 140px; min-width: 0; min-height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.vc-ref { margin-top: 6px; }
.vc-ref > summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.vc-ref audio, .vc-picked audio { width: 100%; height: 40px; margin-top: 6px; }
.vc-reftext textarea { min-height: 64px; }
.vc-reftext .vc-btn { margin-top: 8px; }
.vc-form { margin-top: 8px; }
.vc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.vc-seg button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-weight: 600; cursor: pointer; }
.vc-seg button svg { width: 18px; height: 18px; }
.vc-seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.vc-file { display: block; width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.vc-form input#vcName { display: block; width: 100%; min-height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.vc-form [aria-invalid="true"] { border-color: var(--bad); }
.vc-read { margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.vc-read p { margin: 6px 0 0; line-height: 1.6; color: var(--ink); }
.vc-recgo { margin-top: 12px; width: 100%; justify-content: center; }
.vc-rec { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.vc-rec .vc-btn { margin-left: auto; }
.vc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: vc-blink 1s ease-in-out infinite; }
@keyframes vc-blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .vc-dot { animation: none; } }
.vc-timer { font: 600 18px/1 var(--mono); font-variant-numeric: tabular-nums; }
.vc-picked { margin-top: 12px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.vc-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; min-height: 44px; cursor: pointer; line-height: 1.45; }
.vc-consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); }
.vc-err { margin-top: 6px; font-size: 14px; color: var(--bad); }
.vc-actions { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.vc-actions .ap-go { flex: 1; }
.vc-actions .vc-btn { margin-top: 12px; }
.vc-live:empty { display: none; }