/* ═══ cineverse/css/skeleton.css ═══ */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    rgba(229, 9, 20, 0.08) 37%,
    var(--bg-secondary) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
  display: block;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Skeleton Card */
.skeleton-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.skeleton-card__img {
  width: 100%;
  height: 100%;
}

/* Skeleton Hero Spotlight */
.skeleton-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
}

.skeleton-hero__content {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-hero__badge {
  width: 80px;
  height: 24px;
}

.skeleton-hero__title {
  width: 70%;
  height: 80px;
  border-radius: var(--radius-md);
}

.skeleton-hero__meta {
  width: 45%;
  height: 20px;
}

.skeleton-hero__overview {
  width: 90%;
  height: 60px;
}

.skeleton-hero__actions {
  display: flex;
  gap: 1rem;
}

.skeleton-hero__btn {
  width: 140px;
  height: 45px;
  border-radius: var(--radius-md);
}

/* Skeleton Detalles (Layout 2 Col) */
.skeleton-details {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  padding-top: 100px;
}

.skeleton-details__left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-details__poster {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-md);
}

.skeleton-details__btn {
  width: 100%;
  height: 45px;
  border-radius: var(--radius-md);
}

.skeleton-details__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-details__title {
  width: 50%;
  height: 60px;
  border-radius: var(--radius-md);
}

.skeleton-details__meta {
  width: 30%;
  height: 25px;
}

.skeleton-details__pills {
  display: flex;
  gap: 0.5rem;
}

.skeleton-details__pill {
  width: 80px;
  height: 30px;
  border-radius: var(--radius-full);
}

.skeleton-details__text {
  width: 100%;
  height: 120px;
}

@media (max-width: 1024px) {
  .skeleton-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .skeleton-details__poster {
    width: 200px;
    margin: 0 auto;
  }
}
