/* ==========================================================================
   MDL VIDEO GEN — Official Brand Design System
   ========================================================================== */

:root {
  --bg-dark: #060911;
  --bg-panel: #0b1220;
  --bg-card: #152033;
  --bg-input: #0b1220;
  --border-color: rgba(14, 165, 233, 0.16);
  --border-focus: #0ea5e9;
  
  --accent-purple: #0ea5e9; /* MDL Electric Cyan */
  --accent-cyan: #38bdf8;
  --accent-pink: #10b981; /* MDL Emerald Green */
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* App Container Grid Layout */
.studio-container {
  display: grid;
  grid-template-rows: 48px 1fr 65px;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Header Navbar */
.studio-header {
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  z-index: 10;
  height: 48px;
  max-height: 48px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrapper {
  background-color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.3);
  height: 36px;
  max-height: 36px;
  max-width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-logo-img {
  height: 26px;
  max-height: 26px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.studio-select, .studio-input {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.studio-select:focus, .studio-input:focus {
  border-color: var(--border-focus);
}

.studio-input {
  width: 70px;
  text-align: center;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #1c2b45;
  border-color: var(--accent-cyan);
}

.btn-accent {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-accent:hover {
  background: #0369a1;
}

.btn-small {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
}

.btn-icon-only {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
}

.btn-text:hover {
  color: var(--text-main);
}

/* Workspace Layout (2 Panes: Left Sidebar + Center Stage & Gallery) */
.workspace {
  display: grid;
  grid-template-columns: 350px 1fr;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(11, 18, 32, 0.7);
  flex-shrink: 0;
}

.panel-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.panel-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* Left Sidebar */
.sidebar-left {
  background-color: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-left::-webkit-scrollbar {
  width: 6px;
}
.sidebar-left::-webkit-scrollbar-track {
  background: rgba(11, 18, 32, 0.5);
}
.sidebar-left::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 3px;
}
.sidebar-left::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* AI Code Assistant Box */
.ai-assistant-box {
  padding: 14px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(16, 185, 129, 0.08));
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.ai-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-box-header h3 {
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.ai-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.studio-input-full {
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
}

.studio-input-full:focus {
  border-color: var(--accent-cyan);
}

.studio-textarea-full {
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  outline: none;
  resize: vertical;
}

.studio-textarea-full:focus {
  border-color: var(--accent-cyan);
}

.batch-status-box {
  padding: 10px 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.ai-status-bar {
  font-size: 11px;
  font-weight: 600;
}

/* Controls Section Box & Sliders */
.control-section-box {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(11, 18, 32, 0.6);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.control-section-box h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.studio-range {
  width: 110px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.range-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  width: 40px;
  text-align: right;
}

.studio-select-sm {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  outline: none;
  width: 140px;
}

.color-picker-group {
  display: flex;
  gap: 6px;
}

.color-picker-group input[type="color"], #accentColorPicker {
  border: none;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
}

.api-helper-box {
  padding: 14px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(11, 18, 32, 0.8);
  flex-shrink: 0;
}

.api-helper-box h3 {
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.api-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.api-list code {
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.12);
  padding: 2px 4px;
  border-radius: 3px;
}

/* Center Stage Workspace */
.stage-container {
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.stage-toolbar {
  height: 42px;
  background-color: rgba(11, 18, 32, 0.7);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.stage-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.status-ready {
  color: var(--accent-emerald);
}

.status-error {
  color: var(--accent-red);
}

/* Stage Toolbar Actions & View Toggles */
.stage-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.stage-zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 11px;
  color: var(--text-muted);
}

.stage-zoom-controls #zoomLabel {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  min-width: 36px;
  text-align: center;
}

.stage-center-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-title-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Aspect-Ratio Fitted Video Cards Grid (Primary View) */
.stage-view-grid {
  flex: 1;
  min-height: 0;
  height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  background-image: radial-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 0);
  background-size: 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stage-view-grid.has-items {
  align-items: stretch;
  justify-content: flex-start;
}

.stage-view-grid::-webkit-scrollbar {
  width: 8px;
}
.stage-view-grid::-webkit-scrollbar-track {
  background: rgba(6, 9, 17, 0.7);
}
.stage-view-grid::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.grid-empty-state {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  gap: 16px;
  max-width: 580px;
  width: 90%;
  padding: 40px 32px;
  background: rgba(11, 18, 32, 0.88);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.grid-empty-state .empty-icon {
  font-size: 38px;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(14, 165, 233, 0.3);
  margin: 0 auto;
}

.grid-empty-state h3 {
  font-size: 20px;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  margin: 0;
}

.grid-empty-state p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  max-width: 480px;
}

.empty-quick-prompts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  width: 100%;
}

.btn-quick-prompt {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-quick-prompt:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.cards-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  width: 100%;
}

/* Individual Video Card (Styled like Image 2 & 3) */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2);
}

.video-card.active-card {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Card Canvas Container with Dynamic Aspect-Ratio */
.card-canvas-container {
  width: 100%;
  position: relative;
  background-color: #000000;
  overflow: hidden;
  aspect-ratio: 16 / 9; /* Default aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-canvas-container canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Card Play / Pause & Action Hover Overlays */
.card-overlay-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 9, 17, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card-canvas-container:hover .card-overlay-mask {
  opacity: 1;
  pointer-events: auto;
}

.card-overlay-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.card-overlay-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  transform: scale(1.1);
}

.card-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.card-canvas-container:hover .card-fullscreen-btn {
  opacity: 1;
}

.card-fullscreen-btn:hover {
  background: var(--border-focus);
}

/* Card Details Bar */
.card-details {
  padding: 12px 14px;
  background-color: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-res-badge {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-playback-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-card-action:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-card-download {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-card-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

.btn-card-delete {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
}

.btn-card-delete:hover {
  color: var(--accent-red);
}

/* Fullscreen Modal Player Styles */
.fullscreen-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}

.fullscreen-header {
  padding: 14px 20px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fullscreen-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fullscreen-title-box h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.fullscreen-canvas-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #000000;
  position: relative;
}

.fullscreen-canvas-wrapper canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.fullscreen-footer {
  padding: 14px 24px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bottom Timeline DAW */
.studio-timeline {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  padding: 0 20px;
}

.timeline-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-timeline {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-timeline:hover {
  border-color: var(--accent-cyan);
  background: #1c2b45;
}

.btn-play {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  border: none;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.4);
}

.btn-play:hover {
  background: #0284c7;
}

.btn-playing {
  background: var(--accent-emerald) !important;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5) !important;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-dark);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.time-divider {
  color: var(--text-dim);
  margin: 0 4px;
}

.timeline-toggles {
  font-size: 12px;
  color: var(--text-muted);
}

.timeline-track-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-ruler {
  height: 16px;
  width: 100%;
  position: relative;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.timeline-track-bg {
  position: relative;
  height: 34px;
  background-color: var(--bg-dark);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.timeline-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(to right, rgba(14, 165, 233, 0.35), rgba(16, 185, 129, 0.35));
  border-right: 2px solid var(--accent-emerald);
  pointer-events: none;
}

#timelineScrubber {
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  width: 520px;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.modal-body {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.studio-select-full {
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
}

.api-note {
  font-size: 11px;
  color: var(--accent-cyan);
}

.progress-bar-track {
  height: 12px;
  background: var(--bg-dark);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-emerald));
  transition: width 0.1s linear;
}

.render-details {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.prompt-highlight {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4) !important;
  transition: all 0.3s ease;
}
