.reviews {
  padding-block: 20px;
}

.reviews__card {
  position: relative;
  padding: var(--card-pad-top) 60px 60px;
  background: var(--color-pink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(20px, 2.128cqw, 40px);
  margin-bottom: calc(clamp(20px, 2.128cqw, 40px) + 2.6cqw);
}

.reviews__title {
  color: var(--color-white);
}

.reviews__note {
  width: max(45.53%, 460px);
  min-width: min(100%, 320px);
  font-size: var(--fs-h4);
  color: var(--color-white);
}

.reviews__hl {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 0 6px;
  margin-left: -6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.reviews__viewport { overflow: hidden; }

.reviews__track {
  --per-page: 8;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.reviews__track::-webkit-scrollbar { display: none; }

.reviews__page {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-cards);
  list-style: none;
  grid-auto-rows: min-content;
}

.reviews__item {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.638cqw, 12px);
}

.reviews__arrows {
  display: flex;
  justify-content: flex-end;
  gap: clamp(6px, 0.532cqw, 10px);
  margin-top: clamp(20px, 2.128cqw, 40px);
}

.reviews__arrows[hidden] { display: none; }

.reviews__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: clamp(44px, 2.66cqw, 50px);
  height: clamp(44px, 2.66cqw, 50px);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.reviews__arrow:hover:not(:disabled) {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-pink);
}

.reviews__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.reviews__play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 425 / 300;
  border-radius: var(--radius-btn);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.reviews__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.reviews__play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.reviews__play-circle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.reviews__play-circle svg { transform: translateX(10%); }

.reviews__play:hover .reviews__play-circle {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

.reviews__play:hover .reviews__poster { transform: scale(1.04); }

.reviews__mascot {
  position: absolute;
  z-index: 1;
  height: auto;
  pointer-events: none;
  top: 1.031cqw;
  right: 2cqw;
  width: clamp(90px, 10cqw, 190px);
}

@media (max-width: 1280px) {
  .reviews__track { --per-page: 6; }
  .reviews__page { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .reviews__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .reviews__note { width: auto; }

  .reviews__card { padding: 40px; }

  .reviews__track { --per-page: 4; }
  .reviews__page { grid-template-columns: repeat(2, 1fr); }

  .reviews__play-circle { width: 70px; height: 70px; }
}

@media (max-width: 767px) {
  .reviews__mascot {
    top: auto;
    right: auto;
    bottom: 12px;
    left: 16px;
    width: 76px;
  }

  .reviews__card { padding: 30px; }

  .reviews__head { margin-bottom: 20px; }

  .reviews__track { --per-page: 1; }
  .reviews__page { grid-template-columns: 1fr; }

  .reviews__arrows { justify-content: center; }
}
