        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            overflow-x: hidden;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        /* 头部样式 */
        .header {
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            position: relative;
        }

        .header h1 {
            text-align: center;
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .search-box {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
            position: relative;
        }

        .search-box input {
            flex: 1;
            padding: 12px 20px;
            border: 2px solid #e1e8ed;
            border-radius: 25px;
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
            padding-right: 50px;
        }

        .search-box input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .search-box button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            padding: 8px 16px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .search-box button:hover {
            background: #5a6fd8;
            transform: translateY(-50%) scale(1.05);
        }

        .user-section {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-login {
            background: #28a745;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .btn-login:hover {
            background: #218838;
            transform: translateY(-2px);
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #2c3e50;
            background: rgba(102, 126, 234, 0.1);
            padding: 8px 12px;
            border-radius: 20px;
        }

        /* 主要内容区 */
        .main-content {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            min-height: 600px;
        }

        .content-left, .content-right {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            overflow: hidden;
        }

        /* 区块样式 */
        .section {
            margin-bottom: 30px;
            animation: fadeIn 0.5s ease;
        }

        .section h2 {
            margin-bottom: 15px;
            color: #2c3e50;
            border-bottom: 2px solid #e1e8ed;
            padding-bottom: 10px;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 加载状态样式 */
        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
            color: #666;
            font-size: 16px;
        }

        .error-message {
            padding: 20px;
            text-align: center;
            color: #e74c3c;
            background: #fdf2f2;
            border-radius: 8px;
            margin: 10px 0;
            border: 1px solid #f5c6cb;
        }

        .empty-message {
            padding: 40px;
            text-align: center;
            color: #6c757d;
            background: #f8f9fa;
            border-radius: 8px;
            margin: 10px 0;
        }

        /* 热搜列表 */
        .hot-search-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .hot-search-item {
            background: #f8f9fa;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e1e8ed;
            font-size: 14px;
        }

        .hot-search-item:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        /* 歌单网格 */
        .playlist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
        }

        .playlist-item {
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .playlist-item:hover {
            transform: translateY(-5px);
        }

        .playlist-cover {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 10px;
            margin-bottom: 8px;
            object-fit: cover;
            transition: all 0.3s ease;
            background: #f8f9fa;
        }

        .playlist-item:hover .playlist-cover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .playlist-name {
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 歌曲列表 */
        .song-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 600px;
            overflow-y: auto;
        }

        .song-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background: #f8f9fa;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e1e8ed;
            position: relative;
        }

        .song-item:hover {
            background: #e3f2fd;
            transform: translateX(5px);
            border-color: #667eea;
        }

        .song-item.playing {
            background: #667eea;
            color: white;
            border-color: #5a6fd8;
        }

        .song-item.playing::before {
            content: '▶';
            position: absolute;
            left: 8px;
            color: white;
            font-size: 12px;
        }

        .song-info {
            flex: 1;
            margin-left: 20px;
        }

        .song-name {
            font-weight: 500;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .song-artist {
            font-size: 12px;
            color: #666;
        }

        .song-item.playing .song-artist {
            color: #e1e8ed;
        }

        /* 播放器面板 */
        .player-panel {
            display: flex;
            flex-direction: column;
            height: 100%;
            gap: 20px;
        }

        .now-playing {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e1e8ed;
        }

        .cover {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            margin-right: 15px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .song-info h3 {
            margin-bottom: 5px;
            color: #2c3e50;
            font-size: 16px;
        }

        .song-info p {
            color: #666;
            font-size: 14px;
        }

        /* 播放控制 */
        .player-controls {
            margin-bottom: 10px;
        }

        .control-buttons {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .control-buttons button {
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            background: #667eea;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .control-buttons button:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
        }

        .control-buttons button:active {
            transform: translateY(0);
        }

        .control-buttons button:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        }

        /* 播放队列 */
        .playlist {
            flex-shrink: 0;
        }

        .playlist h4 {
            margin-bottom: 10px;
            color: #2c3e50;
            font-size: 16px;
        }

        .play-queue {
            max-height: 150px;
            overflow-y: auto;
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            padding: 30px;
            background: #f8f9fa;
        }

        /* 歌词区域 - 修复滚动问题 */
        .lyrics {
            flex: 1;
            min-height: 200px;
            display: flex;
            flex-direction: column;
            overflow: hidden; /* 防止溢出 */
        }

        .lyrics h4 {
            margin-bottom: 10px;
            color: #2c3e50;
            font-size: 16px;
            flex-shrink: 0; /* 标题不压缩 */
        }

        .lyric-container {
            flex: 1;
            overflow-y: auto; /* 允许垂直滚动 */
            border: 1px solid #e1e8ed;
            border-radius: 8px;
            padding: 15px;
            background: #f8f9fa;
            text-align: center;
            line-height: 2;
            font-size: 14px;
            max-height: 300px; /* 限制最大高度 */
            scroll-behavior: smooth; /* 平滑滚动 */
            
            /* 修复滚动问题 */
            position: relative;
            overflow-anchor: none; /* 防止滚动锚定 */
            
            /* 防止滚动传播 */
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .lyric-line {
            padding: 4px 8px;
            margin: 2px 0;
            border-radius: 4px;
            transition: all 0.3s ease;
            min-height: 24px;
            scroll-margin: 50px; /* 滚动边距 */
            
            /* 防止文本选择 */
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
        }

        .lyric-line.active {
            color: #667eea;
            font-weight: bold;
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.02);
        }

        /* 确保歌词容器不会影响外部滚动 */
        .lyric-container::-webkit-scrollbar {
            width: 6px;
        }

        .lyric-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .lyric-container::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .lyric-container::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* 音频播放器样式 */
        #audioPlayer {
            width: 100%;
            height: 40px;
            border-radius: 8px;
            outline: none;
        }

        /* 进度条样式 */
        .progress-container {
            width: 100%;
            height: 4px;
            background: #e1e8ed;
            border-radius: 2px;
            margin: 10px 0;
            cursor: pointer;
            position: relative;
        }

        .progress-bar {
            height: 100%;
            background: #667eea;
            border-radius: 2px;
            width: 0%;
            transition: width 0.1s ease;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .main-content {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .content-right {
                order: -1;
            }
            
            .playlist-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }
            
            .lyric-container {
                max-height: 200px;
            }
            
            .user-section {
                position: static;
                justify-content: center;
                margin-top: 10px;
            }
            
            .header h1 {
                font-size: 1.5em;
            }
        }

        @media (max-width: 480px) {
            .playlist-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }
            
            .now-playing {
                flex-direction: column;
                text-align: center;
            }
            
            .cover {
                margin-right: 0;
                margin-bottom: 10px;
            }
            
            .control-buttons {
                flex-wrap: wrap;
            }
            
            .control-buttons button {
                flex: 1;
                min-width: 60px;
            }
        }

        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* 动画类 */
        .fade-in {
            animation: fadeIn 0.5s ease;
        }

        .slide-in {
            animation: slideIn 0.5s ease;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* 工具类 */
        .text-center {
            text-align: center;
        }

        .text-muted {
            color: #6c757d;
        }

        .mb-10 {
            margin-bottom: 10px;
        }

        .mt-10 {
            margin-top: 10px;
        }

        .hidden {
            display: none !important;
        }

        /* 骨架屏加载动画 */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: 4px;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        .skeleton-text {
            height: 16px;
            margin-bottom: 8px;
        }

        .skeleton-image {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 8px;
        }