/* Ringowings shared video carousel styling (pairs with assets/carousel.js) */

.rw-carousel.swiper {
  width: 100%;
  padding: 20px 0 44px;
}

.rw-carousel .swiper-slide {
  width: 220px;
  height: auto;
}

.rw-carousel-slide {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rw-carousel-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #0A0A0F;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.swiper-slide-active .rw-carousel-media {
  border-color: rgba(0, 217, 255, 0.55);
  box-shadow: 0 0 32px rgba(255, 46, 156, 0.35), 0 0 18px rgba(0, 217, 255, 0.3);
}

.rw-carousel-poster {
  position: absolute;
  inset: 0;
  display: block;
}

.rw-carousel-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rw-carousel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff2e9c, #00d9ff);
  box-shadow: 0 0 24px rgba(255, 46, 156, 0.5);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.rw-carousel-media:hover .rw-carousel-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.rw-carousel-play svg {
  margin-left: 3px;
}

.rw-carousel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0A0A0F;
}

.rw-carousel-media:not(.rw-carousel-playing) .rw-carousel-video {
  display: none;
}

.rw-carousel-media.rw-carousel-playing .rw-carousel-poster {
  display: none;
}

.rw-carousel-title {
  margin: 0;
  font-size: 13px;
  color: #9a9aab;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rw-carousel .swiper-slide-active .rw-carousel-title {
  color: #ededf2;
}

.rw-carousel[dir="rtl"] .rw-carousel-play svg {
  margin-left: 0;
  margin-right: 3px;
  transform: scaleX(-1);
}

/* Prev/next arrow buttons (Swiper Navigation module) */

.rw-carousel {
  --swiper-navigation-sides-offset: 4px;
}

.rw-carousel-nav {
  top: 50%;
  margin-top: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #00d9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rw-carousel-nav::after {
  content: none;
}

.rw-carousel-nav:hover {
  color: #ff2e9c;
  border-color: rgba(255, 46, 156, 0.55);
  background: rgba(10, 10, 15, 0.85);
  box-shadow: 0 0 18px rgba(255, 46, 156, 0.55);
}

.rw-carousel-nav.swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.rw-carousel[dir="rtl"] .rw-carousel-nav svg {
  transform: scaleX(-1);
}

@media (max-width: 640px) {
  .rw-carousel-nav {
    width: 32px;
    height: 32px;
  }
}
