.videoGridContainer {
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  position: relative;
}

.videoCard {
  padding: 0 10px;
}

.videoThumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.videoThumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.videoThumbnail:hover img {
  transform: scale(1.05);
}

.playButton {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.videoThumbnail:hover .playButton {
  opacity: 1;
}

.videoInfo {
  padding: 15px 0;
}

.videoInfo h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.3;
}

.videoInfo small {
  display: block;
  margin-bottom: 5px;
  color: #666;
}

.videoInfo p {
  font-size: 14px;
  color: #333;
  margin: 0;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.prevArrow {
  left: -70px;
}

.nextArrow {
  right: -70px;
}

/* Ensure arrows are visible in both light and dark modes */
:global(.light) .arrow,
:global(.dark) .arrow {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

:global(.light) .arrow:hover,
:global(.dark) .arrow:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 1400px) {
  .prevArrow {
    left: -40px;
  }
  .nextArrow {
    right: -40px;
  }
}

@media (max-width: 1200px) {
  .prevArrow {
    left: -30px;
  }
  .nextArrow {
    right: -30px;
  }
}

@media (max-width: 768px) {
  .prevArrow {
    left: -20px;
  }
  .nextArrow {
    right: -20px;
  }
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
