/* Music Player Styles */
.music-player-btn {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    border-radius: 5px;
}

.music-player-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px #0f0;
}

.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    z-index: 1000;
    font-family: 'Courier New', monospace;
    color: #0f0;
    display: none;
    /* Hidden by default */
    flex-direction: column;
}

.music-player.show {
    display: flex;
}

.player-header {
    padding: 10px;
    border-bottom: 1px solid #0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 255, 0, 0.1);
}

.player-header button {
    background: none;
    border: none;
    color: #0f0;
    cursor: pointer;
    font-size: 1.2em;
}

.player-content {
    padding: 15px;
}

.now-playing {
    margin-bottom: 15px;
    text-align: center;
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#track-title {
    font-weight: bold;
    font-size: 1.1em;
}

#track-artist {
    font-size: 0.9em;
    opacity: 0.8;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.controls button {
    background: transparent;
    border: 1px solid #0f0;
    color: #0f0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.controls button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 10px #0f0;
}

#volume-slider {
    width: 100%;
    margin-bottom: 15px;
    accent-color: #0f0;
}

.playlist {
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    padding-top: 10px;
}

.playlist-item {
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item:hover {
    background: rgba(0, 255, 0, 0.1);
}

.playlist-item.active {
    background: rgba(0, 255, 0, 0.2);
    border-left: 3px solid #0f0;
}

/* Scrollbar styling */
.playlist::-webkit-scrollbar {
    width: 5px;
}

.playlist::-webkit-scrollbar-track {
    background: #000;
}

.playlist::-webkit-scrollbar-thumb {
    background: #0f0;
}