/* Video Gallery Styles */
.video-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.video-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.video-gallery-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.channel-link {
  display: flex;
  align-items: center;
  background-color: #ff0000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.channel-link:hover {
  background-color: #cc0000;
  color: #fff;
  text-decoration: none;
}

.channel-icon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

/* Responsive grid */
@media (min-width: 576px) {
  .video-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .video-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-item {
  background-color: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.play-button svg {
  width: 30px;
  height: 30px;
}

.video-title {
  padding: 15px;
  min-height: 80px;
}

.video-title h3 {
  color: #fff;
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Video Popup */
.video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-popup.active {
  display: flex;
}

.video-popup-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background-color: #000;
}

.close-popup {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 1;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

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