/* =========================
   VIDEOS PAGE
========================= */

.videos-hero {
  padding: 58px 0 34px;
}

.videos-hero h1 {
      font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.02;
  margin-bottom: 12px;
}

.videos-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
}

.video-filters {
  margin-top: 24px;
}

.videos-section {
  padding-top: 32px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Card */

.video-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018)),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0,0,0,0.24);
  transition: 0.22s ease;
}

.video-card:hover {
  transform: translateY(-0px);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Thumbnail */

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.55),
    rgba(2, 6, 23, 0.12)
  );
  z-index: 1;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
  position: relative;
  z-index: 0;
}

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

/* Play Button */

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;

  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  color: #ffffff;

  font-size: 28px;
  font-weight: 900;
  line-height: 1;

  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: 0.25s ease;
  z-index: 3;
}

.video-card:hover .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(30, 41, 59, 0.94);
}

/* Type Label */

.video-type {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.78);
  color: var(--white);
  font-size: 12px;
  font-weight: var(--fw-medium);
  backdrop-filter: blur(8px);
  z-index: 3;
}

/* Content */

.video-content {
  padding: 20px;
}

.video-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-content h3 {
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 18px;
}

/* Watch Button */

.video-content .btn,
.video-content .btn-primary {
  width: 100%;
  justify-content: center;
  text-align: center;

  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);

  box-shadow: none;
}

.video-content .btn:hover,
.video-content .btn-primary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Placeholder */

.video-placeholder-thumb {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(180deg, var(--panel), var(--bg-soft));
  position: relative;
  z-index: 0;
}

.video-placeholder-content {
  text-align: center;
  padding: 22px;
  color: var(--white);
}

.video-placeholder-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 22px;
}

.video-placeholder-content strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.video-placeholder-content small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.video-placeholder-content em {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

/* Empty / Loading */

.video-loading,
.video-empty {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.video-empty h3 {
  color: var(--white);
  margin-bottom: 8px;
}

/* Responsive */

@media (max-width: 1100px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .videos-hero {
    padding: 38px 0 22px;
  }

  .videos-hero h1 {
    font-size: 38px;
  }

  .videos-hero p {
    font-size: 15px;
  }

  .video-filters {
    margin-top: 18px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .video-content {
    padding: 18px;
  }

  .video-content h3 {
    font-size: 19px;
  }

  .video-play {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* Videos page: show 2 columns on mobile */
@media (max-width: 700px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .video-card {
    border-radius: 18px;
  }

  .video-content {
    padding: 10px;
  }

  .video-content h3 {
    font-size: 15px !important;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .video-date {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .video-play {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .video-content .btn,
  .video-content .btn-primary {
    min-height: 38px;
    font-size: 13px;
    padding: 0 12px;
  }

   /* Play button */
  .video-play {
    width: 44px;
    height: 44px;
    padding: 0;                 /* remove left offset */
    font-size: 16px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(15, 23, 42, 0.1);
  }

  /* Perfectly center the triangle */
  .video-play::before,
  .video-play span,
  .video-play svg {
    transform: translateX(1px); /* optical centering */
  }

  /* Smaller Playlist badge */
  .video-type {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: var(--fw-regular);
    border-radius: 999px;
  }

   .video-filters {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
  }

  .video-filters .filters {
    display: flex;
    justify-content: flex-start;
    width: auto;
  }

  .video-filters .filters select {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto;
    padding: 10px 42px 10px 14px;
    font-size: 13px;
    border-radius: 14px;
  }

   .video-filters {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
  }

  /* Override the global mobile rule that makes filters full width */
  .video-filters .filters {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    width: auto !important;
    justify-content: flex-start;
  }

  .video-filters .filters select {
    width: fit-content !important;
    min-width: unset !important;
    flex: none !important;

    padding: 10px 40px 10px 14px;
    font-size: 13px;
    border-radius: 14px;
  }


  .video-filters {
    width: fit-content !important;
    max-width: fit-content !important;
  }

  .video-filters .filters {
    width: fit-content !important;
    max-width: fit-content !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  .video-filters .filters select,
  .video-filters select {
    width: auto !important;
    min-width: 145px !important;
    max-width: 145px !important;
    flex: 0 0 auto !important;
    padding: 9px 34px 9px 14px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
  }
}
}