/* 专辑页面专属样式 */

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 8px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.filter-btn, .sort-btn {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover, .sort-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn .icon, .sort-btn .icon {
    font-size: 16px;
}

/* 精选专辑横幅 */
.featured-album {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.featured-album::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 70%);
    pointer-events: none;
}

.featured-album:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px -10px var(--glow-color);
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.featured-cover {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

.featured-info {
    flex: 1;
}

.featured-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-gradient);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.featured-creator {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

.featured-stats {
    display: flex;
    gap: 24px;
}

.featured-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.featured-stat i {
    color: var(--accent-primary);
    font-style: normal;
}

.featured-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px var(--glow-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-play:hover {
    transform: scale(1.1);
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 20px -5px var(--glow-color);
}

/* 专辑网格 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.album-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.album-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 40px -15px var(--glow-color);
}

.album-cover {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.album-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.album-card:hover .album-cover img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px var(--glow-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-card:hover .album-play {
    opacity: 1;
    transform: translateY(0);
}

.album-play:hover {
    transform: scale(1.1) translateY(0);
}

.album-info {
    padding: 20px;
}

.album-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-creator {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-creator i {
    color: var(--accent-primary);
    font-style: normal;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

.album-song-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-song-count i {
    font-style: normal;
}

.album-play-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    padding: 14px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--glow-color);
}

/* 专辑详情弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    background: var(--bg-primary);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent-gradient);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* 专辑详情 */
.album-detail-header {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(to bottom, var(--bg-elevated), var(--bg-primary));
    border-bottom: 1px solid var(--border-color);
}

.album-detail-cover {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.album-detail-info {
    flex: 1;
}

.album-detail-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-gradient);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.album-detail-name {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.album-detail-creator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.creator-name {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

.album-detail-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}

.album-detail-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.detail-stat {
    text-align: center;
}

.detail-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.detail-stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.album-detail-actions {
    display: flex;
    gap: 16px;
}

.detail-play-all {
    padding: 14px 40px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-play-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px var(--glow-color);
}

.detail-save {
    padding: 14px 30px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-save:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* 歌曲列表 */
.song-list {
    padding: 30px 40px;
}

.song-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.song-list-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.song-list-count {
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--bg-elevated);
    padding: 4px 12px;
    border-radius: 20px;
}

.song-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.song-item {
    display: grid;
    grid-template-columns: 50px 1fr 80px 100px 40px;
    padding: 12px 20px;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.song-item:hover {
    background: var(--bg-elevated);
}

.song-item.playing {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-primary);
}

.song-index {
    color: var(--text-tertiary);
    font-size: 16px;
    font-weight: 500;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.song-cover-small {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.song-details {
    flex: 1;
}

.song-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.song-artist-small {
    font-size: 13px;
    color: var(--text-secondary);
}

.song-duration {
    color: var(--text-secondary);
    font-size: 14px;
}

.song-stats {
    display: flex;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.song-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.song-stats i {
    font-style: normal;
}

.song-like {
    color: var(--text-tertiary);
    font-size: 18px;
    transition: all 0.3s;
}

.song-like:hover {
    color: #EC4899;
    transform: scale(1.1);
}

.song-like.liked {
    color: #EC4899;
}

/* 响应式 */
@media (max-width: 768px) {
    .featured-content {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-stats {
        justify-content: center;
    }
    
    .album-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .album-detail-stats {
        justify-content: center;
    }
    
    .album-detail-actions {
        justify-content: center;
    }
    
    .song-item {
        grid-template-columns: 40px 1fr 60px 40px;
    }
    
    .song-stats {
        display: none;
    }
}

/* ==================== 专辑页面手机显示优化 ==================== */

/* 手机设备优化 */
@media (max-width: 768px) {
    /* 页面头部优化 */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .gradient-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .header-actions {
        width: 100%;
        gap: 8px;
    }
    
    .filter-btn, .sort-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
        justify-content: center;
    }
    
    .filter-btn .icon, .sort-btn .icon {
        font-size: 14px;
    }
    
    /* 精选专辑横幅优化 */
    .featured-album {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .featured-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .featured-cover {
        width: 100px;
        height: 100px;
    }
    
    .featured-title {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .featured-creator {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .featured-stats {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .featured-stat {
        font-size: 12px;
        padding: 4px 8px;
        background: rgba(255,255,255,0.05);
        border-radius: 15px;
    }
    
    .featured-play {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-top: 5px;
    }
    
    /* 分类标签优化 */
    .category-tabs {
        gap: 6px;
        margin-bottom: 20px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab {
        padding: 6px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    /* 专辑网格优化 */
    .album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .album-card {
        border-radius: 12px;
    }
    
    .album-info {
        padding: 10px;
    }
    
    .album-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .album-creator {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .album-meta {
        font-size: 10px;
    }
    
    .album-play {
        width: 32px;
        height: 32px;
        font-size: 14px;
        bottom: 8px;
        right: 8px;
    }
    
    /* 悬停效果调整（触摸设备） */
    .album-card:hover {
        transform: none;
    }
    
    .album-card:hover .album-play {
        opacity: 1;
        transform: none;
    }
    
    .album-overlay {
        display: none; /* 手机端隐藏覆盖层 */
    }
    
    /* 加载更多优化 */
    .load-more {
        margin: 20px 0;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
    }
    
    /* 专辑详情弹窗优化 */
    .modal-content {
        width: 95%;
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .album-detail-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }
    
    .album-detail-cover {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }
    
    .album-detail-name {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .album-detail-creator {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .creator-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .creator-name {
        font-size: 15px;
    }
    
    .album-detail-description {
        font-size: 13px;
        margin-bottom: 15px;
        max-width: 100%;
    }
    
    .album-detail-stats {
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .detail-stat-value {
        font-size: 20px;
    }
    
    .detail-stat-label {
        font-size: 11px;
    }
    
    .album-detail-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-play-all, .detail-save {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        justify-content: center;
    }
    
    /* 歌曲列表优化 */
    .song-list {
        padding: 15px;
    }
    
    .song-list-header {
        margin-bottom: 15px;
    }
    
    .song-list-title {
        font-size: 16px;
    }
    
    .song-list-count {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .song-items {
        gap: 1px;
    }
    
    .song-item {
        grid-template-columns: 35px 1fr 45px 30px;
        padding: 8px 10px;
        gap: 5px;
    }
    
    .song-index {
        font-size: 13px;
    }
    
    .song-cover-small {
        width: 32px;
        height: 32px;
    }
    
    .song-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .song-artist-small {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .song-duration {
        font-size: 11px;
    }
    
    .song-stats {
        display: none; /* 手机端隐藏统计列 */
    }
    
    .song-like {
        font-size: 16px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* 超小屏手机 (小于 400px) */
@media (max-width: 400px) {
    .album-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .album-card {
        display: flex;
        align-items: center;
    }
    
    .album-cover {
        width: 70px;
        height: 70px;
        padding-bottom: 0;
        flex-shrink: 0;
    }
    
    .album-cover img {
        position: relative;
        width: 70px;
        height: 70px;
    }
    
    .album-info {
        flex: 1;
        padding: 10px;
    }
    
    .album-overlay, .album-play {
        display: none; /* 超小屏隐藏播放按钮 */
    }
    
    .featured-cover {
        width: 80px;
        height: 80px;
    }
    
    .featured-title {
        font-size: 18px;
    }
    
    .featured-creator {
        font-size: 12px;
    }
    
    .featured-stat {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* 平板设备优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .album-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .featured-title {
        font-size: 28px;
    }
    
    .album-detail-name {
        font-size: 36px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .album-play {
        opacity: 1;
        transform: none;
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
    
    .album-card:hover .album-play {
        transform: none;
    }
    
    .filter-btn, .sort-btn, .category-tab {
        min-height: 40px;
    }
    
    .load-more-btn {
        min-height: 44px;
    }
}

/* 骨架屏动画 */
.skeleton-card {
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 20px;
    width: 100%;
    background: var(--bg-elevated);
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.small {
    width: 60%;
    height: 16px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 安全区域适配 */
@supports (padding: max(0px)) {
    .modal-content {
        margin-top: max(20px, env(safe-area-inset-top));
        margin-bottom: max(20px, env(safe-area-inset-bottom));
    }
}