Open-source AI podcast clipper. Generate vertical clips with face tracking and burned-in captions. CLI, MCP server, web app.
Python ai-toolsauto-captionscaptionscliffmpegmcpmcp-serveropusclip-alternativepodcast-clipspodcastsshortform-videovertical-videowhisper
Polish Studio copy and copy interactions
Nika Siradzef16e739f569a
diff --git a/src/ui/client/AnalyticsPage.tsx b/src/ui/client/AnalyticsPage.tsxindex 4a6bcc6..c63dc55 100644--- a/src/ui/client/AnalyticsPage.tsx+++ b/src/ui/client/AnalyticsPage.tsx@@ -60,7 +60,7 @@ export default function AnalyticsPage() {const r = await api("/youtube/config", { method: "PUT", body: JSON.stringify({ client_id: clientId, ...(clientSecret ? { client_secret: clientSecret } : {}) }) });if (r.error) throw new Error(r.error);setClientSecret(""); setHasSecret(true);- setMsg("Saved — now run podcli youtube auth in your terminal to authorize");+ setMsg("Saved. Run podcli youtube auth in your terminal to authorize");} catch (e: any) { setMsg(`Save failed: ${e.message}`); } finally { setBusy(false); }};@@ -95,7 +95,7 @@ export default function AnalyticsPage() {try {const r = await api("/youtube/learn", { method: "POST", body: "{}" });if (r.error) throw new Error(r.error);- setMsg("Analysis written to the knowledge base — Claude will use it when picking shorts");+ setMsg("Analysis written to the knowledge base. Claude will use it when picking shorts");} catch (e: any) { setMsg(`Analysis failed: ${e.message}`); } finally { setBusy(false); }};@@ -160,7 +160,7 @@ export default function AnalyticsPage() {<div className="section"><div className="section-label">Link clips to uploads</div>{proposals.length === 0 ? (- <div style={{ fontSize: 13, color: "var(--text2)" }}>No proposals — every clip is linked, or no upload matched.</div>+ <div style={{ fontSize: 13, color: "var(--text2)" }}>No proposals. Every clip is linked, or no upload matched.</div>) : (proposals.map((p) => (<div key={p.clip_id} style={{ display: "flex", alignItems: "center", gap: 12, padding: "9px 0", borderBottom: "1px solid var(--border)" }}>@@ -181,19 +181,18 @@ export default function AnalyticsPage() {{!data || data.published === 0 ? (<div className="drop-zone" style={{ textAlign: "center", padding: "48px 20px", color: "var(--text2)" }}>- <div className="icon" style={{ fontSize: 26 }}>📊</div><div className="label" style={{ marginTop: 8 }}>No performance data yet.</div><div style={{ fontSize: 12, color: "var(--text3)", marginTop: 6 }}>- Connect YouTube and Sync, or Import a YouTube Studio analytics CSV.+ Connect YouTube and sync, or import a YouTube Studio analytics CSV.</div></div>) : (<><div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(280px, 1fr))", gap: 16, marginBottom: 8 }}>- <Group title="Retention by content type — what holds viewers" rows={data.byContentType} metric="avgRetention" />- <Group title="CTR by caption style — packaging" rows={data.byCaptionStyle} metric="avgCtr" />+ <Group title="Retention by content type: what holds viewers" rows={data.byContentType} metric="avgRetention" />+ <Group title="CTR by caption style: packaging" rows={data.byCaptionStyle} metric="avgCtr" /><Group title="Retention by length" rows={data.byLength} metric="avgRetention" />- <Group title="Views by content type — reach" rows={data.byContentType} metric="avgViews" />+ <Group title="Views by content type: reach" rows={data.byContentType} metric="avgViews" /></div><div className="section">diff --git a/src/ui/client/ClipDetail.tsx b/src/ui/client/ClipDetail.tsxindex b5d97c8..470f442 100644--- a/src/ui/client/ClipDetail.tsx+++ b/src/ui/client/ClipDetail.tsx@@ -3,6 +3,7 @@ import { Link, useParams, useNavigate } from "react-router-dom";import { api, upload, fmt, basename, labelStyle } from "./lib";import ClipPlayer from "./ClipPlayer";import ReframeEditor from "./ReframeEditor";+import CopyButton from "./CopyButton";interface ThumbnailConfig {text?: string;@@ -107,7 +108,7 @@ export default function ClipDetail() {setTextOpts(r.texts || []);setFrameOpts(r.frames || []);if ((r.frames || []).length) setSelFrame({ path: r.frames[0].path, info: r.frames[0] });- if (!(r.texts || []).length && !(r.frames || []).length) setMsg("No options — is the AI CLI installed and the source video available?");+ if (!(r.texts || []).length && !(r.frames || []).length) setMsg("No options. Is the AI CLI installed and the source video available?");} catch (e: any) { setMsg(`Options failed: ${e.message}`); } finally { setBusy(null); }};@@ -168,15 +169,11 @@ export default function ClipDetail() {};const r = await api("/generate-content", { method: "POST", body: JSON.stringify(body) });if (r.error) throw new Error(r.error);- if (!r.titles?.length && !r.description) throw new Error("AI CLI returned nothing — is claude/codex installed?");+ if (!r.titles?.length && !r.description) throw new Error("AI CLI returned nothing. Is claude/codex installed?");load();} catch (e: any) { setMsg(`Content generation failed: ${e.message}`); } finally { setBusy(null); }};- const copy = (text: string) => {- navigator.clipboard?.writeText(text).then(() => setMsg("Copied to clipboard"), () => {});- };-const del = async () => {if (!window.confirm(`Delete "${clip.title}"? This removes the rendered file too.`)) return;setBusy("delete"); setMsg(null);@@ -206,7 +203,7 @@ export default function ClipDetail() {{clip.output_path ? <ClipPlayer key={previewUrl} src={previewUrl} onTime={(t) => (playerTime.current = t)} /> : <div className="phone-empty">No rendered output</div>}<button className="btn btn-ghost btn-sm" style={{ width: "100%", marginTop: 10 }} onClick={() => setReframing(true)}>Reframe (fix camera)</button><div className="clip-meta">- <span>{fmt(clip.start_second)}–{fmt(clip.end_second)} · {clip.duration}s</span>+ <span>{fmt(clip.start_second)}-{fmt(clip.end_second)} · {clip.duration}s</span><span>{clip.crop_strategy}</span>{clip.content_type && <span>{clip.content_type}</span>}{clip.file_size_mb != null && <span>{clip.file_size_mb.toFixed(1)}MB</span>}@@ -268,7 +265,7 @@ export default function ClipDetail() {</button><input ref={fileRef} type="file" accept=".png,.jpg,.jpeg,.webp" style={{ display: "none" }} onChange={(e) => e.target.files?.[0] && uploadFrame(e.target.files[0])} /></div>- <div style={{ fontSize: 11, color: "var(--text3)", marginTop: 8 }}>Leave Line 1 & 2 empty to auto-write the text.</div>+ <div style={{ fontSize: 11, color: "var(--text3)", marginTop: 8 }}>Leave line 1 and line 2 empty to auto-write the text.</div></div></div>@@ -317,7 +314,7 @@ export default function ClipDetail() {{clip.generated_titles.map((t, i) => {const clean = t.replace(/^\d+\.\s*/, "");return (- <button key={i} className={`title-option ${title === clean ? "selected" : ""}`} onClick={() => { setTitle(clean); setMsg("Title set — click Save to apply"); }}>+ <button key={i} className={`title-option ${title === clean ? "selected" : ""}`} onClick={() => { setTitle(clean); setMsg("Title set. Click save to apply"); }}>{t}</button>);@@ -329,7 +326,7 @@ export default function ClipDetail() {<div><div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 6 }}><span style={{ fontSize: 11, color: "var(--text3)" }}>Description</span>- <button className="copy-btn" onClick={() => copy(clip.description!)}>Copy</button>+ <CopyButton text={clip.description} /></div><div style={{ fontSize: 13, color: "var(--text2)", lineHeight: 1.6, whiteSpace: "pre-wrap" }}>{clip.description}</div></div>@@ -338,7 +335,7 @@ export default function ClipDetail() {<div><div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 6 }}><span style={{ fontSize: 11, color: "var(--text3)" }}>Tags</span>- <button className="copy-btn" onClick={() => copy(clip.tags!)}>Copy</button>+ <CopyButton text={clip.tags} /></div><div style={{ fontSize: 12, color: "var(--text2)", lineHeight: 1.6 }}>{clip.tags}</div></div>@@ -347,7 +344,7 @@ export default function ClipDetail() {<div><div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 6 }}><span style={{ fontSize: 11, color: "var(--text3)" }}>Hashtags</span>- <button className="copy-btn" onClick={() => copy(clip.hashtags!)}>Copy</button>+ <CopyButton text={clip.hashtags} /></div><div style={{ fontSize: 12, color: "var(--accent)", lineHeight: 1.6 }}>{clip.hashtags}</div></div>diff --git a/src/ui/client/CopyButton.tsx b/src/ui/client/CopyButton.tsxnew file mode 100644index 0000000..825e505--- /dev/null+++ b/src/ui/client/CopyButton.tsx@@ -0,0 +1,96 @@+import React, { useEffect, useRef, useState } from "react";++type CopyButtonProps = {+ text?: string;+ getText?: () => string;+ label?: string;+ copiedLabel?: string;+ className?: string;+ title?: string;+ disabled?: boolean;+ stopPropagation?: boolean;+ iconOnly?: boolean;+ resetMs?: number;+ style?: React.CSSProperties;+ onCopied?: () => void;+};++function CopyIcon() {+ return (+ <svg className="copy-button-icon" viewBox="0 0 24 24" fill="none" aria-hidden="true">+ <path d="M8 8h10v12H8z" />+ <path d="M6 16H4V4h12v2" />+ </svg>+ );+}++function CheckIcon() {+ return (+ <svg className="copy-button-icon" viewBox="0 0 24 24" fill="none" aria-hidden="true">+ <path d="M5 13l4 4L19 7" />+ </svg>+ );+}++export default function CopyButton({+ text,+ getText,+ label = "Copy",+ copiedLabel = "Copied",+ className = "copy-btn",+ title,+ disabled = false,+ stopPropagation = false,+ iconOnly = false,+ resetMs = 1600,+ style,+ onCopied,+}: CopyButtonProps) {+ const [copied, setCopied] = useState(false);+ const timerRef = useRef<number | null>(null);++ useEffect(() => {+ return () => {+ if (timerRef.current) window.clearTimeout(timerRef.current);+ };+ }, []);++ const handleCopy = async (event: React.MouseEvent<HTMLButtonElement>) => {+ if (stopPropagation) event.stopPropagation();+ const value = getText ? getText() : text;+ if (!value) return;++ try {+ await navigator.clipboard.writeText(value);+ setCopied(true);+ onCopied?.();++ if (timerRef.current) window.clearTimeout(timerRef.current);+ timerRef.current = window.setTimeout(() => setCopied(false), resetMs);+ } catch {+ setCopied(false);+ }+ };++ return (+ <button+ type="button"+ className={`${className} copy-button ${copied ? "is-copied" : ""} ${iconOnly ? "is-icon-only" : ""}`}+ onClick={handleCopy}+ disabled={disabled}+ title={title ?? label}+ aria-label={copied ? copiedLabel : label}+ aria-live="polite"+ style={style}+ >+ <span className="copy-button-layer copy-button-idle">+ <CopyIcon />+ {!iconOnly && <span>{label}</span>}+ </span>+ <span className="copy-button-layer copy-button-success">+ <CheckIcon />+ {!iconOnly && <span>{copiedLabel}</span>}+ </span>+ </button>+ );+}diff --git a/src/ui/client/EpisodeWorkspace.jsx b/src/ui/client/EpisodeWorkspace.jsxindex ac856f8..e905bb0 100644--- a/src/ui/client/EpisodeWorkspace.jsx+++ b/src/ui/client/EpisodeWorkspace.jsx@@ -1,4 +1,5 @@import React, { useState, useEffect, useRef, useCallback, useMemo } from 'react';+import CopyButton from './CopyButton';const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(2, '0')}`;const api = async (path, opts = {}) => {@@ -461,10 +462,14 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(}).catch(() => { });}, [phase, videoPath, !!transcript, !!transcriptText, suggestions?.length, mcpConnected]);- const copyPrompt = (prompt, idx) => {- navigator.clipboard.writeText(prompt).then(() => {+ const markCopied = (idx) => {setCopied(idx);setTimeout(() => setCopied(null), 1500);+ };++ const copyPrompt = (prompt, idx) => {+ navigator.clipboard.writeText(prompt).then(() => {+ markCopied(idx);}).catch(() => { });};@@ -475,9 +480,9 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<div className="mcp-hints"><div className="mcp-hints-header" style={{ cursor: 'pointer' }} onClick={() => setCollapsed(!collapsed)}><div className="mcp-hints-icon">AI</div>- <div className="mcp-hints-title">MCP Prompts</div>+ <div className="mcp-hints-title">MCP prompts</div><div className="mcp-hints-subtitle">- {collapsed ? `${hints.length} prompts` : 'click to copy'}+ {collapsed ? `${hints.length} prompts` : 'Click to copy'}</div><span style={{ fontSize: 10, color: 'var(--text3)', transition: 'transform 0.2s', transform: collapsed ? 'rotate(-90deg)' : 'rotate(0)', marginLeft: 4 }}>{'\u25BC'}</span></div>@@ -492,9 +497,14 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart({copied === i ? 'Copied!' : hint.prompt}</span><span className="mcp-hint-desc">{hint.description}</span>- <button className="mcp-hint-copy" onClick={e => { e.stopPropagation(); copyPrompt(hint.prompt, i); }} title="Copy prompt">- {copied === i ? '\u2713' : '\u2398'}- </button>+ <CopyButton+ className="mcp-hint-copy"+ text={hint.prompt}+ title="Copy prompt"+ iconOnly+ stopPropagation+ onCopied={() => markCopied(i)}+ /></div>))}</div>@@ -646,6 +656,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(};const deletePreset = async (name) => {+ if (!confirm(`Delete preset "${name}"?`)) return;try {await api('/presets', { method: 'POST', body: JSON.stringify({ action: 'delete', name }) });if (activePreset === name) setActivePreset('');@@ -673,6 +684,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(const deleteClipEdit = () => {if (editingClip === null) return;+ if (!confirm(`Delete clip "${editForm.title}" from this batch?`)) return;setSuggestions(prev => prev.filter((_, i) => i !== editingClip));setDeselected(prev => {const next = new Set();@@ -913,7 +925,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(const d = await api('/find-moment', { method: 'POST', body: JSON.stringify({ text }) });if (d.error) { setError(d.error); return; }if (!d.added) {- setMomentNotice(d.found ? 'Those moments are already in your clips.' : "Couldn't find that moment — try different wording or a direct quote.");+ setMomentNotice(d.found ? 'Those moments are already in your clips.' : "Couldn't find that moment. Try different wording or a direct quote.");return;}// suggestions refresh via the SSE state-sync broadcast@@ -988,7 +1000,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(parts.push('Then find the 5-8 best viral-worthy moments and call suggest_clips.');} else {parts.push('Use get_ui_state with include_transcript=true to read the full transcript.');- parts.push('Find the 5-8 best viral-worthy moments — hot takes, strong opinions, funny moments, actionable advice, and emotional stories.');+ parts.push('Find the 5-8 best viral-worthy moments: hot takes, strong opinions, funny moments, actionable advice, and emotional stories.');parts.push('Then call suggest_clips with your suggestions.');}const settings = [];@@ -1138,7 +1150,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart()}{speakerStatus && !speakerStatus.configured && (<span className="pill" style={{ fontSize: 10, letterSpacing: '0.5px', background: 'rgba(250,204,21,0.08)', color: '#facc15', border: '1px solid rgba(250,204,21,0.2)', cursor: 'pointer' }}- title="Speaker detection not configured — click to learn more"+ title="Speaker detection not configured. Click to learn more"onClick={() => window.open('https://huggingface.co/pyannote/speaker-diarization-3.1', '_blank')}>Speakers ✗</span>@@ -1155,7 +1167,6 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart({speakerStatus && !speakerStatus.configured && !sessionStorage.getItem('dismiss-speaker') && (<div className="fade-in" style={{ margin: '0 0 16px', padding: '14px 16px', background: 'rgba(250,204,21,0.06)', border: '1px solid rgba(250,204,21,0.15)', borderRadius: 'var(--radius)', display: 'flex', alignItems: 'flex-start', gap: 12 }}>- <span style={{ fontSize: 18, lineHeight: 1, marginTop: 1 }}>🎙️</span><div style={{ flex: 1 }}><div style={{ fontSize: 13, fontWeight: 700, marginBottom: 4 }}>Set up speaker detection</div><div style={{ fontSize: 12, color: 'var(--text2)', lineHeight: 1.5 }}>@@ -1191,7 +1202,6 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(</div>) : (<>- <div className="icon">{'\uD83C\uDFAC'}</div><div className="label"><strong>Browse</strong> to select a video file</div></>)}@@ -1214,7 +1224,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<div className="section"><div className="section-label">Transcript</div><div className="tabs">- <div className={`tab ${transcriptMode === 'import' ? 'active' : ''}`} onClick={() => setTranscriptMode('import')}>Paste Transcript</div>+ <div className={`tab ${transcriptMode === 'import' ? 'active' : ''}`} onClick={() => setTranscriptMode('import')}>Paste transcript</div><div className={`tab ${transcriptMode === 'whisper' ? 'active' : ''}`} onClick={() => setTranscriptMode('whisper')}>Auto (Whisper)</div></div>{transcriptMode === 'import' && (@@ -1223,7 +1233,6 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<div className={`drop-zone ${transcriptDragOver ? 'drag-over' : ''}`}onDragOver={e => { preventDef(e); setTranscriptDragOver(true); }} onDragLeave={() => setTranscriptDragOver(false)}onDrop={handleTranscriptDrop} style={{ marginBottom: 10, padding: '22px 20px' }}>- <div className="icon">{'\uD83D\uDCC4'}</div><div className="label">Drop a transcript file or <strong>browse</strong></div><input type="file" accept=".txt,.json,.srt,.vtt" onChange={handleTranscriptFileSelect} disabled={isProcessing} /></div>@@ -1235,7 +1244,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<button className="btn btn-ghost btn-sm" onClick={() => { setTranscriptText(''); setTranscriptFileName(''); }} style={{ padding: '4px 10px', fontSize: 11 }}>Clear</button></div>)}- <textarea placeholder={'Speaker (00:00)\nText of what they said...\n\nSpeaker2 (00:15)\nMore text...\n\n— or paste JSON / drag a .txt file above —'}+ <textarea placeholder={'Speaker (00:00)\nText of what they said...\n\nSpeaker2 (00:15)\nMore text...\n\nOr paste JSON / drag a .txt file above.'}value={transcriptText} onChange={e => { setTranscriptText(e.target.value); setTranscriptFileName(''); }}disabled={isProcessing} style={{ minHeight: transcriptText ? 80 : 120 }}onDragOver={e => { preventDef(e); setTranscriptDragOver(true); }} onDrop={handleTranscriptDrop} />@@ -1342,7 +1351,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<div className="settings-grid"><div>- <label className="field-label">Caption Style</label>+ <label className="field-label">Caption style</label><select value={captionStyle} onChange={e => onCaptionChange(e.target.value)} disabled={isProcessing}><option value="branded">Branded</option><option value="hormozi">Hormozi</option><option value="karaoke">Karaoke</option><option value="subtle">Subtle</option>@@ -1351,7 +1360,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<div><label className="field-label">Crop</label><select value={cropStrategy} onChange={e => onCropChange(e.target.value)} disabled={isProcessing}>- <option value="speaker">Speaker Aware</option><option value="face">Face Detection</option><option value="center">Center</option>+ <option value="speaker">Speaker aware</option><option value="face">Face detection</option><option value="center">Center</option></select></div></div>@@ -1501,7 +1510,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(disabled={!videoPath.trim() || (transcriptMode === 'import' && !transcriptText.trim()) || (transcriptMode === 'whisper' && !transcript) || browsing || transcribing}onClick={copyGeneratePrompt}style={generateCopied ? { background: 'var(--green)', transition: 'background 0.2s' } : {}}>- {phase === 'suggesting' ? 'Claude is analyzing...' : generateCopied ? 'Copied — paste in Claude' : 'Find Best Moments'}+ {phase === 'suggesting' ? 'Claude is analyzing...' : generateCopied ? 'Copied. Paste in Claude' : 'Find best moments'}</button>{videoPath.trim() && (transcriptText.trim() || transcript) && (<McpHints phase={phase} videoPath={videoPath} transcript={transcript} transcriptText={transcriptText} suggestions={suggestions} mcpConnected={mcpConnected} />@@ -1509,14 +1518,14 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(</div>)}- {/* Find a specific moment — paste a quote/description, AI locates it */}+ {/* Find a specific moment: paste a quote/description, AI locates it */}{(transcript || transcriptText) && phase !== 'parsing' && phase !== 'suggesting' && phase !== 'exporting' && (<div className="section" style={{ marginTop: 16 }}><div className="section-label">Find a specific moment</div><textareaclassName="input"rows={3}- placeholder="Paste a quote or describe the moment(s) you want — the AI searches the transcript and adds them to your clips."+ placeholder="Paste a quote or describe the moment you want. The AI searches the transcript and adds it to your clips."value={momentText}onChange={(e) => { setMomentText(e.target.value); setMomentNotice(null); }}disabled={findingMoment}@@ -1677,7 +1686,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<button className="btn btn-ghost" onClick={() => {setPhase('idle'); setResults([]); setSuggestions([]); setBatchJobId(null); setFile(null); setTranscript(null); setActiveClipIdx(null); setPreviewSrc(null); setEnergyData({}); setCachedTranscript(false); autoTranscribeRef.current = '';fetch('/api/ui-state', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ _source: 'ui', phase: 'idle', suggestions: [], deselectedIndices: [] }) }).catch(() => { });- }}>Start Over</button>+ }}>Start over</button>{phase === 'done' && <button className="btn btn-ghost" onClick={() => { setPhase('review'); setResults([]); setBatchJobId(null); }}>Re-export</button>}</div>)}@@ -1689,7 +1698,7 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart(<div className="fade-in" style={{ marginTop: 20, padding: 16, background: 'var(--surface)', border: '1px solid var(--border)', borderRadius: 'var(--radius)' }}><div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 10 }}><div style={{ width: 20, height: 20, borderRadius: 6, background: 'rgba(74,222,128,0.1)', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 10, fontWeight: 700, color: 'var(--green)' }}>P</div>- <span style={{ fontSize: 13, fontWeight: 700 }}>PodStack — next steps</span>+ <span style={{ fontSize: 13, fontWeight: 700 }}>PodStack: next steps</span></div><p style={{ fontSize: 12, color: 'var(--text2)', lineHeight: 1.6, marginBottom: 12 }}>Clips are rendered. Now generate titles, descriptions, and thumbnails in Claude Code:@@ -1843,14 +1852,14 @@ const fmt = (s) => `${Math.floor(s / 60)}:${String(Math.floor(s % 60)).padStart({editingClip !== null && suggestions[editingClip] && (<div className="clip-edit-overlay" onClick={() => setEditingClip(null)}><div className="clip-edit-panel" onClick={e => e.stopPropagation()}>- <h3>Edit Clip #{editingClip + 1}</h3>+ <h3>Edit clip #{editingClip + 1}</h3><div className="edit-field"><label>Title</label><input type="text" value={editForm.title} onChange={e => setEditForm(f => ({ ...f, title: e.target.value }))}onKeyDown={e => { if (e.key === 'Enter') saveClipEdit(); }} autoFocus /></div><div className="edit-field">- <label>Time Range</label>+ <label>Time range</label><div className="time-row"><div><input type="number" step="0.5" value={editForm.start} onChange={e => setEditForm(f => ({ ...f, start: parseFloat(e.target.value) || 0 }))}diff --git a/src/ui/client/KnowledgePage.jsx b/src/ui/client/KnowledgePage.jsxindex 7b3faab..bd091d0 100644--- a/src/ui/client/KnowledgePage.jsx+++ b/src/ui/client/KnowledgePage.jsx@@ -96,17 +96,16 @@ export default function KnowledgePage() {return (<div className="app"><div className="header">- <h1>Knowledge Base</h1>+ <h1>Knowledge base</h1>{kbDir && <div className="dir-path">{kbDir}</div>}</div><div- className={`drop-zone ${dragOver ? 'drag-over' : ''}`}+ className={`drop-zone knowledge-drop-zone ${dragOver ? 'drag-over' : ''}`}onDragOver={(e) => { e.preventDefault(); setDragOver(true); }}onDragLeave={() => setDragOver(false)}onDrop={handleDrop}>- <div className="dz-icon">{'\uD83D\uDCC4'}</div><div className="dz-text">Drop <strong>.md files</strong> here or click to browse</div>diff --git a/src/ui/client/Layout.tsx b/src/ui/client/Layout.tsxindex 27c8252..1bb8d41 100644--- a/src/ui/client/Layout.tsx+++ b/src/ui/client/Layout.tsx@@ -36,7 +36,7 @@ export default function Layout() {<NavLink to="/knowledge" className="sidebar-link"><Icon name="knowledge" /> Knowledge</NavLink><NavLink to="/config" className="sidebar-link"><Icon name="config" /> Config</NavLink><NavLink to="/integrations" className="sidebar-link"><Icon name="integrations" /> Integrations</NavLink>- <NavLink to="/mcp" className="sidebar-link"><Icon name="config" /> MCP Setup</NavLink>+ <NavLink to="/mcp" className="sidebar-link"><Icon name="config" /> MCP setup</NavLink><div className="sidebar-section">Insights</div><NavLink to="/analytics" className="sidebar-link"><Icon name="analytics" /> Analytics</NavLink>diff --git a/src/ui/client/McpSetupPage.tsx b/src/ui/client/McpSetupPage.tsxindex ede9f4b..56c11f8 100644--- a/src/ui/client/McpSetupPage.tsx+++ b/src/ui/client/McpSetupPage.tsx@@ -1,5 +1,6 @@import React, { useEffect, useRef, useState } from "react";import { api } from "./lib";+import CopyButton from "./CopyButton";type StatusKind = "warn" | "ok" | "err";@@ -15,7 +16,6 @@ export default function McpSetupPage() {const [statusText, setStatusText] = useState("Checking…");const desktopRef = useRef<HTMLPreElement>(null);const codeRef = useRef<HTMLPreElement>(null);- const [copied, setCopied] = useState<Record<string, boolean>>({});useEffect(() => {api<any>("/integration-info")@@ -35,13 +35,6 @@ export default function McpSetupPage() {});}, []);- function copyBlock(id: string, ref: React.RefObject<HTMLPreElement>) {- navigator.clipboard.writeText(ref.current?.innerText ?? "").then(() => {- setCopied((c) => ({ ...c, [id]: true }));- setTimeout(() => setCopied((c) => ({ ...c, [id]: false })), 1500);- });- }-const serverPath = mcpPath ?? "<path-to>/mcp-server.mjs";const desktopJson = JSON.stringify({@@ -58,7 +51,7 @@ export default function McpSetupPage() {return (<div className="app" style={{ maxWidth: 780 }}>- <div className="header"><h1>MCP Setup</h1></div>+ <div className="header"><h1>MCP setup</h1></div><span className="pill" style={{ ...STATUS_STYLE[statusKind], fontSize: 11 }}>{statusText}</span>@@ -67,9 +60,7 @@ export default function McpSetupPage() {<div className="code-block"><div className="code-block-head"><span>claude_desktop_config.json</span>- <button className="btn btn-ghost btn-sm" style={{ padding: "3px 10px" }} onClick={() => copyBlock("desktop", desktopRef)}>- {copied.desktop ? "Copied" : "Copy"}- </button>+ <CopyButton className="btn btn-ghost btn-sm" style={{ padding: "3px 10px" }} getText={() => desktopRef.current?.innerText ?? ""} /></div><pre ref={desktopRef}>{desktopJson}</pre></div>@@ -80,9 +71,7 @@ export default function McpSetupPage() {<div className="code-block"><div className="code-block-head"><span>terminal</span>- <button className="btn btn-ghost btn-sm" style={{ padding: "3px 10px" }} onClick={() => copyBlock("code", codeRef)}>- {copied.code ? "Copied" : "Copy"}- </button>+ <CopyButton className="btn btn-ghost btn-sm" style={{ padding: "3px 10px" }} getText={() => codeRef.current?.innerText ?? ""} /></div><pre ref={codeRef}>podcli mcp install</pre></div>diff --git a/src/ui/client/ReframeEditor.tsx b/src/ui/client/ReframeEditor.tsxindex 260e5ea..b6d24e4 100644--- a/src/ui/client/ReframeEditor.tsx+++ b/src/ui/client/ReframeEditor.tsx@@ -157,7 +157,7 @@ export default function ReframeEditor({</div><div style={{ fontSize: 11, color: "var(--text3)", marginTop: 6 }}>- {detectingCuts ? "Detecting camera switches…" : cuts.length ? `${cuts.length} camera switch${cuts.length > 1 ? "es" : ""} detected — a keyframe near one snaps to it` : "No camera switches detected"}+ {detectingCuts ? "Detecting camera switches…" : cuts.length ? `${cuts.length} camera switch${cuts.length > 1 ? "es" : ""} detected. A keyframe near one snaps to it.` : "No camera switches detected"}</div><div style={{ display: "flex", alignItems: "center", gap: 6, marginTop: 8 }}>diff --git a/src/ui/client/StudioHome.tsx b/src/ui/client/StudioHome.tsxindex b386b52..6c6e4fa 100644--- a/src/ui/client/StudioHome.tsx+++ b/src/ui/client/StudioHome.tsx@@ -90,7 +90,7 @@ export default function StudioHome() {{exporting > 0 && (<div className="set-note ok" style={{ display: "flex", alignItems: "center", gap: 10, marginBottom: 16 }}>- <div className="spinner sm" /> Exporting {exporting} clip{exporting > 1 ? "s" : ""} — they appear here as each finishes.+ <div className="spinner sm" /> Exporting {exporting} clip{exporting > 1 ? "s" : ""}. They appear here as each finishes.</div>)}@@ -100,8 +100,7 @@ export default function StudioHome() {</div>) : episodes.length === 0 ? (<div className="drop-zone" style={{ textAlign: "center", padding: "48px 20px" }}>- <div className="icon" style={{ fontSize: 28 }}>🎬</div>- <div className="label" style={{ marginTop: 8 }}>+ <div className="label"><Link to="/episode" style={{ color: "var(--accent)" }}>Start a new episode</Link></div></div>diff --git a/src/ui/client/ThumbnailTemplate.tsx b/src/ui/client/ThumbnailTemplate.tsxindex 74fa22e..6938fd7 100644--- a/src/ui/client/ThumbnailTemplate.tsx+++ b/src/ui/client/ThumbnailTemplate.tsx@@ -17,13 +17,13 @@ const GROUPS: { group: string; items: Field[] }[] = [{ k: "box_width", t: "text" }, { k: "box_min_height", t: "text" },{ k: "box_border_width", t: "num" }, { k: "box_fill_color", t: "color" }, { k: "box_padding", t: "text" },]},- { group: "Headline — line 1", items: [+ { group: "Headline: line 1", items: [{ k: "text_color", t: "color" }, { k: "line1_color", t: "color" },{ k: "line1_font_size", t: "text" }, { k: "line1_font_weight", t: "num" },{ k: "line1_letter_spacing", t: "text" }, { k: "line1_line_height", t: "num" },{ k: "line1_margin_bottom", t: "text" }, { k: "line1_uppercase", t: "bool" }, { k: "line1_nowrap", t: "bool" },]},- { group: "Highlight — line 2", items: [+ { group: "Highlight: line 2", items: [{ k: "accent_color", t: "color" }, { k: "line2_text_color", t: "color" },{ k: "line2_font_size", t: "text" }, { k: "line2_font_weight", t: "num" },{ k: "line2_font_style", t: "select", opts: ["italic", "normal"] },@@ -73,7 +73,7 @@ export default function ThumbnailTemplate() {try {const r = await api("/thumbnail-config", { method: "PUT", body: JSON.stringify(cfg) });if (r.error) throw new Error(r.error);- setMsg("Saved — new thumbnails use this template");+ setMsg("Saved. New thumbnails use this template");} catch (e: any) { setMsg(`Save failed: ${e.message}`); } finally { setBusy(null); }};@@ -93,7 +93,7 @@ export default function ThumbnailTemplate() {const r = await api("/thumbnail-config", { method: "PUT", body: JSON.stringify(parsed) });if (r.error) throw new Error(r.error);await load();- setMsg("Imported — new thumbnails use this template");+ setMsg("Imported. New thumbnails use this template");} catch (e: any) { setMsg(`Import failed: ${e.message}`); } finally { setBusy(null); }};diff --git a/src/ui/client/index.html b/src/ui/client/index.htmlindex 2713439..163016a 100644--- a/src/ui/client/index.html+++ b/src/ui/client/index.html@@ -4,7 +4,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title>Podcli — AI Podcast Clip Studio</title>+ <title>Podcli - AI podcast clip studio</title><meta name="robots" content="noindex,nofollow"><meta name="theme-color" content="#08080a" media="(prefers-color-scheme: dark)"><meta name="color-scheme" content="dark light">diff --git a/src/ui/public/css/styles.css b/src/ui/public/css/styles.cssindex c96cca1..5e35d5e 100644--- a/src/ui/public/css/styles.css+++ b/src/ui/public/css/styles.css@@ -36,7 +36,7 @@--radius-sm: 8px;--radius-lg: 16px;--ease: cubic-bezier(0.4, 0, 0.2, 1);- --ease-out: cubic-bezier(0.23, 1, 0.32, 1);+ --ease-out: cubic-bezier(0.22, 1, 0.36, 1);--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);--font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;--font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;@@ -48,11 +48,17 @@ body {font-family: var(--font-sans);background: var(--bg); color: var(--text); min-height: 100vh;-webkit-font-smoothing: antialiased;+ -moz-osx-font-smoothing: grayscale;text-rendering: optimizeLegibility;}::selection { background: var(--accent); color: #000; }+:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 2px;+}+/* ─── Landing patterns: glass surfaces ─── */.glass {background: var(--glass-bg);@@ -72,11 +78,11 @@ body {.img-outline { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }/* ─── Layout ─── */-.app { max-width: 1080px; margin: 0 auto; padding: 48px 32px 96px; }+.app { max-width: 1080px; margin: 0 auto; padding: 48px 32px 96px; background: #0D0B0D; }.header { margin-bottom: 36px; }.logo { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; color: var(--text3); margin-bottom: 10px; text-transform: uppercase; text-decoration: none; }.logo span { color: var(--accent); }-h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; }+h1 { font-size: 28px; font-weight: 700; letter-spacing: 0; line-height: 1.15; }.layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }.main-col { min-width: 0; }.preview-col { position: relative; }@@ -131,10 +137,12 @@ h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1display: flex; flex-direction: column; align-items: center;padding: 0 20px; text-align: center;font-family: Arial, Helvetica, sans-serif;- line-height: 1.35; transition: all 0.3s var(--ease);+ line-height: 1.35;+ transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);}.style-preview .sp-word {- display: inline; transition: all 0.25s var(--ease);+ display: inline;+ transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);}.style-preview .sp-logo {position: absolute; top: 14px; left: 14px;@@ -166,7 +174,7 @@ h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1padding: 5px 10px; background: var(--surface);border: 1px solid var(--border); border-radius: 8px;font-size: 11px; color: var(--text2); font-weight: 500;- transition: all 0.2s var(--ease);+ transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);}.preview-tag strong { color: var(--text); font-weight: 600; text-transform: capitalize; }.preview-tag.changed { border-color: var(--accent); background: var(--accent-subtle); }@@ -196,12 +204,14 @@ h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1display: flex; flex-direction: column; align-items: center;padding: 0 8px; text-align: center; pointer-events: none;font-family: Arial, Helvetica, sans-serif; line-height: 1.3;- z-index: 2; transition: all 0.2s var(--ease);+ z-index: 2;+ transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), bottom 0.2s var(--ease), top 0.2s var(--ease);max-height: 32%; /* never grow beyond the lower-third caption zone */overflow: hidden;}.phone-frame .phone-caption .pc-word {- display: inline; transition: all 0.2s var(--ease);+ display: inline;+ transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease);}.phone-frame .phone-gradient {position: absolute; inset: auto 0 0 0; height: 50%;@@ -403,6 +413,14 @@ input[type="text"], input[type="number"], input[type="password"], select, textarinput[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus, textarea:focus {border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle);}+input[type="text"]:focus-visible,+input[type="number"]:focus-visible,+input[type="password"]:focus-visible,+select:focus-visible,+textarea:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 2px;+}textarea {font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;font-size: 12px; resize: vertical; min-height: 120px; line-height: 1.7;@@ -432,18 +450,18 @@ select {.btn-primary:disabled { opacity: 0.25; cursor: not-allowed; }.btn-ghost {background: var(--surface3); color: var(--text);- box-shadow: 0 4px 0 0 var(--bg), 0 9px 16px -7px rgba(0, 0, 0, 0.7),- 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.10);+ box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9,+ 0 0 0 1px #ffffff14, inset 0 1px #ffffff24;}.btn-ghost:hover:not(:disabled) { background: #2c2c34; }.btn-ghost:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.10); }.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }.btn-danger {background: var(--surface3); color: var(--text2);- box-shadow: 0 4px 0 0 var(--bg), 0 9px 16px -7px rgba(0, 0, 0, 0.7),- 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.10);+ box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9,+ 0 0 0 1px #ffffff14, inset 0 1px #ffffff24;}-.btn-danger:hover:not(:disabled) { color: var(--red); box-shadow: 0 4px 0 0 var(--bg), 0 9px 16px -7px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--red-border), inset 0 1px 0 rgba(255, 255, 255, 0.10); }+.btn-danger:hover:not(:disabled) { color: var(--red); box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9, 0 0 0 1px var(--red-border), inset 0 1px #ffffff24; }.btn-danger:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 1px var(--red-border), inset 0 1px 0 rgba(255, 255, 255, 0.10); }.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }@@ -472,7 +490,8 @@ select {.drop-zone {border: 1.5px dashed var(--border); border-radius: var(--radius);padding: 32px 20px; text-align: center; cursor: pointer;- transition: all 0.2s var(--ease); position: relative; overflow: hidden;+ transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);+ position: relative; overflow: hidden;}.drop-zone:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.012); }.drop-zone.drag-over { border-color: var(--accent); background: var(--accent-subtle); box-shadow: 0 0 0 4px var(--accent-subtle); }@@ -502,7 +521,8 @@ select {flex: 1; text-align: center; padding: 8px 12px;border-radius: calc(var(--radius) - 3px); font-size: 13px;font-weight: 600; color: var(--text2); cursor: pointer;- transition: all 0.2s var(--ease); user-select: none;+ transition: background 0.2s var(--ease), color 0.2s var(--ease);+ user-select: none;}.tab:hover:not(.active) { color: var(--text); }.tab.active { background: var(--accent); color: #fff; }@@ -527,7 +547,7 @@ select {width: 18px; height: 18px; border-radius: 50%; border: none;background: transparent; color: var(--text3); font-size: 14px;cursor: pointer; flex-shrink: 0; padding: 0; line-height: 1;- transition: all 0.15s var(--ease);+ transition: background 0.15s var(--ease), color 0.15s var(--ease);}.asset-pill-x:hover { background: var(--surface); color: var(--red); }.asset-add {@@ -536,7 +556,7 @@ select {border: 1px dashed var(--border); border-radius: 20px;font-size: 12px; color: var(--text3); cursor: pointer;font-family: inherit; font-weight: 500;- transition: all 0.15s var(--ease);+ transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);}.asset-add:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text2); }@@ -554,7 +574,7 @@ select {display: block; width: 100%; text-align: left; padding: 6px 10px;background: none; border: none; color: var(--text2); font-size: 12px;font-family: inherit; cursor: pointer; border-radius: 6px;- transition: all 0.1s var(--ease);+ transition: background 0.1s var(--ease), color 0.1s var(--ease);}.overflow-menu-item:hover { background: var(--surface2); color: var(--text); }@@ -571,7 +591,8 @@ select {display: flex; align-items: center; gap: 12px;padding: 12px 14px; margin-bottom: 4px;background: var(--surface); border: 1px solid var(--border);- border-radius: var(--radius); transition: all 0.15s var(--ease);+ border-radius: var(--radius);+ transition: border-color 0.15s var(--ease), background 0.15s var(--ease), opacity 0.15s var(--ease);cursor: pointer;}.clip-item:hover { border-color: var(--border-hover); }@@ -582,7 +603,9 @@ select {width: 20px; height: 20px; border-radius: 6px;border: 1.5px solid var(--border); display: flex;align-items: center; justify-content: center;- cursor: pointer; transition: all 0.15s var(--ease); flex-shrink: 0;+ cursor: pointer;+ transition: border-color 0.15s var(--ease), background 0.15s var(--ease);+ flex-shrink: 0;}.checkbox:hover { border-color: var(--accent); }.checkbox.checked { background: var(--accent); border-color: var(--accent); }@@ -631,9 +654,10 @@ select {}.mcp-hints-icon {width: 20px; height: 20px; border-radius: 6px;- background: linear-gradient(135deg, #7c5ae0 0%, #a855f7 100%);+ background: var(--accent-subtle);+ border: 1px solid var(--accent-glow);display: flex; align-items: center; justify-content: center;- font-size: 10px; color: #fff; font-weight: 800; flex-shrink: 0;+ font-size: 10px; color: var(--accent); font-weight: 800; flex-shrink: 0;}.mcp-hints-title {font-size: 11px; font-weight: 700; letter-spacing: 0.5px;@@ -649,7 +673,8 @@ select {display: flex; align-items: center; gap: 10px;padding: 9px 12px; background: var(--bg);border: 1px solid var(--border); border-radius: var(--radius-sm);- cursor: pointer; transition: all 0.15s var(--ease);+ cursor: pointer;+ transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease);user-select: none;}.mcp-hint:hover {@@ -671,7 +696,7 @@ select {width: 24px; height: 24px; border-radius: 6px;background: transparent; border: none; color: var(--text3);cursor: pointer; flex-shrink: 0; font-size: 12px;- transition: all 0.15s var(--ease);+ transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease-out);}.mcp-hint-copy:hover { background: var(--surface2); color: var(--text); }.mcp-hint-category {@@ -691,7 +716,7 @@ select {font-size: 13px; font-weight: 600; color: var(--text2);text-decoration: none; padding: 6px 14px;border-radius: var(--radius-sm); border: 1px solid var(--border);- transition: all 0.15s var(--ease);+ transition: border-color 0.15s var(--ease), color 0.15s var(--ease);}.nav-link:hover { border-color: var(--border-hover); color: var(--text); }.subtitle { font-size: 14px; color: var(--text2); margin-top: 8px; line-height: 1.6; }@@ -704,11 +729,13 @@ select {border-radius: var(--radius-sm);font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--text2);}+.knowledge-drop-zone { margin-bottom: 10px; }.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.file-card {background: var(--surface); border: 1px solid var(--border);border-radius: var(--radius); padding: 16px; cursor: pointer;- transition: all 0.15s var(--ease); position: relative;+ transition: border-color 0.15s var(--ease), background 0.15s var(--ease);+ position: relative;}.file-card:hover { border-color: var(--border-hover); }.file-card.active { border-color: var(--accent); background: var(--accent-subtle); }@@ -722,13 +749,17 @@ select {.file-delete {position: absolute; top: 10px; right: 10px;width: 22px; height: 22px; border-radius: 6px;- background: transparent; border: 1px solid transparent;+ background: var(--surface3); border: 0;color: var(--text3); cursor: pointer; font-size: 13px;display: flex; align-items: center; justify-content: center;- transition: all 0.15s var(--ease); opacity: 0;+ box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9,+ 0 0 0 1px #ffffff14, inset 0 1px #ffffff24;+ transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), background 0.15s var(--ease), color 0.15s var(--ease), opacity 0.15s var(--ease);+ opacity: 0;}.file-card:hover .file-delete { opacity: 1; }-.file-delete:hover { border-color: var(--red-border); color: var(--red); background: var(--red-subtle); }+.file-delete:hover { color: var(--red); background: var(--red-subtle); box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9, 0 0 0 1px var(--red-border), inset 0 1px #ffffff24; }+.file-delete:active { transform: translateY(4px); box-shadow: 0 0 0 1px var(--red-border), inset 0 1px 0 rgba(255, 255, 255, 0.10); }.editor-panel {background: var(--surface); border: 1px solid var(--border);border-radius: var(--radius); overflow: hidden; margin-top: 20px;@@ -758,6 +789,11 @@ select {outline: none;}.new-file-input:focus { border-color: var(--accent); }+.new-file-input:focus-visible,+.editor-textarea:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 2px;+}.new-file-input::placeholder { color: var(--text3); }.toast {position: fixed; bottom: 24px; right: 24px;@@ -807,13 +843,93 @@ select {}.code-filename { font-size: 11px; font-weight: 600; color: var(--text2); font-family: 'JetBrains Mono', monospace; }.copy-btn {+ position: relative; overflow: hidden;padding: 4px 10px; font-size: 11px; font-weight: 600;font-family: inherit; color: var(--text2); background: transparent;border: 1px solid var(--border); border-radius: 6px; cursor: pointer;- transition: all 0.15s var(--ease);+ min-width: 70px;+ transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease-out);}.copy-btn:hover { border-color: var(--accent); color: var(--accent); }-.copy-btn.copied { border-color: var(--green); color: var(--green); }+.copy-button {+ position: relative; overflow: hidden;+ --copy-text-dur: 150ms;+ --copy-text-y: 4px;+ --copy-text-blur: 2px;+ --copy-icon-dur: 250ms;+ --copy-icon-scale: 0.25;+ --copy-swap-ease: ease-in-out;+}+.btn.copy-button {+ min-width: 76px;+}+.copy-button-layer {+ display: inline-flex; align-items: center; justify-content: center; gap: 5px;+ transition:+ opacity var(--copy-text-dur) var(--copy-swap-ease),+ transform var(--copy-text-dur) var(--copy-swap-ease),+ filter var(--copy-text-dur) var(--copy-swap-ease);+}+.copy-button-success {+ position: absolute; inset: 0;+ opacity: 0; transform: translateY(var(--copy-text-y)); filter: blur(var(--copy-text-blur));+}+.copy-button.is-copied {+ border-color: var(--green-border); color: var(--green);+}+.copy-button.is-copied .copy-button-idle {+ opacity: 0; transform: translateY(calc(var(--copy-text-y) * -1)); filter: blur(var(--copy-text-blur));+}+.copy-button.is-copied .copy-button-success {+ opacity: 1; transform: translateY(0); filter: blur(0);+}+.copy-button-icon {+ width: 13px; height: 13px; flex-shrink: 0;+ stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;+ transition:+ opacity var(--copy-icon-dur) var(--copy-swap-ease),+ transform var(--copy-icon-dur) var(--copy-swap-ease),+ filter var(--copy-icon-dur) var(--copy-swap-ease);+}+.copy-button-success .copy-button-icon {+ opacity: 0;+ transform: scale(var(--copy-icon-scale));+ filter: blur(var(--copy-text-blur));+}+.copy-button.is-copied .copy-button-idle .copy-button-icon {+ opacity: 0;+ transform: scale(var(--copy-icon-scale));+ filter: blur(var(--copy-text-blur));+}+.copy-button.is-copied .copy-button-success .copy-button-icon {+ opacity: 1;+ transform: scale(1);+ filter: blur(0);+}+.copy-button.is-icon-only {+ min-width: 0; padding: 0;+}+.copy-button.is-icon-only .copy-button-layer {+ width: 100%; height: 100%;+}+.copy-button.is-icon-only .copy-button-success {+ display: flex;+}+@media (prefers-reduced-motion: reduce) {+ .copy-button-layer,+ .copy-button-icon {+ transition: opacity 120ms var(--ease);+ transform: none;+ filter: none;+ }+ .copy-button-success,+ .copy-button.is-copied .copy-button-idle,+ .copy-button-success .copy-button-icon,+ .copy-button.is-copied .copy-button-idle .copy-button-icon {+ transform: none;+ filter: none;+ }+}pre {padding: 16px; overflow-x: auto; font-family: 'JetBrains Mono', monospace;font-size: 12.5px; line-height: 1.7; color: var(--text); tab-size: 2;@@ -895,7 +1011,8 @@ pre .punct { color: var(--text2); }width: 36px; height: 20px; border-radius: 10px;background: var(--surface2); border: 1px solid var(--border);cursor: pointer; position: relative;- transition: all 0.2s var(--ease); flex-shrink: 0;+ transition: background 0.2s var(--ease), border-color 0.2s var(--ease);+ flex-shrink: 0;}.toggle.on {background: var(--accent); border-color: var(--accent);@@ -916,6 +1033,10 @@ input[type="range"] {background: var(--surface2); outline: none;cursor: pointer;}+input[type="range"]:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 6px;+}input[type="range"]::-webkit-slider-thumb {-webkit-appearance: none; appearance: none;width: 14px; height: 14px; border-radius: 50%;@@ -985,7 +1106,7 @@ input[type="range"]::-webkit-slider-thumb {border: 1px solid var(--border); border-radius: var(--radius-sm);font-size: 11px; font-weight: 600; color: var(--text2);cursor: pointer; font-family: inherit;- transition: all 0.15s var(--ease);+ transition: border-color 0.15s var(--ease), color 0.15s var(--ease);}.energy-btn:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text); }.energy-btn:disabled { opacity: 0.4; cursor: not-allowed; }@@ -1060,9 +1181,10 @@ input[type="range"]::-webkit-slider-thumb {.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }.clip-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color 0.12s, transform 0.12s; }.clip-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }-.clip-card-del { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; border: none; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.12s var(--ease), background 0.12s var(--ease); }+.clip-card-del { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; border: none; border-radius: var(--radius-sm); background: var(--surface3); color: #fff; cursor: pointer; opacity: 0; box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9, 0 0 0 1px #ffffff14, inset 0 1px #ffffff24; transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), opacity 0.12s var(--ease), background 0.12s var(--ease), color 0.12s var(--ease); }.clip-card:hover .clip-card-del { opacity: 1; }-.clip-card-del:hover:not(:disabled) { background: var(--red); }+.clip-card-del:hover:not(:disabled) { background: var(--red-subtle); color: var(--red); box-shadow: 0 5px #1a1a1f, 0 11px 18px -5px #000000d9, 0 0 0 1px var(--red-border), inset 0 1px #ffffff24; }+.clip-card-del:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 1px var(--red-border), inset 0 1px 0 rgba(255, 255, 255, 0.10); }.clip-card-del:disabled { opacity: 0.4; cursor: default; }.clip-card-media { aspect-ratio: 9 / 16; width: 100%; display: block; object-fit: cover; background: #000; }.clip-card-media.empty { display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 22px; }@@ -1143,13 +1265,16 @@ input[type="range"]::-webkit-slider-thumb {.thumb-variation { transition: border-color 0.15s var(--ease), transform 0.12s var(--ease); }.thumb-variation:hover { transform: translateY(-2px); }.thumb-stage img, .clip-card-media { transition: opacity 0.3s var(--ease); }- .sidebar-link { transition: background 0.14s var(--ease), color 0.14s var(--ease), padding-left 0.14s var(--ease); }- .sidebar-link:hover { padding-left: 15px; }+ .sidebar-link { transition: background 0.14s var(--ease), color 0.14s var(--ease), transform 0.14s var(--ease); }+ .sidebar-link:hover { transform: translateX(2px); }.set-note { animation: riseIn 0.25s var(--ease) both; }}/* ── Polish: balanced headings, image outlines, tabular figures ── */h1, h2, h3 { text-wrap: balance; }+p, li, figcaption, blockquote, .subtitle, .file-preview, .card-desc, .int-row .desc, .set-note, .empty-state {+ text-wrap: pretty;+}.clip-card-media, .thumb-stage img, .thumb-variation img { outline: 1px solid rgba(255, 255, 255, 0.1); outline-offset: -1px; }.clip-card-meta, .clip-meta span, .clip-card-title { font-variant-numeric: tabular-nums; }