/* ==========================================================================
   BRILL THRILL — ARTISAN VIDEO GALLERY (SIMPLE, CLEAN & AESTHETIC)
   Velvet Purple (#33124E) & Lime (#6EA31A / #9FD834) Accents
   ========================================================================== */

.videos-page-main {
  background: #FAFAFC;
  color: #1E293B;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ── Hero Section ── */
.videos-hero-section {
  padding: 48px 0 32px 0;
  background: linear-gradient(180deg, #F8F5FC 0%, #FAFAFC 100%);
  border-bottom: 1px solid #F1EBF7;
}

.videos-hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.videos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F4EEFA;
  border: 1px solid #E2D9EE;
  color: #33124E;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.videos-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: #0F172A;
}

.videos-hero-title .text-gradient {
  color: #33124E;
  position: relative;
  display: inline-block;
}

.videos-hero-title .text-gradient::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: #D8EEA6;
  border-radius: 4px;
  z-index: -1;
}

.videos-hero-desc {
  font-size: 0.98rem;
  color: #64748B;
  line-height: 1.6;
  margin: 0 auto 24px auto;
  max-width: 660px;
}

/* ── Filter Pills ── */
.video-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.filter-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 7px 18px;
  border-radius: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.filter-pill:hover {
  background: #F8FAFC;
  color: #0F172A;
  border-color: #CBD5E1;
}

.filter-pill.active {
  background: #33124E;
  color: #FFFFFF;
  border-color: #33124E;
  box-shadow: 0 3px 12px rgba(51, 18, 78, 0.22);
}

/* ── Video Gallery Grid ── */
.videos-content-section {
  padding: 40px 0 80px 0;
}

.customer-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── Gallery Card ── */
.gallery-video-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.gallery-video-card:hover {
  transform: translateY(-4px);
  border-color: #33124E;
  box-shadow: 0 12px 30px rgba(51, 18, 78, 0.12);
}

/* ── Card Video Thumbnail ── */
.gallery-video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #0F172A;
  overflow: hidden;
}

.gallery-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-video-card:hover .gallery-video-thumb video {
  transform: scale(1.03);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 40%, rgba(15, 23, 42, 0.3) 100%);
  pointer-events: none;
}

.gallery-badge-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(51, 18, 78, 0.9);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 16px;
  z-index: 2;
  letter-spacing: 0.02em;
}

.gallery-duration-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  z-index: 2;
}

.gallery-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.gallery-play-btn .play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #33124E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  padding-left: 3px;
}

.gallery-video-card:hover .gallery-play-btn .play-circle {
  transform: scale(1.15);
  background: #33124E;
  color: #FFFFFF;
}

/* ── Card Content ── */
.gallery-card-content {
  padding: 16px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-video-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.gallery-video-card:hover .gallery-video-title {
  color: #33124E;
}

.gallery-video-desc {
  font-size: 0.84rem;
  color: #64748B;
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-content > *:last-child {
  margin-bottom: 0 !important;
}

/* ── Linked Product Card inside Gallery Item ── */
.gallery-linked-prod {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: auto;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.gallery-linked-prod:hover {
  background: #F4EEFA;
  border-color: #D6C2EB;
}

.gallery-linked-prod img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.gallery-prod-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gallery-prod-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-prod-price {
  font-size: 0.78rem;
  font-weight: 800;
  color: #6EA31A;
}

.gallery-prod-arrow {
  color: #33124E;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.gallery-linked-prod:hover .gallery-prod-arrow {
  transform: translateX(3px);
}

/* ── Clean Action Bar with Like Option ── */
.gallery-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  margin-top: auto;
}

/* Simple, Aesthetic Like Pill Button */
.gallery-like-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.gallery-like-pill:hover {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #E11D48;
}

.gallery-like-pill i {
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gallery-like-pill .like-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.gallery-like-pill .like-count {
  font-weight: 800;
  font-size: 0.84rem;
  color: #0F172A;
}

.gallery-like-pill.liked {
  background: #FFF1F2;
  border-color: #FDA4AF;
  color: #E11D48;
}

.gallery-like-pill.liked i {
  color: #E11D48;
}

.gallery-like-pill.liked .like-count {
  color: #E11D48;
}

.gallery-like-pill.pulse {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.gallery-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-view-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gallery-share-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-share-pill:hover {
  background: #33124E;
  color: #FFFFFF;
  border-color: #33124E;
}

/* ── Empty State ── */
.videos-empty-card {
  text-align: center;
  padding: 70px 20px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 20px;
  max-width: 520px;
  margin: 0 auto;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #F4EEFA;
  color: #33124E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.videos-empty-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px 0;
}

.videos-empty-card p {
  color: #64748B;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* ==========================================================================
   VIDEO LIGHTBOX PLAYER (SIMPLE, RESPONSIVE, STREAMLINED)
   ========================================================================== */

.video-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-lightbox-overlay.active {
  display: flex;
}

.lightbox-container {
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: #FFFFFF;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: #E11D48;
  transform: scale(1.08);
}

/* Lightbox Nav Arrows (< and >) */
.lightbox-nav-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #33124E;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.lightbox-nav-btn.prev {
  left: 14px;
}

.lightbox-nav-btn.next {
  right: 14px;
}

.lightbox-nav-btn:hover {
  background: #33124E;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 92vh;
}

.lightbox-video-frame {
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 58vh;
  position: relative;
}

.lightbox-video-frame video {
  max-width: 100%;
  max-height: 58vh;
  width: auto;
  height: auto;
  display: block;
  outline: none;
}

/* Info Pane below video */
.lightbox-info-pane {
  padding: 20px 24px 24px 24px;
  background: #FFFFFF;
}

.lightbox-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lightbox-badge {
  background: #F4EEFA;
  color: #33124E;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.lightbox-stats-pill {
  color: #64748B;
  font-size: 0.82rem;
  font-weight: 600;
}

.lightbox-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

/* Lightbox Linked Product */
.lightbox-prod-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-info-pane > *:last-child {
  margin-bottom: 0 !important;
}

.lightbox-prod-card:hover {
  background: #F4EEFA;
  border-color: #D6C2EB;
}

.lightbox-prod-card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.lightbox-prod-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lightbox-prod-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #6EA31A;
  letter-spacing: 0.04em;
}

.lightbox-prod-title {
  font-size: 0.95rem;
  color: #0F172A;
  margin: 1px 0 2px 0;
}

.lightbox-prod-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: #33124E;
}

.lightbox-prod-btn {
  background: #33124E;
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-prod-btn:hover {
  background: #4A1B70;
}

/* Lightbox Action Bar */
.lightbox-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-like-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lightbox-like-btn:hover {
  background: #FFF1F2;
  border-color: #FECDD3;
  color: #E11D48;
}

.lightbox-like-btn.liked {
  background: #FFF1F2;
  border-color: #FDA4AF;
  color: #E11D48;
}

.lightbox-like-btn.liked i {
  color: #E11D48;
}

.lightbox-like-btn.pulse {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-share-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lightbox-share-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* ── Responsive Mobile ── */
@media (max-width: 768px) {
  .videos-hero-section {
    padding: 36px 0 24px 0;
  }

  .customer-videos-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-video-thumb {
    aspect-ratio: 16 / 10;
  }

  .lightbox-container {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 18px;
  }

  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .lightbox-info-pane {
    padding: 16px;
  }

  .lightbox-title {
    font-size: 1.1rem;
  }
}
