.hns-youtube-video {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hns-youtube-video *,
.hns-youtube-video *::before,
.hns-youtube-video *::after {
  box-sizing: border-box;
}

.hns-youtube-video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #d8d2c8;
  background-position: center;
  background-size: cover;
  line-height: 0;
  cursor: pointer;
}

.hns-youtube-video__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.hns-youtube-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease;
}

.hns-youtube-video__frame:hover .hns-youtube-video__overlay,
.hns-youtube-video__frame:focus-visible .hns-youtube-video__overlay {
  background: rgba(0, 0, 0, 0.18);
}

.hns-youtube-video__frame:focus-visible {
  outline: 2px solid rgba(220, 163, 48, 0.95);
  outline-offset: 4px;
}

.hns-youtube-video__frame.is-loaded {
  cursor: default;
}

.hns-youtube-video__action {
  margin-top: 34px;
}

@media (max-width: 1024px) {
  .hns-youtube-video__action {
    margin-top: 26px;
  }
}
