/* Related Videos Section Styles */
.related-videos-section {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 2px solid #e0e0e0;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
}

.related-videos-header {
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-videos-header h2 {
  font-size: 24px;
  color: #333;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #be1622;
  display: inline-block;
}

.load-more-btn {
  background: #be1622;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.load-more-btn:hover {
  background: #9c1219;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.related-videos-grid,
.recent-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.related-video-card,
.recent-video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.related-video-card:hover,
.recent-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.related-video-card a,
.recent-video-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-video-thumbnail,
.recent-video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #000;
}

.related-video-thumbnail img,
.recent-video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-video-card:hover .related-video-thumbnail img,
.recent-video-card:hover .recent-video-thumbnail img {
  transform: scale(1.05);
}

.related-video-duration,
.recent-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 500;
  z-index: 2;
}

.related-video-play-overlay,
.recent-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(190, 22, 34, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.related-video-card:hover .related-video-play-overlay,
.recent-video-card:hover .recent-video-play-overlay {
  opacity: 1;
}

.related-video-play-icon,
.recent-video-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

.related-video-info,
.recent-video-info {
  padding: 15px;
}

.related-video-title,
.recent-video-title {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-video-meta,
.recent-video-meta {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
}

.related-video-meta:before,
.recent-video-meta:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
  background-size: contain;
  margin-right: 5px;
  opacity: 0.7;
}

.load-more-container {
  text-align: center;
  margin: 20px 0 30px;
}

.infinite-scroll-loader {
  text-align: center;
  padding: 30px;
  display: none;
}

.infinite-scroll-loader.active {
  display: block;
}

.loader-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #be1622;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  color: #666;
  font-size: 14px;
}

/* Recent Videos Specific Styles */
.recent-videos-section {
  margin: 40px 0;
  padding: 20px 0;
  border-top: 2px solid #e0e0e0;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
}

.recent-videos-header {
  margin-bottom: 25px;
}

.recent-videos-header h2 {
  font-size: 24px;
  color: #333;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #be1622;
  display: inline-block;
}

.recent-video-new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #be1622;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

/* Hamburger Menu Styles */
.hamburger-icon {
  display: inline-block;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger-icon .line {
  display: block;
  background: #fff;
  width: 100%;
  height: 3px;
  position: absolute;
  left: 0;
  border-radius: 2px;
  transition: all .3s;
}

.hamburger-icon .line:nth-child(1) {
  top: 0;
}

.hamburger-icon .line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-icon .line:nth-child(3) {
  bottom: 0;
}

/* Hamburger Menu Animation */
#menu:checked + .menu .hamburger-icon .line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#menu:checked + .menu .hamburger-icon .line:nth-child(2) {
  opacity: 0;
}

#menu:checked + .menu .hamburger-icon .line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Video Slider Styles */
.video-slider-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.main-video-container {
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  background: #000;
}

.main-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.swiper {
  width: 100%;
  padding: 15px 0;
  background: #222;
}

.swiper-slide {
  width: 150px;
  height: 100px;
  opacity: 0.6;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.swiper-slide-active {
  opacity: 1;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.swiper-slide:hover img {
  transform: scale(1.05);
}

.swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.swiper-slide:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

.swiper-slide .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  z-index: 2;
}

.swiper-slide .play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #222;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .related-videos-grid,
  .recent-videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .related-video-title,
  .recent-video-title {
    font-size: 13px;
  }

  .related-video-play-overlay,
  .recent-video-play-overlay {
    width: 40px;
    height: 40px;
  }

  .related-video-play-icon,
  .recent-video-play-icon {
    border-width: 8px 0 8px 14px;
  }

  .related-videos-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .load-more-btn {
    margin-top: 15px;
  }

  .swiper-slide {
    width: 120px;
    height: 80px;
  }
}

@media (max-width: 576px) {
  .swiper-slide {
    width: 100px;
    height: 70px;
  }
}
