* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}



/* 容器与布局 */
.container {
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    display: block;
    overflow-y: auto;
    position: static;
    padding-top: 60px;
    padding-bottom: 140px;
}

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: rgba(26, 26, 46, 0.3);
}

// .header i {
//    font-size: 20px;
//    opacity: 0.8;
// }

.title-container {
    text-align: center;
    flex-grow: 1;
    font-size: 4vw;
}

.title {
 //   font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.author-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

/* 专辑封面区域 */
.album-art {
    width: 230px;
    height: 230px;
    margin: 20px auto 0;
    border-radius: 50%; 
    background: linear-gradient(45deg, rgba(200, 200, 200, 0.6), rgba(80, 80, 80, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    object-fit: cover;
    overflow: hidden; 
}

.album-art img {
    width: 95%;
    height: 95%;
    border-radius: 50%;
    object-fit: cover;
}



.album-art.playing::before {
    animation-play-state: running;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 歌曲信息 */
.track-info {
    text-align: center;
    padding: 0 20px;
    margin-top: 20px;
}

.track-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.artist-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}








 
 





.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
}  




/* 进度条容器 */
.progress-container {
    position: fixed;
    bottom: 110px;
    left: 0;
    right: 0;
    padding: 0 30px;
    z-index: 5;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress {
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    border-radius: 2px;
    position: relative;
    transition: width 0.3s ease; /* 正常播放时的过渡效果 */
    visibility: hidden; /* 默认隐藏，JS控制显示 */
}

/* 临时禁用所有过渡和动画 */
.progress.no-transition {
    transition: none !important;
    transition-property: none !important;
    animation: none !important;
}

.progress::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(142, 45, 226, 0.8);
    z-index: 3;
}

/* 交互内容容器 */
.jiaohu-container {
    position: fixed;
    display: flex;
    left: 0;
    right: 0;
    gap: 20px;
    align-items: center;
    justify-content: center;
    bottom: 130px;
}

.favorite-btn {
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn.active {
    background-image: url('/images/fav.png');
}

.favorite-btn.inactive {
    background-image: url('/images/favnone.png');
}

/* 控制按钮 */
.controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    height: 120px;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px 20px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.control-btn i {
    font-size: 20px;
}

.play-btn {
    width: 70px;
    height: 70px;
}

.play-btn i {
    font-size: 30px;
}

 .play-icon {
     width: 40px;
     height: 40px;
     object-fit: contain;
 }

/* 播放模式按钮 */
.mode-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.7);
}

.mode-btn.active, #open-playlist:hover {
    color: #8e2de2;
    background: rgba(255, 255, 255, 0.1);
}

.mode-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.mode-btn.active .mode-icon {
    filter: brightness(1) invert(0);
    transform: scale(1.1);
}

.mode-icon {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
     filter: brightness(0) invert(1);
    transition: all 0.2s;
}

/* 播放列表侧边栏 */
.playlist-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px;
    transition: transform 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.playlist-sidebar.show {
    transform: translateX(-300px);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.playlist-title {
    font-size: 20px;
    font-weight: 500;
}

.close-playlist {
    font-size: 24px;
    cursor: pointer;
}

.playlist-tabs {
    display: flex;
    overflow-x: auto;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    flex-shrink: 0;
}

.playlist-tab {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.playlist-tab.active {
    background: linear-gradient(to right, #8e2de2, #4a00e0);
}

.playlist-items {
    flex-grow: 1;
    position: relative;
    overflow-y: auto;
    padding-right: 5px;
    margin-top: 10px;
}

.playlist-item {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-item.active {
    background: rgba(142, 45, 226, 0.2);
    border-left: 3px solid #8e2de2;
}

.item-number {
    width: 25px;
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

.item-info {
    flex-grow: 1;
}

.item-title {
    font-size: 15px;
    margin-bottom: 3px;
}

.item-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
}

.overlay.show {
    display: block;
}

.album-art.hidden {
    display: none;
}
