/* ds-5850-video-v2 · 视频连续制作、审核与整集连续播放。
   只写本路新增的版式；卡片、列、参考、候选等沿用 r12-assets.css 的 5850 类。 */

.r12vv2-stage {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--r12-ink);
}

/* 连续列表自己就是唯一主滚动区，外层的项目内容区不再跟着滚。 */
.r12f-content:has(> .r12vv2-stage) {
  overflow: hidden;
}

.r12vv2-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
}

.r12vv2-nav {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 不在布局里为底部主控预留空区；定位避让交给 scroll-padding/scroll-margin。 */
.r12vv2-nav .r12x-group-list {
  padding-bottom: 8px;
}

.r12vv2-nav .r12x-group-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.r12vv2-nav .r12x-group-meta {
  white-space: normal;
  overflow-wrap: anywhere;
}

.r12vv2-nav-item.is-active {
  background: var(--r12-selected-bg);
  box-shadow: var(--r12-selected-shadow, none);
}

.r12vv2-main {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  /* 只做定位避让，不形成底部空区：普通滚动不会被垫高，scrollIntoView 的落点让开主控。 */
  scroll-padding-bottom: calc(8px + var(--r12-dock-clear, 0px));
}

.r12vv2-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 10px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  background: var(--r12-pop-bg);
  box-shadow: 0 1px 0 var(--r12-line);
}

