/* ==========================================================================
   Video Gallery — 9:16 horizontal scroll-snap with arrows
   ========================================================================== */

/* ── Section Header ─────────────────────────────────────────────────────── */
.video-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.video-gallery-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.05;
  margin-top: var(--space-3);
}

.scroll-hint-text {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-muted);
  padding-bottom: var(--space-2);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .video-gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .scroll-hint-text {
    padding-bottom: 0;
  }
}

/* ── Scroll Wrapper (positions arrows) ──────────────────────────────────── */
.video-gallery-wrapper {
  position: relative;
}

/* ── Scroll Container ───────────────────────────────────────────────────── */
.video-gallery-container {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4) var(--space-6);
  scrollbar-width: none;
}

.video-gallery-container::-webkit-scrollbar {
  display: none;
}

/* ── Video Card ─────────────────────────────────────────────────────────── */
.video-card {
  flex-shrink: 0;
  width: 270px;
  height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── Card Background Placeholders ───────────────────────────────────────── */
.video-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.video-card-bg--1 { background: linear-gradient(160deg, #2a1f1a 0%, #0d0d0d 100%); }
.video-card-bg--2 { background: linear-gradient(160deg, #1a2220 0%, #0d0d0d 100%); }
.video-card-bg--3 { background: linear-gradient(160deg, #1f1a24 0%, #0d0d0d 100%); }
.video-card-bg--4 { background: linear-gradient(160deg, #24201a 0%, #0d0d0d 100%); }
.video-card-bg--5 { background: linear-gradient(160deg, #1a1e24 0%, #0d0d0d 100%); }
.video-card-bg--6 { background: linear-gradient(160deg, #241a1a 0%, #0d0d0d 100%); }
.video-card-bg--7 { background: linear-gradient(160deg, #1a241e 0%, #0d0d0d 100%); }
.video-card-bg--8 { background: linear-gradient(160deg, #201a24 0%, #0d0d0d 100%); }

.video-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Play Button ────────────────────────────────────────────────────────── */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.video-play-btn svg {
  margin-left: 2px; /* optical centering for triangle */
}

.video-card:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ── Caption Overlay ────────────────────────────────────────────────────── */
.video-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.video-card-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #fff;
}

.video-card-brand {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

/* ── Scroll Arrows (desktop only) ───────────────────────────────────────── */
.video-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), var(--shadow-md);
  color: var(--color-fg);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.video-arrow--left {
  left: var(--space-3);
}

.video-arrow--right {
  right: var(--space-3);
}

@media (min-width: 769px) {
  .video-arrow {
    display: flex;
  }

  .video-gallery-wrapper:hover .video-arrow {
    opacity: 1;
  }

  .video-arrow:hover {
    background: rgba(255, 255, 255, 0.85);
  }
}
