File size: 20,694 Bytes
8579006 9705942 8579006 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description"
content="AI SquadX VIP β Generate viral YouTube Shorts from any long-form video in seconds using AI-powered clipping." />
<title>AI SquadX VIP β Generate Viral Shorts</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Ambient background orbs -->
<div class="bg-orb orb-1"></div>
<div class="bg-orb orb-2"></div>
<div class="bg-orb orb-3"></div>
<!-- Floating particles (background animation) -->
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<!-- ===== HEADER ===== -->
<header class="site-header">
<div class="header-inner">
<div class="logo">
<div class="logo-icon" aria-hidden="true">
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="28" height="28" rx="8" fill="url(#logoGrad)" />
<path d="M10 9L19 14L10 19V9Z" fill="white" />
<defs>
<linearGradient id="logoGrad" x1="0" y1="0" x2="28" y2="28" gradientUnits="userSpaceOnUse">
<stop stop-color="#7C3AED" />
<stop offset="1" stop-color="#EC4899" />
</linearGradient>
</defs>
</svg>
</div>
<span class="logo-text">AI SquadX <span class="logo-vip">VIP</span></span>
</div>
<div class="header-badge">
<span class="badge-dot"></span>
<span>Clipper Engine v2</span>
</div>
</div>
</header>
<!-- ===== MAIN ===== -->
<main>
<!-- ββ HERO / INPUT SCREEN ββ -->
<section id="screen-input" class="screen active">
<div class="hero-content">
<div class="hero-badge">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
<path
d="M7 1L8.854 4.764L13 5.382L10 8.304L10.708 12.5L7 10.528L3.292 12.5L4 8.304L1 5.382L5.146 4.764L7 1Z"
fill="#FBBF24" />
</svg>
AI-Powered Viral Clip Generator
</div>
<h1 class="hero-title">
Turn Any YouTube Video<br />
Into <span class="gradient-text">Viral Shorts</span>
</h1>
<p class="hero-subtitle">
Paste a YouTube URL and let our AI analyze, clip, and format the most viral-worthy moments β automatically.
</p>
<!-- Input Card -->
<div class="input-card">
<div class="input-wrapper">
<div class="input-icon" aria-hidden="true">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<path
d="M22.54 6.42a2.78 2.78 0 00-1.95-1.96C18.88 4 12 4 12 4s-6.88 0-8.59.46a2.78 2.78 0 00-1.95 1.96A29 29 0 001 12a29 29 0 00.46 5.58A2.78 2.78 0 003.41 19.54C5.12 20 12 20 12 20s6.88 0 8.59-.46a2.78 2.78 0 001.95-1.96A29 29 0 0023 12a29 29 0 00-.46-5.58z" />
<polygon points="9.75 15.02 15.5 12 9.75 8.98 9.75 15.02" fill="currentColor" stroke="none" />
</svg>
</div>
<input id="youtube-url-input" type="url" placeholder="Paste YouTube URL here..." autocomplete="off"
spellcheck="false" />
</div>
<!-- Options row: Mode + Clip Count -->
<div class="options-row">
<!-- Pad / Fill mode toggle -->
<div class="mode-toggle" role="group" aria-label="Crop mode">
<input type="radio" name="crop-mode" id="mode-fill" value="fill" checked />
<label for="mode-fill" class="mode-btn">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" />
<path d="M3 9h18M3 15h18" />
</svg>
Fill
<span class="mode-hint">Crop</span>
</label>
<input type="radio" name="crop-mode" id="mode-pad" value="pad" />
<label for="mode-pad" class="mode-btn">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round" stroke-linejoin="round">
<rect x="6" y="6" width="12" height="12" rx="1" />
<rect x="2" y="2" width="20" height="20" rx="2" />
</svg>
Pad
<span class="mode-hint">Bars</span>
</label>
</div>
<!-- Clip Count stepper -->
<div class="clip-count-control" aria-label="Clip count">
<span class="clip-count-label">Clips</span>
<div class="clip-stepper">
<button class="stepper-btn" id="clips-dec" aria-label="Fewer clips">β</button>
<span id="clips-display" class="clips-default">Default</span>
<button class="stepper-btn" id="clips-inc" aria-label="More clips">+</button>
</div>
</div>
</div>
<!-- Advanced Options -->
<div class="advanced-options">
<div class="option-header">
<span class="option-title">Advanced Magic</span>
<div class="badge-new">NEW</div>
</div>
<div class="advanced-grid">
<!-- AI Captions + Style -->
<div class="toggle-control captions-block" style="grid-column: span 2;">
<div class="captions-row">
<label class="switch">
<input type="checkbox" id="captions-toggle">
<span class="slider round"></span>
</label>
<div class="toggle-label-group">
<span class="toggle-label">AI Auto-Captions</span>
<span class="toggle-hint">Smart subtitles</span>
</div>
</div>
<!-- Caption Style Selector (visible only when captions ON) -->
<div id="caption-style-wrapper" class="caption-style-wrapper" style="display:none;">
<select id="caption-style-select">
<option value="mrbeast">π₯ MrBeast β Bold White + Black Outline</option>
<option value="podcast">ποΈ Podcast β Clean Dark Pill Box</option>
<option value="neon">β‘ Neon β Cyan Glow</option>
<option value="horror">π©Έ Horror β Blood Red Shadow</option>
<option value="minimal">β¨ Minimal β Sleek & Clean</option>
</select>
</div>
</div>
<!-- Smart Reframe -->
<div class="toggle-control">
<label class="switch">
<input type="checkbox" id="reframe-toggle">
<span class="slider round"></span>
</label>
<div class="toggle-label-group">
<span class="toggle-label">Smart Reframe</span>
<span class="toggle-hint">Face tracking AI</span>
</div>
</div>
<!-- Progress Bar -->
<div class="toggle-control">
<label class="switch">
<input type="checkbox" id="progress-bar-toggle">
<span class="slider round"></span>
</label>
<div class="toggle-label-group">
<span class="toggle-label">Progress Bar</span>
<span class="toggle-hint">Viral visual cue</span>
</div>
</div>
<!-- Vibe Selector -->
<div class="vibe-control">
<select id="vibe-select">
<option value="none">No Background Music</option>
<option value="energy">Vibe: Energy β‘</option>
<option value="chill">Vibe: Chill π</option>
<option value="lofi">Vibe: Lo-Fi β</option>
<option value="cinematic">Vibe: Cinematic π¬</option>
</select>
</div>
<!-- Text Overlays -->
<div class="text-inputs" style="grid-column: span 2;">
<div class="input-field">
<input type="text" id="headline-input" placeholder="Top Headline (e.g. Wait for it...)"
maxlength="40">
<span class="char-counter"><span class="char-count">0</span>/40</span>
</div>
<div class="input-field">
<input type="text" id="cta-input" placeholder="Bottom CTA (e.g. Subscribe!)" maxlength="40">
<span class="char-counter"><span class="char-count">0</span>/40</span>
</div>
</div>
</div>
</div>
<!-- Retention Psychology Section -->
<div class="retention-section" id="retention-section">
<button class="retention-header" id="retention-toggle-btn" aria-expanded="false"
aria-controls="retention-body">
<span class="retention-title">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10" />
<polyline points="12 6 12 12 16 14" />
</svg>
π§ Retention Psychology
</span>
<span class="retention-badge">NEW</span>
<svg class="retention-chevron" width="14" height="14" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"
aria-hidden="true">
<polyline points="6 9 12 15 18 9" />
</svg>
</button>
<div class="retention-body" id="retention-body">
<!-- Clip Duration Selector -->
<div class="toggle-control rp-control rp-select-control">
<label class="rp-select-label" for="duration-range-select">Clip Duration</label>
<div class="rp-select-wrapper">
<select id="duration-range-select" class="rp-native-select">
<option value="auto">Auto β Best viral hook (Shorts)</option>
<option value="15-30">15 β 30 seconds β High impact</option>
<option value="30-60">30 β 60 seconds β Storytelling</option>
<option value="60-90">60 β 90 seconds β Deep insight</option>
</select>
<svg class="select-chevron" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>
</div>
<span class="toggle-hint" style="margin-top:0.25rem;">Segments are expanded to meet chosen length</span>
</div>
<!-- Retention Mode -->
<div class="toggle-control rp-control">
<label class="switch">
<input type="checkbox" id="retention-mode-toggle">
<span class="slider round"></span>
</label>
<div class="toggle-label-group">
<span class="toggle-label">Retention Mode</span>
<span class="toggle-hint">Clips enforced to 20β59 s optimal window</span>
</div>
</div>
<!-- Color Psychology -->
<div class="toggle-control rp-control rp-select-control">
<label class="rp-select-label" for="color-mode-select">Color Psychology</label>
<select id="color-mode-select" class="rp-native-select">
<option value="off">Off β No color grading</option>
<option value="boost">β‘ Boost β +40% saturation</option>
<option value="yellow">π Yellow β Warm viral push</option>
<option value="red">π΄ Red β Red-dominant drama</option>
</select>
<span class="toggle-hint" style="margin-top:0.25rem;">Colour psychology preset applied to clip</span>
</div>
<!-- Safe-Zone Crop -->
<div class="toggle-control rp-control">
<label class="switch">
<input type="checkbox" id="safe-zone-toggle">
<span class="slider round"></span>
</label>
<div class="toggle-label-group">
<span class="toggle-label">Safe-Zone Crop</span>
<span class="toggle-hint">Centre 12.5% focus β eye in the middle</span>
</div>
</div>
<!-- Watermark Text -->
<div class="toggle-control rp-control" style="display:block;">
<label class="rp-select-label" for="watermark-input">Watermark Text</label>
<input type="text" id="watermark-input" class="rp-text-input" placeholder="e.g. @YourHandle"
maxlength="30">
<span class="toggle-hint" style="margin-top:0.25rem;">Embeds semi-transparent text in the bottom-right
corner</span>
</div>
</div>
</div>
<button id="generate-btn" class="btn-generate" aria-label="Generate Viral Shorts">
<span class="btn-text">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"
stroke-linecap="round" stroke-linejoin="round">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2" />
</svg>
Generate Viral Shorts
</span>
<span class="btn-shimmer"></span>
</button>
</div>
<!-- Stats Row -->
<div class="stats-row">
<div class="stat-item">
<span class="stat-number">10x</span>
<span class="stat-label">Faster than manual editing</span>
</div>
<div class="stat-divider"></div>
<div class="stat-item">
<span class="stat-number">9:16</span>
<span class="stat-label">Vertical-first format</span>
</div>
<div class="stat-divider"></div>
<div class="stat-item">
<span class="stat-number">AI</span>
<span class="stat-label">Hook detection</span>
</div>
</div>
</div>
</section>
<!-- ββ LOADING SCREEN ββ -->
<section id="screen-loading" class="screen">
<div class="loading-content">
<!-- Spinner ring -->
<div class="spinner-ring" aria-hidden="true">
<div class="ring-outer"></div>
<div class="ring-inner"></div>
<div class="ring-icon">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2" />
</svg>
</div>
</div>
<h2 class="loading-title">Processing Your Video</h2>
<p id="loading-message" class="loading-message">Connecting to AI engine...</p>
<!-- Progress bar -->
<div class="progress-track">
<div id="progress-bar" class="progress-fill"></div>
</div>
<!-- Step indicators -->
<div class="step-list" role="list">
<div class="step-item" id="step-1" role="listitem">
<div class="step-icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
<path d="M9 12l2 2 4-4" />
</svg>
</div>
<span>Fetching video metadata</span>
</div>
<div class="step-item" id="step-2" role="listitem">
<div class="step-icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
<path d="M9 12l2 2 4-4" />
</svg>
</div>
<span>Analyzing viral hooks</span>
</div>
<div class="step-item" id="step-3" role="listitem">
<div class="step-icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
<path d="M9 12l2 2 4-4" />
</svg>
</div>
<span>Clipping & formatting</span>
</div>
<div class="step-item" id="step-4" role="listitem">
<div class="step-icon">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
<path d="M9 12l2 2 4-4" />
</svg>
</div>
<span>Rendering shorts</span>
</div>
</div>
</div>
</section>
<!-- ββ RESULTS SCREEN ββ -->
<section id="screen-results" class="screen">
<div class="results-header">
<div class="results-title-group">
<h2 class="results-title">Your Viral Shorts Are Ready</h2>
<p class="results-subtitle"><span id="results-count" aria-label="Number of clips generated">0</span> clips generated from your video</p>
<div id="results-loading-badge" class="results-loading-badge" style="display:none;">
<div class="badge-mini-spinner"></div>
<span>Generating more clipsβ¦</span>
</div>
</div>
<button id="new-video-btn" class="btn-ghost">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<polyline points="1 4 1 10 7 10" />
<path d="M3.51 15a9 9 0 102.13-9.36L1 10" />
</svg>
New Video
</button>
</div>
<div id="results-gallery" class="results-gallery" role="list">
<!-- Video cards injected here by JS -->
</div>
</section>
<!-- ββ ERROR SCREEN ββ -->
<section id="screen-error" class="screen">
<div class="error-content">
<div class="error-icon" aria-hidden="true">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10" />
<line x1="12" y1="8" x2="12" y2="12" />
<line x1="12" y1="16" x2="12.01" y2="16" />
</svg>
</div>
<h2 class="error-title">Something Went Wrong</h2>
<p id="error-message" class="error-message">Unable to process your video. Please try again.</p>
<button id="retry-btn" class="btn-generate" style="margin-top:2rem;">
<span class="btn-text">Try Again</span>
<span class="btn-shimmer"></span>
</button>
</div>
</section>
</main>
<!-- ===== FOOTER ===== -->
<footer class="site-footer">
<p>Β© 2026 AI SquadX VIP Β· Powered by Advanced AI Clipping Engine</p>
</footer>
<script src="app.js"></script>
</body>
</html> |