/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.music-player {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a4a4a;
    font-size: 24px;
}

/* Estilos del reproductor */
.player-container {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.song-details {
    text-align: center;
    margin-bottom: 15px;
}

#song-name {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Barra de progreso */
.progress-container {
    margin: 15px 0;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    height: 8px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

#progress {
    background-color: #3498db;
    border-radius: 5px;
    height: 100%;
    width: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s linear;
}

#timer {
    font-size: 14px;
    color: #666;
    text-align: right;
}

/* Controles del reproductor */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
}

.control-btn {
    background-color: #f8f9fa;
    border: none;
    border-radius: 50%;
    color: #4a4a4a;
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background-color: #e9ecef;
    color: #3498db;
}

.control-btn.play {
    background-color: #3498db;
    color: white;
    height: 50px;
    width: 50px;
    font-size: 20px;
}

.control-btn.play:hover {
    background-color: #2980b9;
}

.control-btn.active {
    background-color: #3498db;
    color: white;
}

#show-playlist-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 14px;
    width: auto;
    height: auto;
}

#show-playlist-btn:hover {
    background-color: #e9ecef;
}

/* Estilos para el botón de compartir */
.share-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

#share-btn, .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: auto;
    height: auto;
}

#share-btn:hover, .share-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#share-btn:active, .share-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

#share-btn i, .share-btn i {
    margin-right: 5px;
}

/* Notificación para copiar enlace */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

/* Lista de reproducción */
#playlist {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

#playlist h3 {
    margin-bottom: 10px;
    color: #4a4a4a;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.song-list {
    list-style: none;
}

.song-list li {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.song-list li:hover {
    background-color: #e9ecef;
}

.song-list li.playing {
    background-color: #d1ecf1;
    color: #0c5460;
    font-weight: bold;
}

.song-list li.loading {
    color: #666;
    font-style: italic;
    background-color: transparent;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .music-player {
        padding: 15px;
    }
    
    .controls {
        gap: 10px;
    }
    
    .control-btn {
        height: 35px;
        width: 35px;
        font-size: 14px;
    }
    
    .control-btn.play {
        height: 45px;
        width: 45px;
        font-size: 18px;
    }
    
    #show-playlist-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    #share-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Corrección para el banner - usando imagen local */
.banner-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.banner {
    position: relative;
    width: 100%;
    /* La proporción 16:9 se logra con un padding-top de 56.25% */
    padding-top: 56.25%;
    overflow: hidden;
    /* Usar la imagen local desde la carpeta "images" */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/Banneruno.png');
    background-size: cover;
    background-position: center;
    /* Añadir un color de fondo en caso de que la imagen no cargue */
    background-color: #3498db;
}

.banner h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: white;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2.2em;
}

/* Ajustes para el reproductor después de agregar el banner */
.music-player {
    padding-top: 0;
}


footer a {
    color: #3498db; /* Mantén el color deseado */
    text-decoration: underline;
    cursor: pointer; /* Asegura que el puntero cambie al pasar el ratón */
    z-index: 9999; /* Asegura que esté encima de otros elementos */
    position: relative; /* Para que el z-index funcione correctamente */
}

footer a:hover {
    color: #2980b9; /* Color al pasar el ratón */
}

