html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #f3f5f8; }
@media (prefers-color-scheme: dark) { html, body { background: #1b1f24; } }
#out { position: absolute; inset: 0; }
#splash { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 14px; align-items: center;
  justify-content: center; font-family: sans-serif; font-size: 14px; color: #4a5568; background: #f3f5f8; }
#splash .progress { width: 220px; height: 4px; border-radius: 2px; background: rgba(120, 140, 170, 0.25); overflow: hidden; }
#splash-progress { width: 0; height: 100%; background: rgba(60, 100, 160, 0.9); transition: width 0.2s; }
@media (prefers-color-scheme: dark) { #splash { color: #c3cad5; background: #1b1f24; } }
.spinner { width: 42px; height: 42px; border: 4px solid rgba(120, 140, 170, 0.3); border-top-color: rgba(60, 100, 160, 0.9);
  border-radius: 50%; animation: spin 0.9s linear infinite; }
#video-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(0, 0, 0, 0.75); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; }
#video-overlay video { max-width: 92vw; max-height: 80vh; background: #000; border-radius: 6px; }
#video-overlay button { font: 15px sans-serif; padding: 8px 22px; border-radius: 6px; border: 0; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
