/* Hero carousel — matches the existing hero card styling exactly. */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.hero-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Hero frame keeps an exact 16:9 box on every breakpoint. */
.hero-slider,
.hero-slide {
  aspect-ratio: 16 / 9;
}

.hero-slider-track { height: 100%; }

.hero-slide-caption {
  padding: 1.25rem;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-secondary, #1f2937);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 2;
}

.hero-slider-arrow:hover {
  background: #fff;
}

.hero-slider-prev { left: 0.75rem; }
.hero-slider-next { right: 0.75rem; }

.hero-slider-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.hero-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
}

.hero-slider-dot[aria-current="true"] {
  width: 1.35rem;
  background: var(--brand, #e2506a);
}

/* Desktop / mobile artwork swap. */
.hero-slide-img-mobile { display: none; }

@media (max-width: 640px) {
  .hero-slide-img-desktop.has-mobile { display: none; }
  .hero-slide-img-mobile { display: block; }
  .hero-slider-arrow { width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider-track { transition: none; }
}

/* Hero video — fills the same 16:9 frame as the banner slider. */
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #000;
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero-video { border-radius: 1.25rem; }
}

/* Hero video sound toggle — always visible over the player. */
.hero-video-sound {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-video-sound:hover,
.hero-video-sound:focus-visible {
  background: rgba(15, 23, 42, 0.85);
  transform: scale(1.05);
  outline: none;
}

/* aria-pressed="true" means the video is muted. */
.hero-video-sound .hero-video-sound-off { display: none; }
.hero-video-sound[aria-pressed="true"] .hero-video-sound-on { display: none; }
.hero-video-sound[aria-pressed="true"] .hero-video-sound-off { display: inline-flex; }

@media (max-width: 640px) {
  .hero-video-sound {
    right: 0.5rem;
    top: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Vertical offset: nudge the hero slider/video block down from the header. */
.hero-slider-section {
  margin-top: 20px;
}

@media (min-width: 768px) {
  .hero-slider-section {
    margin-top: 28px;
  }
}
