body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
}

/* Tema Noche Tokyo Night */
body.night {
  background-color: #1a1b26;
  color: #c0caf5;
}

body.night .player-container {
  background: #24283b;
  border: 2px solid #7aa2f7;
  box-shadow: 0 0 12px #7aa2f7;
}

body.night .panel {
  background: #24283b;
  border: 1px solid #3b4261;
  box-shadow: inset 0 0 8px rgba(122,162,247,0.3);
}

body.night h2 {
  background: #1a1b26;
  color: #7aa2f7;
  font-weight: bold;
  /* text-shadow: 0 0 5px #432c6e; */
  text-shadow: none;
  border-bottom: 1px solid #3b4261 ;
}

body.night li {
  background: #1f2335;
  color: #c0caf5;
  border: 1px solid #3b4261;
}

body.night li button {
  background: #f7768e;
  color: #fff;
  box-shadow: 0 0 6px #f7768e;
}

body.night li button:hover {
  background: #c53b53;
}

body.night .formulario form,
body.night .busqueda {
  background: #24283b;
  color: #c0caf5;
  border: 1px solid #3b4261;
}

body.night input,
body.night select {
  background: #1f2335;
  color: #c0caf5;
  border: 1px solid #3b4261;
}

body.night button {
  background: #7aa2f7;
  color: #fff;
  box-shadow: 0 0 8px #7aa2f7;
}

body.night button:hover {
  background: #5a7bd5;
}


h1 {
  margin-top: 20px;
}

/* Sección superior: reproductor y listas */
.top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 20px;
}

/* Agrupador de paneles: coloca normal + mezclada en columna */
.panel-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  margin: 0 10px;
}

.player-container .formulario {
  margin-top: 20px;
  max-width: 100%;
  text-align: left;
}

/* .player-container {
  flex: 2;
  text-align: center;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 500px; 
  margin: 0 auto; 
} */
.player-container {
  flex: 2;
  text-align: center;
  background: linear-gradient(180deg, #ff4d4d, #ffcc00);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 600px; 
  margin: 0 auto;
  border: 4px solid #333; 
}
/* Panel principal y random con mismo estilo */
/* .panel {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  height: 300px;  
  overflow-y: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
} */
.panel {
  border: px solid #333;
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfdfd, #e0e0e0);
  padding: 10px;
  height: 300px;   /* altura más compacta */
  overflow-y: auto;
  box-shadow: inset 0 0 10px rgba(255,255,0,0.4), 0 2px 6px rgba(0,0,0,0.2);
}

.panel h2 {
  font-family: "Impact", sans-serif;
  font-size: 18px;
  text-align: center;
  background: #333;
  color: #ffcc00;
  padding: 8px;
  border-radius: 8px; 
  position:sticky; 
  top:0; 
  z-index: 1;  
}
/* .panel h2 {
  margin-top: 0;
  font-size: 16px;
  text-align: left;
  background: #fff;
  position:sticky; 
  top:0; 
  padding: 5px; 
  z-index: 1; 
  border-bottom: 1px solid #ccc; 
} */

/* Diferenciar colores de random */
.baile-random {
  background: #e8fbe8; /* verde suave */
}

.karaoke-random {
  background: #e8f0fb; /* azul suave */
}

/* Estilos para listas */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

li {
  background: #fff;
  margin: 5px 0;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Botón de borrar */
li button {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

li button:hover {
  background: #c0392b;
}

/* Formulario debajo */
/* .formulario {
  margin: 20px auto;
  max-width: 480px;
} */

.formulario form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.formulario label {
  font-weight: bold;
  margin-bottom: 4px;
}

.formulario input,
.formulario select,
.formulario button {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* .formulario button {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
} */
.formulario button, .random-buttons button {
  background: #ff4d4d;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px #ff4d4d, 0 0 12px #ffcc00;
  transition: transform 0.2s;
}

.formulario button:hover, .random-buttons button:hover {
  transform: scale(1.05);
  background: #ff1a1a;
}
/* .formulario button:hover {
  background-color: #2980b9;
} */

/* Botones random debajo del formulario */
.random-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}

.random-buttons button {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.random-buttons button:hover {
  background-color: #27ae60;
}

/* Apartado de búsqueda */
.busqueda {
  margin-top: 20px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
}

/* tema del boton dia y noche */
.theme-toggle {
  margin: 15px;
}

.switch {
  display: inline-block;
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
}

.switch::after {
  content: "";
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

#toggle-theme {
  display: none;
}

#toggle-theme:checked + .switch::after {
  left: 32px; /* 🔽 mueve el círculo a la derecha */
  background: #7aa2f7;
}

.sun, .moon {
  position: absolute;
  top: 4px;
  font-size: 18px;
}

.sun {
  left: 8px;
  color: #f7768e;
}

.moon {
  right: 8px;
  color: #bb9af7;
}

/* Ajustes específicos para el reproductor YouTube */
/* Contenedor del reproductor: mantiene proporción 16:9 */
#song-player {
  /* position: relative; */
  width: 100%;
  max-width: 560px;   /* ancho máximo */
  margin: 0 auto;     /* centrado */
  /* padding-top: 56.25%; */
  /* overflow: hidden; */
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* El iframe ocupa todo el contenedor */
#song-player iframe {
  /* position: absolute;
  top: 0;
  left: 0; */
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 12px;
}

