.music-player-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.music-toggle {
    pointer-events: auto;
    width: 34px;
    height: 34px;
    background: rgba(15, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 30px 0 0 30px;
    border: 1px solid rgba(255,255,255,0.35);
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 24px;
    box-shadow: -2px 2px 14px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}
.music-toggle:hover {
    width: 74px;
    background: rgba(10, 12, 24, 0.95);
}
.music-panel {
    pointer-events: auto;
    background: rgba(15, 18, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px 0 0 24px;
    border: 1px solid rgba(255,255,255,0.22);
    border-right: none;
    padding: 20px 22px 22px 24px;
    width: 280px;
    margin-right: -280px;
    transition: margin-right 0.35s ease;
    color: white;
    box-shadow: -5px 6px 24px rgba(0,0,0,0.25);
}
.music-panel.open {
    margin-right: 0;
}
.music-panel h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}
.current-song {
    font-size: 0.92rem;
    text-align: center;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 14px 0;
}
.controls button {
    background: rgba(255,255,255,0.14);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 22px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.controls button:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.22);
}
.close-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
}
.close-panel:hover {
    color: white;
}
.auto-play-tip {
    font-size: 11px;
    text-align: center;
    margin-top: 10px;
    color: #ffd966;
    background: rgba(0,0,0,0.35);
    border-radius: 18px;
    padding: 6px 8px;
}
@media (max-width: 768px) {
    .music-player-container {
        right: 0;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    .music-panel {
        width: 240px;
    }
}