/* ============================================================
   videos.css — Gold Master Video Library
   ============================================================ */

/* --- Page hero --- */
.vid-hero {
  padding: 7.5rem 0 3.5rem;
  background: radial-gradient(circle at 60% 0%, #19191C 0%, #0B0B0C 60%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vid-hero-inner  { max-width: 640px; }
.vid-hero-title  { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--bone); margin: 0.75rem 0 1rem; line-height: 1.15; }
.vid-hero-sub    { font-size: 1.05rem; color: var(--smoke); line-height: 1.75; }

/* --- Sticky category tabs --- */
.vid-tabs-wrap {
  position: sticky; top: 70px; z-index: 50;
  background: rgba(11,11,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0;
  transition: box-shadow 0.2s;
}
.vid-tabs-wrap.sticky { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.vid-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.vid-tabs::-webkit-scrollbar { display: none; }

.vid-tab {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--smoke);
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.18s;
}
.vid-tab:hover  { border-color: rgba(226,183,85,0.35); color: var(--bone); }
.vid-tab.active { border-color: var(--gold); background: rgba(226,183,85,0.1); color: var(--gold); }

/* --- Page container --- */
.vid-page { padding: 3rem 1.5rem 5rem; }

/* --- Category section --- */
.vid-category    { margin-bottom: 3.5rem; }
.vid-cat-title   {
  font-size: 1.2rem; font-weight: 700;
  color: var(--bone);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 0.75rem;
}
.vid-cat-title::before {
  content: '';
  display: inline-block; width: 3px; height: 1.1em;
  background: var(--gold-grad); border-radius: 2px;
}

/* --- Video grid --- */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* --- Video card --- */
.vid-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--ink-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.vid-card:hover {
  border-color: rgba(226,183,85,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

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

/* Play button overlay */
.vid-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.2s;
}
.vid-card:hover .vid-play-btn { background: rgba(0,0,0,0.5); }
.vid-play-btn svg {
  width: 52px !important; height: 52px !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: transform 0.2s;
}
.vid-card:hover .vid-play-btn svg { transform: scale(1.12); }

/* Badges */
.vid-featured-badge {
  position: absolute; top: 0.625rem;
  background: var(--gold-grad);
  color: var(--ink); font-size: 0.68rem; font-weight: 700;
  padding: 0.2rem 0.625rem; border-radius: 999px;
}
[dir="rtl"] .vid-featured-badge { right: 0.625rem; }
[dir="ltr"] .vid-featured-badge { left: 0.625rem; }

.vid-duration {
  position: absolute; bottom: 0.5rem;
  background: rgba(0,0,0,0.78);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 4px;
}
[dir="rtl"] .vid-duration { left: 0.5rem; }
[dir="ltr"] .vid-duration { right: 0.5rem; }

/* Card info */
.vid-info  { padding: 1rem 1.1rem 1.1rem; }
.vid-title { font-size: 0.9rem; font-weight: 700; color: var(--bone); line-height: 1.4; margin-bottom: 0.4rem; }
.vid-desc  { font-size: 0.78rem; color: var(--smoke); line-height: 1.55;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Video modal --- */
.vid-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 1rem;
}
.vid-modal-overlay.active { display: flex; }

.vid-modal-box {
  position: relative;
  width: 100%; max-width: 860px;
  background: #0f0f11;
  border: 1px solid rgba(226,183,85,0.2);
  border-radius: 14px;
  overflow: hidden;
}
.vid-modal-close {
  position: absolute; top: 0.75rem; z-index: 10;
  background: rgba(0,0,0,0.6); border: none;
  color: var(--bone); cursor: pointer;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
[dir="rtl"] .vid-modal-close { left: 0.75rem; }
[dir="ltr"] .vid-modal-close { right: 0.75rem; }
.vid-modal-close:hover { background: rgba(255,255,255,0.15); }

.vid-modal-embed {
  aspect-ratio: 16/9;
  background: #000;
}
.vid-modal-embed iframe {
  width: 100%; height: 100%; display: block; border: none;
}

.vid-modal-info  { padding: 1rem 1.25rem 1.25rem; }
.vid-modal-title { font-size: 1rem; font-weight: 700; color: var(--bone); margin-bottom: 0.375rem; }
.vid-modal-desc  { font-size: 0.82rem; color: var(--smoke); line-height: 1.65; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .vid-hero   { padding: 6rem 0 2.5rem; }
  .vid-hero-title { font-size: 1.75rem; }
  .vid-page   { padding: 2rem 1rem 4rem; }
  .vid-grid   { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
  .vid-cat-title { font-size: 1rem; }
  .vid-tabs-wrap { top: 60px; }
  .vid-modal-box { border-radius: 10px; }
}

@media (max-width: 400px) {
  .vid-grid   { grid-template-columns: 1fr; }
  .vid-title  { font-size: 0.875rem; }
}
