.anext-video-slider-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}

.anext-title {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  color: #1f1f1f;
  margin: 0;
}

.anext-desc {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #636363;
  margin: 0;
}

.anext-video-slider-item-page-number {
  text-align: center;
  margin: 40px 0px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-slide {
  position: relative;
}

.anext-video-slider-button-container {
  position: absolute;
  bottom: 40px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.anext-video-slider-button {
  pointer-events: auto;

  background: rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);

  color: rgba(255, 255, 255, 0.95) !important;

  padding: 16px 20px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);

  text-decoration: none;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 40px;
  width: fit-content;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.anext-video-slider-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    120% 140% at 20% 10%,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.9;
  pointer-events: none;
}

.anext-video-slider-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(0, 0, 0, 0.1)
  );
  opacity: 0.35;
  pointer-events: none;
}

.anext-video-slider-button:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.anext-video-slider-button:active {
  transform: translateY(0px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.anext-video-slider-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.25),
    0 0 0 6px rgba(0, 103, 255, 0.35),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.slick-custom-arrow {
  min-width: 48px;
}

.anext-video-slider-widget {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.anext-video-slider,
.anext-video-slider .slick-list {
  overflow: visible;
}

.anext-video-slider .slick-slide {
  transition:
    transform 300ms ease,
    opacity 300ms ease;
  opacity: 0.5;
}

.anext-video-slider .slick-slide.slick-center {
  opacity: 1;
  max-width: 900px;
}

.anext-video-slider .video-inner,
.anext-video-slider video {
  border-radius: 18px;
}

.anext-video-slider .slick-slide.slick-center video,
.anext-video-slider .slick-slide.anext-target-center video {
  padding: 0px;
  border-radius: calc(0px + 18px);
  transform: scale(1);
}

.anext-video-slider .slick-slide.slick-center.anext-leaving-center video {
  /* padding: 32px; */
  border-radius: calc(32px + 18px);
}

.anext-video-slider video {
  height: 460px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  transition: all 0.3s ease;
  border-radius: calc(32px + 18px);
  transform: scale(0.9);
}

.anext-video-slider .slick-slide .video-inner {
  position: relative;
}

.anext-video-slider .slick-slide .video-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.anext-video-slider .slick-slide.slick-center .video-inner::after {
  opacity: 0;
}

@media (max-width: 1439px) {
  .anext-video-slider .slick-slide.slick-center {
    width: 675px;
  }
  .anext-video-slider video {
    height: 345px;
  }
  .anext-video-slider-navigation {
    max-width: 690px;
  }
}

@media (max-width: 767px) {
  .anext-video-slider-navigation {
    display: flex;
    padding: 0px 16px;
  }

  .anext-video-slider-item-page-number {
    grid-area: text;
    text-align: center;
    margin: 24px 0px;
  }

  .anext-video-slider-navigation .slick-custom-prev {
    grid-area: prev;
    justify-self: end;
  }

  .anext-video-slider-navigation .slick-custom-next {
    grid-area: next;
    justify-self: start;
  }

  .anext-video-slider .slick-slide.slick-center {
    width: 335px;
  }

  .anext-video-slider .slick-slide.slick-center video,
  .anext-video-slider .slick-slide.anext-target-center video {
    padding: 0px;
    border-radius: calc(0px + 9px);
  }

  .anext-video-slider .slick-slide.slick-center.anext-leaving-center video {
    /* padding: 12px; */
    border-radius: calc(12px + 9px);
  }

  .anext-video-slider video {
    height: 175px;
    /* padding: 12px; */
    border-radius: calc(12px + 9px);
  }

  .anext-video-slider-button {
    gap: 3px;
  }

  .anext-title {
    font-size: 16px;
    line-height: 24px;
  }

  .anext-desc {
    font-size: 14px;
    line-height: 20px;
  }

  .anext-video-slider-button-container {
    bottom: 15px;
  }

  .anext-video-slider-button {
    padding: 6px 9px;
    font-size: 6px;
    line-height: 9px;
    min-height: 20px;
  }

  .anext-video-slider-button svg {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 500px) {
  .anext-video-slider-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "text text"
      "prev next";
    gap: 16px;
    align-items: center;
    justify-items: center;
    max-width: 335px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
}
