body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100vh;
    background-color: transparent;
    
}

.player {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 200px;
    height: 95px; /* Adjust height to accommodate all elements */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    padding-top: 2px; 
    position: relative; 
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the start */
    margin-top: 0;
    position: relative;
}

.now-playing-container {
    display: flex;
    flex-direction: column; /
    align-items: flex-start;
    opacity: 0;
    transition: opacity 1s;
    height: auto;
    margin-top: 0; 
}

.show-now-playing {
    opacity: 1;
}

.now-playing {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 2px; 
    margin-left: 20px; 
}

.current-song-container {
    display: flex;
    align-items: center;
}

.current-song {
    font-size: 12px;
    color: #666;
}

.rotating-icon {
    position: absolute; 
    top: 0; 
    left: -2px; 
    width: 20px; 
    height: 20px; 
    animation: rotate 2s linear infinite; 
    transform: translate(10px, 10px); 
    color: #666;
}

.list-icon {
    position: relative; 
    top: 9px; 
    right: 6px; 
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#song-info {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    margin: 10px 0;
}

.controls {
    display: flex;
    justify-content: space-around; 
    margin-top: 15px;
    margin-bottom: 5px;
}

button {
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    width: 25px;
}

button:hover {
    background: #0056b3;
}

button i {
    font-size: 1em;
}

button.active {
    background: #28a745;
}

button.active-repeat {
    background: #ffc107;
}

.progress {
    position: relative;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 2px; 
    cursor: pointer; 
}

#progress-bar {
    height: 100%;
    background: #007BFF;
    width: 0;
    transition: width 0.2s;
}

.song-list-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 140px;
    height: 90px;
    overflow-y: auto;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.song-list-container.show {
    opacity: 1;
}

.song-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #666;
}

.song-list li {
    padding: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.song-list li:hover {
    background: #cce5ff;
}
