.content-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 20px 50px;
}

.content-page-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}

.bd-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid #433d4d;
  border-radius: 5px;
  color: #b6aec2;
  font-size: 12px;
}

.bd-back:hover {
  color: #f4f0f8;
  background: rgba(255, 255, 255, 0.05);
}

.content-muted {
  color: #9c96a8;
}

.content-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #35303f;
  border-radius: 6px;
  background: #221f2a;
}

.content-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9c96a8;
  font-size: 12px;
}

.content-control {
  min-width: 118px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #464052;
  border-radius: 5px;
  background: #191721;
  color: #f4f0f8;
}

.content-search {
  min-width: 220px;
  margin-left: auto;
}

.creator-strip {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #3b3546;
  border-radius: 6px;
  background: #24202c;
}

.creator-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #4d465a;
  border-radius: 50%;
  background: #2f2938;
  color: #d8a748;
  font-size: 28px;
  font-weight: 800;
}

.creator-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.creator-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9c96a8;
  font-size: 12px;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.link-chip {
  padding: 4px 7px;
  border: 1px solid #433d4d;
  border-radius: 5px;
  color: #b6aec2;
  font-size: 11px;
}

.sync-note {
  color: #9c96a8;
  font-size: 12px;
  text-align: right;
}

.sync-note strong {
  display: block;
  color: #57b56a;
}

.sync-note strong.running {
  color: #d8a748;
}

.sync-note strong.stale {
  color: #d85a5a;
}

.sync-note .sync-time {
  display: block;
  margin-top: 2px;
  color: #6f6a78;
}

.bd-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.bd-card {
  --bd-cover: none;
  position: relative;
  isolation: isolate;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #25212c;
}

.bd-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--bd-cover) center 38% / cover no-repeat;
  opacity: 0.68;
}

.bd-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 27, 0.98) 0%, rgba(20, 18, 27, 0.84) 46%, rgba(20, 18, 27, 0.44) 100%);
}

.bd-card-inner {
  min-height: 208px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.bd-title {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
}

.bd-card a {
  color: inherit;
}

.bd-version-row,
.bd-tags,
.bd-skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.bd-version {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(216, 167, 72, 0.16);
  color: #d8a748;
  font-size: 11px;
  font-weight: 700;
}

.bd-status {
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(87, 181, 106, 0.14);
  color: #57b56a;
  font-size: 11px;
  font-weight: 700;
}

.bd-status.pending {
  background: rgba(107, 140, 255, 0.14);
  color: #6b8cff;
}

.bd-status.failed {
  background: rgba(216, 90, 90, 0.14);
  color: #d85a5a;
}

.bd-tag,
.bd-skill {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(8, 7, 13, 0.34);
  color: #d8d1e3;
  font-size: 11px;
}

.bd-tag.gold {
  color: #d8a748;
}

.bd-tag.blue {
  color: #6b8cff;
}

.bd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.bd-meta {
  color: #9c96a8;
  font-size: 12px;
}

.bd-meta a {
  color: #d8a748;
}

.bd-source {
  color: #d8a748;
  font-size: 12px;
}

.bd-hero {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #25212c;
}

.bd-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--bd-cover) center 42% / cover no-repeat;
}

.bd-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 16, 25, 0.98) 0%, rgba(18, 16, 25, 0.82) 48%, rgba(18, 16, 25, 0.36) 100%);
}

.bd-hero-inner {
  min-height: 280px;
  padding: 26px;
  display: flex;
  align-items: flex-end;
}

.bd-hero-title {
  max-width: 760px;
}

.bd-hero h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
}

.bd-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.bd-detail-main,
.bd-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.bd-section {
  padding: 16px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #28232e;
}

.bd-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.bd-section-content {
  color: #d8d1e2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bd-placeholder {
  padding: 12px;
  border: 1px dashed #474151;
  border-radius: 5px;
  color: #9c96a8;
  font-size: 12px;
}

.bd-article {
  color: #d8d1e2;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.bd-article > :first-child {
  margin-top: 0;
}

.bd-article h2 {
  margin: 26px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #37313f;
  font-size: 18px;
  color: #f4f0f8;
  scroll-margin-top: 16px;
}

.bd-article h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  color: #f4f0f8;
  scroll-margin-top: 16px;
}

.bd-article p,
.bd-article li {
  margin: 8px 0;
}

.bd-article ul,
.bd-article ol {
  margin: 8px 0;
  padding-left: 22px;
}

.bd-article a {
  color: #d8a748;
}

.bd-article img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.bd-article table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 12px;
}

.bd-article th,
.bd-article td {
  padding: 7px 9px;
  border: 1px solid #37313f;
  text-align: left;
}

.bd-article th {
  background: #211e28;
  color: #d8a748;
}

