.cover {
    width: 150px;
    margin: 0 auto 0;
    overflow: hidden;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

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

.player {
    width: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    cursor: grab;
    top:0;
    left: 0;
    z-index: 99999;
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
    max-height: 300px;
    overflow-y: auto;
}

#playlist li {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #eee;
}

#playlist li:last-child {
    border-bottom: none;
}

#playlist li:hover,
#playlist li.active {
    background-color: #0c0ff2;
    color: #ffffff;
}

#playlist li.active {
    font-weight: bold;
    color: #ffffff;
}

audio {
    display: none;
}

.custom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 10px;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    color: #333;
}

.control-btn:hover {
    color: #ed0171;
}

#custom-play {
    min-width: 30px;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #ed0171;
    border-radius: 4px;
}

#current-time, #duration {
    font-size: 0.8em;
}

.progress-container {
    width: 100%;
    margin-top: 10px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.time-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    margin-top: 5px;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: grab;
    margin-bottom: 5px;;
}

.title {
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}