/* ==========================================================================
   W-MUSIC CINEMATIC STARTUP SPLASH SCREEN & VIDEO INTRO
   ========================================================================== */

.startup-splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #0b1120 0%, #030712 75%, #000000 100%);
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.75s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.75s;
  backdrop-filter: blur(20px);
}

.startup-splash-overlay.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  visibility: hidden;
}

/* Ambient glow background layers */
.startup-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.35;
  animation: startupPulse 8s ease-in-out infinite alternate;
}

.startup-glow-1 {
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(139, 92, 246, 0.15) 70%, transparent 100%);
  top: 10%;
  left: 20%;
}

.startup-glow-2 {
  width: 45vw;
  height: 45vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(59, 130, 246, 0.1) 70%, transparent 100%);
  bottom: 10%;
  right: 15%;
  animation-delay: -4s;
}

@keyframes startupPulse {
  0% { transform: scale(0.92) translate(0, 0); opacity: 0.25; }
  50% { transform: scale(1.08) translate(20px, -20px); opacity: 0.45; }
  100% { transform: scale(0.96) translate(-15px, 15px); opacity: 0.3; }
}

/* Main cinematic theater container */
.startup-theater {
  position: relative;
  width: min(92vw, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  animation: startupPopIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes startupPopIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Top brand banner header */
.startup-brand-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 14px 8px;
}

.startup-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.startup-brand-mini-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.6));
}

.startup-brand-tag .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: startupDotBlink 1.8s infinite;
}

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

.startup-skip-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Kantumruy Pro', 'Inter', sans-serif;
}

.startup-skip-quick-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.startup-countdown-badge {
  background: rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* Video Frame Wrapper */
.startup-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.12),
              0 0 40px rgba(99, 102, 241, 0.2);
  cursor: pointer;
}

.startup-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ambient backlight reflection behind the screen */
.startup-video-ambient-backlight {
  position: absolute;
  inset: -15px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.2), rgba(56, 189, 248, 0.25));
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

/* Big center play / unmute overlay hint */
.startup-unmute-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  border-radius: 999px;
  backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-family: 'Kantumruy Pro', 'Inter', sans-serif;
  animation: startupHintPulse 2s infinite ease-in-out;
}

.startup-unmute-hint.hidden {
  opacity: 0;
  transform: translate(-50%, -40%) scale(0.9);
  pointer-events: none;
}

@keyframes startupHintPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 12px 36px rgba(99, 102, 241, 0.4); }
}

/* Video bottom control dock */
.startup-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.25s ease;
}

/* Progress bar */
.startup-timeline-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.startup-timeline-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  box-shadow: 0 0 12px #a855f7;
  border-radius: 999px;
  transition: width 0.1s linear;
}

.startup-dock-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.startup-dock-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.startup-control-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-family: 'Kantumruy Pro', 'Inter', sans-serif;
}

.startup-control-pill-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.startup-time-display {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

.startup-dock-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer subtitle / description */
.startup-footer-info {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px;
  color: #64748b;
  font-size: 12px;
}

.startup-footer-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.startup-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  color: #94a3b8;
  font-size: 12px;
}

.startup-checkbox-wrap input[type="checkbox"] {
  accent-color: #6366f1;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Responsive queries */
@media (max-width: 680px) {
  .startup-theater {
    width: 96vw;
  }
  .startup-brand-bar {
    padding-bottom: 10px;
  }
  .startup-brand-tag {
    font-size: 11.5px;
    padding: 5px 10px;
  }
  .startup-skip-quick-btn {
    font-size: 11.5px;
    padding: 5px 12px;
  }
  .startup-unmute-hint {
    padding: 9px 15px;
    font-size: 12px;
  }
  .startup-footer-info {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
}

/* Button on Login View & Header to replay Startup Video anytime */
.btn-replay-intro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: 'Kantumruy Pro', 'Inter', sans-serif;
}

.btn-replay-intro:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.45);
  color: #fff;
  transform: translateY(-1px);
}
/* Keep one clear skip action in the video controls. */
#startupQuickSkipBtn {
  display: none !important;
}
