[data-pdf-open].is-loading,
[data-pdf-download].is-loading,
.explore-media-row__play.is-loading,
.explore-media-row__start.is-loading,
.explore-timetable-item__play-btn.is-loading,
.pdf-note-view.is-loading,
.ebook-pdf-view.is-loading {
  opacity: 0.85;
  pointer-events: none;
  cursor: wait;
}

.explore-media-row__play.is-loading,
.explore-media-row__start.is-loading,
.explore-timetable-item__play-btn.is-loading {
  min-width: 42px;
}

.is-pdf-card-clickable,
.is-media-card-clickable {
  cursor: pointer;
}

.pdf-action-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 1200;
  max-width: min(92vw, 420px);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.pdf-action-toast.is-error {
  background: #991b1b;
}

.pdf-action-toast[hidden] {
  display: none;
}

.explore-timetable-item.is-media-card-clickable {
  cursor: pointer;
}

.explore-timetable-item.is-media-card-clickable:hover {
  background: #fafbff;
}

[data-img-wrap] {
  position: relative;
}

img[data-img-fade] {
  opacity: 0;
  position: relative;
  z-index: 1;
  transition: opacity 0.28s ease;
}

img[data-img-fade].is-loaded {
  opacity: 1;
}

[data-img-wrap]:not(.is-img-loaded)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: vk-img-shimmer 1.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes vk-img-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  img[data-img-fade] {
    transition: none;
  }

  [data-img-wrap]:not(.is-img-loaded)::after {
    animation: none;
    background: rgba(255, 255, 255, 0.18);
  }
}
