/* Estilo General */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: row;
    flex-wrap: wrap;
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: #181818;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* T  tulo Principal */
header {
    display: block;
}
header h1 {
    color: #1ED760;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Formulario de Subida */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

form input, form button {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

form input {
    background-color: #404040;
    color: #ffffff;
}

form button {
    background-color: #1ED760;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #1bc057;
}

/* Barra de Progreso del Formulario */
.progress-container {
    width: 100%;
    background-color: #404040;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
    margin-top: 10px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: #1ED760;
    transition: width 0.2s ease-in-out;
}

/* Contenedor del Reproductor */
.audio-container {
    background-color: #202020;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    padding: 15px;
    max-width: 500px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}








audio {
    width: 100%;
    background-color: #33334d;
    border-radius: 40px;
    padding: 10px;
}

/* Controles Personalizados del Reproductor */
.audio-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.audio-button {
    padding: 10px 15px;
    background-color: #1ED760;
    border: none;
    border-radius: 5px;
    color: #181818;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.audio-button:hover {
    background-color: #1bc057;
}

/* Barra de Progreso del Reproductor */
.audio-progress {
    width: 100%;
    height: 10px;
    background-color: #33334d;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.audio-progress-bar {
    width: 0%;
    height: 100%;
    background-color: #1ED760;
    transition: width 0.2s ease;
}

.audio-time {
    color: #1ED760;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Lista de Canciones */
/* Lista de Canciones */
.music-item {
    display: flex;
    align-items: center;
    /*justify-content: space-between;  Distribuir contenido a los extremos */
    padding: 10px;
    background-color: #282828;
    margin-bottom: 10px;
    border-radius: 20px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    width: 100%; /* Ajustar al ancho completo */
    box-sizing: border-box; /* Incluye el padding en el tamaño total */
}

.music-item:hover {
    transform: scale(1.02);
    background-color: #33334d;
}

/* Contenedor del contador de votos */
.vote-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Espacio entre el corazón y el contador */
    width: 60px; /* Ancho fijo para todo el contenedor */
    flex-shrink: 0; /* Evita que el contenedor se ajuste automáticamente */
}

/* Contador de votos */
.vote-counter {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background: #333333;
    padding: 5px 0;
    width: 35px; /* Ancho fijo para mantener espacio hasta 3 dígitos */
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Evita cambios de tamaño */
    transition: background 0.3s ease, color 0.3s ease;
}

.vote-counter:hover {
    background: #1ED760;
    color: #000000;
}

/* Botón de votación (corazón) */
.vote-container button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ff4d6d;
    cursor: pointer;
    transition: transform 0.2s ease;
   
}

.vote-container button:hover {
    transform: scale(1.2);
}

.music-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre imagen y votación */
    margin-bottom: 10px;
}

.music-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1ED760;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.music-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #282828;
    margin-bottom: 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    gap: 10px; /* Espacio entre la imagen y el texto */
}


.music-name {
    margin-left: 10px; /* Leve separación entre la imagen y el texto */
    font-size: 1rem;
    color: white;
}


/* Overlay de la imagen */
/* Overlay de la imagen */
#imageOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    gap: 20px; /* Espacio entre el círculo y el reproductor */
}

.song-overlay-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #fff;
    border: 10px solid #1ED760;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    animation: spin 5s linear infinite;
    overflow: hidden;
}

/* Imagen giratoria */
.song-overlay-circle .rotating-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: spin 5s linear infinite; /* La imagen rota */
}

/* Botón STOP */
.stop-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(46, 46, 46, 0.8);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 10; /* Asegura que el botón esté sobre la imagen */
    transition: background-color 1.0s;
}

.stop-button:hover {
    background-color: #169b45;
}

/* Animación de rotación */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Círculo giratorio */
.song-overlay-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: #fff;
    border: 10px solid #2e2e2e; /* Borde grueso */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    animation: spin 10s linear infinite; /* Agrega la animación */
}

.song-overlay-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Mantiene la forma circular */
}










/* Botón Salir */
#close-button-container {
  position: fixed;
  top: 50%; /* Centrado verticalmente */
  left: -30px; /* Mueve el botón más hacia afuera de la pantalla */
  transform: translateY(-50%); /* Ajusta el centro vertical */
  z-index: 9999; /* Asegura que esté por encima de todo */
}

#close-button {
  background-color: #da4107; /* Color principal del botón */
  color: white; /* Texto blanco */
  border: none; /* Sin bordes */
  border-radius: 8px; /* Bordes redondeados */
  padding: 5px 16px; /* Espaciado interno */
  font-size: 17px; /* Tamaño de fuente */
  cursor: pointer; /* Cambia el cursor al pasar el mouse */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); /* Sombra para dar efecto flotante */
  transform: rotate(-90deg); /* Gira el botón 90 grados en sentido antihorario */
  transform-origin: center; /* El punto de giro es el centro */
  transition: transform 0.3s, background-color 0.3s; /* Transición suave */
}

#close-button:hover {
  background-color: #e55020; /* Color más claro al pasar el mouse */
  transform: rotate(-90deg) scale(1.1); /* Mantén la rotación y agranda ligeramente */
}