/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#searchBtn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

#searchBtn:hover {
    color: #ffd700;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 2rem;
    padding: 2rem;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem 1rem;
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: 600;
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
}

/* Content Area */
.content-area {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Song Grid */
.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.song-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.song-card:hover::before {
    left: 100%;
}

.song-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.song-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.song-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.song-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.play-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.song-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Playlist Container */
.playlist-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.playlist-item.playing {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
}

.playlist-item .song-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

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

.playlist-item-info {
    flex: 1;
}

.playlist-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.playlist-item-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.playlist-item-controls {
    display: flex;
    gap: 0.5rem;
}

.playlist-item-controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.playlist-item-controls button:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Lyrics Container */
.lyrics-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-lyrics {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 4rem 2rem;
}

.no-lyrics i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.lyrics-content {
    line-height: 2.5;
    font-size: 1.1rem;
    text-align: center;
}

.lyric-line {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    margin: 0.2rem 0;
}

.lyric-line:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lyric-line.active {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.2));
    color: #ffd700;
    font-weight: 600;
    transform: scale(1.05);
}

/* Player Container */
.player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    z-index: 1000;
}

/* Current Song Info */
.current-song {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-song .song-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.current-song .song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.current-song .song-cover:hover img {
    transform: scale(1.1);
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: white;
}

.song-artist {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.favorite-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.favorite-btn:hover,
.favorite-btn.active {
    color: #ff4757;
    transform: scale(1.1);
}

/* Player Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.play-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    font-size: 1.5rem;
    width: 55px;
    height: 55px;
}

.play-btn:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
    transform: scale(1.1);
}

.control-btn.active {
    color: #ffd700;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-handle {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

/* Volume Container */
.volume-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.volume-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.volume-slider {
    width: 100px;
}

.volume-slider input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Search Results */
.search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加触摸目标大小 */
    .control-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .nav-item {
        min-height: 48px;
    }
    
    .song-card {
        padding: 1.5rem;
    }
    
    /* 移除悬停效果，改为点击效果 */
    .song-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .control-btn:active {
        transform: scale(0.95);
    }
    
    .nav-item:active {
        background: rgba(255, 255, 255, 0.2);
    }
    
    /* 歌词行触摸优化 */
    .lyric-line:active {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(0.98);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .main-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        /* 为播放器留出空间 */
        padding-bottom: 200px;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        /* 改为固定高度，避免内容过长 */
        height: auto;
        padding: 1rem;
    }
    
    .nav-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        /* 移除横向滚动，改为网格布局 */
    }
    
    .nav-item {
        min-width: auto;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        /* 确保所有导航项都可见 */
    }
    
    .nav-item span {
        /* 在小屏幕上隐藏文字，只显示图标 */
        display: none;
    }
    
    /* 为导航项添加工具提示效果 */
    .nav-item {
        position: relative;
    }
    
    .nav-item::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -35px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1001;
    }
    
    .nav-item:hover::after {
        opacity: 1;
    }
    
    .nav-item i {
        font-size: 1.5rem;
    }
    
    .content-area {
        order: 1;
        max-height: none;
        /* 减少内边距以节省空间 */
        padding: 1rem;
    }
    
    /* 移动端歌词容器优化 */
    .lyrics-container {
        max-height: calc(100vh - 300px);
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .no-lyrics {
        padding: 2rem 1rem;
    }
    
    .no-lyrics i {
        font-size: 3rem;
    }
    
    .lyrics-content {
        font-size: 1rem;
        line-height: 2;
    }
    
    .lyric-line {
        padding: 0.75rem 0.5rem;
        margin: 0.1rem 0;
        font-size: 0.95rem;
    }
    
    .song-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .player-container {
        /* 改为更紧凑的布局 */
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
        padding: 1rem;
        /* 确保播放器始终可见 */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        z-index: 1000;
        /* 支持安全区域 */
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    
    .current-song {
        justify-content: flex-start;
        order: 1;
    }
    
    .player-controls {
        order: 2;
    }
    
    .volume-container {
        justify-content: center;
        order: 3;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-menu {
        /* 在超小屏幕上显示为4列网格 */
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
    
    .nav-item {
        padding: 0.5rem 0.25rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .nav-item span {
        /* 在480px以下显示简短文字 */
        display: block;
        font-size: 0.7rem;
        text-align: center;
    }
    
    .nav-item i {
        font-size: 1.2rem;
    }
    
    .control-buttons {
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .song-card {
        padding: 1rem;
    }
    
    .current-song .song-cover {
        width: 45px;
        height: 45px;
    }
    
    .current-song {
        gap: 0.75rem;
    }
    
    .song-info {
        min-width: 0;
    }
    
    .song-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .song-artist {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-container {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .main-content {
        padding-bottom: 180px;
    }
    
    /* 超小屏幕歌词优化 */
    .lyrics-container {
        max-height: calc(100vh - 250px);
        padding: 0.75rem;
    }
    
    .no-lyrics {
        padding: 1.5rem 0.75rem;
    }
    
    .no-lyrics i {
        font-size: 2.5rem;
    }
    
    .lyrics-content {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    .lyric-line {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .lyric-line.active {
        transform: scale(1.02);
    }
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 0 1rem;
}

@media (max-width: 480px) {
    .pagination-container {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .page-info {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* User Controls Styles */
.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.login-btn.logged-in {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    border-color: transparent;
}

.login-btn.logged-in:hover {
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

/* Login Modal Styles */
.login-modal-content {
    max-width: 400px;
    width: 90%;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.form-actions button {
    flex: 1;
}

.login-info {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-info i {
    color: #ffd700;
}

/* User Menu Styles */
.user-menu {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-content {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
}

.user-info i {
    color: #ffd700;
    font-size: 1.1rem;
}

.menu-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    text-align: left;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item i {
    width: 16px;
    font-size: 0.9rem;
}

/* Favorites Container Styles */
.favorites-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.favorites-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.no-favorites {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 4rem 2rem;
}

.no-favorites i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: #ff4757;
}

.no-favorites .hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.favorite-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 71, 87, 0.1), transparent);
    transition: left 0.6s;
}

.favorite-item:hover::before {
    left: 100%;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.1);
}

.favorite-item .song-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.favorite-item .song-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-item-info {
    flex: 1;
    min-width: 0;
}

.favorite-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-item-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.added-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.favorite-item-controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.favorite-item-controls button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.favorite-item-controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.favorite-item-controls button:first-child:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.favorite-item-controls button:nth-child(2):hover {
    color: #5dade2;
    background: rgba(93, 173, 226, 0.1);
}

.favorite-item-controls button:last-child:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .user-controls {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .login-btn {
        width: 100%;
        justify-content: center;
    }
    
    .user-menu {
        right: 1rem;
        left: 1rem;
        top: 120px;
    }
    
    .favorite-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .favorite-item-info {
        width: 100%;
    }
    
    .favorite-item-controls {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .favorite-item-controls button {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .login-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .favorite-item-controls {
        gap: 0.75rem;
    }
}
