/* Splash Screen Styles */
#app-splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--back);
  color: #fff;
  z-index: 100000;
  font-family: 'Inter', system-ui, sans-serif;
  transition: opacity .6s ease, visibility .6s ease;
  backdrop-filter: blur(24px);
}

#app-splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

#app-splash .logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: scale(.85);
  filter: blur(14px);
  animation: splashLogoIn .9s cubic-bezier(.65,.05,.36,1) .15s forwards;
}

#app-splash img {
  width: 246px;
  height: auto;
  filter: drop-shadow(0 0 0 #00e5ff00);
  animation: splashLogoGlow 1.4s ease .4s forwards;
}

#app-splash .app-name {
  font-size: 1.3rem;
  letter-spacing: .06em;
  font-weight: 600;
  background: linear-gradient(92deg, #8ef7ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#app-splash .loader {
  margin-top: 0.85rem; /* было 1.75rem */
  width: 74px;
  height: 1px; /* уменьшено с 4px */
  position: relative;
  overflow: hidden;
  border-radius: 1px;
  background: #1e242c;
  opacity: 0;
  animation: splashLoaderFade .6s ease .6s forwards;
}

#app-splash .loader:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00d1ff00, #00e5ff, #00d1ff00);
  animation: loaderMove 1.3s linear infinite;
}

#app-splash .splash-progress {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #00e5ff;
  opacity: 0;
  animation: splashLoaderFade .6s ease .8s forwards;
}

#app-splash .splash-progress-text {
  letter-spacing: 0.05em;
  text-align: center;
  font-family: var(--sans-secondary);
  font-size: var(--xs);

}

#app-splash .splash-noscript {
  margin-top: 1rem;
  font-size: .85rem;
  opacity: .75;
}

@keyframes loaderMove {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes splashLogoIn {
  0% { opacity:0; transform:scale(.85); filter:blur(14px); }
  55% { opacity:1; transform:scale(1.015); filter:blur(3px); }
  75% { opacity:1; transform:scale(.995); filter:blur(1.5px); }
  100% { opacity:1; transform:scale(1); filter:blur(0); }
}

@keyframes splashLogoGlow {
  0% { filter: drop-shadow(0 0 0 #00e5ff00); }
  60% { filter: drop-shadow(0 0 18px #00e5ff66); }
  100% { filter: drop-shadow(0 0 10px #00e5ff40); }
}

@keyframes splashLoaderFade {
  0% { opacity:0; transform:translateY(-4px); }
  100% { opacity:1; transform:translateY(0); }
}

body.splash-active {
  overflow: hidden;
}

/* Скрыть splash если видео в fullscreen */
body:has(.plyr--fullscreen-active) #app-splash {
  display: none !important;
}
