/* Video tool. Prompt left, preview right. Keep it on one screen. */
.video-page .page-hero.video-wrap {
  width: min(1240px, calc(100% - 32px));
  padding-top: 12px;
  padding-bottom: 20px;
}
.video-page .page-hero h1 {
  max-width: none;
  overflow-wrap: normal;
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 10px;
  line-height: 1.1;
}
.video-page .crumbs { margin-bottom: 8px; }
.video-split {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}
.video-form, .video-stage { min-width: 0; }
.video-stage { position: sticky; top: 10px; }
.video-page .video-form .field {
  position: relative;
  margin: 0 0 8px;
}
.video-page .field > label {
  position: absolute;
  left: 12px;
  top: 7px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}
.video-page .controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0;
}
.video-page .controls .field { margin: 0; }
.video-page .yt-pack {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.video-page .yt-pack[hidden] { display: none !important; }
.video-page .pack-thumb {
  width: 168px;
  height: 94px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
  flex: 0 0 168px;
  margin: 0;
  border: 0;
}
.video-page .pack-title {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.video-page input, .video-page textarea, .video-page select {
  display: block; width: 100%; max-width: 100%;
  min-height: 36px; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; background: #fff; margin: 0 0 4px; color: var(--ink);
}
.video-page .field > input,
.video-page .field > textarea,
.video-page .field > select,
.video-page .field .inset-field input,
.video-page .field .inset-field textarea,
.video-page .field .voice-row select {
  padding-top: 18px;
}
.video-page details.adv label {
  display: block; font-weight: 600; font-size: 13px; margin: 10px 0 5px;
}
.video-page textarea { min-height: 56px; resize: vertical; }
.video-page textarea#prompt { min-height: 52px; }
.video-page textarea#desc { min-height: 44px; padding-right: 42px; }
.video-page textarea.sys { min-height: 48px; font-size: 13px; }
.video-page .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 8px; }
.video-page .grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
.video-page .err { color: #9b2c1a; font-weight: 600; margin: 6px 0; }
.video-page .ok { color: #2f6b3a; font-weight: 600; margin: 6px 0; }
.video-page .muted-line { color: var(--muted); margin: 4px 0; }
.video-page .video-lede {
  margin: 0 0 10px;
  max-width: 42rem;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.video-page .studio-tools h1 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 0 0 6px;
}
.video-page .player {
  background: #111; border-radius: 16px; overflow: hidden;
  margin: 0; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
}
.video-page .studio-preview .player {
  border-radius: 0;
  margin: 0;
  max-height: min(42vh, 420px);
}
.video-page .player.vert { aspect-ratio: 9/16; max-height: 52vh; margin-left: auto; margin-right: auto; width: auto; }
.video-page .player video { width: 100%; height: 100%; background: #111; object-fit: contain; }
.video-page .shot {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 0; margin: 0 0 6px;
  box-shadow: none;
}
.video-page .shot > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  padding: 8px 10px;
  min-height: 40px;
}
.video-page .shot > summary::-webkit-details-marker { display: none; }
.video-page .shot[open] {
  padding: 0 0 10px;
  box-shadow: var(--inset), var(--shadow-sm);
}
.video-page .shot[open] > summary {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  background: #faf9f6;
  border-radius: 10px 10px 0 0;
}
.video-page .shot[open] > :not(summary) {
  margin-left: 10px;
  margin-right: 10px;
}
.video-page .shot .meta { font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.video-page .shot textarea { min-height: 48px; margin-bottom: 6px; }
.video-page .shot .clip { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.video-page .jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.video-page .job-list {
  list-style: none; padding: 0; margin: 0;
  max-height: 88px; overflow: auto;
  flex: 1 1 auto;
}
.scenes-panel {
  margin: 0;
}
.video-page .player:has(.player-wait) {
  padding: 0;
}
.video-page .pack-thumb[hidden] {
  display: none !important;
  border: 0;
  height: 0;
  margin: 0;
  width: 0;
}
.video-page .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin: 4px 0 10px;
  cursor: pointer;
}
.video-page .check-line input {
  width: 18px;
  min-height: 18px !important;
  margin: 0;
  flex: 0 0 auto;
}
.inset-field { position: relative; }
.inset-field input { padding-right: 44px; }
.video-page .wand {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; min-height: 34px !important;
  padding: 0 !important; border: 0; border-radius: 8px;
  background: transparent; color: var(--acc); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: none !important;
}
.video-page .wand:hover { background: color-mix(in srgb, var(--acc) 12%, transparent); filter: none; transform: translateY(-50%); }
.video-page .wand.wand-top { top: 10px; transform: none; }
.video-page .wand.wand-top:hover { transform: none; }
.video-page .wand[disabled] { opacity: 0.45; cursor: wait; }
.voice-row { display: flex; gap: 6px; align-items: center; }
.voice-row select { margin: 0; flex: 1; }
.video-page .voice-play {
  min-height: 44px !important; padding: 0 12px !important; flex: 0 0 auto;
}
.video-page .file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.video-page .file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.video-page details.adv { margin: 6px 0 8px; }
.video-page details.adv summary { cursor: pointer; font-weight: 600; }
.video-page .jobs-head { font-size: 15px; margin: 0; font-family: inherit; }
.video-page .jobs-actions { display: flex; gap: 6px; align-items: center; }
.video-page .job-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
}
.video-page .job-list .job-pick {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink, #1a1a1a);
}
.video-page .job-list .job-open {
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  font-weight: 600;
}
.video-page .job-list .job-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.video-page .job-list .job-cancel,
.video-page .job-list .job-x {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  line-height: 1.2;
}
.video-page .job-list .job-x {
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
}
.video-page .job-list .job-cancel:hover,
.video-page .job-list .job-x:hover {
  color: var(--ink, #1a1a1a);
}
.video-page .btn.sm { min-height: 36px !important; padding: 6px 12px !important; font-size: 13px; }
@media (max-width: 900px) {
  .video-split { grid-template-columns: 1fr; }
  .video-stage { position: static; }
  .video-page .grid-3,
  .video-page .controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .video-page .controls { grid-template-columns: 1fr; }
}
.video-seo { padding-top: 4px; }
.video-seo-inner {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 64px;
}
.video-seo-inner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 36px 0 10px;
  color: var(--ink);
}
.video-seo-inner h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.video-seo-inner p,
.video-seo-inner li { color: var(--muted); }
.video-seo-inner a { color: var(--ink); }
.video-seo-inner ol,
.video-seo-inner ul { padding-left: 1.25em; }
.video-seo-inner .guide-grid {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
}
.video-seo-inner .guide-grid a { display: block; font-weight: 600; }
