/* 基础样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    margin-top: 20px;
}

/* 美化进度条样式 */
#progress-bar {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

#progress-bar:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

/* 播放器样式 */
#current-track {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
}

input, button {
    margin: 10px;
    padding: 10px;
    font-size: 16px;
}

.container {
    display: flex;
    margin: 20px;
}

.sidebar {
    width: 20%;
    background-color: #ddd;
    padding: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.content {
    width: 75%;
    margin-left: 5%;
}

.music-list {
    list-style-type: none;
    padding: 0;
}

.music-list li {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 音乐界面样式 */
/* 中间内容区域自动扩展填充剩余空间 */
.content-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 滚动区域 */
.scrollable-content {
    overflow-y: auto;
    flex: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    #current-track {
        font-size: 0.9rem;
    }
    .scrollable-content {
        padding: 0 0.5rem;
    }
}

/* 确保内容区域在各种屏幕尺寸下都能占满宽度 */
@media (min-width: 769px) {
    .flex-grow {
        flex-grow: 1;
    }
}

/* 音乐卡片样式 */
.music-card {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.music-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.music-card-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}