/* ========================================
   DJ舞曲网 - 扩展功能样式
   ======================================== */

/* 全局播放器 */
.global-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.global-player.expanded {
    height: auto;
    min-height: 120px;
    flex-wrap: wrap;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.player-cover {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.player-text {
    overflow: hidden;
}

.player-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.player-artist {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

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

.ctrl-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.ctrl-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.play-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 16px;
}

.play-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    transform: scale(1.05);
}

.player-progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
}

.player-progress {
    flex: 1;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.time-text {
    font-size: 11px;
    color: #64748b;
    min-width: 45px;
    text-align: center;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #334155;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

/* 通知徽章 */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: 600;
}

/* 搜索建议框 */
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-top: 8px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
}

.suggest-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.suggest-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.suggest-item:last-child {
    border-bottom: none;
}

.suggest-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.suggest-name {
    flex: 1;
    font-size: 14px;
    color: #e2e8f0;
}

.suggest-extra {
    font-size: 12px;
    color: #64748b;
}

/* 歌单网格 */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #334155;
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    border-color: #6366f1;
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: all 0.3s;
}

.playlist-card:hover .playlist-play-btn {
    opacity: 1;
    transform: scale(1.1);
}

.playlist-info {
    padding: 12px;
}

.playlist-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-meta {
    font-size: 12px;
    color: #64748b;
}

/* 签到日历 */
.checkin-calendar {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #334155;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border-radius: 8px;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s;
}

.calendar-day.checked {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 600;
}

.calendar-day.today {
    border: 2px solid #6366f1;
    color: #fff;
}

.calendar-day.future {
    opacity: 0.4;
}

/* 任务卡片 */
.task-card {
    background: #1e293b;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #334155;
    margin-bottom: 12px;
}

.task-icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 20px;
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-name {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.task-desc {
    font-size: 13px;
    color: #64748b;
}

.task-progress-bar {
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.task-progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
    transition: width 0.3s;
}

/* 音乐人徽章 */
.artist-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 20px;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #fff;
}

.tag-item .tag-count {
    font-size: 11px;
    color: #64748b;
}

/* 通知列表 */
.notification-list {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #334155;
}

.notification-item {
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    border-bottom: 1px solid #334155;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid #ef4444;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-icon.follow { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.notification-icon.like { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.notification-icon.message { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.notification-icon.comment { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.notification-icon.system { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

/* 轮播图 */
.hero-banner {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    padding: 40px;
    position: relative;
    min-height: 200px;
    margin-bottom: 24px;
}

.hero-banner h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.hero-banner .btn {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
}

/* 专辑卡片 */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.album-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #334155;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

.album-cover {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.album-info {
    padding: 16px;
}

.album-title {
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    margin-bottom: 4px;
}

.album-artist {
    font-size: 13px;
    color: #64748b;
}

/* 评论回复 */
.comment-replies {
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid #334155;
}

.reply-item {
    padding: 10px 0;
    font-size: 13px;
}

.reply-input {
    margin-top: 12px;
    padding: 12px;
    background: #0f172a;
    border-radius: 8px;
    display: flex;
    gap: 8px;
}

.reply-input input {
    flex: 1;
    padding: 8px 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
}

/* 动态增强 */
.dynamic-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 12px;
    max-height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.dynamic-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.dynamic-images img:hover {
    transform: scale(1.02);
}

/* 用户个人页面增强 */
.profile-header {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.6) 100%);
}

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

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #6366f1;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.5);
}

.profile-info {
    flex: 1;
    color: #fff;
}

.profile-username {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    gap: 32px;
    color: rgba(255, 255, 255, 0.9);
}

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

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 关注按钮 */
.follow-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #6366f1;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn:hover {
    transform: scale(1.05);
}

.follow-btn.following {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .global-player {
        flex-wrap: wrap;
        height: auto;
        padding: 12px;
        gap: 10px;
    }
    
    .player-progress-wrap {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .player-info {
        min-width: 140px;
    }
    
    .volume-wrap {
        display: none;
    }
    
    .profile-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
}
