

.wz-ts {

  --wz-ts-w-wide: clamp(252px, 76vw, 372px);
  --wz-ts-w-tall: clamp(168px, 44vw, 224px);

  --wz-ts-gap: 18px;

  --wz-ts-bleed: 20px;

  --wz-ts-radius: 14px;

  position: relative;

  padding: var(--wz-sec-y) 0;

  background: var(--wz-wash);
  font-family: var(--wz-ui-font);
  color: var(--wz-ink);
}

.wz-ts *,
.wz-ts *::before,
.wz-ts *::after { box-sizing: border-box; }

.wz-ts :where(p, h1, h2, h3, ul, li) { margin: 0; padding: 0; list-style: none; }

.wz-ts-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--wz-ts-bleed);
}

.wz-ts-rail {
  position: relative;
  margin-top: 26px;
}

.wz-ts-rail:first-of-type { margin-top: 0; }

.wz-ts-rail--wide { --wz-ts-poster-h: calc(var(--wz-ts-w-wide) * 9 / 16); }
.wz-ts-rail--tall { --wz-ts-poster-h: calc(var(--wz-ts-w-tall) * 16 / 9); }

.wz-ts-rail__track {
  display: flex;
  gap: var(--wz-ts-gap);

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x proximity;
  scroll-behavior: smooth;

  margin-inline: calc(var(--wz-ts-bleed) * -1);
  padding-inline: var(--wz-ts-bleed);
  scroll-padding-inline: var(--wz-ts-bleed);

  padding-block: 4px 10px;

  scrollbar-width: thin;
  scrollbar-color: var(--wz-line-warm) transparent;
}

.wz-ts-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.wz-ts-rail--wide .wz-ts-card { width: var(--wz-ts-w-wide); }
.wz-ts-rail--tall .wz-ts-card { width: var(--wz-ts-w-tall); }

.wz-ts-card__link {
  position: relative;
  display: block;
  border-radius: var(--wz-ts-radius);
  overflow: hidden;
  background: var(--wz-line-warm-soft);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.wz-ts-card__poster {
  display: block;
  width: 100%;
  height: auto;
}

.wz-ts-rail--wide .wz-ts-card__poster { aspect-ratio: 16 / 9; }
.wz-ts-rail--tall .wz-ts-card__poster { aspect-ratio: 9 / 16; }

.wz-ts-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 23, 23, .16);
}

.wz-ts-card__link:focus-visible {
  outline: 2px solid var(--wz-brand);
  outline-offset: 3px;
}

.wz-ts-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 8, 10, .28) 100%);
  pointer-events: none;
}

.wz-ts-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;

  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: var(--wz-btn-bg);
  box-shadow: 0 4px 14px rgba(23, 23, 23, .28);
  transition: transform .18s ease, background .18s ease;
}

.wz-ts-card__play svg {
  width: 20px;
  height: 20px;

  margin-left: 2px;
  fill: #fff;
}

.wz-ts-card__link:hover .wz-ts-card__play {
  background: var(--wz-btn-bg-hover);
  transform: translate(-50%, -50%) scale(1.06);
}

.wz-ts-card__name {
  margin-top: 12px;
  font-family: var(--wz-ui-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wz-ink);
}

.wz-ts-card__field {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  color: var(--wz-ink-soft);
}

.wz-ts-nav {
  position: absolute;
  top: calc(var(--wz-ts-poster-h) / 2 + 4px);
  transform: translateY(-50%);
  z-index: 2;

  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--wz-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wz-ink);
  box-shadow: 0 4px 14px rgba(23, 23, 23, .14);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease;
}

.wz-ts-nav svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.wz-ts-nav--prev { left: calc(var(--wz-ts-bleed) * -1 + 2px); }
.wz-ts-nav--next { right: calc(var(--wz-ts-bleed) * -1 + 2px); }

.wz-ts-nav:hover { background: var(--wz-tint); }

.wz-ts-nav:focus-visible {
  outline: 2px solid var(--wz-brand);
  outline-offset: 3px;
}

.wz-ts-nav[hidden] { display: none; }

.wz-ts .wz-cta2 { margin-top: 38px; }

.wz-ts-js .wz-ts-rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: var(--d, 0s);
}

.wz-ts-js .wz-ts-rv.is-in { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .wz-ts { --wz-ts-gap: 14px; }

  .wz-ts-rail { margin-top: 20px; }

  .wz-ts-nav { display: none; }

  .wz-ts-card__play { width: 48px; height: 48px; }
  .wz-ts-card__play svg { width: 17px; height: 17px; }

  .wz-ts-card__name { margin-top: 10px; font-size: 15px; }
  .wz-ts-card__field { font-size: 13px; }

  .wz-ts .wz-cta2 { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .wz-ts-js .wz-ts-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .wz-ts-rail__track { scroll-behavior: auto; }

  .wz-ts-card__link,
  .wz-ts-card__play,
  .wz-ts-nav { transition: none; }

  .wz-ts-card__link:hover { transform: none; }
  .wz-ts-card__link:hover .wz-ts-card__play { transform: translate(-50%, -50%); }
}