.r12vv2-bar-title {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.r12vv2-bar-title b {
  min-width: 0;
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.r12vv2-bar-title span {
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
}

.r12vv2-bar-actions {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.r12vv2-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* ── 单集连续组卡 ─────────────────────────────────────────────── */

.r12vv2-card {
  flex: none;
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 64px;
  scroll-margin-bottom: 8px;
  container-type: inline-size;
}

.r12vv2-card-head {
  height: auto;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 6px;
}

.r12vv2-card-title {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.r12vv2-card-title h2 {
  margin: 0;
  min-width: 0;
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
  font-weight: 600;
  color: var(--r12-ink);
  white-space: normal;
  overflow-wrap: anywhere;
}

.r12vv2-card-meta,
.r12vv2-card-state {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  white-space: nowrap;
}

.r12vv2-card-tools {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.r12vv2-quote {
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  white-space: nowrap;
}

.r12vv2-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, .55fr) minmax(220px, 1fr);
  gap: 10px;
  padding: 10px;
  min-width: 0;
  align-items: stretch;
}

/* 卡片高度按内容与窗口收住：列内自己滚，不靠拉高制造空白。 */
.r12vv2-card .r12x-prod-col-body {
  max-height: 320px;
}

.r12vv2-card .r12x-prod-video-facts {
  flex: none;
}

/* 模型 / 清晰度 / 时长合并成视频区标题里的一行，不再用三行 <dl>。 */
.r12vv2-video-facts {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 组卡里的播放器：控制条紧凑，不撑破列宽。 */
.r12vv2-card-player {
  width: 100%;
}

.r12vv2-card-player .r12vp-video {
  max-height: 220px;
}

.r12vv2-new-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r12-r-pill);
  background: color-mix(in srgb, var(--r12-brand) 24%, var(--r12-surface));
  color: var(--r12-ink);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

/* 本地生成演示的任务状态：只写阶段和真实 done/total，不画百分比。 */
.r12vv2-job {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 4px 0;
  min-width: 0;
}

.r12vv2-job-text {
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-job[data-job-status="running"] .r12vv2-job-text,
.r12vv2-job[data-job-status="queued"] .r12vv2-job-text {
  color: var(--r12-ink);
}

@keyframes r12vv2-job-in {
  from { opacity: .72; }
  to { opacity: 1; }
}
.r12vv2-job[data-job-status="running"] {
  animation: r12vv2-job-in 480ms var(--r12-ease, ease-out) 1;
}
[data-motion="reduced"] .r12vv2-job { animation: none; }

.r12vv2-job[data-job-status="cancelled"] .r12vv2-job-text,
.r12vv2-job[data-job-status="succeeded"] .r12vv2-job-text {
  color: var(--r12-muted);
}

.r12vv2-zoom {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-pill);
  background: color-mix(in srgb, var(--r12-bg) 76%, transparent);
  color: var(--r12-ink);
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.r12vv2-zoom svg {
  width: 13px;
  height: 13px;
}

.r12vv2-zoom:hover {
  background: var(--r12-hover);
}

.r12vv2-card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 10px 10px;
}

/* 连续播放留在组卡底部，但靠右避开中央悬浮主控；滚动边距只做普通定位。 */
.r12vv2-card-foot [data-action="r12vv2-playall"] {
  order: 2;
  flex: none;
  margin-left: auto;
  scroll-margin-bottom: 8px;
}

.r12vv2-foot-note {
  flex: 1 1 260px;
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

@container (max-width: 760px) {
  .r12vv2-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-height: 700px) {
  .r12vv2-card .r12x-prod-col-body {
    max-height: 220px;
  }

  .r12vv2-card-player .r12vp-video {
    max-height: 150px;
  }

  .r12vv2-ep-strip {
    min-height: 38px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .r12vv2-current-bar {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ── 全集折叠区 ───────────────────────────────────────────────── */

.r12vv2-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.r12vv2-page-head {
  flex: none;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface);
}

.r12vv2-page-title {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.r12vv2-page-title h2 {
  margin: 0;
  font-size: var(--r12-fs-title);
  line-height: var(--r12-lh-title);
  font-weight: 600;
  color: var(--r12-ink);
  overflow-wrap: anywhere;
}

.r12vv2-page-title > span {
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-page-actions {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.r12vv2-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
  /* 和单集主区一致：只留定位避让，不垫出底部空区。 */
  scroll-padding-bottom: calc(8px + var(--r12-dock-clear, 0px));
}

.r12vv2-all {
  gap: 8px;
}

.r12vv2-ep {
  flex: none;
  min-width: 0;
  overflow: hidden;
}

.r12vv2-ep-head {
  display: block;
}

.r12vv2-ep-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--r12-ink);
  text-align: left;
}

.r12vv2-ep-toggle:hover {
  background: var(--r12-hover);
}

.r12vv2-ep-caret {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--r12-muted);
}

.r12vv2-ep-caret svg {
  width: 16px;
  height: 16px;
}

.r12vv2-ep-name {
  min-width: 0;
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.r12vv2-ep-meta {
  min-width: 0;
  margin-left: auto;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-ep-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 10px;
  min-width: 0;
}

/* ── 三集窗口：上一集 · 当前集 · 下一集 ───────────────────────── */

.r12vv2-ep-strip {
  flex: none;
  align-self: flex-start;
  width: min(380px, 100%);
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 7px 12px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface-2);
  color: var(--r12-ink);
  text-align: left;
  cursor: pointer;
}

.r12vv2-ep-strip:hover {
  background: var(--r12-hover);
}

.r12vv2-ep-strip .r12vv2-ep-caret {
  flex: none;
  display: inline-flex;
  align-items: center;
  color: var(--r12-muted);
}

.r12vv2-ep-strip .r12vv2-ep-caret svg {
  width: 15px;
  height: 15px;
}

.r12vv2-ep-direction {
  flex: none;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
}

.r12vv2-ep-strip .r12vv2-ep-name {
  min-width: 0;
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.r12vv2-ep-strip .r12vv2-ep-meta {
  min-width: 0;
  margin-left: auto;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-current {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface);
}

.r12vv2-current-bar {
  flex: none;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--r12-line);
}

.r12vv2-current-title {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.r12vv2-current-title h2 {
  margin: 0;
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
  font-weight: 600;
  color: var(--r12-ink);
  overflow-wrap: anywhere;
}

.r12vv2-current-title span {
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-current-actions {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.r12vv2-current-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  scroll-padding-bottom: calc(8px + var(--r12-dock-clear, 0px));
}

/* ── 审核 ─────────────────────────────────────────────────────── */

.r12vv2-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.r12vv2-review-card {
  flex: none;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}

.r12vv2-review-head {
  height: auto;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 6px;
}

.r12vv2-review-title {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.r12vv2-review-title h2 {
  margin: 0;
  min-width: 0;
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
  font-weight: 600;
  color: var(--r12-ink);
  white-space: normal;
  overflow-wrap: anywhere;
}

.r12vv2-review-duration {
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  white-space: nowrap;
}

.r12vv2-review-actions {
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.r12vv2-review-body {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.2fr) minmax(140px, .55fr);
  gap: 10px;
  padding: 10px;
  min-width: 0;
  align-items: start;
}

.r12vv2-review-video {
  min-width: 0;
}

.r12vv2-review-player {
  width: 100%;
  display: block;
  border-radius: var(--r12-r-card);
  background: #000;
}

.r12vv2-review-player .r12vp-video {
  aspect-ratio: 16 / 9;
}

.r12vv2-review-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--r12-line-strong);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface-2);
  color: var(--r12-muted);
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
}

.r12vv2-review-prompt,
.r12vv2-review-refs {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface-2);
}

.r12vv2-review-prompt h3,
.r12vv2-review-refs h3 {
  margin: 0 0 4px;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  font-weight: 600;
  color: var(--r12-muted);
}

.r12vv2-review-prompt p,
.r12vv2-review-refs p {
  margin: 0;
  font-size: var(--r12-fs-small);
  line-height: 1.65;
  color: var(--r12-ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.r12vv2-review-note {
  padding: 0 10px 10px;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-missing {
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
  white-space: nowrap;
}

@container (max-width: 760px) {
  .r12vv2-review-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── 生成视频弹窗：范围、组复选卡与参数摘要 ───────────────────── */

.r12vv2-generate {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
  min-width: 0;
}

.r12vv2-gen-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
}

.r12vv2-gen-label {
  flex: none;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-muted);
}

.r12vv2-gen-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  min-width: 0;
}

.r12vv2-gen-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px auto minmax(0, 1fr);
  grid-template-areas: "check id name" "check id meta";
  align-items: center;
  gap: 0 6px;
  padding: 7px 9px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-control);
  background: var(--r12-surface);
  color: var(--r12-ink);
  text-align: left;
}

.r12vv2-gen-option:hover {
  background: var(--r12-hover);
}

.r12vv2-gen-option.is-selected {
  border-color: var(--r12-selected-border);
  box-shadow: inset 0 0 0 1px var(--r12-selected-border);
  background: var(--r12-selected-bg);
}

.r12vv2-gen-check {
  grid-area: check;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--r12-line-strong);
  border-radius: 4px;
  color: var(--r12-ink);
}

.r12vv2-gen-option.is-selected .r12vv2-gen-check {
  background: var(--r12-ink);
  color: var(--r12-bg);
}

.r12vv2-gen-check svg {
  width: 12px;
  height: 12px;
}

.r12vv2-gen-option b {
  grid-area: id;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
}

.r12vv2-gen-name {
  grid-area: name;
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r12vv2-gen-option small {
  grid-area: meta;
  min-width: 0;
  font-size: 11px;
  line-height: 16px;
  color: var(--r12-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.r12vv2-gen-summary,
.r12vv2-gen-count {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-control);
  background: var(--r12-surface-2);
  color: var(--r12-ink);
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  overflow-wrap: anywhere;
}

.r12vv2-gen-note {
  margin: 0;
  color: var(--r12-muted);
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  overflow-wrap: anywhere;
}

.r12vv2-gen-count {
  color: var(--r12-muted);
}

/* ── 参考替换、参数、意见弹窗 ─────────────────────────────────── */

.r12vv2-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  padding-bottom: 12px;
}

.r12vv2-pick {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface);
  color: var(--r12-ink);
  text-align: left;
}

.r12vv2-pick:hover {
  background: var(--r12-hover);
}

.r12vv2-pick-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r12-r-control);
  background: var(--r12-surface-3);
  color: var(--r12-muted);
}

