/* TikTok 视频预览弹窗（爆款参考、素材表现共用）。 */
#tpPreview{--tp-panel:#181920;--tp-border:#292a34;--tp-text:#f1f2f6;--tp-muted:#8b8d9b;--tp-accent:#25f4ee;position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(5,6,10,.72);box-sizing:border-box}
body[data-theme="light"] #tpPreview{--tp-panel:#fff;--tp-border:#e2e8f0;--tp-text:#0f172a;--tp-muted:#64748b;--tp-accent:#087f82;background:rgba(15,23,42,.55)}
#tpPreview .tp-panel{width:min(460px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;background:var(--tp-panel);color:var(--tp-text);border:1px solid var(--tp-border);border-radius:10px;overflow:hidden;box-shadow:0 20px 80px rgba(0,0,0,.35)}
#tpPreview .tp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--tp-border)}
#tpPreview .tp-head h3{margin:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#tpPreview .tp-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
#tpPreview .tp-link{color:var(--tp-muted);font-size:12px;text-decoration:underline}
#tpPreview .tp-close{background:transparent;color:var(--tp-text);border:1px solid var(--tp-border);border-radius:6px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
#tpPreview .tp-close:focus-visible,#tpPreview .tp-link:focus-visible,#tpPreview video:focus-visible{outline:2px solid var(--tp-accent);outline-offset:2px}
#tpPreview .tp-stage{display:flex;flex-direction:column;min-height:0;background:#000}
#tpPreview .tp-video{display:block;width:100%;height:min(76dvh,760px);object-fit:contain;background:#000}
#tpPreview .tp-status{margin:0;padding:48px 20px;text-align:center;font-size:13px;line-height:1.7;color:#c9cbd6;background:#000}
@media(max-width:650px){#tpPreview{padding:10px}#tpPreview .tp-video{height:70dvh}}
