/* V3: v3-export styles (loaded after styles.css). */

/* ---------- preview player ---------- */
.export-stage { flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.export-player { position: relative; display: flex; justify-content: center; max-width: 100%; }
.export-player__canvas { cursor: pointer; touch-action: manipulation; }
.export-player__big {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px;
  display: grid; place-items: center; padding: 0;
  transform: translate(-50%, -50%);
  border: 0; border-radius: 999px;
  background: rgba(10, 10, 14, 0.62); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.export-player__big svg { width: 28px; height: 28px; margin-left: 3px; }
.export-player__big[hidden] { display: none; }
.export-player__big:hover { background: rgba(10, 10, 14, 0.78); }

.export-controls { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.export-controls[hidden] { display: none; }
.export-controls__btn { flex: none; width: 40px; height: 40px; background: var(--raised); }
.export-controls__btn[hidden] { display: none; }
.export-scrub { flex: 1 1 auto; min-width: 0; height: 28px; margin: 0; accent-color: var(--accent); background: transparent; }
.export-scrub:disabled { opacity: 0.5; }
.export-time { flex: none; min-width: 78px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }

.export-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
.export-dots[hidden] { display: none; }
.export-dot {
  position: relative; width: 24px; height: 24px; padding: 0;
  border: 0; background: transparent;
}
.export-dot::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  transform: translate(-50%, -50%); border-radius: 999px;
  background: var(--line-strong); transition: width 0.15s ease, background 0.15s ease;
}
.export-dot[aria-current="true"]::after { width: 18px; background: var(--accent); }
.export-dot:hover::after { background: var(--faint); }
.export-dot[aria-current="true"]:hover::after { background: var(--accent-hover); }
.export-preview-note { margin: 0; color: var(--faint); font-size: 12px; text-align: center; text-wrap: pretty; }

/* ---------- options ---------- */
.export-summary { overflow-wrap: anywhere; }
.export-actions .btn { flex: 1 1 auto; }
.export-actions .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.export-share-note { margin-top: 6px; }

/* ---------- progress ---------- */
.export-progress[hidden] { display: none; }
.export-progress .progress__row { gap: 12px; align-items: baseline; }
.export-progress .progress__text { min-width: 0; overflow-wrap: anywhere; }
.export-progress .link-btn { flex: none; min-height: 32px; }
.export-progress .link-btn:disabled { color: var(--faint); text-decoration: none; cursor: default; }
.export-progress__sub { margin-top: 2px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.export-progress__sub:empty { display: none; }

/* ---------- failure ---------- */
.export-error {
  margin-top: 12px; padding: 14px 16px;
  border: 1px solid rgba(255, 107, 107, 0.45); border-radius: var(--radius);
  background: rgba(255, 107, 107, 0.08);
}
.export-error__title { margin: 0 0 4px; font-weight: 700; color: #ff8a8a; }
.export-error__text { margin: 0; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.export-error__hint { margin: 6px 0 12px; color: var(--muted); font-size: 13px; text-wrap: pretty; }
.export-error__meta { margin: 10px 0 0; color: var(--faint); font-size: 12px; }

@media (max-width: 480px) {
  .export-actions { gap: 8px; }
  .export-actions .btn--lg { min-width: calc(50% - 4px); }
  .export-actions .btn--magic { flex-basis: 100%; }
}
