    html,
    body {
        overflow: hidden;
        touch-action: manipulation;
        /* 防止页面滚动 */
    }
@media (max-width: 768px) {
     #music {
        height: 100%;
    }
}

/* 针对更小手机屏幕的特殊调整 */
@media (max-width: 480px) {
     #music {
        height: 100%;
    }
}
    #music {
width: 100%;
    max-width: 500px;
    height: 100vh; 
    border-radius: 10px;
    position: relative;
    background-color: #024242;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    }

    #container {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100%;
        max-width: 500px;
        transform: translate(-50%, -50%);
        text-align: center;
        background: rgba(255, 255, 255, 0);
    }

    .tiname {
        overflow: hidden;
        text-align: left;
        width: 290px;
        position: relative;
        top: 50px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #musicImg {
        width: 280px;
        height: 280px;
        border-radius: 50%;
    }

    audio {
        display: block;
        margin: 20px auto;
    }

    #musicName {
        line-height: 30px;
        color: white;
    }

    #musicsinger {
        line-height: 30px;
        color: white;
        margin-top: -15px;
        color: white;
    }

    .btn>button {
        width: 60px;
        height: 30px;
        border-radius: 10px;
        font-size: 24px;
        color: white;
        background: none;
        border: none;
        margin: 0;
        cursor: pointer;
    }

    #playlist {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10;

        align-items: center;
        justify-content: center;
    }

    #playlistContent {
        background: white;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-height: 80%;
        overflow-y: auto;

    }

    #playlist ul,
    #albumList ul {
        list-style-type: none;
        padding: 0;
        font-size: 12px;
    }

    #playlist li,
    #albumList li {
        display: flex;
        align-items: center;
        padding: 5px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
    }

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

    #playlist li:hover,
    #albumList li:hover {
        background: #f0f0f0;
    }

    #playlist img,
    #albumList img {
        width: 40px;
        height: 40px;
        border-radius: 20px; 
        display: block;
        margin-right: 10px;
    }

    #playlist .details,
    #albumList .details {
        flex: 1;
    }

    #playlist .name,
    #albumList .name {
        font-size: 15px;
    }

    #playlist .singer,
    #albumList .singer {
        color: #888;
        font-size: 13px;
    }

    #loopMode {
        font-size: 24px;
        cursor: pointer;
    }

    #playlist li.active,
    #albumList li.active {
        background-color: #e0e0e0;
        font-weight: bold;
    }

    @-webkit-keyframes wave {
        0% {
            height: 8px;
        }

        50% {
            height: 32px;
        }

        100% {
            height: 12px;
        }
    }

    @keyframes wave {
        0% {
            height: 8px;
        }

        50% {
            height: 32px;
        }

        100% {
            height: 12px;
        }
    }

    .music-wave {
        height: 15px;
        margin-left: auto;
    }

    .music-wave div {
        width: 2px;
        height: 100%;
        background-color: #888;
        display: inline-block;
        margin: 0 1px;
        animation: wave 0.66s linear infinite;
    }

    .music-wave div:nth-of-type(2) {
        animation-duration: 0.7s;
    }

    .music-wave div:nth-of-type(3) {
        animation-duration: 0.8s;
    }

    .music-wave div:nth-of-type(4) {
        animation-duration: 0.9s;
    }

    .music-wave div:nth-of-type(5) {
        animation-duration: 1s;
    }

    .music-wave div:nth-of-type(6) {
        animation-duration: 1.1s;
    }

    .inactive {
        display: none;
    }

    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        justify-content: center;
        align-items: center;
        z-index: 10;
    }


    .modal-content {
        padding: 0 20px 20px;
        max-width: 400px;
        width: 70%;
        position: relative;
        max-height: 60vh;
        overflow: auto;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: -20px;
        background: #f5f5f5;
        padding: 0px 10px;
        border-bottom: 1px solid #ddd;
        z-index: 10;
        width: 105%;
        margin-left: -20px;
    }

    #closeAlbumModalBtn,
    #openAlbumModalBtn {
        background: #f00;
        color: #fff;
        border: none;
        padding: 0px 6px;
        cursor: pointer;
        border-radius: 4px;
        font-size: 20px;
    }

    #closeAlbumModalBtn:hover,
    #openAlbumModalBtn:hover {
        background: #d00;
    }


    /* 专辑列表的头部样式 */
    .album-header {
        display: flex;
        flex-wrap: wrap;
        /* 允许元素换行，保证专辑名占满整行 */
        align-items: center;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 8px;
        margin-bottom: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-width: 400px;
        /* 控制最大宽度 */
    }
    #albumList{
        margin-top: 15px;
    }
    /* 专辑名占据一整行 */
    .album-header h4 {
        text-align: left;
        font-size: 1em;
        font-weight: bold;
        margin: 0 0 5px;
        width: 100%;
    }

    /* 专辑封面样式 */
    .album-cover {
        width: 50px !important ;
        height: 50px !important;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 15px;
    }

    /* 加号按钮样式 */
    .album-title {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 15px;
    }

    .toggle-album {
        background-color: #007bff;
        border: none;
        border-radius: 5px;
        padding: 5px;
        color: #fff;
        font-size: 1.2em;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 22px;
        cursor: pointer;
    }

    /* 歌唱家样式 */
    .album-singer {
        font-size: 12px;
        color: #666;
        margin-right: auto;
        margin-left: 10px;
        /* 增加一些左边距，保证视觉间隔 */
    }

    /* 播放全部按钮 */
    .play-all-btn {
        background-color: #28a745;
        border: none;
        border-radius: 5px;
        color: #fff;
        padding: 5px;
        cursor: pointer;
        font-size: 1.2em;
        transition: background-color 0.3s;
    }

    /* 播放全部按钮悬停效果 */
    .play-all-btn:hover {
        background-color: #218838;
    }

    /* 专辑头部悬停效果 */
    .album-header:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    #bufferIcon {
        color: green;
        margin-left: 10px;
        /* 图标和文字之间的距离 */
    }

    .highlight {
        background-color: #ddd;
        /* 高亮背景颜色 */
        border: 1px solid #ddd;
        /* 高亮边框颜色 */
    }
    .no-animation {
        animation: none !important;;
    }
 .highlight img {
    width: 200px; /* 根据需要调整宽度 */
    height: auto; /* 保持比例 */
    animation: rotate 2s linear infinite; /* 旋转动画，持续时间2秒，线性，无限循环 */
}

@keyframes rotate {
    from {
        transform: rotate(0deg); /* 从0度开始 */
    }
    to {
        transform: rotate(360deg); /* 旋转到360度 */
    }
}

    #topRightButton {
        position: fixed;
        top: 10px;
        right: 10px;
        padding: 10px 20px;
        background-color: #007bff00;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        z-index: 1000;
    }

    #dropdownMenu {
        display: none;
        position: fixed;
        top: 50px;
        right: 10px;
        background: white;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        z-index: 1001;

    }

    #dropdownMenu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #dropdownMenu a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #024242;
    }
