/* 响应式修复CSS */

/* 音乐播放器在小屏幕上的优化 */
@media screen and (max-width: 768px) {
    /* 确保内容垂直居中 */
    .music-player {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* 调整专辑封面按钮大小 */
    #albumCoverBtn {
        width: 50px;
        height: 50px;
    }
    
    /* 隐藏歌曲信息以节省空间 */
    #songInfo {
        display: none;
    }
    
    /* 调整进度条容器 */
    #progressContainer {
        width: 100%;
        max-width: 120px;
    }
    
    /* 隐藏时间显示 */
    #currentTime, #totalTime {
        display: none;
    }
    
    /* 调整控制按钮 */
    #controls button {
        padding: 5px;
        font-size: 12px;
    }
    
    /* 播放列表弹窗在移动端的优化 */
    #playlistModal {
        right: 20px !important;
        left: 20px !important;
        width: calc(100% - 40px) !important;
        bottom: 80px !important; /* 调整距离底部的距离 */
        max-height: 300px !important; /* 增加最大高度 */
    }
    
    /* 允许移动端显示列表按钮 */
    #musicPlayer #listBtn {
        display: block !important;
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
}

@media screen and (max-width: 768px) {
    #announcement-modal h3 { font-size: 1.2rem; }
    #announcement-modal p { font-size: 0.9rem; }
    #announcement-modal button { font-size: 0.9rem; padding: 8px 16px; }
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb {
    background: #54C754;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #45a045;
}

/* 确保在移动设备上滚动条可见 */
@media (hover: none) and (pointer: coarse) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}
#announcement-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0) !important;
    z-index: 10000 !important;
}

#announcement-modal .modal-content-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 auto !important;
    width: 85% !important;
    max-width: 450px !important;
    max-height: 80vh;
    overflow-y: auto;
    background: #FFFFFF !important;
    padding: 25px !important;
    border-radius: 15px !important;
    box-shadow: none !important;
    border: 1px solid #eee !important;
}