.video-gen-page {
  max-width: 1200px;
  margin: 0 auto;
}

.video-gen-health {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.video-gen-health.video-gen-health-ok {
  background: hsl(140 40% 25% / 0.3);
  border: 1px solid hsl(140 40% 35%);
  color: hsl(140 60% 90%);
}

.video-gen-health.video-gen-health-fail {
  background: hsl(0 40% 25% / 0.3);
  border: 1px solid hsl(0 50% 40%);
  color: hsl(0 60% 90%);
}

.video-gen-form {
  margin-top: 1rem;
}

.video-gen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .video-gen-row {
    grid-template-columns: 1fr;
  }
}

.video-gen-section {
  background: hsl(var(--card) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.video-gen-section-title {
  font-size: 1rem;
  color: hsl(var(--gold-dark));
  margin: 0 0 1rem;
  font-weight: 600;
}

.video-gen-field {
  margin-bottom: 1rem;
}

.video-gen-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.video-gen-field .required { color: hsl(0 60% 50%); }
.video-gen-field .optional { color: hsl(var(--muted-foreground)); font-weight: normal; }

.video-gen-field input[type="file"],
.video-gen-field textarea,
.video-gen-field input[type="number"],
.video-gen-field select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.35rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.95rem;
}

.video-gen-field textarea {
  resize: vertical;
  min-height: 4rem;
}

.video-gen-preview {
  margin-top: 0.5rem;
  min-height: 60px;
}

.video-gen-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 0.35rem;
  border: 1px solid hsl(var(--border));
}

.video-gen-hint {
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
  margin: 0.25rem 0 0;
}

.video-gen-params {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem 1rem;
}

.video-gen-param {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-gen-param-full { grid-column: 1 / -1; }

.video-gen-param label {
  font-size: 0.85rem;
}

.video-gen-param input,
.video-gen-param select {
  padding: 0.4rem 0.5rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.35rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.9rem;
}

.video-gen-btn {
  margin-top: 1rem;
  padding: 0.65rem 1.5rem;
  background: hsl(var(--gold-dark));
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.video-gen-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.video-gen-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.video-gen-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.video-gen-status.video-gen-status-loading { color: hsl(var(--gold-dark)); }
.video-gen-status.video-gen-status-error { color: hsl(0 60% 50%); }
.video-gen-status.video-gen-status-success { color: hsl(140 50% 45%); }

.video-gen-result {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted) / 0.3);
  border-radius: 0.5rem;
  border: 1px dashed hsl(var(--border));
  padding: 1rem;
}

.video-gen-placeholder {
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.video-gen-result video {
  max-width: 100%;
  border-radius: 0.35rem;
}
