.container-music {
    width: 500px;
    height: 150px;
    display: flex;
    justify-content: space-between;
    background-color: var(--music-widget-container-bg-color);
    border-radius: 25px;
    align-self: center;
}

#popup-menu {
    display: none;
    /*background-color: rgba(45, 45, 45, 0.6);*/
    background-color: var(--music-widget-container-bg-color);
    width: 150px;
    height: 100px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    top: 20px;
    left: 350px;
}
#play {
    cursor: pointer;
}
.item {
    text-decoration: none;
    color: var(--music-widget-textara-color);
    padding-top: 20px;
}

#mj-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.info {
    position: relative;
    left: 20px;
    top: 25px;
    float: left;
    display: inline-block;
}

.text-area {
    width: 60%;
    text-align: center;
    padding-left: 20px;
    color: var(--music-widget-textara-color);
    font-family: 'sans-serif', 'Helvetica';
}

#Song-Name {
    font-size: larger;
}

.more {
    position: relative;
    left: 0;
    float: right;
}
#more-button {
    background: transparent;
    border: none;
    line-height: 80px;
}
.more:hover .popup{
    transition: all 1s ease 0.1s;
}

/* 2025-11-07 ProgressBar */
#progress-container {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    position: relative;
    border-radius: 2px;
    cursor: pointer;
}

#progress-bar {
    height: 100%;
    background: #ff6600;
    width: 0;
    position: relative;
    border-radius: 2px;
    transform-origin: left center;
    transition: transform 0.1s linear;
    will-change: transform;
}

/* 当前进度小圆点 */
#progress-handle {
    position: absolute;
    top: 50%;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #ff4d4f;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* 时间显示 */
#time-display {
    margin-top: 2px;
    text-align: center;
    font-size: 13px;
    color: #555;
    letter-spacing: 0.5px;
}

.player-cover {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.player-cover:hover {
    transform: scale(1.03);
}

.player-cover img {
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    transition: transform 0.3s ease;
    will-change: transform;
}

.player-cover.playing img {
    animation: rotateDisc 8s linear infinite;
}

@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: auto;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.15s ease;
}

.player-cover:hover .play-btn {
    opacity: 1;
}

.play-btn:active {
    transform: scale(0.9);
}

.play-btn svg {
    pointer-events: none;
}

/* 居中 SVG 图标 */
.audio-control-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 鼠标悬停时轻微放大 */
.info:hover .audio-control-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 隐藏状态 */
.hidden {
    display: none;
}

@media screen and (max-device-width: 400px){
    .container-music {
        width: 100%;
    }
    .text-area {
        padding-left: 1%;
    }
    #popup-menu {
        left: 210px;
    }
    .more {
        padding-left: 0;
    }
}