.sg-home-video {
  max-width: 840px;
  margin: 0 auto 64px;
}

.sg-home-video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #2b4657;
  border-radius: 18px;
  background: #0e1c2b;
  box-shadow: 0 12px 32px rgb(14 28 43 / 16%);
}

.sg-home-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0e1c2b;
}

.sg-home-video-message {
  position: absolute;
  top: clamp(9px, 3vw, 24px);
  left: clamp(9px, 3vw, 24px);
  width: min(350px, calc(100% - 18px));
  padding: clamp(8px, 2vw, 18px);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  background: rgb(14 28 43 / 94%);
  color: #fff;
  pointer-events: none;
}

.sg-home-video-message h2 {
  margin: 0 0 8px;
  font: 700 clamp(14px, 2.4vw, 22px) / 1.25 system-ui, sans-serif;
  text-wrap: balance;
}

.sg-editorial .sg-home-video-message a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 5px 12px;
  border-radius: 7px;
  background: #f4db82;
  color: #132e3d;
  font: 750 clamp(12px, 2vw, 15px) / 1.25 system-ui, sans-serif;
  text-decoration: none;
  pointer-events: auto;
}

.sg-editorial .sg-home-video-message a:hover,
.sg-editorial .sg-home-video-message a:focus-visible {
  background: #fff2bc;
}

.sg-home-video video:fullscreen {
  object-fit: contain;
}

@media (max-width: 540px) {
  .sg-home-video-frame {
    display: flex;
    flex-direction: column;
  }

  .sg-home-video-message {
    position: static;
    order: -1;
    width: auto;
    padding: 14px;
    border: 0;
    border-radius: 0;
  }
}
