.container {
  /* background-color: #101010; */
  padding: 0 20px;
  /* height: 100dvh; */
}

.player-container {
  background: #1c1c1c;
  border-radius: 18px;
  padding: 18px 12px 18px 12px;
  margin: 0 auto;
  max-width: 450px;
  width: 100%;
  min-width: 230px;
  height: 100%;
  max-height: 100%;
}

.cover {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 0 2px 14px #111a;
  margin-bottom: 10px;
  object-fit: cover;
  border: 2px solid #222;
}

.info {
  margin-bottom: 13px;
}

.info .title {
  font-size: 1.75em;
  font-weight: semibold;
  color: #fff;
  margin-bottom: 5px;
}

.info .artist {
  padding: 0;
  margin: 0;
  font-size: 1em;
  color: #a7ff1b;
  font-weight: 500;
}

.guia-vocal-credito {
  margin: 6px 0 0;
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.5);
}

.guia-vocal-credito a {
  color: #25D366;
  text-decoration: underline;
}

.loading {
  background: #191919;
  color: #1db954;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  padding: 10px 0 8px;
  margin: 18px 0 10px 0;
  font-size: 1.08em;
  z-index: 10;
  min-height: 18px;
  letter-spacing: 0.04em;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 12px;
}

.controls button {
  background: #1a1a1a;
  border: none;
  color: #fff;
  font-size: 1.5em;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
}

.controls button:hover {
  background: #fff;
  color: #000;
}

.progress-container {
  margin-bottom: 11px;
}
.buttons-tracks {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 15px auto;
}

/* ── Tooltip guía vocal no disponible ─────────────────────── */
.guia-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guia-no-guia-tip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 22px 10px 14px;
  margin-bottom: 10px;
  width: 270px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  z-index: 100;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.guia-no-guia-tip::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}

.guia-no-guia-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2a2a2a;
}

.guia-no-guia-tip strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 12px;
}

.guia-no-guia-tip p {
  margin: 0;
}

.guia-no-guia-tip a {
  color: #a7ff1b;
  text-decoration: underline;
}

.guia-no-guia-tip .tip-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #25D366;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.guia-no-guia-tip .tip-whatsapp-link:hover {
  text-decoration: underline;
}

.guia-btn-wrap.sin-guia:hover .guia-no-guia-tip,
.guia-btn-wrap.sin-guia:focus-within .guia-no-guia-tip,
.guia-btn-wrap.sin-guia.tip-open .guia-no-guia-tip {
  display: block;
}

.no-guia-tip-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.no-guia-tip-close:hover {
  color: #fff;
}

#btnGuiaVocal.sin-guia {
  opacity: 0.45;
  cursor: default;
}
.control-btn,
.btn-icono {
  transition: transform 0.1s;
  /* Si el framework pisa el transform, agregá: */
  will-change: transform;
}

#progressBar {
  width: 90%;
  margin: 0 auto 6px auto;
  height: 5px;
  border-radius: 4px;
  background: #5b5b5b;
  accent-color: #0175ff;
}

#timeDisplay {
  font-size: 0.97em;
  color: #a6a6a6;
  margin-bottom: 3px;
}

.tone-buttons-dual {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-around;
  gap: 9px;
  margin-bottom: 6px;
  max-width: 100%;
  /* Nuevo: no desborda la columna */
  overflow-x: auto;
  /* Si en pantallas chicas, agrega scroll horizontal */
  font-size: 1em !important;
}

.container-tone,
.container-speed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tone,
.speed {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.tone #toneDisplay,
.speed #speedLabel {
  max-width: 100px;
  min-width: 100px;
  margin: 0 8px;
  font-weight: bold;
  color: #fff;
  background: #232323;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 19px;
}

.tone-buttons-dual #increaseTone,
.tone-buttons-dual #decreaseTone,
.tone-buttons-dual #increaseSpeed,
.tone-buttons-dual #decreaseSpeed {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  color: #fff;
  background: none;
  outline: none;
  border: none;
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 2px !important;
  cursor: pointer;
}

.btn-restore-tone {
  background: none;
  border: none;
  outline: none;
  padding: 12px 8px;
  border-radius: 7px;
  color: #fff;
  font-weight: bold;
  background-color: #191919;
}

.btn-restore-tone:hover {
  cursor: pointer;
}

/* .tone-buttons-dual #increaseSpeed,
.tone-buttons-dual #decreaseSpeed {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50% !important;
  background: #fff;
  color: #222 !important;
  border: 1px solid #e8ca00 !important;
  font-size: 1.1em !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-shadow: 0 2px 10px rgba(44, 255, 96, 0.07) !important;
  margin: 0 2px !important;
  transition: background 0.2s, color 0.2s, border 0.2s !important;
  line-height: 1 !important;
  cursor: pointer;
  outline: none;
} */

