html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.brand-git {
  color: #0f172a;
}

.brand-git-light {
  color: #ffffff;
}

.brand-video {
  display: inline-block;
  color: transparent !important;
  background-image: linear-gradient(
    90deg,
    #4f6ef7 0%,
    #a855f7 18%,
    #ec4899 36%,
    #f59e0b 54%,
    #22d3ee 72%,
    #4f6ef7 100%
  ) !important;
  background-size: 400% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: brandVideoFlow 4s linear infinite;
}

@keyframes brandVideoFlow {
  0% { background-position: 0% center; }
  100% { background-position: 400% center; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #3b57eb;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: background-color 0.15s;
}
.btn-primary:hover { background-color: #2f46d8; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: background-color 0.15s;
}
.btn-secondary:hover { background-color: #f8fafc; }

.std-video-dl {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  cursor: pointer;
}
.std-video-dl:hover {
  color: #334155;
  border-color: #94a3b8;
}

.btn-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #047857;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-review:hover { background-color: #d1fae5; border-color: #6ee7b7; }
.btn-review:disabled { opacity: 0.5; cursor: not-allowed; }

.page-shell {
  width: 100%;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

.prompt-block {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.card {
  border-radius: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.04);
}

.spinner {
  border: 2px solid #e0e9ff;
  border-top-color: #3b57eb;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.content-blur {
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.editable-textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #334155;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.editable-textarea:focus {
  border-color: #3b57eb;
  box-shadow: 0 0 0 3px rgba(59, 87, 235, 0.15);
  background: #fff;
}

/* 标准版剧本：随内容增高，不出现内部滚动条 */
.script-editor-textarea {
  min-height: 280px;
  max-height: none;
  overflow: hidden;
  resize: none;
  field-sizing: content;
}

.seekable-video {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #0f172a;
  cursor: pointer;
}

.editable-input {
  border-radius: 0.375rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #334155;
  outline: none;
}
.editable-input:focus {
  border-color: #3b57eb;
  box-shadow: 0 0 0 2px rgba(59, 87, 235, 0.12);
}

.shot-prompt-edit {
  min-height: 120px;
  font-size: 0.75rem;
}
