/* ══════════════════════════════════════
   右侧预览区 (preview-panel)
   ══════════════════════════════════════ */

.preview-panel {
  background: var(--side-bg);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-panel-header {
  padding: 14px 16px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}

.preview-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── 视频预览窗口 ── */
.preview-window {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 进度条容器（loading 时显示在 .preview-window 内） */
.preview-window .preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
}
.preview-window .progress-container {
  width: 80%;
  max-width: 320px;
  margin: 0 auto 12px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.preview-window .progress-container .progress-bar {
  height: 100%;
  width: 0%;
  background: #4a9eff;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.preview-window .progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
}

.preview-window video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-frame-only-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 10px;
  padding: 12px;
  box-sizing: border-box;
}
.preview-frame-only-img {
  max-width: 100%;
  max-height: calc(100% - 32px);
  object-fit: contain;
}
.preview-frame-only-loading,
.preview-frame-only-fallback {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}
.preview-frame-only-link {
  font-size: 12px;
  color: #4a9eff;
  text-decoration: none;
}
.preview-frame-only-link:hover {
  text-decoration: underline;
}

.preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}
.preview-empty .material-symbols-rounded { font-size: 38px; opacity: 0.5; }
.preview-empty span { font-size: 12px; }

/* ── 状态卡片 ── */
.status-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.03);
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.status-pill .material-symbols-rounded { font-size: 13px; }

#status-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
