/* =============================================================================
   Video Section — full-width dark panel with looping YouTube embed
   ============================================================================= */

.video-section {
  background: #0a0a0a;
  color: #fff;
  padding: var(--space-12) 0 0;
  overflow: hidden;
}

/* Text block — top-left aligned */
.video-section__text {
  padding: 0 var(--space-10) var(--space-6);
  max-width: 700px;
}

.video-section__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-3);
}

.video-section__subtitle {
  font-size: var(--font-size-base);
  color: rgba(255,255,255,.6);
  font-style: italic;
  margin: 0;
}

/* ── Player wrap — video stacked above playlist ─────────────────────────── */
.video-section__player-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* 16:9 embed */
.video-section__embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-section__iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Horizontal playlist strip — below the embed ────────────────────────── */
.video-section__playlist {
  display: flex;
  flex-direction: row;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #111;
  border-top: 1px solid rgba(255,255,255,.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
  -webkit-overflow-scrolling: touch;
  /* no order override needed — it naturally follows the embed */
}

.video-section__playlist::-webkit-scrollbar {
  height: 4px;
}
.video-section__playlist::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.2);
  border-radius: 2px;
}

/* Each card in the strip */
.video-section__playlist-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 160px;
  width: 160px;
  padding: 10px 12px 12px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  text-align: left;
  color: rgba(255,255,255,.65);
  transition: background .15s, color .15s;
  position: relative;
  gap: 8px;
}

.video-section__playlist-item:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.video-section__playlist-item.is-active {
  background: rgba(233,69,96,.12);
  color: #fff;
  border-top: 3px solid #e94560;
  padding-top: 7px; /* compensate for the top border */
}

.video-section__playlist-item.is-active .video-section__playlist-play {
  color: #e94560;
}

/* Thumbnail fills full card width */
.video-section__playlist-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #000;
  display: block;
}

/* Title below thumbnail */
.video-section__playlist-title {
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}

/* Play icon — absolute bottom-right of card */
.video-section__playlist-play {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: rgba(255,255,255,.25);
  transition: color .15s;
  line-height: 1;
}

.video-section__playlist-item:hover .video-section__playlist-play {
  color: rgba(255,255,255,.7);
}

/* Watch on YouTube CTA */
.video-section__actions {
  display: flex;
  justify-content: center;
  padding: var(--space-6) var(--space-6) var(--space-10);
  background: #0a0a0a;
}

.video-section__yt-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: #FF0000;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full, 999px);
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.video-section__yt-link:hover,
.video-section__yt-link:focus-visible {
  background: #cc0000;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.video-section__yt-link svg {
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .video-section__text {
    padding: 0 var(--space-6) var(--space-5);
  }
  .video-section__headline {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .video-section__playlist-item {
    flex: 0 0 130px;
    width: 130px;
  }

  .video-section__playlist-thumb {
    height: 66px;
  }
}

@media (max-width: 480px) {
  .video-section__text {
    padding: 0 var(--space-4) var(--space-4);
  }

  .video-section__playlist-item {
    flex: 0 0 110px;
    width: 110px;
  }

  .video-section__playlist-thumb {
    height: 56px;
  }
}
