/* ============================================================
   VIDEO PAGE
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.vid-hero {
  background: #1a1b26;
  padding: 4rem 1.5rem 3.5rem;
}
.vid-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.vid-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b23b2c;
  margin: 0 0 0.75rem;
}
.vid-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.vid-hero-dek {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Featured video ─────────────────────────────────────────── */
.vid-featured {
  background: #fff;
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid rgba(26,27,38,0.08);
}
.vid-featured-inner {
  max-width: 860px;
  margin: 0 auto;
}
.vid-featured-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b23b2c;
  margin: 0 0 0.4rem;
}
.vid-featured-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #1a1b26;
  margin: 0 0 1.25rem;
}
.vid-featured-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1b26;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,27,38,0.18);
}
.vid-featured-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Sticky filter bar ──────────────────────────────────────── */
.vid-filters-section {
  position: sticky;
  top: 108px; /* full header: topbar (~30px) + nav (~78px) */
  background: #fff;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(26,27,38,0.09);
  border-bottom: 1px solid rgba(26,27,38,0.07);
  transition: top 0.3s ease;
}
/* scrolled header hides topbar + tightens padding → ~52px tall */
body:has(.site-header.is-scrolled) .vid-filters-section {
  top: 52px;
}
.vid-filters-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.vid-filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.vid-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 1rem;
  border-radius: 100px;
  border: 1.5px solid rgba(26,27,38,0.2);
  background: transparent;
  color: rgba(26,27,38,0.7);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.vid-filter-btn:hover {
  border-color: #1a1b26;
  color: #1a1b26;
}
.vid-filter-btn.is-active {
  background: #1a1b26;
  color: #fff;
  border-color: #1a1b26;
}
.vid-search {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
}
.vid-search-icon {
  position: absolute;
  left: 0.75rem;
  color: rgba(26,27,38,0.4);
  pointer-events: none;
  flex-shrink: 0;
}
.vid-search input {
  width: 220px;
  padding: 0.42rem 1rem 0.42rem 2.2rem;
  border-radius: 100px;
  border: 1.5px solid rgba(26,27,38,0.2);
  background: #f5f5f7;
  color: #1a1b26;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}
.vid-search input::placeholder {
  color: rgba(26,27,38,0.4);
}
.vid-search input:focus {
  border-color: #1a1b26;
  background: #fff;
}

/* ── Video grid ─────────────────────────────────────────────── */
.vid-grid-section {
  background: #f5f5f7;
  padding: 2.5rem 1.5rem 4rem;
}
.vid-grid-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.vid-grid-count {
  font-size: 0.78rem;
  color: rgba(26,27,38,0.45);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 1.25rem;
}
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

/* ── Card ───────────────────────────────────────────────────── */
.vid-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(26,27,38,0.07);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(26,27,38,0.13);
}
.vid-card[hidden] {
  display: none;
}

/* Thumbnail */
.vid-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1b26;
}
.vid-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.vid-card:hover .vid-card-thumb img {
  transform: scale(1.04);
}

/* Play button */
.vid-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.vid-play-btn::before {
  content: '';
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #b23b2c;
  box-shadow: 0 4px 16px rgba(178,59,44,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: absolute;
}
.vid-card:hover .vid-play-btn::before {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(178,59,44,0.55);
}
.vid-play-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  position: relative;
  z-index: 1;
  margin-left: 3px; /* optical center for play arrow */
  transition: transform 0.2s ease;
}
.vid-card:hover .vid-play-btn svg {
  transform: scale(1.1);
}

/* Card body */
.vid-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.vid-card-meta {
  margin-bottom: 0.35rem;
}
.vid-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #b23b2c;
}
.vid-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1b26;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}
.vid-card-desc {
  font-size: 0.78rem;
  color: rgba(26,27,38,0.58);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  flex: 1;
}
.vid-card-product-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b23b2c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}
.vid-card-product-link:hover {
  gap: 0.45rem;
}

/* No results */
.vid-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(26,27,38,0.45);
  font-size: 0.9rem;
  display: none;
}
.vid-no-results.is-visible {
  display: block;
}

/* ── Lightbox modal ─────────────────────────────────────────── */
.vid-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vid-modal.is-open {
  display: flex;
}
.vid-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}
.vid-modal-box {
  position: relative;
  width: min(860px, 92vw);
  z-index: 1;
}
.vid-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.18s;
  font-family: inherit;
}
.vid-modal-close:hover {
  opacity: 1;
}
.vid-modal-player {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0,0,0,0.55);
  background: #000;
}
.vid-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.vid-modal-title {
  color: rgba(255,255,255,0.8);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vid-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vid-filters-section {
    position: static;
  }
  .vid-search {
    margin-left: 0;
    width: 100%;
  }
  .vid-search input {
    width: 100%;
  }
  .vid-filters-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .vid-filter-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .vid-grid {
    grid-template-columns: 1fr;
  }
  .vid-hero {
    padding: 3rem 1.25rem 2.5rem;
  }
  .vid-featured {
    padding: 2.5rem 1.25rem;
  }
  .vid-grid-section {
    padding: 2rem 1.25rem 3rem;
  }
}
