.how-to-video-placement {
  display: block;
  width: 100%;
}

.how-to-video-placement > h1,
.how-to-video-placement > h2,
.how-to-video-placement > h3 {
  margin-bottom: 0;
}

.how-to-video-placement > .how-to-video-btn {
  display: flex;
  width: max-content;
  margin: 10px auto 0;
}

.how-to-video-btn {
  appearance: none;
  border: 1px solid #c28a19;
  border-radius: 8px;
  background: #fff8e6;
  color: #3f2a05;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 11px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(63, 42, 5, 0.08);
}

.how-to-video-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #a86f00;
}

.how-to-video-btn:hover {
  background: #fff1ca;
  border-color: #a86f00;
}

.how-to-video-btn:focus-visible {
  outline: 3px solid rgba(194, 138, 25, 0.35);
  outline-offset: 2px;
}

.how-to-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.how-to-video-modal.is-open {
  display: flex;
}

.how-to-video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 32, 0.72);
}

.how-to-video-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  background: #111827;
  border: 1px solid rgba(255, 248, 230, 0.2);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.how-to-video-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.how-to-video-close:focus-visible {
  outline: 3px solid rgba(255, 248, 230, 0.45);
  outline-offset: 2px;
}

.how-to-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.how-to-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
  background: #000;
}

@media (max-width: 640px) {
  .how-to-video-placement {
    display: block;
  }

  .how-to-video-btn {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .how-to-video-modal {
    padding: 12px;
  }

  .how-to-video-dialog {
    max-height: calc(100vh - 24px);
  }
}
