/* One cached, static monochrome tile. No animation, canvas or image sharpening.
   The texture belongs to previews; full-size gallery originals stay untouched. */
.homecard__art, .event-discovery-art { position: relative; }
.homecard__art:has(img)::before,
.event-discovery-art:has(img)::before,
.homechart__art:has(img)::after,
.homeafisha__art:has(img)::after,
.mobile-event__media:has(img)::after,
.film-art:has(img)::before,
.photo-grain {
  content: ""; position: absolute; inset: 0; z-index: 1;
  width: auto; height: auto; transform: none;
  background: url("/assets/photo-grain.svg") repeat;
  background-size: 128px 128px; opacity: .055;
  border-radius: inherit; pointer-events: none;
}
@media (min-width: 1024px) {
  .event-cover { position: relative; }
  .event-cover:not(.event-cover--text)::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: url("/assets/photo-grain.svg") repeat;
    background-size: 128px 128px; opacity: .055;
    border-radius: inherit; pointer-events: none;
  }
}
@media (max-width: 1023px) {
  .afisha:has(img)::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: url("/assets/photo-grain.svg") repeat;
    background-size: 128px 128px; opacity: .055;
    border-radius: inherit; pointer-events: none;
  }
  .recsview--now .rail .rcard:not(.rcard--noimg) > .poster-grain {
    display: block; z-index: 1; height: 150px; bottom: auto;
    background: url("/assets/photo-grain.svg") repeat; background-size: 128px 128px;
    mix-blend-mode: normal; opacity: .055; border-radius: var(--ui-radius-image);
  }
  .recsview--now .rail .rcard.rcard--mobile-poster > .poster-grain { height: 100%; }
}
.perf-lite .photo-grain,
.perf-lite .recsview--now .rail .rcard > .poster-grain { display: none; }
@media (forced-colors: active) {
  .photo-grain, .homecard__art::before, .event-discovery-art::before,
  .film-art::before, .event-cover::before, .afisha::before,
  .homechart__art::after, .homeafisha__art::after, .mobile-event__media::after { display: none; }
}
