/* ---- Video container ---- */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 40%;            /* desktop-ish aspect */
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 130%;                    /* base zoom */
  transform: translateY(-50%);     /* vertical centering of zoom */
  border: none;
}

/* ---- Overlay + content ---- */
.hero-content-wrapper {
  position: relative;
  display: inline-block;
  margin: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  border-radius: 0.5rem;
  z-index: 1;
  pointer-events: none;            /* don’t block clicks */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  text-align: left;
  padding: 10px;
  color: #fff;
}

.hero-title,
.hero-description { color: #fff; }

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0;
}

/* ---- Controls (content + button stack) ---- */
.yt-controls {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;                      /* above overlay */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: .5rem;
}

.yt-controls .btn-hero {
  margin: 0;
  align-self: auto;
  float: none !important;
  position: static !important;
}

/* High-visibility keyboard focus ring */
.yt-controls .btn-hero:focus,
.yt-controls .btn-hero:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0,0,0,.65) !important;
}

.yt-controls .btn-hero:focus:not(:focus-visible){
  box-shadow: none !important;
  outline: none !important;
}

@media (forced-colors: active){
  .yt-controls .btn-hero:focus{
    outline: 2px solid ButtonText !important;
    outline-offset: 4px;
    box-shadow: none !important;
  }
}

/* ---- Desktop tweaks ---- */
@media (min-width: 769px) {
  .video-container { padding-bottom: 40%; }
  .video-container iframe {
    height: 140%;                 /* a bit more zoom on desktop */
    top: -20%;                    /* bias upward to keep heads framed */
    transform: none;
  }
  .yt-controls {
    bottom: 2rem;
    left: 2rem;
  }
}

/* ---- Mobile tweaks ---- */
@media (max-width: 768px) {
  .video-container { padding-bottom: 75%; }   /* taller for phones */
  .video-container iframe {
    height: 130%;
    width: 200%;                  /* wider crop for tall viewport */
    left: 50%;
    top: -10%;
    transform: translateX(-50%);  /* horizontal centering */
  }

  .hero-content { padding: 15px; max-width: 100%; }
  .hero-title { font-size: 1.5rem; }
  .hero-description { font-size: 1rem; }

  .yt-controls {
    left: 0.5rem !important;
    bottom: 0.5rem;
    width: calc(100% - 1rem);
  }
}