.skeleton {
  background: linear-gradient(90deg, #1a1d26 25%, #252836 50%, #1a1d26 75%) 0
    0/200% 100%;
  animation: 1.5s ease-in-out infinite skeleton-shimmer;
}
@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.skeleton-image {
  background: linear-gradient(90deg, #1a1d26 25%, #252836 50%, #1a1d26 75%) 0
    0/200% 100%;
  border-radius: 8px;
  animation: 1.5s ease-in-out infinite skeleton-shimmer;
}
.skeleton-text {
  background: linear-gradient(90deg, #1a1d26 25%, #252836 50%, #1a1d26 75%) 0
    0/200% 100%;
  border-radius: 4px;
  height: 1em;
  margin-bottom: 0.5em;
  animation: 1.5s ease-in-out infinite skeleton-shimmer;
}
.skeleton-text:last-child {
  width: 60%;
}
.skeleton-card {
  background: #0f1117;
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  min-height: 200px;
  padding: 1.5rem;
}
.skeleton-wrapper {
  position: relative;
}
.skeleton-wrapper .skeleton-placeholder {
  opacity: 1;
  transition: opacity 0.3s ease-out;
  position: absolute;
  inset: 0;
}
.skeleton-wrapper.loaded .skeleton-placeholder {
  opacity: 0;
  pointer-events: none;
}
img[loading="lazy"] {
  background: linear-gradient(90deg, #1a1d26 25%, #252836 50%, #1a1d26 75%) 0
    0/200% 100%;
  animation: 1.5s ease-in-out infinite skeleton-shimmer;
}
img[loading="lazy"].loaded {
  background: 0 0;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton-image,
  .skeleton-text,
  img[loading="lazy"] {
    background: #1a1d26;
    animation: none;
  }
}
