
.youtube-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* 🔧 Centra verticalmente la lista con el video */
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  gap: 10px;
}

.main-video {
  flex: 2 1 640px;
  aspect-ratio: 16 / 8; /* 🔧 Un poco más alto que 16/6 */
  max-height: 420px; /* 🔧 Altura moderada */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.main-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-list {
  flex: 1 1 320px;
  max-height: 420px; /* 🔧 Igual altura que el video */
  overflow-y: auto;
  background: #1c1c1c;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.video-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  padding: 4px;
}

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

.video-item img {
  width: 120px;
  height: 67px;
  border-radius: 6px;
  margin-right: 10px;
  object-fit: cover;
}

.video-item h4 {
  font-size: 14px;
  margin: 0;
  color: #fff;
  line-height: 1.2em;
}

@media (max-width: 768px) {
  .youtube-container {
    flex-direction: column;
    align-items: stretch;
  }

  .main-video, .video-list {
    max-height: none;
    width: 100%;
  }

  .video-list {
    order: 2;
  }
}