.bld-video-section {
  overflow: hidden;
}

.bld-video-carousel {
  position: relative;
  margin-top: 8px;
}

.bld-video-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.bld-video-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.bld-video-carousel__track {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.bld-video-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
}

.bld-video-card__trigger {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  background: var(--white, #fff);
  border: 1px solid rgba(232, 213, 176, 0.65);
  border-radius: var(--r-lg, 20px);
  box-shadow: var(--shadow-sm, 0 2px 12px rgba(0, 0, 0, 0.07));
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bld-video-card__trigger:hover,
.bld-video-card__trigger:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md, 0 6px 28px rgba(0, 0, 0, 0.1));
  outline: none;
}

.bld-video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c1c 0%, #3a3a3a 100%);
}

.bld-video-card__media img,
.bld-video-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bld-video-card__placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(249, 169, 29, 0.25), transparent 55%),
    linear-gradient(135deg, #151515, #2d2d2d);
}

.bld-video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.bld-video-card__trigger:hover .bld-video-card__media::after,
.bld-video-card__trigger:focus-visible .bld-video-card__media::after {
  opacity: 0.55;
}

.bld-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(249, 169, 29, 0.95);
  box-shadow: 0 10px 28px rgba(249, 169, 29, 0.35);
}

.bld-video-card__play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--dark, #111);
}

.bld-video-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
}

.bld-video-card__title {
  display: block;
  font-family: var(--font-display, sans-serif);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink, #1a1a1a);
  margin-bottom: 8px;
  min-height: calc(1.35em * 3);
}

.bld-video-card__desc {
  display: block;
  color: var(--muted, #6b6b6b);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.bld-video-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--gold-dark, #d4820f);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.bld-video-carousel__nav {
  position: absolute;
  top: 38%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white, #fff);
  color: var(--dark, #111);
  border: 1px solid rgba(232, 213, 176, 0.8);
  box-shadow: var(--shadow-sm, 0 2px 12px rgba(0, 0, 0, 0.07));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bld-video-carousel__nav:hover,
.bld-video-carousel__nav:focus-visible {
  background: var(--gold, #f9a91d);
  transform: scale(1.04);
  outline: none;
}

.bld-video-carousel__nav--prev {
  left: -10px;
}

.bld-video-carousel__nav--next {
  right: -10px;
}

.bld-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bld-video-modal[hidden] {
  display: none;
}

.bld-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.bld-video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  z-index: 1;
}

.bld-video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.bld-video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.bld-video-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 960px) {
  .bld-video-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .bld-video-carousel__nav--prev {
    left: 0;
  }

  .bld-video-carousel__nav--next {
    right: 0;
  }
}

@media (max-width: 640px) {
  .bld-video-card {
    flex-basis: 100%;
  }

  .bld-video-carousel__nav {
    top: auto;
    bottom: -8px;
    transform: none;
  }

  .bld-video-carousel {
    padding-bottom: 52px;
  }

  .bld-video-carousel__nav--prev {
    left: calc(50% - 52px);
  }

  .bld-video-carousel__nav--next {
    right: calc(50% - 52px);
  }
}
