.pd-product-video {
  --pd-video-accent: var(--brand_1, #ffc42b);
  --pd-video-surface: var(--j_1_base_bg_2, #333942);
  --pd-video-border: var(--j_1_base_border, #42464d);
  --pd-video-text: var(--j_1_base_fg_1, #e7e8eb);
  box-sizing: border-box;
  width: 100%;
  margin: 18px 0 24px;
  padding: 16px;
  color: var(--pd-video-text);
  background: var(--pd-video-surface);
  border: 1px solid var(--pd-video-border);
  border-radius: 8px;
  clear: both;
}
.pd-product-video.pd-product-video-pending { display: none; }
.pd-product-video *, .pd-product-video *::before, .pd-product-video *::after { box-sizing: border-box; }
.pd-product-video-heading {
  margin: 0 0 12px;
  color: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.pd-product-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: 6px;
}
.pd-product-video-player video,
.pd-product-video-player iframe,
.pd-product-video-launch {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.pd-product-video-player video { object-fit: contain; }
.pd-product-video-launch { position: relative; padding: 0; cursor: pointer; }
.pd-product-video-launch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transition: opacity .2s ease, transform .25s ease;
}
.pd-product-video-launch:hover img { opacity: 1; transform: scale(1.015); }
.pd-product-video-play,
.pd-product-video-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 62px;
  height: 44px;
  background: var(--pd-video-accent);
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(0,0,0,.35);
  transform: translate(-50%, -50%);
}
.pd-product-video-play::after,
.pd-product-video-thumb-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #252525;
  transform: translate(-50%, -50%);
}
.pd-product-video-title { margin-top: 10px; font-weight: 600; line-height: 1.4; }
.pd-product-video-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pd-product-video-thumb {
  position: relative;
  flex: 0 0 104px;
  width: 104px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  background: #20242a;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.pd-product-video-thumb.active { border-color: var(--pd-video-accent); }
.pd-product-video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.pd-product-video-thumb:hover img, .pd-product-video-thumb.active img { opacity: 1; }
.pd-product-video-thumb-play { width: 30px; height: 22px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pd-product-video-thumb-play::after { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 8px; }
.pd-product-video-lightbox[hidden],
.pd-product-video-lightbox [hidden] { display: none !important; }
.pd-product-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: rgba(5, 8, 12, .96);
  font-family: inherit;
}
.pd-product-video-lightbox *,
.pd-product-video-lightbox *::before,
.pd-product-video-lightbox *::after { box-sizing: border-box; }
.pd-product-video-lightbox-dialog {
  display: flex;
  flex-direction: column;
  width: min(1500px, 100%);
  max-height: calc(100vh - 48px);
}
.pd-product-video-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  margin-bottom: 12px;
}
.pd-product-video-lightbox-heading {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pd-product-video-lightbox-counter {
  margin-left: 12px;
  color: #c5c9cf;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.pd-product-video-lightbox-close,
.pd-product-video-lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: #272c32;
  border: 1px solid #5b626c;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.pd-product-video-lightbox-close {
  font-size: 34px;
  line-height: 1;
}
.pd-product-video-lightbox-close:hover,
.pd-product-video-lightbox-nav:hover,
.pd-product-video-lightbox-close:focus-visible,
.pd-product-video-lightbox-nav:focus-visible {
  color: #252525;
  background: var(--brand_1, #ffc42b);
  border-color: var(--brand_1, #ffc42b);
  outline: 2px solid transparent;
}
.pd-product-video-lightbox-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
  min-height: 0;
}
.pd-product-video-lightbox-prev { grid-column: 1; grid-row: 1; }
.pd-product-video-lightbox-player {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, calc(177.78vh - 266.67px));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 60px rgba(0,0,0,.45);
}
.pd-product-video-lightbox-next { grid-column: 3; grid-row: 1; }
.pd-product-video-lightbox-player iframe,
.pd-product-video-lightbox-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  border: 0;
  object-fit: contain;
}
.pd-product-video-lightbox-nav { font-size: 25px; }
@media (max-width: 575px) {
  .pd-product-video { margin-top: 14px; padding: 12px; }
  .pd-product-video-heading { font-size: 16px; }
  .pd-product-video-play { width: 52px; height: 38px; }
  .pd-product-video-thumb { flex-basis: 88px; width: 88px; height: 56px; }
  .pd-product-video-lightbox { padding: 8px; }
  .pd-product-video-lightbox-dialog { max-height: calc(100vh - 16px); }
  .pd-product-video-lightbox-header { gap: 10px; min-height: 46px; margin-bottom: 6px; }
  .pd-product-video-lightbox-heading { font-size: 14px; }
  .pd-product-video-lightbox-counter { margin-left: 6px; font-size: 12px; }
  .pd-product-video-lightbox-close { width: 40px; height: 40px; font-size: 30px; }
  .pd-product-video-lightbox-stage { position: relative; display: block; }
  .pd-product-video-lightbox-player { width: min(100%, calc(177.78vh - 177.78px)); }
  .pd-product-video-lightbox-nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; background: rgba(39,44,50,.88); transform: translateY(-50%); }
  .pd-product-video-lightbox-prev { left: 8px; }
  .pd-product-video-lightbox-next { right: 8px; }
}
