/* 🌌 Estilo base */
html, body { 
  font-family: 'Inter', sans-serif; 
  /* background: linear-gradient(to bottom, #1e1e2f, #242437); */
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #f0f0f0; 
  overflow-x: clip; /* en lugar de hidden */
  width: 100%; 
  max-width: 100vw; 
  position: relative; 
  margin: 0 auto;
}


.center {
  margin: 0 auto;
  align-self: center;
}
.center-text{
  text-align:center;
}

.contenido {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.video.visible {
  opacity: 1;
  transform: translateY(0);
}


.youtube_logo{
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
    text-align: center;
    background: white;
    align-items: center;
    padding: 7px;
    border-radius: 5px;
}

.ver-mas-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.ver-mas-btn:hover {
  background-color: #666;
}


/* COMPARTIR CANAL */
.btn-compartir {
  background: none;
  border: none;
  font-size: 16px;
  margin-left: 10px;
  cursor: pointer;
  color: white;
  transition: color 0.3s;
  float:right;
  margin-top:4px;
}

.btn-compartir:hover {
  color: #0077cc;
}

.destacados-section {
  /*background: linear-gradient(to right, #fff8dc, #fff3e0);*/
  /*border: 2px solid #ffd700;*/
  /*padding: 20px;*/
  padding-top: 10px;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width:1200px;
  margin:0 auto;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #0000002e, #01a52457);
    /* border: 2px solid #ffd700; */
    /* padding: 20px; */
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}


@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.destacados-titulo {
  font-size: 1.8em;
  color: #d4af37;
  margin-bottom: 5px;
  text-align: center;
}

.destacados-descripcion {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}



/* 🧱 Tarjeta de canal */
.canal {
  height: 590px; /* altura fija para todos */
  margin:0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 30px;
  break-inside: avoid;
  max-width: 380px;
  background: #1a1a1a;
  padding: 20px;
  border-left: 5px solid #00ff99;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.canal h2{
  font-size: 14px;
  text-transform: uppercase;
}

.contenido.canal-unico {
  display: flex;
  justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.contenido.canal-unico .video{
  justify-self: center;
  max-width: 309px;
  display: inline-flex;
  width: 100%;
  margin: 20px;
}
.canal.full-width {
  width: 500px; /* o el ancho que uses normalmente */
  margin: 0 auto;
  
}

/* 🌟 Animación de aparición */
.canal {

  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.canal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Cuando se muestra solo un canal */
.contenido.canal-unico .canal {
  width: 100%;
  height: auto;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

/* También puedes ajustar el grid si lo usas */
.contenido.canal-unico .videos-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}


.canal:hover {
  transform: translateY(-5px);
}

/* 🎞️ Grid de videos */
.videos-grid {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px; /* espacio para scrollbar */
    scrollbar-color: #00ff99 transparent; /* Firefox */
  scrollbar-width: thin;
}

/* WebKit (Chrome, Edge, Safari) */
.videos-grid::-webkit-scrollbar {
  width: 8px;
}

.videos-grid::-webkit-scrollbar-track {
  background: transparent;
}

.videos-grid::-webkit-scrollbar-thumb {
  background-color: #00ff99;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.4);
  border: 2px solid #1a1a1a;
}

.videos-grid::-webkit-scrollbar-thumb:hover {
  background-color: #00cc88;
}


.videos-grid.full-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  justify-content: center;
  gap: 40px;
  padding: 10px 0;
}

.videos-grid::-webkit-scrollbar {
  width: 6px;
}
.videos-grid::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}


/* 📺 Video individual */
.video {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: #1a1a1a;
  border: 1px solid #a7a7a7b0;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  margin-bottom: 20px;
}

.video:hover {
  transform: scale(1.02);
}

.video img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.video img:hover {
  transform: scale(1.05);
}

/* ℹ️ Info del video */
.video-info {
  flex: 1;
  width: 100%;
  text-align: left;
  margin-top: 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-info a {
  text-decoration: none;
  color: #dcdbe7;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-info a:hover {
  text-decoration: none;
}

/* 👍👎 Botones de votación */
.voting-buttons {
  align-self: center;
  padding: 10px;
}

.btn-like,
.btn-dislike {
  background-color: #921a1a;
  height: 32px;
  border-radius: 5px;
  width: 70px;
  border: 0;
  color: #fff;
  margin: 0 5px;
}

.btn-like:hover,
.btn-dislike:hover {
  background-color: #c22b2b;
  color: #000;
}

.vote-btn.voted {
  background-color: #00cc99;
  color: white;
  border: none;
}



/* 🎵 Botón MP3 */
.mp3-btn {
  margin: 10px;
  padding: 10px 20px;
  background: linear-gradient(to right, #00ff99, #00ccff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mp3-btn:hover {
  background: linear-gradient(to right, #00ccff, #00ff99);
}

.mp3-btn.download-ready {
  background: #007bff;
}

.mp3-btn.download-ready:hover {
  background: #0056b3;
}

/* 🎬 Modal de video */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
  z-index:9999;
}

.modal-content {
  background-color: #111;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #444;
  width: 80%;
  max-width: 700px;
  border-radius: 8px;
  animation: fadeIn 0.4s ease;
}

.close {
  display: block;
    width: 90px;
  margin: 30px auto 10px;
  padding: 10px 10px;
  background-color: #ff4d4d;
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.close:hover {
  background-color: #e60000;
}

.btn-login{
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(to right, #00ff99, #00ccff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}
.btn-login:hover {
  background: linear-gradient(to right, #00ccff, #00ff99);

}


.verif-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.verif-modal.show {
  display: flex; /* o block */
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.verif-modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #555;
  width: 80%;
  max-width: 420px;
  border-radius: 8px;
  animation: fadeIn 0.4s ease;
  color: #eee;
  text-align: center;
}

.verif-title {
  margin-top: 0;
}

.verif-close {
  position: absolute;
  top: 10px; right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
  z-index: 10001;
}

.verif-body button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background: #00ff99;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


/* 🎞️ Animaciones */
@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🎚️ Filtros */
.filtro-section {
  max-width: 1200px;
  border-radius: 8px;
  margin-top:20px;
  padding:10px;
}

.filtro-musical,
.filtro-canal {
  border-radius: 8px;
  text-align: center;
  margin: 20px auto;
  padding: 10px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.filtro-musical {
  background-color: #0000008c;
}

.filtro-canal {
  background-color: #000000db;
}

.filtro-musical a,
.filtro-canal a {
display: inline-block;
    margin: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #24424d;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filtro-musical a:hover,
.filtro-canal a:hover {
  background: #007BFF;
  color: white;
}

.filtro-musical a.activo,
.filtro-canal a.activo {
  background: #007BFF;
  color: white;
}

/* 🖱️ Scroll personalizado */
.scroll-container {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ff0000 #2b2b2b
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #2b2b2b;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #2b2b2b;
  border-radius: 4px;
  border: 2px solid #ff0000;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #e03333;
}

.mp3-btn.loading {
  position: relative;
  pointer-events: none;
}

.mp3-btn.loading::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-favorito {
  position: relative;
  background: none;
  margin-top: 4px;
  align-self: revert;
  width: 30px;
  height: 25px;
  border: none;
  cursor: pointer;
  color: #e74c3c;
  font-size: 1.2em;
  transition: color 0.3s ease;
  float: right;
}


.btn-favorito:hover {
  transform: scale(1.2);
  color: #c0392b;
}

.btn-favorito i {
  pointer-events: none;
}


.btn-favorito::after {
  content: attr(data-tooltip);
  bottom: 110%;
  left: -190%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99999;
  position: absolute;
}

.btn-favorito:hover::after {
  opacity: 1;
}

.btn-favorito[disabled]:hover::after {
  opacity: 1;
}

.favorito-activo {
    opacity: 1;
  z-index:10;
}


.favorito-activo::after {
  background-color: #00cc88;
  z-index:9999;
}

.notificacion-dinamica {
  position: fixed;
  top: 30px; /* ← cambia bottom por top */
  right: 30px;
  background-color: #00cc88;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 99999;
  pointer-events: none;
  float:right;
}

.notificacion-dinamica.visible {
  opacity: 1;
  transform: translateY(0);
}

.modal-aviso {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-aviso.show {
  display: block;
}

.modal-aviso-contenido {
  background-color: #292828de;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


.modal-aviso-contenido button {
  background-color: #00c3ff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-aviso-contenido button:hover {
  background-color: #0099cc;
}

.paginacion {
  text-align: center;
  margin: 20px 0;
}

.paginacion .pagina {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background: #1818189d;
  border-radius: 4px;
  text-decoration: none;
  color: #c4c4c4;
}

.paginacion .pagina.activo {
  background: #203a43;
  color: white;
  font-weight: bold;
}


/* 📱 Responsive */
@media (max-width: 1024px) {
  .contenido {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 500px) {
  .canal {
    height:580px;
  }
}


@media (max-width: 600px) {
    .contenido.canal-unico .video{
    justify-self: center;
    max-width: 233px;
    display: inline-flex;
    width: 100%;
    margin: 20px;
  }
  
  .destacados-section {
    padding-bottom:20px;
    width:91%;
  }
  
  .canal {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    height:390px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video {
    max-width: 100%;
  }

  .video-info {
    margin-top: -20px;
  }
  
  .video-info a{
    text-decoration: none;
    color: #dcdbe7;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    width: 75%;
    text-overflow: ellipsis;
    float: left;
    margin-top: -11px;
    margin-bottom: 15px;
    align-self: end;
  }

  .voting-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }

  .btn-like,
  .btn-dislike {
    width: 100px;
  }
  
  .video img{
    width: 20%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    align-self: flex-start;
    flex-shrink: 0;
	}
	
.descargas-info{
	display:none;
}


	.mp3-btn{
        background: linear-gradient(to right, #00ff99, #00ccff);
        color: #000;
        margin: 10px 0px 10px 0px;
        font-weight: bold;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease;
	}
 
}
