/**
 * ============================================
 * Stylesheet: intro-video.css
 * Area:       开场视频 (Intro Video Overlay)
 * Version:    v6.1
 * ============================================
 *
 * WHAT THIS FILE DOES:
 *   All styles for the intro video overlay, skip button,
 *   progress bar, spinner, and fade-out animation.
 *
 * DEPENDS ON:
 *   - intro-video.js (creates the DOM elements)
 *
 * CHANGELOG:
 *   v6.1 - Extracted from inline index.html; enhanced skip button
 */

/* ── Hide React root during intro ── */
.hidden-during-intro {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Overlay ── */
#mujoo-intro-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 100000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease;
}
#mujoo-intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ── Video ── */
#mujoo-intro-overlay video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Spinner ── */
#mujoo-intro-overlay .loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.8);
  border-radius: 50%;
  animation: introSpin 0.8s linear infinite;
  z-index: 100001;
  transition: opacity 0.3s;
}
@keyframes introSpin {
  to { transform: rotate(360deg); }
}

/* ── Skip button ── */
#mujoo-intro-overlay .skip-btn {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 100002;
  padding: 12px 28px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#mujoo-intro-overlay .skip-btn:hover,
#mujoo-intro-overlay .skip-btn:active {
  background: rgba(255,255,255,0.45);
  transform: scale(1.05);
}

/* ── Hint text ── */
#mujoo-intro-overlay .hint-text {
  position: absolute;
  bottom: 60px;
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  z-index: 100001;
  pointer-events: none;
  transition: opacity 1s;
}

/* ── Progress bar ── */
#mujoo-intro-overlay .progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 100001;
}
#mujoo-intro-overlay .progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(120,200,255,0.6), rgba(180,140,255,0.6));
  transition: width 0.3s;
}
