.rutube-video-carousel {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.rutube-carousel-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.rutube-carousel-scroll::-webkit-scrollbar {
  display: none;
}

.rutube-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  aspect-ratio: 720 / 500;
  scroll-snap-stop: always;
}

.rutube-carousel-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: auto;
}

.rutube-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  pointer-events: none;
}

@media (hover: none) {
  .rutube-carousel-slide iframe {
    pointer-events: none;
  }

  .rutube-carousel-overlay {
    pointer-events: auto;
    cursor: pointer;
  }
}

.rutube-carousel-arrow {
  position: absolute;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0.8;
  user-select: none;
}

@media (min-width: 768px) {
  .rutube-carousel-arrow {
    width: 48px;
    height: 48px;
    font-size: 40px;
    padding-bottom: 10px;
  }
}

.rutube-carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

.rutube-carousel-arrow--prev {
  left: 8px;
}

.rutube-carousel-arrow--next {
  right: 8px;
}

.rutube-carousel-arrow--hidden {
  display: none;
}
