/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Contenedor principal */
.player-container {
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 8px 10px 4px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    height: auto;
    min-height: 115px;
}

.player-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 2px;
}

/* Portada del álbum */
.album-art {
    position: relative;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.now-playing-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 16px;
}

/* Información de la canción */
.song-info-wrapper {
    flex: 2;
    min-width: 140px;
    overflow: hidden;
}

.song-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4af37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    line-height: 1.2;
}

.song-artist {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

/* Fila de estadísticas compacta */
.stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
}

.stats-row i {
    margin-right: 2px;
    color: #d4af37;
    font-size: 0.6rem;
}

.listeners, .bitrate, .current-time {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
}

.current-time {
    color: #d4af37;
}

/* Controles */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.control-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #d4af37;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

/* Control de volumen */
.volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-icon {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    width: 18px;
}

.volume-slider-container {
    width: 55px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.volume-slider {
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 9px;
    height: 9px;
    background: #d4af37;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px #d4af37;
    margin-top: -3px;
}

.volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #d4af37);
    border-radius: 2px;
}

/* Contenedor de progreso */
.progress-container {
    width: 100%;
    margin-top: 2px;
    padding: 0 2px;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #d4af37);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Hover effects */
.player-container:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Responsive - Móviles */
@media (max-width: 500px) {
    body {
        min-height: 115px;
    }
    
    .player-container {
        padding: 6px 8px 3px 8px;
    }
    
    .album-art {
        width: 48px;
        height: 48px;
    }
    
    .song-title {
        font-size: 0.8rem;
    }
    
    .song-artist {
        font-size: 0.7rem;
    }
    
    .stats-row {
        font-size: 0.6rem;
        gap: 5px;
    }
    
    .volume-slider-container {
        width: 40px;
    }
}

/* Responsive - Móviles pequeños */
@media (max-width: 380px) {
    .volume-container {
        display: none;
    }
    
    .player-controls {
        gap: 4px;
    }
    
    .stats-row .bitrate {
        display: none;
    }
}