/* =========================================================================
   Chi tiết trải nghiệm — Video shares carousel
   ========================================================================= */

.exp-dshares {
  padding: 48px 75px;
}

.exp-dshares .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Carousel wrapper ---------------------------------------------------- */
.exp-dshares__carousel {
  position: relative;
  max-width: 1070px;
  width: 100%;
  margin: 0 auto;
}

.exp-dshares__swiper {
  width: 100%;
  overflow: hidden;
}

/* --- Slide --------------------------------------------------------------- */
.exp-dshares__slide {
  display: flex !important;
  flex-direction: column;
  height: auto;
}

/* --- Media (poster + play) ----------------------------------------------- */
.exp-dshares__media {
  position: relative;
  width: 100%;
  max-height: 682px;
  aspect-ratio: 1070 / 682;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.exp-dshares__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-dshares__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s ease;
}

.exp-dshares__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.exp-dshares__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

/* --- H3 title ------------------------------------------------------------ */
.exp-dshares__item-title {
  color: #293948;
  font-family: var(--font-hn);
  font-weight: 500;
  font-size: 20px;
  line-height: 138%;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 10px;
}

/* --- Nav buttons --------------------------------------------------------- */
.exp-dshares__prev,
.exp-dshares__next {
  position: absolute;
  top: calc(min(100%, 1070px) * 0.3187);
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  line-height: 0;
}

.exp-dshares__prev {
      left: calc((1100px - min(100vw, 1440px)) / 2);
}

.exp-dshares__next {
  right: calc((1100px - min(100vw, 1440px)) / 2);
}

.exp-dshares__prev:disabled,
.exp-dshares__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* --- Dots pagination ----------------------------------------------------- */
.exp-dshares .exp-dshares__dots.swiper-pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin-top: 24px;
}

.exp-dshares__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 4px;
  background: #293948;
  opacity: 0.3;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.exp-dshares__dots .swiper-pagination-bullet-active {
  width: 24px;
  opacity: 1;
}

/* --- Responsive ---------------------------------------------------------- */
@media screen and (max-width: 1220px) {
  .exp-dshares__prev {
    left: 8px;
  }
  .exp-dshares__next {
    right: 8px;
  }
  .exp-dshares__prev svg rect,
  .exp-dshares__next svg rect {
    fill: #323F48;
    fill-opacity: 0.5;
  }
}

@media screen and (max-width: 1024px) {
  .exp-dshares {
    padding: 40px 40px;
  }

  .exp-dshares__prev,
  .exp-dshares__next {
    width: 40px;
    height: 40px;
  }
  .exp-dshares__prev svg,
  .exp-dshares__next svg {
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 767px) {
  .exp-dshares {
    padding: 32px 16px;
  }

  .exp-dshares__media {
    border-radius: 16px;
  }

  .exp-dshares__item-title {
    font-size: 17px;
  }

  .exp-dshares__prev,
  .exp-dshares__next {
    width: 36px;
    height: 36px;
  }
  .exp-dshares__prev svg,
  .exp-dshares__next svg {
    width: 36px;
    height: 36px;
  }

  .exp-dshares .exp-dshares__dots.swiper-pagination {
    margin-top: 16px;
  }
}
