/* ============================================================
   videos.css — GymBI by Statvo
   PURPOSE: Styles for the videos module — thumbnail grid,
   play overlay, category tabs, and the inline video player modal.
   ============================================================ */

/* ------------------------------------------------------------
   VIDEO TABS — horizontal scroll on small screens
   ------------------------------------------------------------ */
.videos-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.videos-tabs::-webkit-scrollbar { display: none; }

/* ------------------------------------------------------------
   VIDEO CARD
   Thumbnail + title + category, clickable to open player.
   ------------------------------------------------------------ */
.video-card {
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.video-card:hover {
  transform: translateY(-3px);
  background: var(--glass-3);
}

/* Thumbnail box — YouTube thumbnail as background image */
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3); /* fallback while thumbnail loads */
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Play button overlay — centered, appears on hover (always visible on mobile) */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 28px;
  opacity: 0.85;
  transition: background var(--transition-fast), opacity var(--transition-fast);
}
.video-card:hover .video-play-overlay {
  background: rgba(0,0,0,0.45);
  opacity: 1;
}

/* "GymBI" badge on global library videos — top-right of thumbnail */
.video-badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
}

/* ------------------------------------------------------------
   VIDEO PLAYER MODAL
   16:9 responsive iframe wrapper.
   ------------------------------------------------------------ */
.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ------------------------------------------------------------
   RESPONSIVE GRID ADJUSTMENTS
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .video-play-overlay { font-size: 22px; }
}
