/*
 * SIGMAN UGC video reviews — shared by the homepage (JOIN OUR COMMUNITY) and the
 * PDP (What Our Clients Say). Horizontal snap-scroll carousel like the live theme.
 */
.sgm-vrev__heading { text-align: center; margin-bottom: 4px; }
.sgm-vrev__sub { text-align: center; opacity: 0.65; margin-bottom: var(--sgm-space-24); }

/* Wrapper + prev/next arrows (vrev.js drives them) */
.sgm-vrev__wrap { position: relative; }
.sgm-vrev__nav {
  position: absolute;
  top: 34%; /* vertically centered on the video area, not the caption */
  transform: translateY(-50%);
  z-index: 4;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border: 1px solid rgba(9, 36, 79, 0.15);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(9, 36, 79, 0.18);
  --icon-stroke-width: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sgm-vrev__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.sgm-vrev__nav[hidden] { display: none; }
.sgm-vrev__nav svg { width: 18px; height: 18px; }
.sgm-vrev__nav--prev { left: -10px; }
.sgm-vrev__nav--next { right: -10px; }
@media screen and (max-width: 749px) {
  .sgm-vrev__nav { width: 38px; height: 38px; }
  .sgm-vrev__nav--prev { left: 4px; }
  .sgm-vrev__nav--next { right: 4px; }
}

.sgm-vrev__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(56vw, 210px); /* narrower cards = shorter 9:16 media = shorter section */
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.sgm-vrev__track:active { cursor: grabbing; }
/* slim brand scrollbar so it reads as scrollable */
.sgm-vrev__track::-webkit-scrollbar { height: 6px; }
.sgm-vrev__track::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.06); border-radius: 999px; }
.sgm-vrev__track::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 999px; }

.sgm-vrev__card {
  scroll-snap-align: start;
  border: 1px solid rgba(9, 36, 79, 0.1);
  border-radius: var(--sgm-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sgm-shadow-sm);
  transition: transform var(--sgm-dur-fast) var(--sgm-ease);
}
.sgm-vrev__card:hover { transform: translateY(-3px); box-shadow: var(--sgm-shadow-md); }

.sgm-vrev__media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.sgm-vrev__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Centered play icon button */
.sgm-vrev__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(9, 36, 79, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background 0.2s ease;
  padding-left: 3px;
}
.sgm-vrev__play-btn:hover {
  background: var(--color-primary, #09244f);
  transform: translate(-50%, -50%) scale(1.1);
}
.sgm-vrev__card.is-playing .sgm-vrev__play-btn {
  opacity: 0;
  pointer-events: none;
}
.sgm-vrev__card.is-playing:hover .sgm-vrev__play-btn {
  opacity: 0.4;
  pointer-events: auto;
}

/* Enlarge / Fullscreen modal trigger button */
.sgm-vrev__expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.sgm-vrev__expand:hover {
  background: var(--color-primary, #09244f);
  transform: scale(1.1);
  border-color: #fff;
}

/* Sound button */
.sgm-vrev__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  z-index: 4;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sgm-vrev__sound:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.85);
}

.sgm-vrev__body { padding: 12px 14px 16px; }
.sgm-vrev__stars { color: #f5a623; font-size: 0.8rem; letter-spacing: 2px; }
.sgm-vrev__title { font-size: 1.15rem; margin: 6px 0 4px; } /* Bebas below ~18px loses its counters */
.sgm-vrev__text {
  font-size: 0.8rem; line-height: 1.5; opacity: 0.75; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; /* equal-height captions keep cards compact */
}
.sgm-vrev__name { font-size: 0.78rem; font-weight: 600; margin: 0; }
.sgm-vrev__verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #146c2e;
  background: rgba(26, 127, 75, 0.12);
  border: 1px solid rgba(26, 127, 75, 0.25);
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Fullscreen Video Review Modal (Lightbox) ── */
.sgm-vmodal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sgm-vmodal.is-active {
  opacity: 1;
  visibility: visible;
}
.sgm-vmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sgm-vmodal__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  max-height: 92vh;
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sgm-vmodal.is-active .sgm-vmodal__dialog {
  transform: scale(1);
}
.sgm-vmodal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.sgm-vmodal__close:hover {
  background: #c53030;
  transform: scale(1.1);
  border-color: #fff;
}
.sgm-vmodal__player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: calc(92vh - 130px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sgm-vmodal__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.sgm-vmodal__info {
  padding: 16px 20px 18px;
  background: linear-gradient(180deg, rgba(14, 24, 44, 0.96) 0%, rgba(7, 14, 26, 0.99) 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sgm-vmodal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.sgm-vmodal__stars {
  color: #f5a623;
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.sgm-vmodal__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.sgm-vmodal__badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.sgm-vmodal__title {
  font-family: var(--font-heading-family, inherit);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  margin: 4px 0;
  color: #fff;
  line-height: 1.25;
}
.sgm-vmodal__text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-height: 80px;
  overflow-y: auto;
}
@media screen and (max-width: 480px) {
  .sgm-vmodal__dialog {
    width: 96vw;
    border-radius: 16px;
  }
  .sgm-vmodal__info {
    padding: 12px 14px 14px;
  }
}
