/* 播放器页面样式 - 完全复刻小程序 */

/* 播放器页面容器 */
.player-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #000;
}

/* 背景虚化效果 */
.player-bg-image {
    position: fixed;
    top: -25px;
    left: -25px;
    width: calc(100% + 50px);
    height: calc(100% + 50px);
    z-index: -2;
    opacity: 0.8;
    filter: blur(40px) brightness(0.8);
    object-fit: cover;
}

.player-bg-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

/* 导航栏 */
.player-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 10;
    background: transparent;
}

.player-nav .back-btn {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b9c;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(255, 107, 156, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 100;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 107, 156, 0.2);
}

.player-nav .back-btn:hover {
    background: rgba(255, 107, 156, 0.25);
    transform: scale(1.05);
}

.player-nav .back-btn:active {
    background: rgba(255, 107, 156, 0.3);
    transform: scale(0.95);
}

.player-nav .tab {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
}

.player-nav .tab .divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.player-nav .tab>div {
    padding: 4px 8px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.player-nav .tab .active {
    color: #ffffff;
    font-weight: 700;
    transform: scale(1.1);
}

/* Swiper 容器 */
.player-swiper {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    height: calc(100vh - 44px);
}

.player-swiper-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.player-swiper-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 歌曲页面 */
.music-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px 75px;
    height: 100%;
    box-sizing: border-box;
    color: #fff;
}

.album-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 3;
}

.album-image {
    width: 100%;
    max-width: 320px;
    border-radius: 12%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.song-info {
    text-shadow: 1.5px 5px 7.5px rgba(0, 0, 0, 0.3);
}

.song-info .name {
    font-size: 19px;
    font-weight: bold;
    margin-bottom: 7.5px;
}

.song-info .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.song-info .singer {
    margin-bottom: 4px;
}

/* 当前歌词显示 */
.musiclyric-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.like-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.like-btn:active {
    transform: scale(0.9);
}

.like-icon {
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.musiclyric-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
}

.musiclyric-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    padding: 0 10px;
}

.more-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.more-btn:active {
    transform: scale(0.9);
}

.more-icon {
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* 进度条 */
.progress-wrapper {
    margin: 15px;
    padding: 10px 0;
}

.progress-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    margin-bottom: 10px;
    position: relative;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b9c;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(255, 107, 156, 0.5);
}

.progress-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b9c;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 4px rgba(255, 107, 156, 0.5);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 5px;
}

/* 操作按钮 */
.operation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px;
    padding: 10px 0;
    gap: 5px;
}

.operation .btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 50%;
    flex-shrink: 0;
}

.operation .btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.2);
}

.operation .btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.operation .btn-pause {
    width: 55px !important;
    height: 55px !important;
    background: rgba(255, 107, 156, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.operation .btn-pause:active {
    background: rgba(255, 107, 156, 0.5) !important;
}

.operation .btn-mode,
.operation .btn-history {
    width: 25px;
    height: 25px;
}

.operation .btn-mode img,
.operation .btn-history img {
    width: 100%;
    height: 100%;
}

.operation .btn-prev img,
.operation .btn-next img {
    width: 100%;
    height: 100%;
}

/* 歌词页面 */
.lyric-page {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.lyric-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(50vh - 50px);
    padding-bottom: calc(50vh - 50px);
    min-height: 100%;
}

.lyric-line {
    padding: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.8;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all;
    opacity: 0.5;
    transform: scale(0.95);
    transition: all 0.3s;
    cursor: pointer;
    user-select: none;
}

.lyric-line:active {
    background: rgba(255, 107, 156, 0.2);
    border-radius: 10px;
    padding: 12px 10px;
}

.lyric-line.active {
    color: #fff;
    font-size: 17.5px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    margin: 8px 0;
    opacity: 1;
}

/* 弹窗基础样式 */
.picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.picker-content {
    width: 100%;
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    box-sizing: border-box;
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.picker-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.picker-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.picker-close:hover {
    background: #f0f0f0;
}

.picker-close:active {
    background: #e0e0e0;
    transform: scale(0.9);
}

/* 选择器选项样式 */
.picker-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.picker-option {
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}

.picker-option.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.picker-option:active {
    transform: scale(0.98);
}

.option-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 12px;
    color: #999;
}

/* 更多功能弹窗 */
.more-popup-content {
    max-height: 70vh;
}

.quality-section {
    padding: 16px 0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-left: 4px;
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.quality-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s;
}

.quality-item.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.quality-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
}

.quality-info {
    flex: 1;
}

.quality-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.quality-size {
    font-size: 12px;
    color: #999;
}

.quality-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quality-check {
    color: #6366f1;
    font-weight: bold;
    font-size: 18px;
}

.quality-download-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /* box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); */
    flex-shrink: 0;
}

