/* Styles pour les nouveaux loaders PodPlay */

/* Animation de disparition commune à tous les préchargeurs */
.preloader-logo.fade-out,
.preloader-dots.fade-out,
.preloader-spinner.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Option 1: Loader avec animation de logo */
.preloader-logo {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preloader-logo .logo-container {
  width: 120px;
  height: 120px;
  position: relative;
  animation: pulse 1.5s infinite ease-in-out;
}

.preloader-logo .loading-text {
  color: #E50914;
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  letter-spacing: 2px;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* Option 2: Loader avec animation de points */
.preloader-dots {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-dots .dots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-dots .dot {
  width: 15px;
  height: 15px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #E50914;
  animation: dot-animation 1.4s infinite ease-in-out both;
}

.preloader-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.preloader-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dot-animation {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Option 3: Loader avec animation de rotation */
.preloader-spinner {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-spinner .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(229, 9, 20, 0.3);
  border-radius: 50%;
  border-top-color: #E50914;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
