/* Forayz how-to video box (includes/forayz-videos.php, ticket 800).
   Poster + play button until tapped, then the youtube-nocookie player.
   Play button styling follows the homepage film (homepage-blocks/homepage.html). */

.sm-forayz-video {
  max-width: 720px;
  margin: 32px auto;
  padding: 0;
}

.sm-forayz-video .sm-fv-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #e9e0cc;
  box-shadow:
    0 10px 30px rgba(26, 71, 42, 0.18),
    0 0 0 1px rgba(26, 71, 42, 0.12);
}

.sm-forayz-video iframe,
.sm-forayz-video button.sm-fv-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Kadence styles bare <button>s; reset everything it sets. */
.sm-forayz-video button.sm-fv-play {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
}

.sm-forayz-video button.sm-fv-play:hover,
.sm-forayz-video button.sm-fv-play:focus {
  background: transparent;
}

.sm-forayz-video button.sm-fv-play:focus-visible {
  outline: 3px solid #d4a853;
  outline-offset: -3px;
}

.sm-forayz-video .sm-fv-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sits in the lower third so it doesn't cover the card's title. */
.sm-forayz-video .sm-fv-icon {
  position: absolute;
  left: 50%;
  bottom: 9%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  background: rgba(26, 71, 42, 0.94);
  border: 2px solid #d4a853;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.sm-forayz-video .sm-fv-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -6px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #f5d89a;
}

.sm-forayz-video .sm-fv-play:hover .sm-fv-icon {
  transform: scale(1.08);
}

.sm-forayz-video .sm-fv-length {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(30, 24, 16, 0.78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.sm-forayz-video .sm-fv-caption {
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

.sm-forayz-video .sm-fv-caption strong {
  display: block;
  font-size: 16px;
  color: #2a2118;
}

.sm-forayz-video .sm-fv-caption small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b5d4d;
}

.sm-forayz-video .sm-fv-caption small a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sm-forayz-video {
    margin: 24px 0;
  }

  .sm-forayz-video .sm-fv-icon {
    width: 52px;
    height: 52px;
    margin-left: -26px;
  }

  .sm-forayz-video .sm-fv-icon::after {
    margin: -9px 0 0 -5px;
    border-width: 9px 0 9px 15px;
  }
}
