@charset "utf-8";
/* ---- GENERAL ---- */

body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  background-color: hsl(0, 0%, 0%);
  color: #e0e0e0;
  padding: 5px 10px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 10px 20px;
}

nav a {
  color: #1db954;
  margin-right: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover {
  color: #a7ff1b;
}

main.contenedor-principal {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}
.container-mobile {
  display: none;
}
.view-inactive {
  display: none !important;
}
.columna {
  padding: 0 28px;
  box-sizing: border-box;
}

.reproductor {
  width: 50%;
  text-align: center;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /*justify-content: center;*/
}

.playlist {
  width: 25%;
  background: #181818;
  border-left: 1px solid #222;
  min-width: 230px;
  box-shadow: -2px 0 5px #0008;
  border-radius: 18px;
}

.btn-green {
  background: #a7ff1b;
  color: #111;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-weight: bold;
  font-size: 1em;
  cursor: pointer;
  margin: 0 auto;
  transition: background 0.2s;
  display: inline-block;
  box-shadow: 0 2px 8px #0002;
}
.btn-green:hover {
  background: #1db954;
  color: #000;
}
#letra {
  margin-top: 10px;
  text-align: left;
  background: #191919;
  color: #f5f5f5;
  border-radius: 10px;
  padding: 12px 9px 12px 9px;
  font-size: 1.06em;
  line-height: 1.7;
  box-shadow: 0 1px 8px #0003;
}
#letraPlaylist {
  height: 600px;
  overflow-y: auto; /* Activa scroll vertical */
  padding: 10px;
  border-radius: 10px;
  background-color: #fff;
  color: #000;
  font-size: 14px;
}

#letra-controls button {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  margin-left: 5px;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}

#letraPlaylist > div {
  background: #fff;
  color: #111;
  border-radius: 11px;
  box-shadow: 0 2px 8px #0002;
  margin-top: 12px;
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.67;
  position: relative;
  height: 100%;
}
#letraPlaylist h3 {
  margin: 0 0 14px 0;
  color: #e59d00;
}
#letraPlaylist button {
  position: absolute;
  top: 13px;
  right: 15px;
  background: #e59d00;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.3em;
  cursor: pointer;
}
#letraPlaylist button:hover {
  background: #f9b656;
}

footer {
  background-color: #121212;
  color: #ccc;
  text-align: center;
  padding: 10px;
  font-size: 0.85em;
  width: 100%;
  position: fixed;
  bottom: 0;
}

.modal-letra {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 15, 15, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1200;
}
.modal-letra-content {
  background: #191919;
  border-radius: 18px;
  max-width: 540px;
  width: 94vw;
  padding: 34px 22px 22px 22px;
  box-shadow: 0 4px 24px #000a;
  color: #fff;
  text-align: left;
  font-size: 1.25em;
  line-height: 1.8;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}
.cerrar-letra {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #fffb65;
  color: #222;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.7em;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 1px 7px #0004;
  transition: background 0.15s, color 0.15s;
}

#playlistPanel {
  margin-top: 18px;
}
.head-playlist {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}
.head-playlist h4 {
  margin: 0;
  padding: 0;
}
.head-playlist .btn-head-playlist {
  background: #a7ff1b;
  color: #111;
  border: none;
  padding: 4px 7px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
}
.playlist-list {
  padding: 0;
  list-style: none;
}
.playlist-list li {
  user-select: none;
  background: #222;
  color: #fff;
  margin-bottom: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  justify-content: space-between;
  transition: background 0.13s;
}
.playlist-list li:hover {
  background: #81c90c;
}

.playlist-title {
  flex: 1 1 auto;
  font-size: 1em;
  /* margin-right: 12px; */
  margin: 0 12px;
}

.item-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0 3px;
}

.btn-playlist {
  background: #fff;
  border: none;
  border-radius: 7px;
  width: 26px;
  height: 26px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.11s;
  margin: 0 5px;
}

.btn-play-playlist {
  color: #1db954;
}

.btn-remove-playlist {
  color: #ff4242;
}
.btn-remove-playlist:hover {
  background: #ff4242;
  color: #fff;
}

.btn-play-playlist:hover {
  background: #1db954;
  color: #fff;
}

.cerrar-letra:hover {
  background: #a7ff1b;
  color: #000;
}

.pdf-container {
  width: 100%;
  height: 100%;
}

.view-active {
  display: flex;
  width: 100%;
}
.view-inactive {
  display: none;
}

@media (max-width: 600px) {
  .modal-letra-content {
    padding: 12vw 4vw;
    font-size: 1.07em;
  }
  .cerrar-letra {
    top: 6vw;
    right: 6vw;
  }
}
@media (max-width: 700px) {
  .tone-buttons-dual {
    flex-direction: row;
    max-width: 100%;
    gap: 9px;
  }
  body {
    padding: 0;
  }
}
/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  main.contenedor-principal {
    display: none;
  }
  .container-mobile {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    overflow-x: hidden;
  }

  .container-mb-catalogo,
  .container-mb-reproductor,
  .container-mb-playlists {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .columna {
    width: 100%;
    min-width: unset;
    padding: 10px 15px;
  }

  .columna.catalogo {
    order: 1;
  }

  .columna.reproductor {
    order: 2;
  }

  .columna.playlist {
    order: 4;
  }

  #letraPlaylist {
    order: 3;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 20px;
  }
}

@media (max-width: 1450px) {
  .playlist {
    width: 30%;
  }
  .reproductor {
    width: 40%;
    /* min-width: 340px; */
  }
}
