/* =====================================================================
   video-detail.css
   Styles for video-detail.php only. Everything is scoped so it can't
   bleed into other pages that also load main.min.css / video.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Video player
   --------------------------------------------------------------------- */

.election-results-panel .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.election-results-panel .video-container iframe,
.election-results-panel .video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* ---------------------------------------------------------------------
   2. Title / meta row / share
   --------------------------------------------------------------------- */

.election-results-panel .lib-header-hadding h1 {
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.video-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  font-size: 13px;
  padding: 6px 0 4px;
  border-bottom: 1px solid #eef0f2;
}

.video-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.video-meta-row i.fa {
  color: #9aa0a8;
}

.video-share-inline {
  margin-left: auto;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.video-share-inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #555;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.video-share-inline a:hover {
  transform: translateY(-2px);
  color: #fff;
}

.video-share-inline a[title="Share on Facebook"]:hover { background: #1877f2; }
.video-share-inline a[title="Share on X"]:hover { background: #000; }
.video-share-inline a[title="Share on WhatsApp"]:hover { background: #25d366; }
.video-share-inline a[title="Copy link"]:hover { background: #6b7280; }

/* ---------------------------------------------------------------------
   3. Description
   --------------------------------------------------------------------- */

.video-description {
  font-size: 14.5px;
  line-height: 1.7;
  color: #333;
}

.video-short-description {
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

.video-full-description p {
  margin-bottom: 10px;
}

.video-full-description img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   4. Right sidebar — compact related list
   --------------------------------------------------------------------- */

.section-headding-business h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e11d2e;
  display: inline-block;
}

.section-headding-business h2 a {
  color: inherit;
  text-decoration: none;
}

.lib-panel .row.no-gutters.box-shadow {
  margin-bottom: 10px;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lib-panel .row.no-gutters.box-shadow:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.lib-panel .news_img_data {
  position: relative;
  overflow: hidden;
}

.lib-panel .news_img_data img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease;
}

.lib-panel .row.no-gutters.box-shadow:hover .news_img_data img {
  transform: scale(1.06);
}

.lib-panel .lib-row.lib-header a {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.lib-panel .row.no-gutters.box-shadow:hover .lib-row.lib-header a {
  color: #e11d2e;
}

.lib-panel .lib-header-seperator {
  border-top: 1px solid #f0f0f0;
  margin: 6px 0;
}

/* ---------------------------------------------------------------------
   5. Bottom "More Videos" grid — the interactive part
   --------------------------------------------------------------------- */

#more_videos_grid {
  margin-top: 4px;
}

#more_videos_grid .video-card-col {
  margin-bottom: 22px;
}

#more_videos_grid .video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#more_videos_grid .video-card:hover,
#more_videos_grid .video-card:focus {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

#more_videos_grid .video-card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: #eee;
}

#more_videos_grid .video-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#more_videos_grid .video-card:hover .video-card-thumb img {
  transform: scale(1.08);
}

/* Dark gradient + play icon, revealed on hover for a YouTube-ish feel */
#more_videos_grid .video-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#more_videos_grid .video-card:hover .video-card-thumb::after {
  opacity: 1;
}

#more_videos_grid .video-card-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) scale(0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
}

#more_videos_grid .video-card-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #e11d2e;
}

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

#more_videos_grid .video-card-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  z-index: 2;
}

#more_videos_grid .video-card-body {
  padding: 10px 12px 12px;
}

#more_videos_grid .video-card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
  transition: color 0.15s ease;
}

#more_videos_grid .video-card:hover .video-card-title {
  color: #e11d2e;
}

#more_videos_grid .video-card-meta {
  font-size: 11.5px;
  color: #8a8f98;
}

/* ---------------------------------------------------------------------
   6. Responsive tweaks
   --------------------------------------------------------------------- */

@media (max-width: 991px) {
  .video-share-inline {
    margin-left: 0;
    width: 100%;
    margin-top: 6px;
  }
}

@media (max-width: 767px) {
  .election-results-panel .video-container {
    border-radius: 0;
  }

  #more_videos_grid .video-card-title {
    font-size: 13px;
    min-height: 34px;
  }

  .section-headding-business h2 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  #more_videos_grid .video-card-col {
    margin-bottom: 14px;
  }

  #more_videos_grid .video-card-body {
    padding: 8px 10px 10px;
  }
}
