/* Autoplaying featured-video panel with an accessible lower-third and audio control. */
.video-playback-slot {
  position: relative;
  display: block;
  width: min(350px, calc(100% - 32px));
  aspect-ratio: 350 / 438;
  margin: 24px auto 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: #12060b;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.video-download-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}

.video-playback-slot video {
  display: block;
  width: 100%;
  height: 100%;
  background: #12060b;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.video-download-link::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, transparent 48%, rgba(8, 3, 6, .14) 62%, rgba(8, 3, 6, .86) 100%);
  pointer-events: none;
}

.video-overlay-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 33.333%;
  padding: 18px 18px 20px;
  box-sizing: border-box;
  color: #fff;
  pointer-events: none;
}

.video-overlay-copy strong {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(23px, 6.1vw, 30px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.03;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.video-overlay-summary {
  display: block;
  max-width: 268px;
  margin-top: 7px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .005em;
  line-height: 1.35;
  text-shadow: 0 1px 7px rgba(0, 0, 0, .72);
}

/* Upper-right sound control: muted by default for autoplay, audible after an explicit tap. */
.video-audio-toggle {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 12px;
  background: rgba(16, 8, 13, .62);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.video-audio-toggle:hover,
.video-audio-toggle:focus-visible {
  border-color: rgba(255, 215, 121, .95);
  background: rgba(18, 71, 49, .86);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .34), 0 0 0 3px rgba(255, 184, 28, .22);
  outline: none;
  transform: translateY(-1px);
}

.video-audio-toggle:active {
  transform: translateY(1px) scale(.96);
}

.video-audio-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.video-audio-toggle__speaker { fill: currentColor; stroke: none; }
.video-audio-toggle__wave { opacity: 0; transform-origin: center; }
.video-audio-toggle__mute { color: #ffb6c1; }
.video-audio-toggle[data-audio-state="sound-on"] {
  border-color: rgba(255, 215, 121, .92);
  background: rgba(0, 122, 77, .9);
}
.video-audio-toggle[data-audio-state="sound-on"] .video-audio-toggle__wave { opacity: 1; }
.video-audio-toggle[data-audio-state="sound-on"] .video-audio-toggle__mute { display: none; }
.video-audio-toggle[data-audio-state="muted"] .video-audio-toggle__wave { display: none; }

.video-download-link:focus-visible {
  outline: 3px solid #ffb131;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .video-playback-slot {
    margin: 16px auto 12px;
    border-radius: 14px;
  }

  .video-overlay-copy {
    padding: 15px 15px 17px;
  }

  .video-overlay-summary {
    max-width: 250px;
    margin-top: 5px;
    font-size: 11px;
  }

  .video-audio-toggle {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .video-audio-toggle svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-playback-slot {
    background: #12060b url('../images/video/venom-in-couture-poster.webp') center / cover no-repeat;
  }

  .video-playback-slot video {
    display: none;
  }

  .video-audio-toggle {
    transition: none;
  }
}
