/* ═══════════════════════════════════════════
   DEMO VIEWER v2.3 — Two-Video Layout
   ═══════════════════════════════════════════ */

/* ─── Two-Panel Layout ─── */
.demo-viewer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.demo-panels {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-panel {
  flex: 1;
  min-width: 0;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.demo-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  background: #1a1a1a;
}

.demo-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.demo-video-wrap video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.demo-overlay-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* View dots */
.view-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.fo-dot  { background: #00c878; }
.dtl-dot { background: #42a5f5; }

/* ─── Controls ─── */
.demo-controls {
  background: #fafafa;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e8e8e8;
}

/* Event buttons */
.demo-events {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.demo-event-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  color: #555;
  transition: all 0.15s ease;
}

.demo-event-btn:hover {
  border-color: var(--event-color, #999);
  color: var(--event-color, #333);
  background: #f8f8f8;
}

.demo-event-btn.active {
  border-color: var(--event-color, #999);
  background: var(--event-color, #999);
  color: white;
}

.demo-event-icon {
  font-size: 14px;
  font-weight: 600;
  color: var(--event-color, #999);
}

.demo-event-btn.active .demo-event-icon {
  color: white;
}

.demo-event-name {
  font-weight: 500;
}

/* Slider */
.demo-slider-row {
  margin-bottom: 8px;
}

.demo-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.demo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #333;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: grab;
}

.demo-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #333;
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: grab;
}

/* Meta row */
.demo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #888;
}

.demo-marker-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  color: #666;
  user-select: none;
}

.demo-marker-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #00c878;
  cursor: pointer;
}

.demo-toggle-label {
  font-weight: 500;
}

/* ─── Fusion Banner ─── */
.fusion-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border: 1px solid #d1fae5;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #444;
}

.fusion-icon {
  font-size: 16px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .demo-panels {
    flex-direction: column;
  }
  .demo-events {
    gap: 3px;
  }
  .demo-event-btn {
    padding: 3px 8px;
    font-size: 11px;
  }
}
