/* Video Studio (static/video-studio.js). vs-* only; reuses .btn, .results-card, .tab, .field. */

.vs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -12px 0 18px; }
.vs-offer { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-pill { display: inline-block; font-size: 11px; background: #f1f5f9; color: #334155; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vs-pill-winning { background: #dcfce7; color: #166534; }
.vs-pill-scaling { background: #e0f2fe; color: #075985; }
.vs-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #2f6fed; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.vs-h2 { font-size: 16px; margin: 26px 0 12px; }
.vs-h3 { font-size: 14px; margin: 18px 0 10px; }
.vs-hint { font-size: 12px; margin: 6px 0 0; }
.vs-small { font-size: 12px; line-height: 1.5; margin: 8px 0; }
.vs-pre { white-space: pre-wrap; font-size: 13px; line-height: 1.55; margin: 8px 0; }
.vs-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Find */
.vs-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.vs-source { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.vs-source.active { background: #111827; border-color: #111827; color: #fff; }
.vs-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 18px; }
.vs-brand { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; padding: 10px; cursor: pointer; font: inherit; }
.vs-brand.active { border-color: #2f6fed; box-shadow: 0 0 0 1px #2f6fed; }
.vs-brand img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; }
.vs-brand span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.vs-brand small { color: #6b7280; font-size: 11px; }
.vs-search { display: flex; gap: 8px; max-width: 560px; }
.vs-search input { flex: 1; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; }
.vs-ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.vs-ad { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.vs-ad video, .vs-ad img { width: 100%; aspect-ratio: 9 / 16; max-height: 390px; object-fit: cover; background: #0f172a; display: block; }
.vs-ad-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; font-size: 13px; }
.vs-ad-body p { margin: 0; color: #4b5563; font-size: 12px; line-height: 1.45; flex: 1; }
.vs-ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-size: 13px; }
.results-card textarea, .vs-editor input, .vs-editor textarea, .vs-options input, .vs-options textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; font-size: 13px; }
.results-card > textarea { margin: 10px 0; }

/* Concept */
.vs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vs-example video { width: 100%; max-height: 440px; background: #0f172a; border-radius: 8px; display: block; }
.vs-options small { color: #6b7280; font-weight: 400; }
.vs-concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.vs-concept { display: flex; flex-direction: column; }
.vs-concept .btn { margin-top: auto; align-self: flex-start; }
.vs-concept-head { display: flex; flex-direction: column; gap: 2px; font-size: 13px; margin-bottom: 8px; }
.vs-sticker { display: inline-block; align-self: flex-start; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); border-radius: 10px; padding: 6px 10px; font-weight: 800; font-size: 13px; line-height: 1.35; margin: 4px 0; }
.vs-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.vs-editor-head h2 { margin: 0; font-size: 17px; }
.vs-id-row { display: grid; grid-template-columns: 2fr 1fr 3fr; gap: 10px; }
.vs-id-row:has(> .field:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.vs-file { font-size: 13px; margin: -4px 0 14px; color: #374151; }
.vs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }

/* Queue + Review */
.vs-howto { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.vs-howto p { margin: 0; flex: 1 1 420px; font-size: 13px; line-height: 1.5; }
.vs-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.vs-job { display: flex; flex-direction: column; }
.vs-job-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.vs-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; }
.vs-status-queued, .vs-status-changes { background: #fef3c7; color: #92400e; }
.vs-status-building { background: #e0f2fe; color: #075985; }
.vs-status-review { background: #ede9fe; color: #5b21b6; }
.vs-status-approved { background: #dcfce7; color: #166534; }
.vs-reviews { display: grid; gap: 16px; }
.vs-review { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.vs-review video { width: 100%; aspect-ratio: 9 / 16; background: #0f172a; border-radius: 8px; display: block; }
.vs-novideo { aspect-ratio: 9 / 16; display: flex; align-items: center; justify-content: center; background: #f3f4f6; color: #9ca3af; border-radius: 8px; font-size: 12px; }
.vs-review-body { display: flex; flex-direction: column; min-width: 0; }
.vs-sheet { width: 100%; border-radius: 6px; margin-top: 8px; }

@media (max-width: 760px) {
  .vs-split, .vs-review { grid-template-columns: 1fr; }
  .vs-id-row { grid-template-columns: 1fr 1fr; }
  .vs-review video { max-width: 280px; }
}
