/* 本地字体 */
@font-face {
    font-family: 'Bitter';
    src: url('../assets/fonts/Bitter-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Bitter';
    src: url('../assets/fonts/Bitter-Bold.ttf') format('truetype');
    font-weight: 700;
}

body {
    background: #dfe7ef;
    font-family: "Bitter", serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.player {
    background: #eef3f7;
    width: 900px; /* 加宽整体宽度 */
    height: 480px; /* 固定高度 */
    box-shadow: 0px 15px 35px -5px rgba(50, 88, 130, 0.32);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    box-sizing: border-box;
    position: relative; /* 允许子元素超出 */
    overflow: visible; /* 允许内容溢出 */
}

.directory {
    width: 280px; /* 加宽歌曲列表宽度 */
    margin-right: 20px;
    overflow-y: auto;
    border-right: 1px solid #d0d8e6;
    padding-right: 20px;
    box-sizing: border-box;
}

.directory ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory li {
    padding: 6px 8px; /* 缩小上下和左右间距 */
    cursor: pointer;
    color: #71829e;
    transition: background-color 0.3s ease;
    border-radius: 6px; /* 减小圆角 */
    margin-bottom: 2px; /* 缩小上下间隙 */
    font-size: 14px; /* 减小字体大小 */
    line-height: 1.2; /* 调整行高 */
}

.directory li:hover {
    background-color: #d0d8e6;
}

.directory li.active {
    background-color: #a3b3ce;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 减小阴影 */
}

.player-content {
    flex: 1;
    position: relative; /* 确保图片层级正确 */
    overflow: visible; /* 允许内容溢出 */
}

.player-cover {
    width: 250px; /* 增大封面尺寸 */
    height: 250px; /* 增大封面尺寸 */
    margin: -90px auto 20px; /* 上移更多以超出边界 */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0px 10px 40px 0px rgba(76, 70, 124, 0.5);
    position: absolute; /* 调整层级使其在前面 */
    z-index: 10; /* 确保图片在最前面 */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.album-info {
    color: #71829e;
    margin-top: 180px; /* 下移以避开封面 */
    text-align: center;
}

.album-info__track {
    font-size: 20px; /* 增大字体 */
    font-weight: bold;
    margin-bottom: 5px;
    color: #71829e; /* 深灰色 */
}

.album-info__name {
    font-size: 16px; /* 减小字体 */
    opacity: 0.7;
    color: #acb8cc; /* 浅灰色 */
}

.controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control input {
    width: 100px;
}

.icon {
    width: 24px;
    height: 24px;
    fill: #acb8cc; /* 浅灰色音量图标 */
    cursor: pointer;
}

.play-mode button {
    padding: 5px 10px;
    background-color: #eef3f7;
    color: #acb8cc; /* 浅灰色按钮文字 */
    border: 1px solid #d0d8e6;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.play-mode button:hover {
    background-color: #a3b3ce;
    color: #fff;
    border-color: #a3b3ce;
}

.play-mode button.active {
    background-color: #a3b3ce;
    color: #fff;
    border-color: #a3b3ce;
}

.progress {
    width: 100%;
    margin-top: 20px;
}

.progress__bar {
    height: 6px;
    background-color: #d0d8e6;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
}

.progress__current {
    height: 100%;
    width: 0%;
    background-color: #a3b3ce;
    border-radius: 10px;
}

.progress__time {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #71829e;
    font-size: 14px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* 减小按钮间的间距 */
    margin: 20px 0;
}

.player-controls button {
    background: none;
    border: none;
    color: #acb8cc;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 50px; /* 固定宽度 */
    height: 50px; /* 固定高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px; /* 默认按钮大小 */
}

.player-controls .play-btn {
    font-size: 60px; /* 加大播放按钮 */
    width: 80px; /* 加大宽度 */
    height: 80px; /* 加大高度 */
}

.player-controls button.small-btn {
    font-size: 30px; /* 上一首和下一首按钮 */
    width: 50px; /* 固定宽度 */
    height: 50px; /* 固定高度 */
}