/* ===== Estilos únicos de la página YouTube (complementan a common.css) ===== */

/* Contenedor principal */
.youtube-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: auto;
  background-color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  text-align: center;
}

/* Contenedor de información del canal */
.channel-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Logo del canal */
#channel-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 10px auto;
  transition: transform 0.3s ease;
}

#channel-image:hover {
  transform: scale(1.1);
}

/* Nombre y suscriptores del canal */
#channel-name {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 10px;
}

#subscriber-count {
  font-size: 1em;
  color: #0bf;
}

/* Carrusel de videos (Shorts y videos largos) */
.youtube-carousel-container {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  padding: 10px 0;
}

.youtube-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
}

.youtube-carousel .video-item {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: center;
  background-color: #444;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.youtube-carousel img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.youtube-carousel p {
  margin-top: 8px;
  font-size: 0.85em;
  color: #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rectángulo "Ver más en YouTube" al final del carrusel */
.youtube-carousel .ver-mas {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #c4302b;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
  height: 180px;
}

.youtube-carousel .ver-mas:hover {
  transform: scale(1.03);
  background-color: #a42823;
}

.youtube-carousel .ver-mas a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}
