* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b1120;
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.audio-player-container {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2), inset 0 0 20px rgba(14, 165, 233, 0.05);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.player-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
}

.player-header h2 {
    color: #38bdf8;
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.player-header p {
    font-size: 0.9rem;
    color: #94a3b8;
}

.player-content {
    display: flex;
    flex-wrap: wrap;
}

/* Panel Izquierdo */
.player-left {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid rgba(56, 189, 248, 0.2);
}

.album-cover-container {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-title {
    color: #38bdf8;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 1.2rem;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: #38bdf8;
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 10px #38bdf8;
}

.time-displays {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.control-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: #94a3b8;
    transition: fill 0.2s ease;
}

.control-btn:hover svg {
    fill: #38bdf8;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.play-btn svg {
    fill: #38bdf8;
}

.play-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Panel Derecho */
.player-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.playlist-title {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    color: #fcd34d;
    font-weight: 500;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.playlist-list {
    list-style: none;
    overflow-y: auto;
    max-height: 450px;
    flex-grow: 1;
}

/* Scrollbar personalizada */
.playlist-list::-webkit-scrollbar {
    width: 8px;
}
.playlist-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.playlist-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
.playlist-list::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

.playlist-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.playlist-item:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.playlist-item.playing {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-left: 3px solid #38bdf8;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .player-left {
        border-right: none;
        border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    }
    
    .playlist-list {
        max-height: 300px;
    }
}
