.player-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.2rem;
    padding: 1.75rem;
    box-shadow: 0 6px 24px rgba(31, 38, 135, 0.15), 
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
    min-height: 220px;
    margin-top: auto;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.player-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    backdrop-filter: blur(1px);
    box-shadow: inset -8px -6px 0px -11px rgba(255, 255, 255, 0.8), 
                inset 0px -9px 0px -8px rgba(255, 255, 255, 0.6);
    opacity: 0.6;
    z-index: -1;
    filter: blur(0.5px) brightness(115%);
    transition: all 0.3s ease;
}

.player-container:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.25), 
                inset 0 4px 15px rgba(255, 255, 255, 0.25);
}

.player-container:hover::before {
    opacity: 0.9;
}

.player-container:hover::after {
    opacity: 0.8;
    box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1), 
                inset 0px -9px 0px -8px rgba(255, 255, 255, 0.8);
}

.player-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.player-main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.player-info {
    min-width: 0;
    padding-right: 20px;
}

.song-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.song-artist {
    display: none;
}

.player-right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.volume-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 22px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-slider-container {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
    margin: 0;
    cursor: pointer;
}

.volume-tip {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    white-space: nowrap;
    padding: 8px 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    text-align: center;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.volume-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.volume-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.control-buttons {
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.control-button,
#playPauseBtn {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    will-change: transform, background-color, border-color;
    transform: translateZ(0);
}

.control-button i,
#playPauseBtn i {
    font-size: 22px;
}

#playPauseBtn {
    background: transparent;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.control-button:hover,
#playPauseBtn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.progress-container {
    margin-top: 5px;
    width: 100%;
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: #ffffff; /* 纯白色 */
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    will-change: width;
    transform: translateZ(0);
}

.time-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.add-to-playlist-btn {
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--glass-effect-light);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-to-playlist-btn:hover {
    background: var(--glass-effect-medium);
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
}

.lyrics-container {
    position: fixed;
    bottom: 120px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(31, 41, 55, 0) 0%,
        rgba(31, 41, 55, 0.8) 20%,
        rgba(31, 41, 55, 0.8) 80%,
        rgba(31, 41, 55, 0) 100%
    );
    z-index: 999;
}

.lyrics-display {
    flex: 1;
    min-height: 380px;
    max-height: calc(100vh - 320px);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(31, 38, 135, 0.15), 
                inset 0 2px 10px rgba(255, 255, 255, 0.2);
    order: -1;
    transition: all 0.3s ease;
    z-index: 1;
}

.lyrics-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lyrics-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: inherit;
    backdrop-filter: blur(1px);
    box-shadow: inset -8px -6px 0px -11px rgba(255, 255, 255, 0.8), 
                inset 0px -9px 0px -8px rgba(255, 255, 255, 0.6);
    opacity: 0.6;
    z-index: -1;
    filter: blur(0.5px) brightness(115%);
    transition: all 0.3s ease;
}

.lyrics-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 100px 20px;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}

.lyrics-line {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 18px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    opacity: 0.9;
    transform: scale(0.96);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    white-space: normal;
    max-width: 100%;
    word-wrap: break-word;
}

.lyrics-line.active {
    color: white;
    font-size: 24px;
    font-weight: 600;
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    letter-spacing: 1.2px;
}

/* 自定义滚动条 - 右侧整体区域 */
.player-section::-webkit-scrollbar {
    width: 8px;
}

.player-section::-webkit-scrollbar-track {
    background: transparent;
}

.player-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.player-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* 自定义滚动条 - 歌词区域 */
.lyrics-scroll::-webkit-scrollbar {
    width: 6px;
}

.lyrics-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.lyrics-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-clip: padding-box;
}

.lyrics-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 搜索结果页 */
.results-page {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) brightness(1.1);
}

/* 左侧搜索结果列表 */
.results-list {
    background: rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    padding: 20px;
}

/* 左侧滚动条美化 */
.results-list::-webkit-scrollbar {
    width: 8px;
}

.results-list::-webkit-scrollbar-track {
    background: transparent;
}

.results-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.results-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* 歌曲卡片 */
.song-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.song-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.song-card.active {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

/* 右侧布局 */
.player-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    overflow-y: auto;
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .lyrics-display {
        height: 350px;
    }
    
    .lyrics-line {
        font-size: 16px;
        padding: 16px 0;
    }
    
    .lyrics-line.active {
        font-size: 22px;
    }
}

@media screen and (max-width: 768px) {
    .lyrics-display {
        height: 300px;
    }
    
    .lyrics-line {
        font-size: 15px;
        padding: 14px 0;
    }
    
    .lyrics-line.active {
        font-size: 20px;
    }
}

/* 添加更细致的响应式布局支持 */
@media screen and (max-width: 992px) {
    .player-main {
        gap: 16px;
    }
    
    .song-title {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .lyrics-display {
        max-height: 40vh;
        min-height: 200px;
        border-radius: 1rem !important;
        backdrop-filter: blur(8px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(160%) !important;
        border-width: 1px !important;
    }
    
    .control-button i,
    #playPauseBtn i {
        font-size: 20px;
    }
    
    .volume-slider-container {
        width: 80px;
    }
} 