.player-container {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#cover-image-container {
    width: 72px;
    height: 72px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: -1px;
    flex-shrink: 0;
}

#cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0rem;
}

#waveform-container {
    position: relative;
    flex-grow: 1;
    height: 72px;
    overflow: hidden;
    border-radius: 1px;
}

#waveform-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 350%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Ensure it is below time-display */
}

#progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-image: linear-gradient(to right, rgb(0 169 255 / 30%), rgb(192 0 255 / 70%));
    z-index: 2;
}

.control-button,
.control-buttons {
    background-color: rgb(0 0 0 / 0%);
    color: #a5003c;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
}

.control-button {
    font-size: 24px;
    width: 50px;
    height: 50px;
}

.control-buttons {
    font-size: 15px;
    width: 20px;
    height: 20px;
}

.control-button:hover,
.control-buttons:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

#play-pause-button,
#play-mode-button,
#volume-button {
    position: absolute;
}

#play-pause-button {
    left: 21px;
    top: 21px;
}

#play-mode-button {
    right: 10px;
    bottom: 40px;
}

#volume-button {
    right: 70px;
    bottom: 40px;
}

#music-title {
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 18px;
    color: #333;
    white-space: nowrap;
}

.volume-slider {
    display: none;
    position: absolute;
    right: 70px;
    bottom: 15px;
}

.play-mode {
    font-size: 15px;
}

#time-display {
    position: absolute;
    right: 10px;
    bottom: 3px;
    font-size: 14px;
    color: #999797;
    z-index: 3; /* Ensure it is above waveform-image */
}
