/* =========================================================
   video.css — Long Video Gallery (videos.php)
   Horizontal 16:9 cards. Info sits below the thumbnail.
   ========================================================= */

:root {
  --video-radius: 10px;
  --video-bg-card: #ffffff;
  --video-bg-dark: #0b0b0f;
  --video-accent: #e02020;
  --video-text-primary: #14141a;
  --video-text-muted: #6b7280;
  --video-shadow-rest: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --video-shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.16), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.video-listing-section {
  padding-bottom: 40px;
}

.video-listing-section .cat-heading h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Grid / Card shell ---------- */
.video-card-col {
  margin-bottom: 24px;
}

.video-card {
  display: block;
  background: var(--video-bg-card);
  border-radius: var(--video-radius);
  overflow: hidden;
  box-shadow: var(--video-shadow-rest);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.video-card:hover,
.video-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--video-shadow-hover);
  text-decoration: none;
  color: inherit;
}

/* ---------- Thumbnail ---------- */
.video-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--video-bg-dark);
}

.video-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.07);
}

/* subtle top-to-bottom scrim so badges stay legible on bright thumbnails */
.video-card-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Play icon (center, fades in on hover) ---------- */
.video-card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-card-play-icon::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--video-accent);
  margin-left: 4px;
}

.video-card:hover .video-card-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* always show a smaller, dimmer play icon on touch devices (no hover) */
@media (hover: none) {
  .video-card-play-icon {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ---------- Duration badge ---------- */
.video-card-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ---------- Card body ---------- */
.video-card-body {
  padding: 14px 14px 16px;
}

.video-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  color: var(--video-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--video-text-muted);
}

.video-card-date,
.video-card-views {
  display: inline-flex;
  align-items: center;
}

.video-card-date::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--video-text-muted);
  margin-right: 8px;
}

.video-card-meta .video-card-date:first-child::before {
  display: none;
}

.video-card-views::before {
  content: "\f06e"; /* fa-eye */
  font-family: "FontAwesome";
  margin-right: 5px;
  font-size: 11px;
  opacity: 0.75;
}

/* ---------- Empty state ---------- */
.no-videos {
  text-align: center;
  padding: 60px 0;
  color: var(--video-text-muted);
  font-size: 15px;
}

/* ---------- Image ---------- */
/* Note: this site uses the classic jQuery Lazyload plugin
   ($("img.lazyload").lazyload()), which swaps `src` directly and
   does NOT add a "lazyloaded" class. Don't hide .lazyload/.lazyloading
   via opacity here — that class never gets removed by this plugin,
   so the image would stay invisible (shows as a black box on top of
   the dark thumb background). */
.video-card-thumb img {
  transition: transform 0.45s ease;
}

/* ---------- Loading spinner ---------- */
#divloading {
  padding: 24px 0;
  color: var(--video-text-muted);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 767px) {
  .video-card-body {
    padding: 10px 10px 12px;
  }
  .video-card-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .video-card-play-icon {
    width: 42px;
    height: 42px;
  }
  .video-card-play-icon::before {
    border-width: 7px 0 7px 12px;
  }
}
