#lyrics-container {
    height: 75vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding: 20px;
    border-radius: 8px;
    margin-top: 80px;
    position: relative;
    width: 60%;
    text-align: center;
}

#lyrics {
    font-size: 24px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #666;
    transition: transform 0.6s ease;
}

.line {
    margin-bottom: 12px;
}

.char {
    display: inline-block;
    color: transparent;
    background: linear-gradient(to right, #FF69B4 50%, #e3e3e3e8 50%);
    background-size: 200% 100%;
    background-position: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.6s ease;
}

.highlight {
    background-position: 0%;
}


.player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: fixed;
    bottom: 0px;
    background: #FFF;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 10px;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.player-bar {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
    max-width: 880px;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    margin-right: 15px;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.album-art img {
    width: 64px;
    height: 64px;
    border-radius: 5px;
}

.album-art i {
    font-size: 24px;
    color: #666;
}

.song-info {
    flex-grow: 0;
    cursor: pointer;
    margin-right: auto;
}

.song-title {
    font-weight: bold;
    margin-bottom: 5px;
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fa-volume-up {
    width: 10px;
}

.artist {
    font-size: 0.9em;
    color: #c3c3c3;
    width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.control-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
    color: #333;
}


.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #ddd;
    position: relative;
    border-radius: 5px;
    overflow: visible;
    cursor: pointer;
}

.progress {
    width: 30%;
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    transition: width 0.2s ease;
}

.progress-handle {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
    cursor: grab;
    pointer-events: auto;
}
.progress-bar:active .progress-handle {
    transform: translate(-50%, -50%) scale(1.2);
    cursor: grabbing;
}
.progress-handle.dragging,
.progress-bar:hover .progress-handle {
    opacity: 1;
}

.progress-bar:hover .progress {
    background-color: var(--primary-color);
    opacity: 0.8;
}

.extra-controls {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.extra-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0 8px;
    color: #666;
}


.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control i {
    font-size: 18px;
    color: #666;
}

.volume-slider {
    width: 100px;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.volume-progress {
    height: 100%;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 3px;
}

/* 全屏歌词界面样式 */
.lyrics-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 99;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.lyrics-screen {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    backdrop-filter: blur(18px);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #1616169c;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 100px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 99;
    text-align: right;
    width: 100%;
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    margin-top: 135px;
}

.album-art-large img {
    width: 400px;
    height: 400px;
    border-radius: 10px;
    z-index: 9;
}

.song-details {
    text-align: center;
    margin-top: 20px;
}

.player-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

.current-time,
.duration {
    color: white;
    font-size: 12px;
}

.progress-bar {
    flex-grow: 1;
    height: 2px;
    background-color: #555;
    border-radius: 5px;
    margin: 0 10px;
    position: relative;
}

.progress {
    width: 50%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.player-controls .control-btn {
    color: #fff;
}


/* 播放队列样式 */
.queue-popup {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 300px;
    max-height: 400px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    z-index: 2;
    overflow-y: auto;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: sticky;
    top: 0px;
    z-index: 1;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.queue-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-color);
}


.queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    height: 350px;
    scroll-behavior: smooth;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.queue-song-info {
    display: flex;
    flex-direction: column;
}

.queue-song-title {
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 250px;
}

.queue-artist {
    font-size: 0.9em;
    color: #666;
}

.queue-actions {
    display: flex;
    align-items: center;
}

.queue-play-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
}

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.volume-control {
    display: flex;
    align-items: center;
    position: relative;
}

.volume-slider {
    width: 100px;
    margin-left: 10px;
    position: relative;
}

.volume-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: transparent;
    position: relative;
    z-index: 1;
    pointer-events: none;
    /* 禁止对 input 的点击事件 */
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4899f8;
    cursor: pointer;
    pointer-events: auto;
    /* 允许 thumb 的拖动事件 */
}

.volume-slider input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4899f8;
    cursor: pointer;
}

.album-art-large .miku {
    position: absolute;
    height: 419px;
    width: 401px;
}

.album-art-large .miku2 {
    position: absolute;
    height: 452px;
    width: 404px;
}

.album-art-large .miku3 {
    position: absolute;
    height: 563px;
}

.no-lyrics {
    color: var(--primary-color);
    margin: auto;
    font-size: 2em;
}

.close-store {
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
}

.queue-item.playing .queue-song-title {
    color: var(--primary-color);
    font-weight: bold;
}

.queue-item.playing .queue-artist {
    color: var(--primary-color);
}

.queue-item.marked-as-deleted {
    text-decoration: line-through;
    color: #888;
    transition: all 0.5s ease;
    opacity: 0.5;
    pointer-events: none;
}

.loop-icon {
    position: relative;
    display: inline-block;
}

.loop-icon sup {
    position: absolute;
    font-size: 0.6em;
}

/* 全屏歌词界面的进度条样式 */
.lyrics-screen .progress-bar {
    flex-grow: 1;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 0 10px;
    position: relative;
    overflow: visible;
}

.lyrics-screen .progress-bar:hover .progress {
    opacity: 0.8;
}

.progress-handle.dragging {
    opacity: 1;
}

.time-tooltip {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
}

/* 歌词界面的时间提示样式 */
.lyrics-screen .time-tooltip {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

/* 高潮点的样式 */
.climax-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #fff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* 普通界面的高潮点样式 */
.player-container .climax-point {
    background-color: var(--primary-color);
    box-shadow: 0 0 4px var(--primary-color);
}

/* 歌词界面的高潮点样式 */
.lyrics-screen .climax-point {
    background-color: #ff69b4;
    box-shadow: 0 0 4px #ff69b4;
}

/* 收藏按钮 */
.like-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.like-btn.active {
    color: #ff4081;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.playlist-select-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.playlist-select-list li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
}

.playlist-select-list li:hover {
    background-color: var(--secondary-color);
}

.modal .close-btn-modal {
    width: 100%;
    padding: 8px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.modal .close-btn-modal:hover {
    opacity: 0.9;
}

