.home-videos-section {
  padding: 48px 16px 32px;
  background: #f5f7fb;
  text-align: center;
}

.home-videos-inner {
  max-width: 920px;
  margin: 0 auto;
}

.home-videos-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 28px;
}

.home-videos-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 340px;
}

.home-videos-stage {
  flex: 1;
  max-width: 720px;
  overflow: hidden;
  perspective: 1200px;
}

.home-videos-track {
  position: relative;
  height: 320px;
  margin: 0 auto;
}

.home-videos-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 280px;
  margin-left: -100px;
  margin-top: -140px;
  transition: transform 0.45s ease, opacity 0.45s ease, z-index 0s;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

.home-videos-slide.is-active {
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  transform: translateX(0) scale(1) rotate(0deg) !important;
}

.home-videos-slide.is-prev {
  opacity: 0.65;
  z-index: 3;
  transform: translateX(-120px) scale(0.88) rotate(-6deg) !important;
}

.home-videos-slide.is-next {
  opacity: 0.65;
  z-index: 3;
  transform: translateX(120px) scale(0.88) rotate(6deg) !important;
}

.home-videos-slide.is-far {
  opacity: 0.2;
  z-index: 1;
  transform: translateX(0) scale(0.75) !important;
}

.home-videos-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

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

.home-videos-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.home-videos-slide.is-playing .home-videos-play,
.home-videos-slide.is-playing .home-videos-poster {
  display: none;
}

.home-videos-player-wrap {
  position: absolute;
  inset: 0;
  background: #000;
}

.home-videos-player-wrap video,
.home-videos-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.home-videos-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.home-videos-nav:hover {
  background: #1d4ed8;
}

.home-videos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.home-videos-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.home-videos-dot.is-active {
  background: #2563eb;
  transform: scale(1.15);
}

@media (max-width: 640px) {
  .home-videos-slide {
    width: 160px;
    height: 240px;
    margin-left: -80px;
    margin-top: -120px;
  }

  .home-videos-track {
    height: 260px;
  }

  .home-videos-slide.is-prev {
    transform: translateX(-90px) scale(0.82) rotate(-5deg) !important;
  }

  .home-videos-slide.is-next {
    transform: translateX(90px) scale(0.82) rotate(5deg) !important;
  }

  .home-videos-nav {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}