.bd-article code {
  padding: 1px 5px;
  border-radius: 3px;
  background: #1c1923;
  color: #e6d9b8;
}

.bd-article pre {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #37313f;
  border-radius: 5px;
  background: #1c1923;
  overflow: auto;
}

.bd-article pre code {
  padding: 0;
  background: none;
}

.bd-article blockquote {
  margin: 12px 0;
  padding: 2px 12px;
  border-left: 3px solid #433d4d;
  color: #9c96a8;
}

.variant-bar {
  display: flex;
  gap: 7px;
  margin: 12px 0;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #24202c;
}

.variant-tab {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #433d4d;
  border-radius: 5px;
  background: #191721;
  color: #9c96a8;
  font-size: 12px;
}

.variant-tab.active {
  border-color: rgba(216, 167, 72, 0.55);
  background: rgba(216, 167, 72, 0.14);
  color: #d8a748;
}

.bd-side {
  position: sticky;
  top: 78px;
}

.bd-side-card {
  padding: 14px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #24202c;
}

.bd-side-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.bd-pob {
  max-height: 140px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d5cde2;
  font-size: 10px;
}

.bd-toc {
  display: grid;
  gap: 4px;
}

.bd-toc a {
  padding: 7px 8px;
  border-left: 2px solid #433d4d;
  color: #9c96a8;
  font-size: 12px;
}

.bd-toc a:hover,
.bd-toc a.active {
  border-left-color: #d8a748;
  background: rgba(216, 167, 72, 0.08);
  color: #f4f0f8;
}

.bd-language {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid #433d4d;
  border-radius: 5px;
  overflow: hidden;
}

.bd-language button {
  min-width: 90px;
  height: 34px;
  border: 0;
  background: rgba(8, 7, 13, 0.4);
  color: #9c96a8;
  cursor: pointer;
}

.bd-language button.active {
  background: rgba(216, 167, 72, 0.16);
  color: #d8a748;
  font-weight: 700;
}

.bd-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #474151;
  border-radius: 5px;
  background: #211e28;
  color: #f4f0f8;
  cursor: pointer;
}

.bd-button.primary {
  border-color: rgba(216, 167, 72, 0.55);
  background: rgba(216, 167, 72, 0.15);
  color: #d8a748;
}

.bd-button[disabled] {
  opacity: 0.55;
  cursor: default;
}

.bd-empty {
  padding: 32px;
  border: 1px dashed #474151;
  border-radius: 6px;
  color: #9c96a8;
  text-align: center;
}

.video-upload {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #474151;
  border-radius: 6px;
  background: #1b1822;
}

.video-upload summary {
  cursor: pointer;
  color: #d8a748;
  font-size: 13px;
}

.video-upload-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.video-upload-form label {
  display: grid;
  gap: 4px;
  color: #9c96a8;
  font-size: 12px;
}

.video-upload-form input {
  min-height: 34px;
  padding: 4px 8px;
  border: 1px solid #474151;
  border-radius: 5px;
  background: #211e28;
  color: #f4f0f8;
  font-size: 12px;
}

.video-upload-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.video-upload-note {
  color: #9c96a8;
  font-size: 12px;
}

.video-monitor {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #24202c;
}

.video-monitor strong {
  display: block;
  font-size: 16px;
}

.video-monitor span {
  display: block;
  margin-top: 3px;
  color: #9c96a8;
  font-size: 12px;
}

.video-status {
  color: #57b56a;
  font-size: 12px;
  text-align: right;
}

.video-state-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(107, 140, 255, 0.3);
  border-radius: 6px;
  background: rgba(107, 140, 255, 0.08);
  color: #b7c4f2;
  font-size: 12px;
}

.video-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.video-job {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #24202c;
}

.video-thumb {
  width: 130px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: #2f2938;
}

.video-job-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.video-job-meta {
  margin-top: 4px;
  color: #9c96a8;
  font-size: 12px;
}

.video-job-state {
  color: #6b8cff;
  font-size: 12px;
  text-align: right;
}

.video-job-state.ready {
  color: #57b56a;
}

.video-job-state.failed,
.video-job-state.blocked {
  color: #d85a5a;
}

.video-job-state.queued {
  color: #6b8cff;
}

.progress {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #332f3b;
}

.progress span {
  display: block;
  height: 100%;
  background: #6b8cff;
}

.progress.complete span {
  background: #57b56a;
}

.job-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  margin-top: 14px;
}

.job-detail-card {
  padding: 16px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #28232e;
}

.job-detail-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.job-detail-card dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.job-detail-card dt {
  color: #9c96a8;
}

.job-detail-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.job-detail-wide {
  grid-column: 1 / -1;
}