.r12vv2-pick-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.r12vv2-pick-name {
  min-width: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.r12vv2-pick small {
  font-size: 11px;
  line-height: 16px;
  color: var(--r12-muted);
}

.r12vv2-params {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}

.r12vv2-params-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.r12vv2-params-row > span {
  flex: none;
  width: 48px;
  color: var(--r12-muted);
}

.r12vv2-params-row > b {
  min-width: 0;
  color: var(--r12-ink);
  overflow-wrap: anywhere;
}

.r12vv2-params-fields {
  min-width: 0;
}

.r12vv2-note-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  color: var(--r12-muted);
}

.r12vv2-note-input {
  width: 100%;
  min-height: 112px;
  padding: 8px 10px;
  border: 1px solid var(--r12-line);
  border-radius: var(--r12-r-control);
  background: var(--r12-surface);
  color: var(--r12-ink);
  font: inherit;
  resize: vertical;
}

/* ── 自定义视频查看窗口与连续播放 ─────────────────────────────── */

.r12-dialog.is-video {
  width: 900px;
  max-width: calc(100vw - 48px);
}

.r12-dialog.is-video .r12-dialog-body {
  padding: 0 16px 16px;
}

.r12vv2-viewer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.r12vv2-viewer-stage {
  width: 100%;
  border-radius: var(--r12-r-card);
  overflow: hidden;
  background: #000;
}

.r12vv2-viewer-player {
  width: 100%;
  max-height: min(52vh, 440px);
  display: block;
  background: #000;
}

.r12vv2-viewer-player .r12vp-video {
  width: 100%;
  max-height: min(52vh, 440px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.r12vv2-viewer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.r12vv2-viewer-count {
  margin: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  font-weight: 600;
  color: var(--r12-ink);
}

.r12vv2-viewer-title {
  margin: 0;
  font-size: var(--r12-fs-title);
  line-height: var(--r12-lh-title);
  font-weight: 600;
  color: var(--r12-ink);
  overflow-wrap: anywhere;
}

.r12vv2-viewer-desc {
  margin: 0;
  font-size: var(--r12-fs-small);
  line-height: 1.65;
  color: var(--r12-muted);
  overflow-wrap: anywhere;
}

.r12vv2-viewer-status {
  margin: 0;
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
  color: var(--r12-ink);
  overflow-wrap: anywhere;
}

.r12vv2-viewer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.r12vv2-viewer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 240px;
  border: 1px dashed var(--r12-line-strong);
  border-radius: var(--r12-r-card);
  background: var(--r12-surface-2);
  color: var(--r12-muted);
  text-align: center;
  padding: 24px;
}

.r12vv2-viewer-empty svg {
  width: 28px;
  height: 28px;
}

.r12vv2-viewer-empty b {
  color: var(--r12-ink);
  font-size: var(--r12-fs-ui);
  line-height: var(--r12-lh-ui);
}

.r12vv2-viewer-empty small {
  font-size: var(--r12-fs-small);
  line-height: var(--r12-lh-small);
}

@media (max-width: 980px) {
  .r12vv2-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .r12vv2-nav {
    max-height: 160px;
  }
}

@media (max-height: 700px) {
  .r12vv2-viewer-player {
    max-height: 38vh;
  }

  .r12vv2-viewer-empty {
    min-height: 150px;
  }
}
