:root {
  --dys-w: min(1200px, 92vw);
  --dys-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* container */
.dys-slider {
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  position: relative;
  display: block;
}

.dys-viewport {
  position: relative;
  overflow: hidden;
}

.dys-track {
  display: flex;
  transition: transform .55s var(--dys-ease);
  will-change: transform;
}

/* Show N per view using --per (set by JS) */
.dys-slider {
  --per: 3;
}

.dys-card {
  flex: 0 0 calc(100% / var(--per));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px;
  box-sizing: border-box;
}

.yt-button-arrow {
  min-height: 26px;
  line-height: 2.18181818;
  padding: 0 6px;
  font-size: 11px;
}

/* media */
.dys-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9/9;
  border-radius: 8px;
  background: #000;
}

.dys-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* play overlay */
.dys-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.dys-play>button {
  all: unset;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.dys-play svg {
  width: 28px;
  height: 28px;
  fill: #000;
}

/* Title (optional) */
.dys-meta {
  margin-top: 6px;
}

.dys-meta h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: #222;
}

/* Nav: icon-only chevrons */
.dys-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  box-shadow: none;
  border: 0;
  width: auto;
  height: auto;
  padding: 10px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.dys-prev {
  left: 8px;
}

.dys-next {
  right: 8px;
}

.dys-nav svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #868686;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dys-nav:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .4);
  outline-offset: 2px;
}

/* Pagination dots (pages, not items) */
.dys-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
}

.dys-dots .dys-dot {
  all: unset;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cfcfcf;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0;
  line-height: 0;
}

.dys-dots .dys-dot[aria-current="true"] {
  background: #111;
}

.dys-dots .dys-dot:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.dys-dots .dys-dot::-moz-focus-inner {
  border: 0;
  padding: 0;
}


@media (max-width: 860px) {
  .dys-slider { --per: 1 !important; }
}