.job-artifacts {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.video-transcript {
  margin: 8px 0 0;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  color: #d5cde2;
}

/* ---- 视频播放器：原片画面 + 中文配音音轨 + 同步字幕 ---- */
.video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #000;
}

.video-embed,
.video-embed iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video {
  display: block;
  background: #000;
}

.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  padding: 0 42px;
  pointer-events: none;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: #ffd75e;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 0, 0, 0.75);
}

/* 本地播放器有原生控制条，字幕往上让一让 */
.video-frame.has-controls .video-caption {
  bottom: 54px;
}

.video-caption[data-size="small"] {
  font-size: 12px;
}

.video-caption[data-size="large"] {
  font-size: 21px;
}

.video-caption[data-color="yellow"] {
  color: #ffd75e;
}

.video-caption[data-color="white"] {
  color: #ffffff;
}

.video-caption[data-color="green"] {
  color: #7cfc5a;
}

.video-caption[data-color="cyan"] {
  color: #5ae4e4;
}

.video-caption[data-color="blue"] {
  color: #7fb2ff;
}

.video-caption[data-color="pink"] {
  color: #ff9ecf;
}

.video-caption[data-color="orange"] {
  color: #ffa95e;
}

.video-side {
  display: grid;
  gap: 10px;
}

.video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.video-controls-sep {
  margin-left: 6px;
  font-size: 12px;
}

.variant-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.video-style {
  height: 32px;
  min-height: 32px;
  padding: 0 6px;
}

.video-cues {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 380px;
  overflow: auto;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #221f2a;
}

.video-cue {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #2c2836;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
}

.video-cue:last-child {
  border-bottom: 0;
}

.video-cue:hover {
  background: #2c2734;
}

.video-cue.active {
  background: rgba(216, 167, 72, 0.12);
  color: #d8a748;
}

.video-cue-time {
  color: #9c96a8;
  font-variant-numeric: tabular-nums;
}

.video-cue.active .video-cue-time {
  color: #d8a748;
}

.video-hint {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .bd-detail-layout,
  .job-detail,
  .video-stage {
    grid-template-columns: 1fr;
  }

  .bd-side {
    position: static;
  }

  .bd-card-inner {
    grid-template-columns: 1fr;
  }

  .bd-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .content-shell {
    padding: 12px 12px 38px;
  }

  .content-search {
    width: 100%;
    margin-left: 0;
  }

  .creator-strip {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .creator-avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .sync-note {
    grid-column: 2;
    text-align: left;
  }

  .bd-card {
    min-height: 250px;
  }

  .bd-card::after {
    background: linear-gradient(0deg, rgba(20, 18, 27, 0.99) 0%, rgba(20, 18, 27, 0.85) 68%, rgba(20, 18, 27, 0.48) 100%);
  }

  .bd-card-inner {
    min-height: 248px;
  }

  .bd-hero-inner {
    padding: 18px;
  }

  .video-monitor,
  .video-job {
    grid-template-columns: 1fr;
  }

  .video-status,
  .video-job-state {
    text-align: left;
  }
}

/* ---- 结构化阶段视图：装备词条 / 宝石 / 天赋树 ---- */
.bd-gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.bd-gear-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #221f2a;
}

.bd-gear-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-gear-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 5px;
  background: #17151d;
}

.bd-gear-title {
  min-width: 0;
}

.bd-gear-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9c96a8;
  font-size: 11px;
}

.bd-gear-unique {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(175, 96, 37, 0.22);
  color: #d08a3e;
  font-size: 10px;
}

.bd-gear-name {
  color: #f4f0f8;
  font-size: 14px;
}

.bd-gear-orig {
  color: #8b8496;
  font-size: 11px;
}

