/* One shared card wrapping video + labels + caption, matching the
   comparison videos' card treatment instead of a separate floating
   caption box. */
#teaser-carousel {
  width: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 18px var(--shadow-color);
  box-sizing: border-box;
}

#teaser-carousel .video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  background: #000;
}

/* Crop the burned-in black label strip along the bottom of each
   clip (same technique as the comparison videos): the wrapper is
   sized to the cropped aspect ratio per clip (set in JS), and the
   video fills it with object-fit: cover anchored to the top. */
#teaser-carousel .video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  object-fit: cover;
  object-position: top;
}

#teaser-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 5;
}

#teaser-carousel .carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

#teaser-carousel .carousel-arrow-left { left: 12px; }
#teaser-carousel .carousel-arrow-right { right: 12px; }

#teaser-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

#teaser-carousel .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d0d7e2;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.15s;
}

#teaser-carousel .carousel-dot:hover {
  background: #a9b8d6;
}

#teaser-carousel .carousel-dot.is-active {
  background: var(--color-accent);
  transform: scale(1.25);
}

#teaser-carousel .video-caption {
  position: relative;
  margin-top: 0.85rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

#teaser-carousel .caption-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Google Sans', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: keep-all;
}

#teaser-carousel .caption-change {
  margin-top: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#teaser-carousel .caption-scene {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-heading);
}

#teaser-carousel .caption-views-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-card-border);
  color: var(--color-text-soft);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #teaser-carousel .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  #teaser-carousel {
    padding: 1rem;
  }

  #teaser-carousel .caption-badge {
    font-size: 0.9rem;
    padding: 0.35rem 0.9rem;
  }

  #teaser-carousel .caption-scene {
    font-size: 0.9rem;
  }

  #teaser-carousel .caption-views-badge {
    font-size: 0.85rem;
  }
}
