/* BGPlayer Stylesheet
 * Compatible con WordPress, PHP 7.4+
 * Autor: Begin / ChatGPT (2025)
 */

.bgplayer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111;
  color: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  font-family: "Inter", "Roboto", sans-serif;
  max-width: 420px;
  transition: background 0.3s ease;
}

.bgplayer-container .bgp-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bgplayer-container img {
  width: 64px;
  height: 64px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.bgplayer-container .bgp-info {
  display: flex;
  flex-direction: column;
}

.bgplayer-container .bgp-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.bgplayer-container .bgp-artist {
  font-size: 0.8rem;
  color: #aaa;
}

.bgplayer-container .bgp-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bgplayer-container button {
  all: unset;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--accent-color, #ff6e2e);
  color: #fff;
  font-size: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.bgplayer-container button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--accent-color, #ff6e2e);
}

.bgplayer-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Animación de "cargando" */
.bgplayer-container .bgp-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mensajes de error o estados */
.bgplayer-error,
.bgplayer-message {
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
  background-color: #e63946;
  margin-top: 0.5rem;
}

.bgplayer-message {
  background-color: #457b9d;
}

/* Responsive */
@media (max-width: 480px) {
  .bgplayer-container {
    flex-direction: column;
    text-align: center;
  }
  .bgplayer-container .bgp-left {
    flex-direction: column;
  }
  .bgplayer-container img {
    width: 80px;
    height: 80px;
  }
}