.bd-gear-mods {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-gear-mods li {
  padding: 5px 8px;
  border-left: 2px solid #433d4d;
  border-radius: 4px;
  background: #1c1923;
  color: #d8d1e2;
  font-size: 12px;
  line-height: 1.5;
}

.bd-gear-mods li.must {
  border-left-color: #d8a748;
  background: rgba(216, 167, 72, 0.12);
  color: #f0e3c5;
}

.bd-gear-must {
  margin-left: 6px;
  color: #d8a748;
  font-size: 10px;
}

.bd-gear-note {
  margin: 0;
  color: #9c96a8;
  font-size: 11px;
}

.bd-gear-trade {
  justify-self: start;
  color: #d8a748;
  font-size: 12px;
}

.bd-priority {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bd-priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #3b3546;
  border-radius: 999px;
  background: #1c1923;
  color: #d8d1e2;
  font-size: 12px;
}

.bd-priority-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.bd-priority-slot {
  color: #9c96a8;
  font-size: 11px;
}

.bd-gem-groups {
  display: grid;
  gap: 10px;
}

.bd-gem-group {
  padding: 10px;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #221f2a;
}

.bd-gem-active {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-gem-active img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.bd-gem-name {
  color: #f4f0f8;
  font-size: 14px;
}

.bd-gem-set {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(96, 143, 216, 0.16);
  color: #8fb6e8;
  font-size: 10px;
}

.bd-gem-supports {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.bd-gem-support {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #1c1923;
  color: #cbc4d6;
  font-size: 11px;
}

.bd-gem-support img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.bd-tree-meta {
  color: #9c96a8;
  font-size: 12px;
}

.bd-tree-shot {
  margin: 10px 0 0;
}

.bd-tree-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #37313f;
  border-radius: 6px;
  background: #12101a;
  cursor: zoom-in;
}

.bd-tree-shot figcaption {
  margin-top: 6px;
  color: #8b8496;
  font-size: 11px;
}

.bd-node-block {
  margin-top: 14px;
}

.bd-node-block h4 {
  margin: 0 0 8px;
  color: #d8a748;
  font-size: 13px;
}

.bd-node-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bd-node-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #3b3546;
  border-radius: 5px;
  background: #1c1923;
  color: #d8d1e2;
  font-size: 12px;
}

.bd-node-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.bd-node-chip.ascendancy {
  border-color: rgba(216, 167, 72, 0.45);
  color: #f0e3c5;
}

body.bd-zoom-on {
  overflow: hidden;
}

.bd-zoom {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  padding: 20px;
  overflow: auto;
  background: rgba(8, 7, 13, 0.92);
}

.bd-zoom[hidden] {
  display: none;
}

.bd-zoom img {
  margin: auto;
  max-width: 100%;
  max-height: calc(100vh - 60px);
  cursor: zoom-in;
}

.bd-zoom img.full {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.bd-zoom-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.bd-zoom-bar a,
.bd-zoom-bar button {
  padding: 8px 14px;
  border: 1px solid #433d4d;
  border-radius: 5px;
  background: #221f2a;
  color: #f4f0f8;
  font-size: 12px;
  cursor: pointer;
}

.bd-zoom-bar a:hover,
.bd-zoom-bar button:hover {
  border-color: rgba(216, 167, 72, 0.55);
  color: #d8a748;
}

/* ---- 视频产线：本机自动推送控制条与列表徽标 ---- */
.video-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 167, 72, 0.34);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(216, 167, 72, 0.07) 0%, #24202c 42%);
}

.pipeline-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.pipeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #57b56a;
  box-shadow: 0 0 0 3px rgba(87, 181, 106, 0.16);
}

.pipeline-dot.off {
  background: #6f6a78;
  box-shadow: 0 0 0 3px rgba(111, 106, 120, 0.16);
}

.pipeline-dot.bad {
  background: #d85a5a;
  box-shadow: 0 0 0 3px rgba(216, 90, 90, 0.16);
}

.pipeline-head strong {
  font-size: 15px;
}

.pipeline-sub {
  color: #9c96a8;
  font-size: 12px;
}

.pipeline-sub.bad {
  color: #d85a5a;
}

.pipeline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.pipeline-stats div {
  display: grid;
  gap: 2px;
}

.pipeline-stats b {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.pipeline-stats span {
  color: #9c96a8;
  font-size: 11px;
}

.pipeline-stats .ok b {
  color: #57b56a;
  font-size: 15px;
}

.pipeline-stats .warn b {
  color: #d8a748;
}

.pipeline-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pipeline-token {
  grid-column: 1 / -1;
  color: #9c96a8;
  font-size: 12px;
}

.pipeline-token summary {
  cursor: pointer;
  color: #9c96a8;
}

.pipeline-token summary:hover {
  color: #d8a748;
}

.pipeline-token-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.pipeline-token-form input {
  min-width: 260px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #474151;
  border-radius: 5px;
  background: #191721;
  color: #f4f0f8;
}

.video-job-side {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.push-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.push-badge.synced {
  background: rgba(87, 181, 106, 0.14);
  color: #57b56a;
}

.push-badge.pending {
  background: rgba(107, 140, 255, 0.14);
  color: #6b8cff;
}

.push-badge.pushing {
  background: rgba(216, 167, 72, 0.16);
  color: #d8a748;
}

.push-badge.failed {
  background: rgba(216, 90, 90, 0.14);
  color: #d85a5a;
}

.push-badge.idle {
  background: rgba(111, 106, 120, 0.16);
  color: #8b8496;
}

.push-error {
  color: #d85a5a;
}

.push-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9c96a8;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.push-pick:hover {
  color: #d8a748;
}

.push-pick input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #d8a748;
  cursor: pointer;
}

@media (max-width: 900px) {
  .video-pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .video-job-side {
    justify-items: start;
  }

  .pipeline-token-form input {
    min-width: 0;
    width: 100%;
  }
}
