:root { 
    --max-width: 750px; 
    --color-primary: #333; 
    --border-radius: 5px; 
    --font-size: 16px; 
    --search-height: 60px; 
    --min-player-height: 80px; 
    --color-disabled-text: #999; 
    --color-disabled-bg: #ddd; 
}

html { 
    position: relative; 
    background-color: #eee; 
}

body { 
    position: relative; 
    max-width: var(--max-width); 
    margin: 0 auto; 
    font-size: var(--font-size); 
}

@media only screen and (min-width: 750px) { 
    body, 
    .modal { 
        box-shadow: 0 0 5px #ccc; 
        overflow-x: hidden; 
        max-width: 750px !important; 
    } 
}

.container { 
    display: flex; 
    flex-direction: column; 
}

input { 
    font-size: var(--font-size); 
}

#search { 
    position: sticky; 
    top: 0; 
    height: var(--search-height); 
    flex: 0 0 var(--search-height); 
    display: flex; 
    align-items: center; 
    padding: 10px 15px; 
    background-color: #fff; 
    box-shadow: 0 0 5px #ccc; 
    z-index: 10; 
    box-sizing: border-box; 
}

#search input { 
    width: 100%; 
    height: 100%; 
    background-color: #f7f7f7; 
    padding: 0 1em; 
    border: 2px solid #f00; 
    outline: none; 
    border-radius: var(--border-radius); 
}

#search input:focus { 
    border-color: var(--color-primary); 
}

#list { 
    flex: 1; 
    min-height: calc(100vh - var(--search-height) - var(--min-player-height)); 
}

.loading { 
    text-align: center; 
    padding: 40px 15px; 
    color: #666; 
}

#list .item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background-color: #fff; 
    margin: 10px 15px; 
    padding: 0 10px; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    border: 1px solid transparent; 
}

#list .item .index { 
    color: #666; 
    margin-right: 8px; 
}

#list .item .index::after { 
    content: '.'; 
}

#list .item .name { 
    flex: 1; 
    padding: 10px 0; 
}

#list .item .more { 
    height: 100%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: var(--border-radius); 
    background-color: var(--color-disabled-bg); 
}

#list .item .more img { 
    width: 18px; 
    vertical-align: middle; 
    opacity: 0.6; 
    display: none; 
    padding: 6px; 
}

#list .item.active { 
    border-color: #333; 
}

#list .item.active .index { 
    color: #333; 
}
#list .item[disabled='true'] { 
    border-color: var(--color-disabled-bg); 
    background-color: var(--color-disabled-bg); 
    color: var(--color-disabled-text); 
}
#list .item[disabled='true'] .index { 
    color: #999; 
}
#list .item[disabled='true'] .add { 
    display: block; 
}
#list .item[disabled='true'] .more { 
    background: #fff; 
}
#list .item[disabled='false'] .remove { 
    display: block; 
}

#player { 
    position: sticky; 
    bottom: 0; 
    min-height: var(--min-player-height); 
    box-sizing: border-box; 
    background-color: #fff; 
    box-shadow: 0 0 5px #ccc; 
    z-index: 10; 
}

/* APlayer 样式调整 */
#aplayer {
    margin: 0;
}

/* 下载按钮样式 */
.aplayer-download-text {
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 14px;
    cursor: pointer;
}

.aplayer-download-text:hover {
    background: #40a9ff;
}

/* 修复播放器控制器布局 */
.aplayer-controller {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* 修复歌曲信息区域布局 */
.aplayer-info {
    flex: 1 !important;
    padding-right: 10px !important;
}

/* 修复歌曲名和歌手名的布局 */
.aplayer-music {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.aplayer-title {
    flex: 0 0 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin-right: 10px !important;
    max-width: 50% !important;
}

.aplayer-author {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 0 0 auto !important;
    max-width: 40% !important;
}

/* 调整右侧控制区域 */
.aplayer-right {
    display: flex !important;
    align-items: center !important;
}

/* 下载按钮容器 */
.aplayer-download-container {
    margin-left: 10px !important;
}

#player .cover { 
    --width: 60px; 
    position: relative; 
    width: var(--width); 
    height: var(--width); 
    flex: 0 0 var(--width); 
    overflow: hidden; 
    border-radius: var(--border-radius); 
    cursor: pointer; 
    margin-right: 15px; 
}

#player .cover img { 
    width: 100%; 
    display: block; 
}

#player .info { 
    flex: 1; 
    font-size: 14px; 
    display: flex; 
    align-items: center; 
}

#player .info .name { 
    margin-bottom: 5px; 
}

#audio { 
    width: 100%; 
}

#player .operate { 
    flex: 0 0 40px; 
    display: none; 
}

.modal { 
    position: fixed; 
    top: 0; 
    left: 50%; 
    height: 100vh; 
    width: 100vw; 
    z-index: 100; 
    transform: translateX(-50%); 
    max-width: var(--max-width); 
    background-color: rgba(0, 0, 0, 0.3); 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    display: none; 
}
.modal > div { 
    background-color: #fff; 
}
.modal .title { 
    display: flex; 
    padding: 10px; 
    justify-content: center; 
    cursor: pointer; 
    font-size: 18px; 
}

.modal .body { 
    padding: 10px; 
}

.modal .footer { 
    padding: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-top: 1px solid #eee; 
    cursor: pointer; 
}
.modal .cover { 
    max-width: 40%; 
    display: block; 
    margin: 10px auto; 
}
.modal .lyric { 
    text-align: center; 
    max-height: 50vh; 
    overflow-y: auto; 
    margin: 30px auto; 
    line-height: 2; 
}

@keyframes scroll {
    0% { transform: translateX(100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-200%); opacity: 0; }
}

.navBar-logo {
    color: #222;
    font-size: 30px;
    font-weight: 600
}

.navBar-logo span {
    color: #f90251
}
.song-title {
    display: inline-block;
    width: 100%;
}