.tongda_banner_main {
  width: 100%;
  position: relative;
}

.tongda_banner_swiper {
  width: 100%;
  height: 100%;
  aspect-ratio: 1920 / 960;
}

.tongda_banner_slide {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Image */
.tongda_banner_slide .tongda_banner_image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Video wrapper */
.tongda_banner_video_wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

/* Hide video controls */
.tongda_banner_video::-webkit-media-controls,
.tongda_banner_video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Pause button */
.tongda_banner_video_pause_btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 6.125rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.tongda_banner_video_pause_btn_inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
}

.tongda_banner_video_pause_btn svg {
  position: relative;
  z-index: 3;
  transform: translateX(3px);
}

.tongda_banner_video_wrapper.paused .tongda_banner_video_pause_btn {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* Ripple */
.tongda_banner_video_pause_btn .ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
  animation: tongda-banner-ripple 3s linear;
}

@keyframes tongda-banner-ripple {
  to {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Pagination */
.tongda_banner_pagination {
  position: absolute;
  bottom: 1.25rem !important;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
}

.tongda_banner_pagination .swiper-pagination-bullet {
  width: 3rem;
  height: 0.5rem;
  margin: 0 !important;
  border-radius: 1.25rem;
  background: #fff;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tongda_banner_pagination .swiper-pagination-bullet-active {
  background: var(--color-primary);
}

@media screen and (max-width: 992px) {
  .tongda_banner_pagination {
    bottom: 0.875rem;
    gap: 0.75rem;
  }
}

@media screen and (max-width: 768px) {
  .tongda_banner_video_pause_btn {
    width: 54px;
  }

  .tongda_banner_pagination {
    bottom: 0.625rem;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 576px) {
  .tongda_banner_pagination {
    bottom: 0.5rem;
    gap: 0.375rem;
  }
}