/* .tone-buttons-dual button:active,
.tone-buttons-dual button:focus {
  background: #eca900 !important;
  border-color: #1db954 !important;
}

.tone-buttons-dual button:hover {
  background: #ffdd00 !important;
  color: #121212 !important;
} */

/* #speedLabel {
  font-weight: bold;
  color: #fff;
  background: #232323;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 0 4px;
  font-size: 1em;
} */
#toggleEq {
  margin: 8px 0 6px 0;
  background: #1b1b1b;
  color: #1db954;
  border-radius: 5px;
  border: 1px solid #2b2b2b;
  font-size: 0.97em;
  padding: 5px 14px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}

#toggleEq:hover {
  background: #1db954;
  color: #101010;
}

#eqPanel {
  margin-bottom: 8px;
  background: #191919;
  border-radius: 8px;
  padding: 8px 8px;
  color: #fff;
  font-size: 0.75em;
  box-shadow: 0 2px 8px #0003;
}

#eqPanel input[type='range'] {
  width: 94%;
  /*  accent-color: #1db954;
*/
}

.control-group {
  margin-bottom: 8px;
}

.control-group label {
  display: block;
  color: #fff;
  font-size: 0.98em;
  margin-bottom: 4px;
}

#volumeSlider {
  width: 94%;
  accent-color: #0175ff;
  /*  accent-color: #1db954;
*/
  height: 4px;
}

.player-extras {
  display: flex;
  /* gap: 14px; */
  justify-content: space-around;
  margin: 8px 0 12px 0;
}

.btn-icono {
  /* background: #101010; */
  background: none;
  color: white;
  /* border: 2px solid #fffb65; */
  border: none;
  outline: none;
  border-radius: 9px;
  font-size: 0.7em;
  padding: 8px 18px 8px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-icono span {
  font-size: 1.5em;
  margin-left: 5px;
  /* color: #fffb65; */
  display: flex;
  align-items: center;
}

.btn-icono i {
  font-size: 25px;
}

#btnGuardarPlaylist {
  width: 100%;
  padding: 15px 0;
  font-weight: semibold;
}

#eqPanel input[type='range'] {
  height: 4px;
  width: 100%;
  background-color: #f1f1f1;
  accent-color: #0175ff;
  border-radius: 50px;
  /* -webkit-appearance: none; */
}

/* -- MODAL PLAYLISTS -- */
.container-modal-playlists {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.show-modal-playlists {
  opacity: 1;
  visibility: visible;
}

.container-modal-playlists .modal-playlists {
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.7);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.show-modal-playlists .modal-playlists {
  transform: scale(1) translateY(0);
}

.container-modal-playlists .modal-playlists .header-modal-playlists {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 0;
  flex-shrink: 0;
}

.modal-pl-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(127, 204, 0, 0.1);
  border: 0.5px solid rgba(127, 204, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.container-modal-playlists .modal-playlists .header-modal-playlists .btn-close-modal-playlists {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  border: 0.5px solid transparent;
  background: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.container-modal-playlists .modal-playlists .header-modal-playlists .btn-close-modal-playlists:hover {
  background: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.modal-pl-body {
  padding: 14px 20px 22px;
  overflow-y: auto;
  flex: 1;
}

.title-modal-playlist {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
  font-family: inherit;
}

.modal-pl-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  line-height: 1.5;
}

.container-modal-playlists .modal-playlists .container-playlists {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 48px;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: 0.5px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item:hover {
  background: #1c1c1c;
  border-color: rgba(255, 255, 255, 0.08);
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item:active {
  background: #252525;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item .music {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #252525;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: background 0.18s ease;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item:hover .music {
  background: #2e2e2e;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item .pl-info {
  flex: 1;
  min-width: 0;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item h5 {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}

.container-modal-playlists .modal-playlists .container-playlists .playlist-item .pl-item-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 2px;
}

.separator-playlists {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  margin: 14px 0 12px;
  position: relative;
  line-height: 1;
}

.separator-playlists:not(:empty)::before,
.separator-playlists:not(:empty)::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 0.5px;
  background: rgba(255, 255, 255, 0.08);
}

.separator-playlists::before { left: 0; }
.separator-playlists::after  { right: 0; }

.btn-crear-playlist {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  background: #7fcc00;
  border: none;
  border-radius: 10px;
  color: #2a4500;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-crear-playlist:hover {
  background: #6ab300;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(127, 204, 0, 0.25);
}

.btn-crear-playlist:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 600px) {
  .player-container {
    padding: 6px 1vw 8px 1vw;
  }

  .cover {
    width: 42px;
    height: 42px;
  }
}
