/* Fondo de video (opcional) */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  flex-direction: column;
  align-items: center;
  display: flex;
  justify-content: flex-start;
  height: 100vh; /* Asegura que ocupe toda la altura */
  background: #f0f0f0; /* Fondo claro para el contenido */
  color: #333; /* Color de texto */
  padding: 5px;
}

/* Contenedor general */
.container {
  text-align: center;
}

/* Logo circular con rebote */
.logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  animation: bounce 2.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  margin-top: 50px;
}

/* Animación ping-pong */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-40px);
  }
}

/* Botones */
.buttons {
  margin-top: 270px; /* los baja en pantalla */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.btn {
  font-size: 1.1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  background: white;
  transform: scale(1.05);
}

#bgvideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Sección de karaoke */
.karaoke-section {
  margin-top: 50px; /* Da un pequeño margen en la parte superior */
  text-align: center;
  padding: 20px;
  max-width: 80%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9); /* Fondo blanco con algo de transparencia */
  border-radius: 10px; /* Bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Títulos */
.title, .subtitle {
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Input de búsqueda */
.karaoke-input {
  padding: 12px 18px;
  border-radius: 25px;
  border: 2px solid #ddd;
  margin-top: 20px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  width: 80%; /* Ancho del input */
}

.karaoke-input::placeholder {
  color: #aaa;
}

/* Botón Limpiar */
.btn-clear {
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.2s ease;
}

.btn-clear:hover {
  background: #e53935;
}

/* Estilos de la lista de canciones */
.songs-list {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}

.songs-list li {
  background-color: #e0e0e0;
  margin: 10px 0;
  padding: 12px;
  border-radius: 5px;
  text-align: left;
  color: #333;
}

.songs-list li:hover {
  background-color: #d3d3d3;
  cursor: pointer;
}

/* ================================================
   MEDIA QUERIES PARA TELÉFONOS Y PANTALLAS PEQUEÑAS
================================================ */

/* Para pantallas pequeñas (móviles) */
@media (max-width: 767px) {

  /* Reducir tamaño de la fuente del logo */
  .logo {
    width: 120px;
    height: 120px;
  }

  /* Hacer el input de búsqueda más grande */
  .karaoke-input {
    font-size: 1.7rem;
    width: 100%;
  }

  /* Reducir márgenes y hacer los botones más grandes */
  .buttons {
    margin-top: 280px; /* Menos margen entre el logo y los botones */
    gap: 12px; /* Reducir espacio entre botones */
  }

  .btn {
    font-size: 1rem;
    padding: 12px 28px;
  }

  /* Estilo de la lista de canciones */
  .songs-list li {
    font-size: 0.9rem; /* Reducir tamaño de la fuente */
    padding: 10px; /* Reducir el padding para caber en pantallas más pequeñas */
  }

  /* Estilo del contenedor de karaoke */
  .karaoke-section {
    padding: 15px;
    margin-top: 30px;
    max-width: 100%;
  }

  /* Títulos más pequeños */
  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {

  /* Reducir tamaño de la fuente del logo */
  .logo {
    width: 120px;
    height: 120px;
  }

  /* Hacer el input de búsqueda más grande */
  .karaoke-input {
    font-size: 1.7rem;
    width: 100%;
  }

  /* Reducir márgenes y hacer los botones más grandes */
  .buttons {
    margin-top: 400px; /* Menos margen entre el logo y los botones */
    gap: 12px; /* Reducir espacio entre botones */
  }

  .btn {
    font-size: 1rem;
    padding: 12px 28px;
  }

  /* Estilo de la lista de canciones */
  .songs-list li {
    font-size: 0.9rem; /* Reducir tamaño de la fuente */
    padding: 10px; /* Reducir el padding para caber en pantallas más pequeñas */
  }

  /* Estilo del contenedor de karaoke */
  .karaoke-section {
    padding: 15px;
    margin-top: 30px;
    max-width: 100%;
  }

  /* Títulos más pequeños */
  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 2rem;
  }
}

@media (max-width: 320px) {

  /* Reducir tamaño de la fuente del logo */
  .logo {
    width: 120px;
    height: 120px;
  }

  /* Hacer el input de búsqueda más grande */
  .karaoke-input {
    font-size: 1.7rem;
    width: 100%;
  }

  /* Reducir márgenes y hacer los botones más grandes */
  .buttons {
    margin-top: 270px; /* Menos margen entre el logo y los botones */
    gap: 12px; /* Reducir espacio entre botones */
  }

  .btn {
    font-size: 1rem;
    padding: 12px 28px;
  }

  /* Estilo de la lista de canciones */
  .songs-list li {
    font-size: 0.9rem; /* Reducir tamaño de la fuente */
    padding: 10px; /* Reducir el padding para caber en pantallas más pequeñas */
  }

  /* Estilo del contenedor de karaoke */
  .karaoke-section {
    padding: 15px;
    margin-top: 30px;
    max-width: 100%;
  }

  /* Títulos más pequeños */
  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 2rem;
  }
}