/* VideoForge Video Preview Canvas & Playback Bar — Exact Obsidian Studio Match */

.stage-video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.stage-video-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--bg-card-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.stage-status-chip {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.stage-status-chip.processing {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
  animation: pulseCyan 2s infinite;
}

.stage-status-chip.completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

@keyframes pulseCyan {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

.stage-video-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: 520px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.stage-video-element {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Floating Bottom Controls Inside Canvas */
.stage-playback-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  z-index: 5;
}

.playback-ctrl-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.playback-ctrl-btn:hover {
  transform: scale(1.1);
  color: var(--accent-fuchsia);
}

.playback-timeline-bar {
  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.playback-timeline-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.playback-timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.8);
}

.playback-timecode-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* Single Queue Row & Telemetry Card (Placed directly under Video Preview) */
.single-queue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-fast);
  box-sizing: border-box;
  width: 100%;
}

.single-queue-card.processing {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.single-queue-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.single-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.single-queue-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  min-width: 0;
}

.single-queue-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.single-queue-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.single-queue-top-section {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.single-queue-thumb {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  background: #000000;
  overflow: hidden;
  flex-shrink: 0;
}

.single-queue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-queue-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.single-queue-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-queue-specs {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.single-queue-actions-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.single-queue-progress-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.single-queue-status-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.single-queue-timer {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-word;
}
