/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.audio-player {
    background-color: rgba(255, 255, 255, 0.9);
    /*在 CSS 文件中直接使用相对路径可能会导致路径解析错误，因为 CSS 文件的路径是相对于 CSS 文件本身的，而不是相对于 HTML 文件或 Flask 应用的根目录。所以记得加/ */
    /*background-image: url('static/images/autoplayer.jpg');*/
    background-image: url('/static/images/autoplayer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    width: 300px;
    height: 400px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

#audioVisualizer {
    width: 100%;
    height: 45px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: transparent;
    z-index: 1;
}

.now-playing {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
}

#playlist {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

#playlist li a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#playlist li a:hover, #playlist li.active a {
    background-color: #e2e2e2;
}

.controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.controls button {
    background-color: rgba(76, 175, 80, 0.7);
    color: white;
    border: none;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.controls button:hover {
    background-color: rgba(69, 160, 73, 0.7);
}

.progress-container {
    background: rgba(204, 204, 204, 0.5);
    width: 100%;
    height: 5px;
    position: relative;
    margin-top: 10px;
}

.progress {
    background: rgba(76, 175, 80, 0.7);
    height: 5px;
    width: 0%;
}