.mod-detail-thumb-wrapper,
.mod-detail-extra-thumb-wrapper {
  position: relative;
  width: 100%;
}

.mod-detail-thumb-wrapper.loaded .image-thumb-placeholder,
.mod-detail-extra-thumb-wrapper.loaded .image-thumb-placeholder {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.trending-mod-card.loaded .image-thumb-placeholder,
.trending-mod-card-compact-no-bg.loaded .image-thumb-placeholder {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.gallery-thumb-wrapper.loaded .image-thumb-placeholder {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Оптимизированный плейсхолдер - один элемент с анимированным градиентом */
.image-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #1a1f2e 0%,
    #2d3748 25%,
    #4a5568 50%,
    #2d3748 75%,
    #1a1f2e 100%
  );
  background-size: 200% 100%;
  animation: shimmerLoad 2s infinite ease-in-out;
  z-index: 2;
  opacity: 1;
  pointer-events: none;
}

@keyframes shimmerLoad {
  0%, 100% {
    background-position: 200% center;
  }
  50% {
    background-position: -200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-thumb-placeholder {
    animation: none;
    background: #2d3748;
  }
}

.mod-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 120px;
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.mod-thumb-wrapper:hover {
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.mod-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  background: #e2e8f0;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.mod-thumb-wrapper:hover .mod-thumb {
  transform: scale(1.02);
}

.mod-thumb-wrapper.loaded .image-thumb-placeholder {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mod-thumb-wrapper.loaded .mod-thumb {
  opacity: 1;
}