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.
/* Khối "Âm thanh" (audio-panel.js). Dùng token màu của style.css. */
.ap { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.ap-title { font: 700 18px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.ap-row { display: flex; gap: 8px; align-items: center; }
.ap-row select { flex: 1; min-width: 0; min-height: 44px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.ap-play { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--accent); cursor: pointer; transition: background .15s, transform .1s; }
.ap-play:hover { background: var(--line); }
.ap-play:active { transform: scale(.94); }
.ap-play svg { width: 18px; height: 18px; fill: currentColor; }
.ap-play[data-state="play"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ap-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-3); border-top-color: var(--accent); animation: ap-rot .8s linear infinite; }
@keyframes ap-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ap-spin { animation-duration: 2.4s; } }
.ap-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; cursor: pointer; color: var(--ink-2); }
.ap-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-knob { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); transition: background .15s; }
.ap-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); transition: transform .15s, background .15s; }
.ap-switch input:checked + .ap-knob { background: var(--accent); border-color: var(--accent); }
.ap-switch input:checked + .ap-knob::after { transform: translateX(18px); background: var(--accent-ink); }
.ap-switch input:focus-visible + .ap-knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-hint { color: var(--warn); }
.ap-note:empty { display: none; }
.ap-job { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ap-job > summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.ap-job .ap-body { padding: 0 14px 14px; }
.ap-go { margin-top: 12px; min-height: 44px; width: 100%; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; }
.ap-go:disabled { opacity: .6; cursor: progress; }
.ap-sub { margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.ap-ver { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ap-ver span { flex: 1; min-width: 0; }
.ap-ver.cur span { color: var(--ink); font-weight: 600; }
.ap-ver .mini { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); text-decoration: none; cursor: pointer; }