/* Videos inside the onboarding guide */
.sb-video { width: 100%; margin: 16px 0; }
.sb-video-frame {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 10px; background: #000;
  border: 1px solid rgba(127, 127, 127, .25);
}
.sb-video-frame img,
.sb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sb-video-play {
  position: absolute; top: 50%; left: 50%; width: 60px; height: 42px;
  transform: translate(-50%, -50%); border-radius: 10px;
  background: #5fc56a; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); transition: transform .2s ease;
}
.sb-video-play::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.sb-video-frame:hover .sb-video-play,
.sb-video-frame:focus-visible .sb-video-play { transform: translate(-50%, -50%) scale(1.08); }
.sb-video-caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 8px; font-family: Inter, sans-serif; font-size: 13px; line-height: 1.4; text-align: left; color: #8a8a8a;
}
.sb-video-time { flex-shrink: 0; opacity: .7; font-variant-numeric: tabular-nums; }

.sb-video-hero { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 860px; margin: 0 auto 40px; }
.sb-video-hero .sb-video { margin: 0 0 12px; }
.sb-video-playlist { font-size: 14px; }

/* One row; the next card peeks in to show there is more to scroll */
.sb-carousel { position: relative; width: 100%; min-width: 0; margin: 16px 0; }
.sb-carousel-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.sb-carousel-track::-webkit-scrollbar { display: none; }
.sb-carousel-track .sb-video { flex: 0 0 44%; margin: 0; scroll-snap-align: start; }
.sb-carousel-btn {
  position: absolute; top: calc(50% - 16px); transform: translateY(-50%); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0 0 3px; border-radius: 50%;
  border: 1px solid rgba(127, 127, 127, .35); background: #fff; color: #111;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.sb-carousel-btn[hidden] { display: none; }
.sb-carousel-btn.is-prev { left: -12px; }
.sb-carousel-btn.is-next { right: -12px; }

@media screen and (max-width: 767px) {
  .sb-carousel-track .sb-video { flex-basis: 84%; }
  .sb-carousel-btn.is-prev { left: -8px; }
  .sb-carousel-btn.is-next { right: -8px; }
  .sb-video-hero { margin-bottom: 24px; }
}
