/* ============================================
   AK FITNESS — VIDEOS
   ============================================ */
.videos-page { padding: 24px; max-width: 1200px; margin: 0 auto; }
.videos-header { margin-bottom: 24px; }
.videos-title { font-family: var(--font-heading); text-transform: uppercase; font-weight: 700; font-size: 1.3rem; color: var(--text-primary); margin-bottom: 4px; }
.video-filters {
  display: flex; overflow-x: auto; gap: 8px; margin-bottom: 24px; padding-bottom: 8px;
  scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none;
}
.video-filters::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 8px 20px; border-radius: var(--radius-md); background: var(--bg-card);
  border: 1px solid var(--border-subtle); color: var(--text-secondary); cursor: pointer;
  font-size: 0.85rem; white-space: nowrap; transition: all var(--transition-base);
  scroll-snap-align: start; flex-shrink: 0;
}
.filter-tab:hover:not(.active) { border-color: var(--border-hover); transform: translateY(-2px);  color: var(--text-primary); }
.filter-tab.active { background: var(--accent-green); color: #000; border-color: var(--accent-green); transform: translateY(-2px);  font-weight: 700; }

.videos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.video-card {
  padding: 0; overflow: hidden; cursor: pointer;
}
.video-thumbnail {
  position: relative; width: 100%; aspect-ratio: 16/9; background: var(--bg-tertiary);
  overflow: hidden; border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-tertiary), #1a2030);
}
.video-duration-badge {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8);
  color: #fff; padding: 2px 6px; border-radius: 6px 3px 6px 3px; font-size: 0.75rem; font-weight: 500;
}
.video-category-badge {
  position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 6px 3px 6px 3px;
  font-size: 0.65rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px;
}
.video-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition-base);
}
.video-card:hover .video-play-overlay { opacity: 1; }
.play-btn-icon {
  width: 48px; height: 48px; border-radius: 14px 6px 14px 6px; background: rgba(0,255,136,0.9);
  display: flex; align-items: center; justify-content: center; color: var(--bg-primary);
  transform: scale(0.9); transition: transform var(--transition-base);
}
.video-card:hover .play-btn-icon { transform: scale(1); }
.video-info { padding: 16px; }
.video-info-title { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); font-size: 0.95rem; line-height: 1.3; margin-bottom: 4px; }
.video-info-instructor { color: var(--text-muted); font-size: 0.8rem; }

/* Player View */
.video-player-view { display: none; margin-bottom: 32px; animation: fadeIn 0.4s ease; }
.video-player-view.active { display: block; }
.video-player {
  width: 100%; aspect-ratio: 16/9; background: var(--bg-secondary);
  border-radius: var(--radius-card); overflow: hidden; position: relative;
  border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #111118, #1a2030);
}
.player-play-btn {
  width: 64px; height: 64px; border-radius: 16px 6px 16px 6px; background: var(--accent-green);
  color: var(--bg-primary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s; border: 2px solid var(--accent-green);
}
.player-play-btn:hover { transform: scale(1.1); }
.player-details { margin-top: 16px; position: relative; }
.player-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.player-meta { display: flex; gap: 16px; align-items: center; color: var(--text-secondary); font-size: 0.85rem; }
.player-close { position: absolute; top: 0; right: 0; }

@media (max-width: 768px) {
  .videos-grid { grid-template-columns: 1fr; }
}
