
.rs-media { display: none; }
.rs-media:has(img) { display: block; }

.rs-media__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--c-line-strong); border-radius: var(--radius-media); background: #0d0d0e;
}
.rs-media__frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs-media__art { display: none; }

.rs-hero__media:has(img) { margin-top: 2rem; }
@media (min-width: 1000px) {
  html[dir="rtl"] .rs-hero__media:has(img) { max-width: 44rem; }
  html:not([dir="rtl"]) .rs-hero:has(.rs-hero__media img) { position: relative; }
  html:not([dir="rtl"]) .rs-hero__media:has(img) {
    position: absolute; inset-block-end: 0; inset-inline-end: var(--gutter); width: min(36%, 34rem); margin-top: 0;
  }
  html:not([dir="rtl"]) .rs-hero:has(.rs-hero__media img) .rs-hero__lead { max-width: min(36rem, 52%); }
  .rs-hero__media .rs-media__frame { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(245, 245, 242, .04); }
}

.rs-feat:has(.rs-feat__media img) { isolation: isolate; }
.rs-feat:has(.rs-feat__media img) > .rs-feat__head,
.rs-feat:has(.rs-feat__media img) > .rs-feat__main { position: relative; z-index: 1; }
.rs-feat__media:has(img) { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.rs-feat__media .rs-media__frame {
  height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent;
  -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, .18) 72%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, .18) 72%, transparent 100%);
}
html[dir="rtl"] .rs-feat__media .rs-media__frame {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, .18) 72%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .78) 38%, rgba(0, 0, 0, .18) 72%, transparent 100%);
}
.rs-feat__media .rs-media__frame > img { opacity: .5; filter: saturate(.9); }
.rs-feat__media .rs-media__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 13, 14, .6), rgba(13, 13, 14, 0) 32%), linear-gradient(0deg, rgba(13, 13, 14, .55), rgba(13, 13, 14, 0) 55%); }
@media (max-width: 899px) {
  .rs-feat:has(.rs-feat__media img) { display: flex; flex-direction: column; }
  .rs-feat__media:has(img) { position: static; order: -1; margin-bottom: 1.4rem; pointer-events: auto; }
  .rs-feat__media .rs-media__frame {
    height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--c-line-strong); border-radius: var(--radius-media); background: #0d0d0e;
    -webkit-mask-image: none; mask-image: none;
  }
  html[dir="rtl"] .rs-feat__media .rs-media__frame { -webkit-mask-image: none; mask-image: none; }
  .rs-feat__media .rs-media__frame > img { opacity: 1; filter: none; }
  .rs-feat__media .rs-media__frame::after { content: none; }
}

.rs-row:has(.rs-row__thumb img) { grid-template-columns: 3.2rem clamp(8.5rem, 15vw, 14rem) minmax(0, 1fr) auto auto; }
.rs-row:has(.rs-row__thumb img) > .rs-row__n { grid-column: 1; grid-row: 1; }
.rs-row:has(.rs-row__thumb img) > .rs-row__thumb { grid-column: 2; grid-row: 1; }
.rs-row:has(.rs-row__thumb img) > .rs-row__body { grid-column: 3; grid-row: 1; }
.rs-row:has(.rs-row__thumb img) > .rs-row__cat { grid-column: 4; grid-row: 1; }
.rs-row:has(.rs-row__thumb img) > .rs-row__st { grid-column: 5; grid-row: 1; }
.rs-row__thumb:has(img) { min-width: 0; }
.rs-row__thumb .rs-media__frame > img { filter: saturate(.85) brightness(.92); transition: filter .4s, transform .6s; }
.rs-row.is-soon .rs-row__thumb .rs-media__frame > img { filter: saturate(.7) brightness(.8); }
@media (max-width: 899px) {
  .rs-row:has(.rs-row__thumb img) { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .rs-row:has(.rs-row__thumb img) > .rs-row__n { grid-column: 1; grid-row: 1; }
  .rs-row:has(.rs-row__thumb img) > .rs-row__body { grid-column: 2; grid-row: 1; }
  .rs-row:has(.rs-row__thumb img) > .rs-row__st { grid-column: 3; grid-row: 1; }
  .rs-row:has(.rs-row__thumb img) > .rs-row__thumb { grid-column: 2 / -1; grid-row: 2; }
  .rs-row:has(.rs-row__thumb img) > .rs-row__cat { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .rs-row__thumb .rs-media__frame > img { transition: none; } }
