/* Reset and base styles */ * { box-sizing: border-box; } body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #ffffff; color: #1f2937; line-height: 1.5; font-size: 14px; } .container { max-width: 1200px; margin: 0 auto; padding: 20px; } /* Header info */ .header-info { text-align: center; margin-bottom: 30px; padding: 15px; background-color: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; } .header-info p { margin: 0; color: #64748b; font-size: 13px; } .header-info a { color: #3b82f6; text-decoration: none; } .header-info a:hover { text-decoration: underline; } /* Main interface */ .main-interface { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; } /* Input panel */ .input-panel { display: flex; flex-direction: column; gap: 16px; } /* Upload section */ .upload-section { margin-bottom: 4px; } .upload-area { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.2s ease; background-color: #f8fafc; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; } .upload-area:hover { border-color: #94a3b8; background-color: #f1f5f9; } .upload-area.drag-over { border-color: #3b82f6; background-color: #eff6ff; } .upload-area.has-image .upload-icon, .upload-area.has-image .upload-text { display: none; } .upload-icon { margin-bottom: 12px; } .upload-icon svg { color: #94a3b8; } .upload-text p { margin: 2px 0; color: #64748b; font-size: 13px; } .upload-or { color: #94a3b8 !important; font-size: 12px !important; } /* Prompt section */ .prompt-section { margin-bottom: 4px; } .prompt-section textarea { width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; resize: vertical; transition: border-color 0.2s ease; font-family: inherit; background-color: #ffffff; } .prompt-section textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; } .prompt-section textarea::placeholder { color: #9ca3af; } /* Action buttons */ .action-buttons { display: flex; gap: 8px; margin-bottom: 8px; } .btn-icon { width: 36px; height: 36px; border: 1px solid #d1d5db; border-radius: 6px; background-color: #ffffff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; } .btn-icon:hover { background-color: #f9fafb; border-color: #9ca3af; } .btn-icon svg { color: #6b7280; } /* Generate button */ .generate-button { background: #ff6b35; color: white; border: none; border-radius: 6px; padding: 12px 24px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-bottom: 16px; } .generate-button:hover { background: #e55a2b; } .generate-button:active { transform: translateY(1px); } /* Advanced settings */ .advanced-settings { border-top: 1px solid #e5e7eb; padding-top: 16px; } .settings-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 0; color: #374151; font-size: 13px; font-weight: 500; } .chevron { transition: transform 0.2s ease; color: #6b7280; } .settings-content { padding-top: 12px; display: flex; flex-direction: column; gap: 16px; } .setting-item { display: flex; align-items: center; gap: 12px; } .setting-item label { font-size: 12px; color: #6b7280; min-width: 100px; } .slider { flex: 1; height: 4px; background: #e5e7eb; border-radius: 2px; outline: none; -webkit-appearance: none; } .slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: #3b82f6; border-radius: 50%; cursor: pointer; } .slider::-moz-range-thumb { width: 16px; height: 16px; background: #3b82f6; border-radius: 50%; cursor: pointer; border: none; } .value { font-size: 12px; color: #374151; min-width: 30px; text-align: center; } .select-input { padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; background-color: #ffffff; color: #374151; } /* Output panel */ .output-panel { display: flex; flex-direction: column; } .video-display { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; height: 100%; min-height: 400px; display: flex; align-items: center; justify-content: center; text-align: center; } .display-placeholder { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #94a3b8; } .display-placeholder svg { opacity: 0.6; } .video-preview { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; height: 100%; padding: 20px; } .result-video { width: 100%; max-width: 320px; height: auto; border-radius: 8px; border: 1px solid #e2e8f0; background: #000; } .video-link-container { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 20px; text-align: center; } .video-link-container svg { color: #94a3b8; opacity: 0.6; } .video-link-container p { margin: 0; color: #6b7280; font-size: 14px; } .video-link-btn { background: #3b82f6; color: white; text-decoration: none; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; transition: background-color 0.2s ease; } .video-link-btn:hover { background: #2563eb; } .video-info { text-align: center; } .video-info p { margin: 0; font-weight: 500; color: #1f2937; font-size: 14px; } .video-info small { color: #64748b; font-size: 12px; } .video-error { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; text-align: center; } .video-error p { margin: 0; color: #ef4444; font-weight: 500; } .video-error small { color: #6b7280; font-size: 11px; word-break: break-all; } .video-error button { padding: 6px 12px; background: #3b82f6; color: white; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; } /* Examples section */ .examples-section { margin-top: 20px; } .examples-header { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; } .examples-header span { font-size: 16px; font-weight: 600; color: #1f2937; } /* Examples list */ .examples-grid { display: flex; flex-direction: column; gap: 8px; } .example-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 16px; cursor: pointer; transition: all 0.2s ease; background-color: #ffffff; } .example-item:hover { border-color: #cbd5e1; background-color: #f8fafc; } .example-item.selected { border-color: #3b82f6; background-color: #eff6ff; } .example-content { display: flex; align-items: center; gap: 12px; } .example-video { flex-shrink: 0; position: relative; } .example-video-player { width: 80px; height: 45px; background: #000; border: 1px solid #e2e8f0; border-radius: 4px; object-fit: cover; } .play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.7); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none; } .play-overlay svg { color: white; width: 14px; height: 14px; margin-left: 1px; } .example-text { flex: 1; min-width: 0; } .example-title { display: none; } .example-prompt { font-size: 14px; color: #374151; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Responsive design */ @media (max-width: 768px) { .container { padding: 15px; } .main-interface { grid-template-columns: 1fr; gap: 20px; } .upload-area { min-height: 140px; padding: 30px 15px; } } @media (max-width: 480px) { .action-buttons { flex-wrap: wrap; } .setting-item { flex-direction: column; align-items: flex-start; gap: 8px; } .setting-item label { min-width: auto; } .slider { width: 100%; } }