/* Video section styles */
.video-section {
  position: relative;
  width: 100%;
  margin: 24px 0 0;
  padding: 48px 18px 54px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(620px 360px at 6% 92%, rgba(10, 102, 88, 0.32), transparent 62%),
    linear-gradient(180deg, #080c14 0%, #090d16 100%);
  color: #f8fafc;
}

.video-section .container {
  max-width: 1180px;
  padding-left: 0;
  padding-right: 0;
}

.vs-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 13px;
  background: linear-gradient(135deg, #6457f4, #8b5cf6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vs-title {
  margin-bottom: 4px;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1.18;
}

.video-section .text-secondary {
  color: #8290a6 !important;
  font-size: 0.95rem;
}

.video-section .text-secondary strong {
  color: #dfe5ef;
}

#videoGrid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px !important;
  width: 100%;
  margin: 0 !important;
}

#videoGrid > [class*="col-"] {
  display: flex;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  padding: 0 !important;
}

.vs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 10px;
  background: #111118;
  box-shadow: 0 16px 42px rgba(0,0,0,0.28);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.vs-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 92, 255, 0.34);
  box-shadow: 0 24px 62px rgba(0,0,0,0.38);
}

.vs-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111118;
  flex: 0 0 auto;
}

.vs-thumb img,
.vs-thumb iframe,
.vs-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.vs-thumb img {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vs-thumb img.img-loaded {
  opacity: 1;
}

.vs-thumb iframe {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.vs-thumb iframe.loaded {
  opacity: 1;
}

.vs-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  background: linear-gradient(to top, rgba(12,12,18,0.76), transparent);
  pointer-events: none;
  z-index: 1;
}

.vs-play-icon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.vs-play-icon svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5));
  transition: transform 0.25s ease;
}

.vs-card:hover .vs-play-icon {
  opacity: 0;
}

.vs-card:hover .vs-play-icon svg {
  transform: scale(1.08);
}

.vs-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #111118 0%, #0f1016 100%);
}

.vs-body h6 {
  margin: 0 0 6px;
  overflow: hidden;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-body p {
  display: -webkit-box;
  flex: 1;
  margin: 0 0 12px;
  overflow: hidden;
  color: #8a95a8;
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vs-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  max-width: 100%;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 7px 13px;
  background: linear-gradient(135deg, #6457f4, #8b5cf6);
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.vs-watch-btn:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.vs-watch-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.vs-skeleton {
  width: 100%;
  height: 286px;
  border: 1px solid rgba(255,255,255,0.035);
  border-radius: 10px;
  background: linear-gradient(90deg, #111118 25%, #191a23 50%, #111118 75%);
  background-size: 200% 100%;
  animation: vs-shimmer 1.5s infinite;
}

@keyframes vs-shimmer {
  to { background-position: -200% 0; }
}

#videoPagination {
  display: none !important;
}

#videoPagination.visible {
  display: flex !important;
}

.vs-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 34px;
  gap: 7px;
  border: 1px solid rgba(100, 87, 244, 0.32);
  border-radius: 8px;
  padding: 7px 13px;
  background: rgba(100, 87, 244, 0.08);
  color: #aeb8ff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 750;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vs-nav-btn:hover:not(:disabled) {
  border-color: rgba(139, 92, 246, 0.78);
  background: rgba(100, 87, 244, 0.2);
  color: #fff;
}

.vs-nav-btn:disabled {
  opacity: 0.42;
  cursor: default;
}

.vs-page-info {
  min-width: 92px;
  color: #c1cad9;
  font-size: 0.86rem;
  text-align: center;
}

.vs-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vs-modal-overlay.active {
  display: flex;
}

.vs-modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: #13131d;
  box-shadow: 0 32px 100px rgba(0,0,0,0.8);
  animation: vs-pop 0.25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes vs-pop {
  from { transform: scale(.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vs-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.vs-modal-close:hover {
  background: rgba(255,255,255,0.24);
}

.vs-modal-player {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.vs-modal-player iframe,
.vs-modal-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vs-modal-meta {
  padding: 1.2rem 1.5rem 1.6rem;
}

.vs-modal-meta h4 {
  margin-bottom: 0.4rem;
  color: #f1f1f5;
  font-size: 1.1rem;
  font-weight: 750;
}

.vs-modal-meta p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .video-section {
    padding: 38px 12px 44px;
    border-radius: 18px;
  }

  .vs-title {
    font-size: 1.75rem;
  }

  .vs-card {
    min-height: 260px;
  }

  .vs-card:hover {
    transform: none;
  }

  .vs-skeleton {
    height: 260px;
  }

  #videoPagination.visible {
    flex-wrap: wrap;
    gap: 10px !important;
  }
}

@media (max-width: 991px) {
  #videoGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  #videoGrid {
    grid-template-columns: 1fr;
  }
}