.quality-download-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.quality-download-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.3);
}

.function-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.function-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.function-item:last-child {
    border-bottom: none;
}

.function-item:active {
    background: #f8f9fa;
}

.function-content {
    flex: 1;
}

.function-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.function-desc {
    font-size: 12px;
    color: #999;
}

.function-arrow {
    font-size: 20px;
    color: #ccc;
}

/* 播放历史弹窗 */
.history-popup-content {
    max-height: 70vh;
}

.history-popup-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-count {
    font-size: 14px;
    color: #999;
    font-weight: normal;
    margin-left: 4px;
}

.history-clear-btn {
    color: #ff6b9c;
    font-size: 14px;
    padding: 6px 10px;
    background: rgba(255, 107, 156, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-clear-btn:active {
    background: rgba(255, 107, 156, 0.2);
}

.history-scroll-view {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0;
}

.history-spacer-top,
.history-spacer-bottom {
    height: 2.5px;
    flex-shrink: 0;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 0;
    cursor: pointer;
}

.history-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 156, 0.15), rgba(255, 107, 156, 0.05));
    border: 1px solid #ff6b9c;
    box-shadow: 0 2px 10px rgba(255, 107, 156, 0.2);
    transform: translateY(-1px);
    position: relative;
}

.history-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #ff6b9c;
    border-radius: 8px 0 0 8px;
}

.history-item:active {
    background: rgba(255, 107, 156, 0.1);
    transform: scale(0.98);
}

.history-item.active:active {
    background: linear-gradient(135deg, rgba(255, 107, 156, 0.2), rgba(255, 107, 156, 0.1));
}

.history-item:last-child {
    border-bottom: none;
}

.history-cover {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-title {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-artist {
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-action {
    margin-left: 12px;
}

.history-delete-btn {
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.history-delete-btn:active {
    background: rgba(255, 107, 156, 0.2);
}

.history-empty {
    text-align: center;
    padding: 40px 0;
}

.history-empty-text {
    color: #999;
    font-size: 15px;
}

/* 歌曲信息弹窗 */
.song-info-content {
    padding: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 16px;
    word-break: break-all;
}


/* 定位到当前播放按钮 */
.history-scroll-to-active {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff6b9c, #ff8eb4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 156, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
    cursor: pointer;
}

.history-scroll-to-active.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.history-scroll-to-active:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #ff5a8c, #ff7da3);
}

.scroll-to-active-icon {
    font-size: 22px;
    line-height: 1;
}





/* 歌手信息弹窗样式 */
.artist-info-popup {
    max-height: 85vh;
}

.artist-info-content {
    padding: 0;
}

.artist-avatar-section {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.artist-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.artist-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-section:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.artist-bio-card {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    border-radius: 12px;
    padding: 20px;
    /* color: #fff; */
    margin-bottom: 16px;
    background: #f8f9fa;
}

.artist-bio-card .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.artist-bio-card .card-content {
    font-size: 14px;
    line-height: 1.8;
    /* color: rgba(255, 255, 255, 0.95); */
    text-align: justify;
    white-space: pre-wrap;
    word-break: break-word;
}

.no-info {
    text-align: center;
    padding: 60px 20px;
}

.no-info-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-info-text {
    font-size: 15px;
    color: #999;
}
