.youtube-embedded {
    background-color: #000000;
}
.youtube-embedded h1 {
    color: #ffffff;
    text-align: center;
   padding-top: 20px;
   padding-bottom: 0;
   padding-left: 20px;
   padding-right: 20px;
}

.video-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;

  padding: 50px;
}

.video-main {
  flex: 2;
  min-width: 300px;
  position: relative;
}

/* Fade animation */
.video-main.fade-out iframe {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.video-main.fade-in iframe {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.video-main iframe {
  width: 100%;
  height: 350px;
  border-radius: 10px;
}

/* Scrollable list */
.video-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 250px;
  
  max-height: 400px;     /* Scroll height */
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom scrollbar */
.video-list::-webkit-scrollbar {
  width: 6px;
}

.video-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.video-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Video Item */
.video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  transition: 0.25s;
  border: 2px solid transparent;
  position: relative;
}

.video-item:hover {
  background: #ececec;
}

/* Active selected item */
.video-item.active {
  border-color: #ff0000;
  background: #fff5f5;
}

/* Thumbnail */
.video-item img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

/* Play icon overlay */
.video-item::after {
  content: "▶";
  position: absolute;
  left: 45px;
  top: 20px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 7px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* Title text */
.video-item p {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  max-height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Mobile */
@media (max-width: 768px) {
  .video-section {
    flex-direction: row;
    justify-content: center;
  }

  .video-main iframe {
    height: 250px;
    
  }

  .video-list {
    max-height: 300px;
    width: auto;
  }
  .youtube-embedded h1 {
    font-size: 1.2rem;
}
}
