.sp-video {
  --sp-video-accent: var(--copper, #c8914a);
  --sp-video-border: var(--divider, rgba(200, 145, 74, 0.26));
  --sp-video-copy: var(--warm-gray, #b0a594);
  --sp-video-title: var(--warm-white, #ede7dd);
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.sp-video__frame {
  aspect-ratio: 16 / 9;
  background: #080807;
  border: 1px solid var(--sp-video-border);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.sp-video__frame::after {
  background: linear-gradient(180deg, rgba(5, 5, 4, 0.08) 24%, rgba(5, 5, 4, 0.76) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.sp-video__poster {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: filter 220ms ease, transform 420ms ease;
  width: 100%;
}

.sp-video__play {
  align-items: center;
  appearance: none;
  background: rgba(10, 10, 9, 0.88);
  border: 1px solid rgba(237, 231, 221, 0.56);
  bottom: clamp(18px, 4vw, 34px);
  color: var(--sp-video-title);
  cursor: pointer;
  display: none;
  font-family: var(--sans, "Helvetica Neue", sans-serif);
  gap: 14px;
  left: clamp(18px, 4vw, 34px);
  min-height: 48px;
  padding: 12px 17px;
  position: absolute;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  z-index: 2;
}

.sp-video-ready .sp-video__play {
  display: flex;
}

.sp-video__play::before {
  color: var(--sp-video-accent);
  content: "PLAY";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.sp-video__play-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.35;
}

.sp-video__play:hover {
  background: rgba(10, 10, 9, 0.98);
  border-color: var(--sp-video-accent);
  transform: translateY(-2px);
}

.sp-video__play:focus-visible,
.sp-video__external:focus-visible {
  outline: 2px solid var(--sp-video-accent);
  outline-offset: 4px;
}

.sp-video__frame iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}

.sp-video__meta {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
  padding-top: 12px;
}

.sp-video__context,
.sp-video__external {
  font-family: var(--sans, "Helvetica Neue", sans-serif);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.055em;
  line-height: 1.5;
}

.sp-video__context {
  color: var(--sp-video-copy);
  min-width: 0;
  overflow-wrap: anywhere;
}

.sp-video__external {
  color: var(--sp-video-link, var(--sp-video-accent));
  flex: 0 0 auto;
  text-decoration: none;
}

.sp-video__external:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sp-video--light {
  --sp-video-copy: #5d574f;
  --sp-video-link: #6f461c;
  --sp-video-title: #ede7dd;
}

.sp-video--light .sp-video__external:focus-visible {
  outline-color: var(--sp-video-link);
}

.sp-video--portrait .sp-video__poster {
  object-position: center 30%;
}

.sp-video--compact .sp-video__frame {
  aspect-ratio: 4 / 3;
}

.sp-video--compact .sp-video__play {
  bottom: 14px;
  left: 14px;
  right: 14px;
}

.sp-video--testimonial {
  margin: 32px auto 0;
  max-width: 560px;
}

.sp-video--playing .sp-video__frame::after,
.sp-video--playing .sp-video__play {
  display: none;
}

.video-wrapper.sp-video,
.testimonial-video-wrapper.sp-video,
.yp-feature-video.sp-video,
.yp-tool-video.sp-video,
.bj-video.sp-video {
  aspect-ratio: auto;
  height: auto;
  margin-bottom: 0;
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
  position: relative;
}

.yp-feature-video.sp-video .sp-video__frame {
  aspect-ratio: 7 / 5;
  min-height: 480px;
}

.yp-feature-video.sp-video .sp-video__poster {
  object-position: center 28%;
}

.yp-feature-video.sp-video + .yp-feature-copy {
  min-width: 0;
}

.sp-video__status,
.sp-video noscript {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 720px) {
  .sp-video__play {
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
  }

  .sp-video__play-label {
    font-size: 12px;
  }

  .sp-video__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
  }

  .yp-feature-video.sp-video .sp-video__frame {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-video__poster,
  .sp-video__play {
    transition: none;
  }
}
