/* Estilo base del body */
html, body {
  margin: 0;
  padding: 0;
  background-color: #181818;
  color: #fff;
  font-family: Arial, sans-serif;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Matrix canvas como fondo animado */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

/* Contenedor principal encima del canvas */
.container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 600px;
  margin: 60px auto;
  background-color: rgba(34, 34, 34, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
  box-sizing: border-box;
}

/* Título */
h1 {
  font-size: 1.6em;
  margin-bottom: 20px;
  text-align: center;
  color: #0f0;
}

/* Lista de reproducción */
#playlist {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  max-height: 40vh;
  overflow-y: auto;
}

#playlist li {
  background: #333;
  margin: 5px 0;
  padding: 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
  font-size: 1rem;
}

#playlist li:hover {
  background: #555;
}

#playlist li.active {
  background: #0f0;
  color: #000;
  font-weight: bold;
}

/* Controles (si se usan) */
.controls {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.controls button {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  background: #0f0;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.controls button:hover {
  background: #0c0;
}

/* Reproductor de audio */
audio {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Media Queries para móviles más pequeños */
@media (max-width: 480px) {
  h1 {
    font-size: 1.3em;
  }

  #playlist li {
    font-size: 0.95rem;
    padding: 10px;
  }

  .container {
    padding: 15px;
    margin: 40px auto;
  }

  .controls button {
    min-width: 90px;
    padding: 8px;
    font-size: 0.9em;
  }
}




