:root{--primary: #6366f1;--primary-dark: #4f46e5;--secondary: #8b5cf6;--success: #10b981;--danger: #ef4444;--warning: #f59e0b;--bg: #f9fafb;--card-bg: #ffffff;--text: #1f2937;--text-muted: #6b7280;--border: #e5e7eb;--active-scene: #fef3c7;--shadow: 0 1px 3px 0 rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}.container{max-width:1400px;margin:0 auto;padding:2rem}.header{text-align:center;margin-bottom:3rem}.header h1{font-size:3rem;font-weight:800;margin-bottom:.5rem}.logo-link{text-decoration:none;display:inline-block;transition:transform .2s ease}.logo-link:hover{transform:scale(1.05);cursor:pointer}.logo-emoji{font-size:3rem;display:inline-block}.logo-text{background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;display:inline-block}.subtitle{font-size:1.25rem;color:var(--text-muted)}.section{margin-bottom:3rem}.card{background:var(--card-bg);border-radius:12px;padding:2rem;box-shadow:var(--shadow);border:1px solid var(--border)}.card h2{margin-bottom:1.5rem;color:var(--text);font-size:1.5rem}.card h3{margin-bottom:1rem;color:var(--text);font-size:1.25rem}.form-group{margin-bottom:1.5rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}label{display:block;font-weight:600;margin-bottom:.5rem;color:var(--text)}input,textarea,select{width:100%;padding:.75rem;border:2px solid var(--border);border-radius:8px;font-size:1rem;transition:border-color .2s;font-family:inherit}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--primary)}textarea{resize:vertical}small{display:block;margin-top:.25rem;color:var(--text-muted);font-size:.875rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;display:inline-block}.btn-primary{background:linear-gradient(135deg,var(--primary) 0%,var(--secondary) 100%);color:#fff;width:100%}.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.btn-secondary{background:var(--bg);color:var(--text);border:2px solid var(--border)}.btn-secondary:hover{background:var(--border)}.progress-bar{width:100%;height:8px;background:var(--border);border-radius:4px;overflow:hidden;margin:1rem 0}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary) 0%,var(--secondary) 100%);transition:width .3s;width:0%}.status-text{color:var(--text-muted);margin:.5rem 0}.job-id{font-size:.875rem;color:var(--text-muted);font-family:monospace}.video-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.video-prompt{background:var(--bg);border-left:4px solid var(--primary);padding:1rem 1.5rem;margin-bottom:1.5rem;border-radius:4px}.video-player-wrapper{position:relative;width:100%;max-width:900px;margin:0 auto 2rem;background:#000;border-radius:8px;overflow:hidden;min-height:500px;aspect-ratio:16 / 9}.video-prompt strong{color:var(--primary);display:block;margin-bottom:.5rem;font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.video-prompt p{color:var(--text);font-size:1rem;line-height:1.6;margin:0}.player-container{display:grid;grid-template-columns:1.5fr 1fr;gap:2rem;margin-bottom:2rem}.video-wrapper{position:relative;width:100%;background:#000;border-radius:8px;overflow:hidden;aspect-ratio:16 / 9}.video-js{width:100%;height:auto;aspect-ratio:16 / 9}.video-js .vjs-tech{object-fit:contain}#video-player{width:100%;height:auto}.vjs-marker{width:10px!important;height:100%!important;background-color:gold!important;border-radius:2px!important;cursor:pointer!important;opacity:.85!important;transition:opacity .2s,transform .2s!important}.vjs-marker:hover{opacity:1!important;transform:scaleX(1.5)!important;background-color:orange!important}.vjs-tip{background:#000000e6!important;color:#fff!important;padding:.5rem .75rem!important;border-radius:4px!important;font-size:.875rem!important;max-width:250px!important;white-space:normal!important;z-index:1000!important}.vjs-tip-inner{color:#fff!important}.video-placeholder{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(135deg,#1e293b,#0f172a);color:#fff;padding:2rem;text-align:center}.placeholder-icon{font-size:4rem;margin-bottom:1.5rem;animation:pulse 2s ease-in-out infinite}.placeholder-title{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;color:#fff}.placeholder-subtitle{font-size:1rem;color:#ffffffb3;margin-bottom:2rem}.placeholder-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.2);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}@keyframes pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}@keyframes spin{to{transform:rotate(360deg)}}.script-panel{background:var(--bg);border-radius:8px;padding:1.5rem;overflow-y:auto;max-height:500px}.script-content{margin-top:1rem}.scene-segment{padding:1rem;margin-bottom:.5rem;border-radius:8px;border-left:4px solid var(--border);background:var(--card-bg);cursor:pointer;transition:all .2s}.scene-segment:hover{background:var(--bg);border-left-color:var(--primary)}.scene-segment.active{background:var(--active-scene);border-left-color:var(--warning);box-shadow:var(--shadow)}.scene-segment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.scene-number{font-weight:600;color:var(--primary)}.scene-time{font-size:.875rem;color:var(--text-muted);font-family:monospace}.scene-text{color:var(--text);line-height:1.6}.btn-code-toggle{padding:.25rem .5rem;font-size:.75rem;background:var(--primary);color:#fff;border:none;border-radius:4px;cursor:pointer;transition:all .2s}.btn-code-toggle:hover{background:var(--primary-dark);transform:translateY(-1px)}.scene-code-section{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border)}.scene-code-header{margin-bottom:.5rem;display:flex;justify-content:space-between;align-items:center}.scene-code-header strong{color:var(--primary);font-size:.875rem}.scene-code{background:#1e1e1e;color:#d4d4d4;padding:1rem;border-radius:4px;overflow-x:auto;font-size:.875rem;font-family:Monaco,Menlo,Ubuntu Mono,monospace;line-height:1.5;max-height:400px;overflow-y:auto}.scene-code code{color:inherit;background:none;padding:0}.timeline-container{margin-top:2rem}.timeline{display:flex;gap:.5rem;padding:1rem 0;overflow-x:auto}.timeline-marker{flex-shrink:0;padding:.5rem 1rem;background:var(--bg);border:2px solid var(--border);border-radius:8px;cursor:pointer;transition:all .2s;text-align:center}.timeline-marker:hover{background:var(--border);border-color:var(--primary)}.timeline-marker.active{background:var(--primary);border-color:var(--primary);color:#fff}.timeline-marker-number{font-weight:600;display:block}.timeline-marker-time{font-size:.75rem;opacity:.8}.videos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem}.empty-state{text-align:center;color:var(--text-muted);padding:3rem;grid-column:1 / -1}.video-card{background:var(--bg);border-radius:8px;padding:1.5rem;border:2px solid var(--border);transition:all .2s;cursor:pointer}.video-card:hover{border-color:var(--primary);box-shadow:var(--shadow)}.video-card-title{font-weight:600;margin-bottom:.5rem}.video-card-meta{font-size:.875rem;color:var(--text-muted);display:flex;gap:1rem;margin-bottom:.5rem}.video-card-status{display:inline-block;padding:.25rem .75rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.status-completed{background:var(--success);color:#fff}.status-processing{background:var(--warning);color:#fff}.status-failed{background:var(--danger);color:#fff}.status-queued{background:var(--text-muted);color:#fff}@media (max-width: 1024px){.player-container{grid-template-columns:1fr}.script-panel{max-height:300px}}@media (max-width: 768px){.container{padding:1rem}.header h1{font-size:2rem}.form-row{grid-template-columns:1fr}.video-header{flex-direction:column;gap:1rem;align-items:flex-start}.videos-grid{grid-template-columns:1fr}}
