body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
.container {
    width: 80%;
    margin: 50px auto;
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
    text-align: center;
    margin-bottom: 20px;
}
.header h1 {
    color: #333;
}
.search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    padding: 10px;
    width: 120px;
    transition: border-color 0.3s ease;
}
.dropdown:hover {
    border-color: #007BFF;
}
.dropdown .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
}
.dropdown.open .dropdown-list {
    display: block;
}
.dropdown .dropdown-list li {
    list-style: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dropdown .dropdown-list li:hover {
    background-color: #f0f0f0;
}
.dropdown .dropdown-list li.selected {
    background-color: #dcdcdc;
}
.search-bar input[type="text"] {
    width: calc(100% - 140px);
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    border-left: none;
}
.search-bar button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
.search-bar button:hover {
    background-color: #0056b3;
}
.results {
    margin-top: 20px;
}
.results h2 {
    color: #333;
}
.results ul {
    list-style: none;
    padding: 0;
}
.results li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.results li .song-info {
    flex: 1;
}
.results li .actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.results li .actions button {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.results li .actions button:hover {
    background-color: #0056b3;
}
.results li .duration {
    margin-right: 10px;
    font-size: 14px;
    color: #666;
}

/* 播放栏样式 */
.playbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
.playbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* 增加左右内边距，避免内容紧贴屏幕边缘 */
}
.song-info {
    display: flex;
    align-items: center;
}
.song-info img {
    width: 40px; /* 专辑封面大小 */
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.song-info h3 {
    font-size: 16px;
    margin: 0;
    white-space: nowrap; /* 防止换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
    max-width: 100px; /* 限制歌曲名宽度 */
}
.song-info p {
    font-size: 14px;
    margin: 0;
    white-space: nowrap; /* 防止换行 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
    max-width: 100px; /* 限制艺术家名称宽度 */
}
.controls {
    display: flex;
    gap: 10px;
}
.controls button {
    padding: 5px 10px;
    font-size: 16px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.controls button:hover {
    background-color: #0056b3;
}
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1; /* 让进度条容器占据剩余空间 */
}
.progress-bar {
    width: 100%; /* 进度条宽度自适应 */
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.progress {
    height: 100%;
    background-color: #007BFF;
    border-radius: 2px;
    width: 0;
}

/* 全屏播放器样式 */
.player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none;
}
.player-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
}
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.player-header h2 {
    color: #333;
}
.player-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.player-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.player-body img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.player-info h3 {
    font-size: 20px;
    color: #333;
}
.player-info p {
    font-size: 16px;
    color: #666;
}
ul, ol {
    margin: 0;
    padding: 0;
}
li {
    margin: 0; /* 确保li没有额外的外边距 */
    padding: 0; /* 确保li没有额外的内边距 */
}