/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.nav-brand i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 主容器 */
.container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* 侧边栏 */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section ul {
    list-style: none;
}

.sidebar-section li {
    margin-bottom: 10px;
}

.sidebar-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-section a:hover,
.sidebar-section li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.hint {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 14px;
}

/* 按钮样式 */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #f0f0f0;
    color: #667eea;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.login-tips {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    border-left: 5px solid #667eea;
}

.login-tips ul {
    list-style: none;
    margin-top: 10px;
}

.login-tips li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.login-tips li:before {
    content: "🎵";
    position: absolute;
    left: 0;
}

/* 音乐播放器 */
.music-player {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.player-header h2 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-controls {
    display: flex;
    gap: 15px;
}

.btn-player {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-player:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.now-playing {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
}

.album-art {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.track-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.track-info p {
    color: #666;
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 20px 0;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
}

.player-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 25px;
    background: #f0f0f0;
    border: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

/* 音乐列表 */
.music-list-section,
.playlist-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 300px;
    font-size: 16px;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-search {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.music-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.music-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.music-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.music-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.music-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-card-actions button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.music-card-actions button:hover {
    transform: scale(1.2);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.page-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.page-info {
    color: #667eea;
    font-weight: bold;
}

/* 歌单网格 */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.playlist-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.playlist-card-info {
    padding: 15px;
}

.playlist-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.playlist-card p {
    color: #666;
    font-size: 12px;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    text-align: center;
    margin-top: 40px;
    border-radius: 20px 20px 0 0;
}

.footer-content p {
    color: #667eea;
    margin-bottom: 10px;
}

.footer-tips {
    font-size: 14px;
    color: #888;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 通知 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    z-index: 3000;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 加载动画 */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #667eea;
}

.fa-spin {
    font-size: 40px;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .player-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .now-playing {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .music-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}


/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-number {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.page-number:hover {
    border-color: #667eea;
    color: #667eea;
}

.page-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.page-info {
    margin-left: 20px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: #666;
    font-weight: bold;
    user-select: none;
}

#currentPageNum, #totalPageNum {
    font-weight: bold;
    color: #667eea;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .page-btn, .page-number {
        padding: 8px 12px;
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .page-info {
        width: 100%;
        justify-content: center;
        margin: 15px 0 0 0;
    }
}



/* ==================== 新增样式 ==================== */

/* 用户下拉菜单 */
.users-dropdown-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.users-dropdown {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-header {
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
}

.dropdown-header h3 {
    margin: 0;
    font-size: 16px;
}

.dropdown-header small {
    font-size: 12px;
    opacity: 0.8;
}

.dropdown-content {
    padding: 10px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.user-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.user-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.user-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.view-user-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.view-user-btn:hover {
    background: #667eea;
    color: white;
}

/* 用户详情模态框 */
.user-detail-modal {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.user-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.user-detail-info {
    flex: 1;
}

.user-detail-info h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.user-bio {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.user-stats-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-item i {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 8px;
}

.stat-item span {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-item strong {
    font-size: 20px;
    color: #333;
}

.user-join-date {
    color: #888;
    font-size: 13px;
}

.user-detail-sections {
    margin-bottom: 30px;
}

.user-section {
    margin-bottom: 30px;
}

.user-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.user-playlist-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.user-playlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.playlist-cover {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    margin-bottom: 15px;
    position: relative;
}

.playlist-info h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-info p {
    color: #666;
    font-size: 13px;
    margin: 0 0 5px 0;
}

.playlist-desc {
    font-size: 12px !important;
    color: #888 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.empty-message {
    text-align: center;
    color: #888;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.user-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 热门排行榜 */
.trending-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.trending-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.trending-section .section-header {
    margin-bottom: 20px;
}

.trending-section .section-header h2 {
    color: #667eea;
    margin: 0;
}

.trending-section .section-header small {
    color: #666;
    font-size: 14px;
}

/* 热门音乐列表 */
.trending-musics-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trending-music-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.trending-music-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.trending-rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
}

.trending-music-info {
    flex: 1;
    min-width: 0;
}

.trending-music-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-music-artist {
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-music-stats {
    display: flex;
    gap: 15px;
    margin-right: 15px;
    color: #888;
    font-size: 13px;
}

.trending-music-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-trending-music-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-trending-music-btn:hover {
    transform: scale(1.1);
}

/* 热门歌单网格 */
.trending-playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.trending-playlist-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.trending-playlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.trending-playlist-cover {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    position: relative;
}

.music-count {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.trending-playlist-info {
    flex: 1;
    min-width: 0;
}

.trending-playlist-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trending-playlist-creator {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.trending-playlist-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.trending-playlist-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.view-trending-playlist-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    align-self: center;
    transition: all 0.3s;
}

.view-trending-playlist-btn:hover {
    background: #667eea;
    color: white;
}

/* 活跃用户网格 */
.trending-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.trending-user-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.trending-user-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.trending-user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.trending-user-info {
    flex: 1;
    min-width: 0;
}

.trending-user-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.trending-user-stats {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #888;
}

.trending-user-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.view-trending-user-btn {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.view-trending-user-btn:hover {
    background: #667eea;
    color: white;
}

.empty-trending {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #f8f9fa;
    border-radius: 10px;
}

.empty-trending i {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-trending p {
    margin: 0;
}

/* 歌单详情模态框 */
.playlist-detail-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.playlist-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.playlist-cover-large {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    position: relative;
}

.music-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.playlist-detail-info {
    flex: 1;
}

.playlist-detail-info h3 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333;
}

.creator-info {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.playlist-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
}

.playlist-stats-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.playlist-actions-header {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.playlist-detail-sections {
    margin-bottom: 30px;
}

.playlist-section {
    margin-bottom: 30px;
}

.playlist-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-musics-list {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.playlist-music-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.playlist-music-item:hover {
    background: #e9ecef;
}

.playlist-music-item:last-child {
    border-bottom: none;
}

.music-number {
    width: 30px;
    text-align: center;
    color: #666;
    font-weight: bold;
    margin-right: 15px;
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-artist {
    color: #666;
    font-size: 13px;
}

.music-duration {
    color: #888;
    font-size: 13px;
    margin: 0 15px;
}

.music-actions {
    display: flex;
    gap: 5px;
}

.music-actions button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.music-actions button:hover {
    background: #667eea;
    color: white;
}

/* 评论系统 */
.comment-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.comment-input-section {
    margin-bottom: 30px;
}

.comment-input-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-input-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    color: #666;
    font-size: 14px;
}

.comments-list-container h4 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.comment-user-info {
    min-width: 0;
}

.comment-user-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.comment-time {
    color: #888;
    font-size: 12px;
}

.comment-actions {
    display: flex;
    gap: 5px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.comment-actions button:hover {
    background: #ff6b6b;
    color: white;
}

.comment-content {
    color: #333;
    line-height: 1.5;
    font-size: 15px;
}

.empty-comments {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #f8f9fa;
    border-radius: 10px;
}

.empty-comments i {
    font-size: 40px;
    margin-bottom: 15px;
}

.empty-comments p {
    margin: 0;
}

.add-comment-section {
    margin-top: 20px;
}

.add-comment-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 10px;
}

.add-comment-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 音乐卡片增强样式 */
.music-card {
    position: relative;
}

.hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    animation: pulse 1.5s infinite;
}

.music-card-content {
    padding: 15px;
}

.music-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.artist, .album {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-stats {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 12px;
    color: #888;
}

.music-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.music-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.duration {
    color: #888;
    font-size: 13px;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-buttons button:hover {
    background: #667eea;
    color: white;
}

.action-buttons .liked {
    color: #ff6b6b;
}

.action-buttons .favorited {
    color: #ffd700;
}

/* 歌单卡片增强样式 */
.playlist-card {
    position: relative;
}

.playlist-card .album-art {
    position: relative;
}

.playlist-card .music-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.playlist-card-info {
    padding: 15px;
}

.playlist-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator, .description {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.playlist-stats {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 12px;
    color: #888;
}

.playlist-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.playlist-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.playlist-actions button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.playlist-actions button:hover {
    background: #667eea;
    color: white;
}

.playlist-actions .favorited {
    color: #ffd700;
}

/* 用户歌单侧边栏 */
.playlist-actions-sidebar {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    gap: 5px;
}

.playlist-list li:hover .playlist-actions-sidebar {
    display: flex;
}

.playlist-actions-sidebar button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.playlist-actions-sidebar button:hover {
    background: #667eea;
    color: white;
}

.playlist-music-count {
    background: #667eea;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* 播放器增强样式 */
.player-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-action:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-action.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#likeBtn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

#favoriteBtn.active {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
}

/* 按钮增强样式 */
.btn-warning {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    color: #333;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .user-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar-large {
        align-self: center;
    }
    
    .user-stats-detail {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trending-playlists-grid,
    .trending-users-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .playlist-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .playlist-cover-large {
        align-self: center;
    }
    
    .playlist-actions-header {
        justify-content: center;
    }
    
    .trending-playlists-grid,
    .trending-users-grid {
        grid-template-columns: 1fr;
    }
    
    .user-playlists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .users-dropdown-container {
        width: 280px;
        right: -50px;
    }
}

@media (max-width: 480px) {
    .user-stats-detail {
        grid-template-columns: 1fr;
    }
    
    .user-playlists-grid {
        grid-template-columns: 1fr;
    }
    
    .playlist-stats-detail {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .player-actions {
        justify-content: center;
    }
    
    .btn-action {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* 动画增强 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-card, .playlist-card, .user-item, .trending-music-item {
    animation: slideUp 0.3s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4090 100%);
}



/* 🔴 新增：用户功能区域样式 */

.user-functions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.user-functions h4 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.function-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.function-buttons .btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
}

.function-tips {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
}

.function-tips p {
    color: #667eea;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.function-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.function-tips li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.function-tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

/* 点击头像的悬停效果 */
.user-avatar {
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.user-name {
    cursor: pointer;
    transition: all 0.3s;
}

.user-name:hover {
    color: #667eea;
}