
/* =========================
   EnoFlix Hero Loading State
   Netflix-style skeleton
========================= */

#enoflixHeroShell {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #05070d;
}

#enoflixHeroShell .enobillboard-rail {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#enoflixHeroShell.enoflix-hero-ready .enobillboard-rail,
#enoflixHeroShell.is-loaded .enobillboard-rail {
  opacity: 1;
  visibility: visible;
}

.enoflix-hero-loader {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 5vw, 70px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.58) 44%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.1) 0%, rgba(5, 7, 13, 0.95) 100%),
    url("../img/hero/slider-1.jpg") center/cover no-repeat;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#enoflixHeroShell.enoflix-hero-ready .enoflix-hero-loader,
#enoflixHeroShell.is-loaded .enoflix-hero-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enoflix-hero-skeleton {
  width: min(620px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enoflix-hero-skeleton span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
  background-size: 220% 100%;
  animation: enoflixHeroSkeleton 1.25s ease-in-out infinite;
}

.enoflix-hero-skeleton-kicker {
  width: 190px;
  height: 18px;
}

.enoflix-hero-skeleton-title {
  width: min(520px, 80vw);
  height: 72px;
  border-radius: 14px !important;
}

.enoflix-hero-skeleton-meta {
  width: 360px;
  height: 26px;
}

.enoflix-hero-skeleton-text {
  width: min(560px, 82vw);
  height: 18px;
}

.enoflix-hero-skeleton-text.short {
  width: min(420px, 70vw);
}

.enoflix-hero-skeleton-button {
  width: 170px;
  height: 56px;
  border-radius: 14px !important;
  margin-top: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 178, 31, 0.45),
    rgba(255, 178, 31, 0.85),
    rgba(255, 178, 31, 0.45)
  ) !important;
  background-size: 220% 100% !important;
}

@keyframes enoflixHeroSkeleton {
  0% {
    background-position: 220% 0;
  }

  100% {
    background-position: -220% 0;
  }
}

@media (max-width: 767.98px) {
  #enoflixHeroShell {
    min-height: 560px;
  }

  .enoflix-hero-loader {
    padding-left: 24px;
    padding-right: 24px;
  }

  .enoflix-hero-skeleton-title {
    height: 52px;
  }

  .enoflix-hero-skeleton-meta {
    width: 260px;
  }

  .enoflix-hero-skeleton-button {
    width: 150px;
    height: 50px;
  }
}