/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量系统 - 动态适配 */
:root {
    /* 颜色变量 - 现代化渐变色彩 */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --background-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 35%, #ec4899 100%);
    --background-gradient-soft: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 35%, rgba(236, 72, 153, 0.1) 100%);
    --text-color: #1f2937;
    --text-color-light: #6b7280;
    --white: #ffffff;
    --light-gray: #f9fafb;
    --gray: #f3f4f6;
    --dark-gray: #e5e7eb;
    --card-background: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    
    /* 尺寸变量 */
    --container-max-width: 1200px;
    --container-padding: 20px;
    --player-height: 80px;
    --player-height-mobile: 80px;
    --header-height: 60px;
    --touch-target-min: 44px;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
    
    /* 间距变量 */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* 字体变量 */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 28px;
    --font-size-4xl: 32px;
    
    /* 动态变量 - 由JavaScript更新 */
    --vh: 1vh;
    --vw: 1vw;
    --dynamic-font-size: 16px;
    --device-pixel-ratio: 1;
    
    /* 响应式断点 */
    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 1024px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* 移动端禁止上下滑动 */
@media (max-width: 768px) {
    html,
    body {
        overflow: hidden !important;
        touch-action: none !important;
        height: 100% !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* 确保main元素也不能滑动 */
    .main {
        overflow: hidden !important;
        touch-action: none !important;
    }
}

/* 汉堡菜单按钮样式 - 仅在移动端显示 */
.hamburger-btn {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* API切换按钮样式 - 适用于所有设备 */
.content {
    position: relative !important;
}

/* 确保API切换按钮显示在.content右上角 */
#api-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    /* 初始显示，由JavaScript和body类控制隐藏 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 9999 !important;
    width: 40px !important;
    height: 40px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 禁止手机端屏幕上下滑动 */
    @media (max-width: 768px) {
        body {
            overflow-y: hidden;
            touch-action: pan-x;
            height: 100vh;
            width: 100vw;
        }
        
        /* 显示移动端元素 */
        .mobile-only {
            display: block !important;
        }
        
        /* 显示移动端汉堡菜单按钮 */
        .hamburger-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            position: static;
            z-index: 100;
        }
        
        /* API切换按钮位置 */
        .api-toggle-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 100;
        }
        
        /* 确保主要内容区域可以滚动 */
        .main {
            overflow-y: auto;
            height: calc(100vh - var(--player-height)); /* 减去底部播放器的高度 */
            -webkit-overflow-scrolling: touch;
            position: relative;
            padding-top: 20px;
        }
        
        /* 确保容器宽度正确 */
        .container {
            width: 100%;
            padding-left: var(--container-padding);
            padding-right: var(--container-padding);
            box-sizing: border-box;
        }
    }

/* 设备适配类 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* API切换按钮通用样式增强 */
.api-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* 桌面端API切换按钮尺寸和位置 */
@media (min-width: 768px) {
    .api-toggle-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
        top: 20px;
        right: 20px;
    }
}

/* 移动端API切换按钮尺寸 */
@media (max-width: 767px) {
    .api-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* 桌面端适配 */
@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    /* 桌面端API切换按钮自动显示，由:has()选择器控制 */
}

/* 按钮伪元素，添加渐变光效 */
.api-toggle-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

/* 按钮hover效果 */
.api-toggle-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* hover时光效动画 */
.api-toggle-btn:hover::before {
    left: 100%;
    transition: all 0.6s ease;
}

/* 按钮激活状态（切换到CyAPI时） */
.api-toggle-btn.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

/* 按钮激活状态hover效果 */
.api-toggle-btn.active:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.4);
}

/* 按钮禁用状态 */
.api-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 按钮禁用状态hover效果 */
.api-toggle-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

/* CyAPI搜索框样式 - 直接集成到search-bar中，共享search-bar的样式 */

/* 隐藏类 */
.hidden {
    display: none !important;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://picsum.photos/1920/1080?random=1') no-repeat center center fixed;
    background-size: cover;
    z-index: -2;
    opacity: 0.15;
    filter: brightness(0.9) contrast(1.1);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.hidden {
    display: none !important;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* 汉堡菜单按钮样式 */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: var(--spacing-sm);
}

.hamburger-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

/* 头部样式 - 默认隐藏，仅在移动端显示 */
.header {
    display: none;
    background: var(--card-background);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 90; /* 确保头部导航栏在侧边栏下方 */
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo i {
    margin-right: 10px;
    font-size: 26px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.logo:hover i {
    transform: rotate(15deg) scale(1.1);
    color: var(--accent-color);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--gray);
    border-radius: 28px;
    padding: 4px;
    gap: 4px;
    transition: all 0.3s ease;
    margin: 0;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.search-bar:hover {
    background: var(--dark-gray);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: var(--text-color);
}

/* 清除搜索按钮样式 */
.clear-search-btn {
    position: absolute;
    right: 80px;
    background: transparent !important;
    border: none;
    color: black !important;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    z-index: 10;
    box-shadow: none !important;
}

.clear-search-btn.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search-btn:hover {
    color: black !important;
    background: transparent !important;
}

/* 直接指定清除按钮图标的样式 */
.clear-search-btn i {
    color: black !important;
    font-size: 14px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* 响应式设计：根据屏幕宽度调整搜索框大小 */
@media (max-width: 1200px) {
    .search-bar {
        max-width: 500px;
    }
}

@media (max-width: 992px) {
    .search-bar {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
        width: 100%;
        padding: 3px;
    }
    
    .search-bar input {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .search-bar button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .clear-search-btn {
        right: 70px !important;
    }
}

@media (max-width: 480px) {
    .search-bar {
        padding: 2px;
        gap: 3px;
    }
    
    .search-bar input {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .search-bar button {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .clear-search-btn {
        right: 60px !important;
        width: 20px;
        height: 20px;
    }
    
    .clear-search-btn i {
        font-size: 12px !important;
    }
}

.search-bar input::placeholder {
    color: var(--text-color-light);
}

.search-bar button {
    padding: 10px 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.search-bar button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--gray);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.btn-secondary:hover {
    background: var(--dark-gray);
    transform: translateY(-1px);
}

.user-info {
    display: flex;
    align-items: center;
}

/* 侧边栏遮罩层样式 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99; /* 确保遮罩层在顶部导航栏下方，侧边栏上方 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* 移除backdrop-filter以解决iOS上的模糊屏障问题 */
    /* backdrop-filter: blur(3px); */
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 侧边栏关闭按钮样式 */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(102, 126, 234, 0.1);
    border: none;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: rotate(90deg);
}

/* 主内容区域 */
.main {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--player-height));
    overflow: hidden;
    box-sizing: border-box;
}

.main .container {
    display: flex;
    gap: 20px;
    height: 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
}

/* 侧边栏 */
.sidebar {
    flex: 0 0 200px;
    position: relative;
    height: 100%;
    transition-duration: 200ms;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.sidebar-user-status {
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
}

.sidebar-close-btn {
    display: none;
}

.nav-menu {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.75);
    transition: all 0.25s ease;
    border-radius: 10px;
    margin-bottom: 4px;
    min-height: 50px;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a2e;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.nav-item i {
    margin-right: 14px;
    width: 22px;
    text-align: center;
    font-size: 18px;
    color: inherit;
}

.nav-item span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* 侧边栏底部 */
.sidebar-footer {
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.7); /* 与导航菜单背景一致 */
        border-top: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

.sidebar-version {
    color: rgba(0, 0, 0, 0.35);
    font-size: 12px;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
}

.sidebar-header {
    padding: 24px 20px;
    background: rgba(26, 26, 46, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.sidebar-user-status {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.sidebar-close-btn {
    display: none;
}

.nav-menu {
    background: transparent;
    padding: 12px 12px;
    backdrop-filter: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
    border-radius: 10px;
    margin-bottom: 4px;
    min-height: 50px;
    border-left: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border-left: none;
}

.nav-item i {
    margin-right: 14px;
    width: 22px;
    text-align: center;
    font-size: 18px;
    color: inherit;
}

.nav-item span {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.sidebar-footer {
    padding: 16px 20px;
    background: transparent; /* 与导航菜单背景一致 */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-version {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Logo样式 */
.content-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.content-logo img {
    max-width: 60px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* 内容区域 */
.content {
    flex: 1;
    background: transparent;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative !important;
}

/* 桌面端适配 - 调整logo大小 */
@media (min-width: 768px) {
    .content-logo img {
        max-width: 200px;
    }
}

/* 在播放历史页面隐藏搜索框 */
#history-section.active + .search-bar {
    display: none;
}



/* 在播放历史页面，将内容区域的padding调整为正常 */
#history-section.active {
    padding-top: 0;
}

/* 隐藏所有section，只显示搜索框 */
.content .section {
    display: none;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.section {
    display: none;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.content .section.active {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 300px;
    align-self: stretch;
}

/* API切换按钮默认隐藏，通过JavaScript控制显示/隐藏 */
.api-toggle-btn {
    display: none;
}

/* 为搜索页面添加特殊类，用于控制API切换按钮显示 */
body.search-page #api-toggle-btn {
    display: flex !important;
}

/* 当有搜索关键词时，隐藏API切换按钮 */
body.search-page.has-search-keyword #api-toggle-btn {
    display: none !important;
}

/* 为其他页面添加特殊类，用于控制API切换按钮隐藏 */
body.history-page #api-toggle-btn,
body.settings-page #api-toggle-btn,
body.playlist-page #api-toggle-btn {
    display: none !important;
}

.section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* 播放历史头部样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 清除历史按钮样式 */
.btn-clear-history {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-history:hover {
    background: #ff3742;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-clear-history:active {
    transform: translateY(0);
}

.btn-clear-history i {
    font-size: 16px;
}

/* 关于页面样式 */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-item {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.about-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.about-value {
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

/* 调整最后一个关于项的样式，因为内容较长 */
.about-item:last-child .about-value {
    font-size: 16px;
}

/* 移除设置相关的样式 */
.settings-container, .setting-item, .setting-label, .setting-select, .setting-range, .setting-value {
    display: none;
}

/* 歌单推荐样式 */
.playlist-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.playlist-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.playlist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--background-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.playlist-card:hover::before {
    transform: scaleX(1);
}

.playlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.playlist-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.playlist-card:hover img {
    transform: scale(1.08);
}

.playlist-name {
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.4;
}

.playlist-info {
    color: var(--text-color-light);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.playlist-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.playlist-count i {
    font-size: 12px;
    color: var(--primary-color);
}

.playlist-play-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.playlist-play-count i {
    font-size: 12px;
    color: var(--accent-color);
}

/* 热歌网格 */
.hot-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.song-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 12px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--background-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.song-card:hover::before {
    transform: scaleX(1);
}

.song-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.song-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.song-card:hover img {
    transform: scale(1.08);
}

.song-card .song-name {
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.song-card .song-artist {
    color: var(--text-color-light);
    font-size: 13px;
    line-height: 1.3;
}

/* 搜索结果 */
/* 移除默认的min-height，将在下面统一设置 */

/* PC端搜索结果自定义滚动条 */
@media (min-width: 769px) {
    /* 全屏container样式 */
    .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 var(--container-padding);
    }
    
    /* 主容器特定样式 */
    .main .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 var(--container-padding);
    }
    
    /* 播放器容器全屏样式 */
    .player-container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 var(--container-padding);
    }
    
    /* PC端侧边栏样式调整 */
    .sidebar {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    /* 侧边栏头部和底部纯透明背景 */
    .sidebar-header {
        background: transparent;
        border-bottom: none;
    }
    
    .sidebar-footer {
        background: transparent;
        border-top: none;
    }
    
    /* 调整文字颜色为黑色以适应透明背景 */
    .sidebar-header .sidebar-user-name,
    .sidebar-header .sidebar-user-status,
    .sidebar-footer .sidebar-version {
        color: #000;
    }
    
    /* 导航项文字颜色调整 */
    .nav-item {
        color: rgba(0, 0, 0, 0.75);
    }
    
    .nav-item:hover {
        color: #1a1a2e;
    }
    
    .nav-item.active {
        color: #667eea;
    }
    
    /* 搜索结果滚动条 */
    .search-results::-webkit-scrollbar {
        width: 8px;
    }
    
    .search-results::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
        margin: 10px 0;
    }
    
    .search-results::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .search-results::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }
    
    .search-results::-webkit-scrollbar-corner {
        background: #f1f1f1;
    }
}

.song-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s ease;
}

.song-item:hover {
    background: #f8f9fa;
}

.song-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.song-item-info {
    flex: 1;
}

.song-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.song-item-artist {
    color: #666;
    font-size: 14px;
}

.play-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.song-item-actions {
    display: flex;
    gap: 5px;
}

.queue-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.queue-btn:hover {
    background: #218838;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 20px;
    color: #666;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

/* 播放器底部 */
.player-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eee;
    padding: 10px 0;
    z-index: 1000;
}

.player-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-footer .player-container .buttons-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.song-info {
    display: flex;
    align-items: center;
    flex: 0 0 200px;
}

.song-info img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 10px;
}

.song-details .song-name {
    font-weight: bold;
    font-size: 14px;
}

.song-details .song-artist {
    color: #666;
    font-size: 12px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: #f0f0f0;
}

.play-pause {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause:hover {
    background: #5a6fd8;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

#current-time,
#duration {
    color: white;
    font-size: var(--font-size-xs);
    min-width: 35px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    position: relative;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    width: 0%;
}

#progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.volume-slider-container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    height: 120px;
    width: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.volume-control:hover .volume-slider-container,
.volume-control.show-slider .volume-slider-container {
    display: flex;
}

#volume-slider {
    width: 100px;
    height: 6px;
    transform: rotate(-90deg);
    transform-origin: center;
    margin: 0;
    background: linear-gradient(to right, #667eea 0%, #667eea var(--volume-percent, 50%), #e9ecef var(--volume-percent, 50%), #e9ecef 100%);
    border-radius: 3px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(102, 126, 234, 0.4),
        0 0 0 2px white;
    border: 2px solid #667eea;
    transition: all 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.6),
        0 0 0 2px white;
}

#volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 2px 8px rgba(102, 126, 234, 0.4),
        0 0 0 2px white;
    border: 2px solid #667eea;
    transition: all 0.2s ease;
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.6),
        0 0 0 2px white;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
}

/* 平台选择下拉菜单 */
.platform-select {
    padding: 9px 14px;
    border: none;
    border-radius: 20px;
    background: var(--gray);
    color: var(--text-color);
    font-size: 14px;
    margin-right: 8px;
    min-width: 110px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.platform-select:focus {
    outline: none;
    background-color: var(--dark-gray);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.platform-select:hover {
    background-color: var(--dark-gray);
}

/* 无限滚动加载样式 */
.search-results {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    min-height: 200px;
}

.search-results-container {
    min-height: 100px;
}

.loading-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 歌词面板 - 播放器详情页样式（从底部滑动到上半屏） */
.lyrics-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.lyrics-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(50px) brightness(0.3);
    z-index: -1;
}

.lyrics-panel.has-image::before {
    background-image: var(--current-song-bg, none);
}

.lyrics-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.lyrics-panel:not(.hidden) {
    visibility: visible;
    transform: translateY(0);
}

.lyrics-panel.hidden {
    visibility: hidden;
    transform: translateY(100%);
}

/* 顶部歌曲信息 */
.lyrics-panel-info {
    order: 1;
    padding: 16px 30px;
    padding-top: 60px;
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none !important;
}

.lyrics-collapse-btn {
    position: absolute;
    top: 12px;
    left: 16px;
    width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
}

.lyrics-collapse-btn:hover {
    opacity: 1;
}

.lyrics-collapse-btn i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
}

.lyrics-song-name {
    font-size: 24px;
    font-weight: 500;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lyrics-artist {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 关闭按钮 */
.lyrics-close-btn {
    display: none !important;
}

/* 歌词主内容区域 */
.lyrics-main-content {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px;
    gap: 40px;
    min-height: 0;
    overflow: hidden;
}

/* 左侧歌曲图片 */
.lyrics-album-art {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    position: relative;
    margin-left: 120px;
}

.lyrics-album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: rotateAlbum 20s linear infinite;
    animation-play-state: paused;
    transition: transform 0.3s ease;
}

.lyrics-album-art img.playing {
    animation-play-state: running;
}

.lyrics-album-art img:hover {
    transform: scale(1.02);
}

@keyframes rotateAlbum {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 右侧歌词内容区域 */
.lyrics-content {
    flex: 1;
    padding: 0 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: white;
    min-height: 0;
}

/* 播放器 - 在歌词内容下方 */
.player-footer {
    order: 3;
    flex-shrink: 0;
}

/* 歌词面板内的播放器 */
.lyrics-panel .player-footer {
    background: transparent !important;
    border-top: none !important;
    border-radius: 0 !important;
    padding: 20px;
}

/* 歌词面板内播放器容器 */
.lyrics-panel .player-footer .player-container {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
    margin: 0;
    max-width: none;
    width: 100%;
    align-items: center;
    justify-items: center;
}

/* 按钮容器 */
.lyrics-panel .player-footer .buttons-row {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

/* 进度条在第一行 */
.lyrics-panel .player-footer .progress-container {
    width: 100%;
    max-width: 800px;
    grid-row: 1;
    grid-column: 1;
    justify-self: center;
}

/* 歌词面板内进度条样式 */
.lyrics-panel .player-footer .progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lyrics-panel .player-footer .progress {
    background: white;
    border-radius: 3px;
}

.lyrics-panel .player-footer .current-time,
.lyrics-panel .player-footer .duration {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: bold;
}

/* 隐藏歌词面板内不需要的元素 */
.lyrics-panel .player-footer .volume-control,
.lyrics-panel .player-footer .song-info {
    display: none !important;
}

/* 歌词面板内播放器按钮颜色 */
.lyrics-panel .player-footer .control-btn {
    color: white !important;
}

.lyrics-panel .player-footer .control-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.lyrics-panel .player-footer .play-pause {
    background: white !important;
    color: #667eea !important;
}

.lyrics-panel .player-footer .play-pause:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* 歌词样式 */
.lyrics-line {
    margin: 15px 0;
    font-size: 24px;
    line-height: 1.6;
    opacity: 1;
    transition: all 0.4s ease;
    cursor: pointer;
    max-width: 600px;
    word-wrap: break-word;
    width: auto;
}

.lyrics-line:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.lyrics-line.active {
    opacity: 1;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* 全屏歌词滚动条 */
.lyrics-content::-webkit-scrollbar {
    width: 8px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 播放队列面板 */
.queue-panel {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.queue-panel.active {
    visibility: visible;
    opacity: 1;
}

.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: white;
}

.queue-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-clear-queue {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.btn-clear-queue i {
    font-size: 14px;
    line-height: 1;
}

.btn-clear-queue:hover {
    background: #f1f3f4;
    border-color: #adb5bd;
    color: #dc3545;
}

.close-queue-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.close-queue-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.close-queue-btn:hover {
    background: #f1f3f4;
    border-color: #adb5bd;
    color: #dc3545;
    transform: rotate(90deg);
}

.close-queue-btn:hover::before {
    width: 100%;
    height: 100%;
}

.close-queue-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.queue-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.queue-actions {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.queue-actions .btn-secondary {
    font-size: 12px;
    padding: 5px 10px;
    margin-left: 5px;
}

.queue-content {
    height: calc(100% - 120px);
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.queue-content::-webkit-scrollbar {
    width: 6px;
}

.queue-content::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
    margin: 5px 0;
}

.queue-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e0, #a0aec0);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.queue-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a0aec0, #718096);
    box-shadow: 0 2px 8px rgba(160, 174, 192, 0.3);
}

.queue-content::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #718096, #4a5568);
}

.queue-content::-webkit-scrollbar-corner {
    background: #f7fafc;
}

.queue-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.queue-item:hover {
    background: #f8f9fa;
}

.queue-item.active {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
}

.queue-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.queue-item-info {
    flex: 1;
    min-width: 0;
}

.queue-item-name {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.queue-item-artist {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item-actions {
    display: flex;
    gap: 5px;
}

.queue-item-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.queue-item-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.queue-item-btn.remove:hover {
    color: #dc3545;
    background: #f8d7da;
}

.empty-queue {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-queue i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ccc;
}

.empty-queue p {
    margin: 0;
    font-size: 14px;
}

.queue-count {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

.lyrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.lyrics-content {
    padding: 20px;
    height: calc(100% - 60px);
    overflow-y: auto;
    line-height: 1.8;
    text-align: center;
}

.lyrics-line {
    margin: 10px 0;
    transition: all 0.3s ease;
}

.lyrics-line.active {
    color: #667eea;
    font-weight: bold;
    transform: scale(1.1);
}

/* 移动端适配 (≤768px) */
@media (max-width: 768px) {
    :root {
        --player-height: 90px;
        --header-height: 50px;
        --container-padding: 10px;
        --spacing-lg: 12px;
        --spacing-md: 10px;
        --spacing-sm: 8px;
        --font-size-md: 16px;
        --font-size-sm: 14px;
        --font-size-xs: 12px;
    }
    
    * {
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* 移动端搜索框和API切换按钮容器 */
    .search-and-toggle-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 12px;
        padding: 0 var(--container-padding);
    }
    
    /* 移动端logo大小 */
    .content-logo img {
        max-width: 300px !important;
        width: 160px !important;
    }
    
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 头部布局 - 移动端 */
    .header {
        display: block;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        padding: 8px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 0;
        z-index: 90; /* 确保头部导航栏在侧边栏下方 */
    }
    
    .header .container {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0 var(--container-padding);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }
    
    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gray);
        border: none;
        border-radius: 50%;
        padding: 8px;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        cursor: pointer;
        z-index: 100;
        overflow: visible;
        font-size: 18px;
    }
    
    .logo {
        display: flex !important;
        align-items: center;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
        flex: 1;
        text-align: center;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .logo i {
        font-size: 18px;
        margin-right: 6px;
        color: var(--primary-color);
    }
    
    /* 用户操作区在移动端不显示 */
    .user-actions {
        display: none;
    }
    
    /* 主要内容区域 - 移动端 */
    .main {
        position: relative;
        padding-top: var(--header-height); /* 为固定header留出空间 */
        padding-bottom: var(--player-height);
        height: calc(100vh - var(--player-height));
    }
    
    /* 移除重复的搜索框和API切换按钮容器样式 */
    
    .search-bar {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 24px;
        padding: 0;
        gap: 0;
        transition: all 0.3s ease;
        margin: 10px auto;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        max-width: 600px;
        width: calc(100% - 2 * var(--container-padding));
        overflow: hidden;
    }
    
    /* 内容区域 - 移动端 */
    .content {
        padding: 0;
    }
    
    /* 歌单推荐区域 - 移动端 */
    #hot-section {
        padding: 0 var(--container-padding);
    }
    
    #hot-section h2:first-of-type {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    /* 移动端搜索输入框 - 与平台选择融合 */
    .search-bar input {
        flex: 1;
        padding: 8px 16px;
        border: none;
        border-radius: 0 24px 24px 0;
        font-size: 13px;
        outline: none;
        background: transparent;
        color: #333;
        height: 40px;
    }
    
    /* 移动端搜索按钮 - 显示搜索按钮 */
    .search-bar button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 0 24px 24px 0;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        min-width: 44px;
        height: 40px;
        margin: 0;
    }
    
    .search-bar button:hover {
        background: var(--secondary-color);
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    }
    
    /* 移动端显示平台选择 - 与搜索框融合 */
    .platform-select {
        display: block;
        padding: 8px 10px;
        border: none;
        border-radius: 24px 0 0 24px;
        background: transparent;
        color: var(--text-color);
        font-size: 13px;
        outline: none;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        height: 40px;
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    /* 移动端平台选择 - hover状态 */
    .platform-select:hover {
        background: rgba(0, 0, 0, 0.03);
    }
    
    /* 搜索输入框包装器 */
    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    /* 搜索输入框样式调整 */
    .search-bar input {
        padding-right: 45px !important;
    }
    
    /* 在移动端显示用户操作区 */
    .user-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }
    
    /* 在移动端简化用户操作区 */
    .user-actions .btn-primary {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 16px;
        white-space: nowrap;
    }
    
    /* 确保汉堡按钮不会被压缩 */
    .hamburger-btn {
        flex-shrink: 0;
        overflow: visible;
    }
    
    /* 调整logo的flex属性，避免占用过多空间 */
    .logo {
        flex-shrink: 1;
        overflow: hidden;
    }
    
    .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 侧边栏遮罩层 - 移动端显示，确保在顶部导航栏上方，侧边栏下方 */
    @media (max-width: 768px) {
        .sidebar-overlay {
            display: block !important;
            z-index: 1000 !important; /* 确保在顶部导航栏上方，侧边栏下方 */
        }
    }
    
    /* PC端媒体查询 - 确保侧边栏使用相对定位和flex布局 */
    @media (min-width: 769px) {
        .sidebar {
            position: relative !important;
            flex: 0 0 200px !important;
            left: 0 !important;
            top: auto !important;
            bottom: auto !important;
            width: auto !important;
            height: 100% !important;
            box-shadow: none !important;
            border-radius: 16px !important;
        }
    }
    
    /* 侧边栏 - 移动端侧边弹层 */
    .sidebar {
        /* PC端使用默认的flex布局 */
        /* 移动端样式在下面的媒体查询中设置 */
    }
    
    /* 移动端媒体查询 */
    @media (max-width: 768px) {
        /* 移动端显示顶部导航栏 */
        .header {
            display: block !important;
        }
        
        /* 侧边栏样式 - 重新设计移动端侧边导航栏 */
        .sidebar {
            position: fixed;
            left: -100%;
            top: 0;
            bottom: 0;
            width: 280px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
            z-index: 1001; /* 提高z-index，确保在顶部导航栏上方 */
            transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex !important;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
            will-change: transform; /* 提示浏览器优化渲染 */
            backface-visibility: hidden; /* 防止iOS上的渲染问题 */
            border-radius: 0;
        }
        
        .sidebar.active {
            left: 0;
        }
        
        /* 侧边栏头部样式 */
        .sidebar-header {
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-bottom: none;
            color: white;
        }
        
        .sidebar-user-avatar {
            width: 56px;
            height: 56px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        
        .sidebar-user-name {
            color: white;
            font-size: 16px;
            font-weight: 600;
        }
        
        .sidebar-user-status {
            color: rgba(255, 255, 255, 0.9);
            font-size: 13px;
        }
        
        /* 侧边栏关闭按钮 */
        .sidebar-close-btn {
            display: flex;
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }
        
        /* 导航菜单样式 */
        .nav-menu {
            flex: 1;
            padding: 10px 0;
            background: transparent;
        }
        
        .nav-item {
            padding: 14px 20px;
            margin: 0;
            border-radius: 0;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 16px;
            color: #334155;
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
        }
        
        .nav-item:hover {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
        }
        
        .nav-item.active {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            border-left-color: #667eea;
        }
        
        .nav-item i {
            width: 20px;
            font-size: 18px;
        }
        
        /* 侧边栏遮罩层 */
        .sidebar-overlay {
            background: rgba(0, 0, 0, 0.5);
            display: block !important;
            opacity: 0;
            visibility: hidden;
        }
        
        .sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }
    }
    
    .sidebar-header {
        padding: 20px 20px;
        background: transparent;
        border-bottom: none;
        display: flex;
        align-items: center;
        gap: 14px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .sidebar-user-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    
    .sidebar-user-info {
        flex: 1;
    }
    
    .sidebar-user-name {
        color: #1a1a2e;
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 4px;
        letter-spacing: 0.5px;
    }
    
    .sidebar-user-status {
        color: rgba(0, 0, 0, 0.5);
        font-size: 12px;
    }
    
    .nav-menu {
        flex: 1;
        padding: 12px 12px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        margin: 0;
    }
    
    .nav-item {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        text-decoration: none;
        color: rgba(0, 0, 0, 0.75);
        transition: all 0.25s ease;
        border-radius: 10px;
        margin-bottom: 4px;
        min-height: 50px;
    }
    
    .nav-item:hover {
        background: rgba(0, 0, 0, 0.06);
        color: #1a1a2e;
    }
    
    .nav-item.active {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea;
    }
    
    .nav-item i {
        margin-right: 14px;
        width: 22px;
        text-align: center;
        font-size: 18px;
        color: inherit;
    }
    
    .nav-item span {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .sidebar-footer {
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.98); /* 与导航菜单背景一致 */
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .sidebar-version {
        color: rgba(0, 0, 0, 0.35);
        font-size: 12px;
        text-align: center;
        margin: 0;
        letter-spacing: 0.5px;
    }
    
    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.08);
        border: none;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        border-radius: 50%;
        transition: all 0.25s ease;
    }
    
    .sidebar-close-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    
    .nav-menu {
        flex: 1;
        padding: 12px 12px;
        overflow-y: auto;
        background: transparent;
    }
    
    .nav-item {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        text-decoration: none;
        color: rgba(0, 0, 0, 0.75);
        transition: all 0.25s ease;
        border-radius: 10px;
        margin-bottom: 4px;
        min-height: 50px;
    }
    
    .nav-item:hover {
        background: rgba(0, 0, 0, 0.06);
        color: #1a1a2e;
    }
    
    .nav-item.active {
        background: rgba(102, 126, 234, 0.15);
        color: #667eea;
    }
    
    .nav-item i {
        margin-right: 14px;
        width: 22px;
        text-align: center;
        font-size: 18px;
        color: inherit;
    }
    
    .nav-item span {
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .sidebar-footer {
        padding: 16px 20px;
        background: transparent; /* 与导航菜单背景一致 */
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .sidebar-version {
        color: rgba(255, 255, 255, 0.35);
        font-size: 12px;
        text-align: center;
        margin: 0;
        letter-spacing: 0.5px;
    }
    
    /* 主内容区域 - 移动端 */
    .main {
        position: relative;
        width: 100%;
        height: calc(100vh - var(--header-height) - var(--player-height));
        padding: 0 var(--container-padding);
        margin: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .main .container {
        flex-direction: column;
        gap: 12px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    
    .sidebar {
        position: fixed;
    }
    
    /* 内容区域 */
    .content {
        flex: 1;
        padding: var(--spacing-md);
        margin: 0;
        width: 100%;
        background: transparent;
        border-radius: var(--border-radius);
        box-shadow: none;
        height: 100%;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }
    
    .content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }
    
    /* 歌单推荐 - 移动端 */
    .playlist-recommendations {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
        overflow-x: hidden;
        padding-bottom: 0;
    }
    
    .playlist-card {
        padding: var(--spacing-sm);
        border-radius: var(--border-radius);
    }
    
    .playlist-card img {
        height: 100px;
        margin-bottom: 8px;
    }
    
    .playlist-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .playlist-info {
        font-size: 12px;
    }
    
    /* 热歌榜单 - 移动端 */
    .hot-songs-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .song-card {
        padding: var(--spacing-sm);
        border-radius: var(--border-radius);
    }
    
    .song-card img {
        height: 100px;
        margin-bottom: 8px;
    }
    
    .song-card .song-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .song-card .song-artist {
        font-size: 12px;
    }
    
    /* 搜索结果 - 移动端 */
    .search-results {
        flex: 1;
        padding: var(--spacing-sm);
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border-radius: var(--border-radius);
        border: none;
        min-height: 200px;
    }
    
    .song-item {
        padding: var(--spacing-sm);
        min-height: 60px;
    }
    
    .song-item img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .song-item-name {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .song-item-artist {
        font-size: 12px;
    }
    
    /* 播放器底部栏 - 移动端 */
    .player-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-top: 1px solid #eee;
        padding: 8px 10px;
        z-index: 1000;
    }
    
    .player-container {
        flex-direction: row;
        gap: var(--spacing-sm);
        padding: 0;
        max-width: none;
    }
    
    .song-info {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    
    .song-info img {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
    
    .song-details .song-name {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .song-details .song-artist {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .volume-control,
    #volume-btn {
        display: none !important;
    }
    
    .progress-container {
        display: none;
    }
    
    #prev-btn, #next-btn {
        display: none;
    }
    
    #play-pause-btn {
        width: 44px;
        height: 44px;
    }
    
    /* 歌词面板 - 移动端 */
    .lyrics-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        height: 100vh;
        background: #1a1a2e;
        z-index: 100000;
        display: flex;
        flex-direction: column;
        visibility: hidden;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .lyrics-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        filter: blur(30px) brightness(0.4);
        z-index: 0;
        pointer-events: none;
    }
    
    .lyrics-panel.has-image::before {
        background-image: var(--current-song-bg, none);
    }
    
    .lyrics-panel:not(.hidden) {
        visibility: visible;
        transform: translateY(0);
    }
    
    .lyrics-panel-info {
        flex-shrink: 0;
        position: relative;
        z-index: 10;
        padding: 16px 16px;
        padding-top: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .lyrics-collapse-btn {
        position: absolute;
        top: 12px;
        left: 16px;
        width: 36px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0.6;
    }
    
    .lyrics-collapse-btn:hover {
        opacity: 1;
    }
    
    .lyrics-collapse-btn i {
        color: rgba(255, 255, 255, 0.8);
        font-size: 20px;
    }
    
    .lyrics-song-name {
        font-size: 18px;
        color: #ffffff !important;
        margin: 0;
        font-weight: 500;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    .lyrics-artist {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.7) !important;
        margin: 4px 0 0;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .lyrics-close-btn {
        display: none !important;
    }
    
    .lyrics-main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0 16px;
        padding-bottom: 90px;
        min-height: 0;
        position: relative;
        z-index: 5;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        box-sizing: border-box;
        overflow: hidden;
        max-height: calc(100vh - 200px);
    }
    
    .lyrics-album-art {
        flex-shrink: 0;
        margin: 0 auto 8px;
        display: block;
        width: 140px;
        height: 140px;
    }
    
    .lyrics-album-art img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        display: block;
        animation: none !important;
    }
    
    .lyrics-content {
        flex: 0 1 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        overflow: hidden;
        color: #ffffff !important;
        font-size: 15px !important;
        line-height: 2.2;
        text-align: center;
        position: relative;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .lyrics-content-inner {
        height: auto;
        min-height: 100%;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 5vh 0 100px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .lyrics-line {
        font-size: 18px;
        margin: 0;
        padding: 10px 16px;
        color: rgba(255, 255, 255, 0.6) !important;
        transition: all 0.3s ease;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .lyrics-line.active {
        font-size: 22px;
        color: #ffffff !important;
        font-weight: 600;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
        transform: none;
    }
    
    .lyrics-panel .player-footer {
        flex-shrink: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.4) !important;
        border-top: none !important;
        border-radius: 0 !important;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 100;
        backdrop-filter: blur(10px);
        box-sizing: border-box;
        pointer-events: auto;
    }
    
    .lyrics-panel .player-footer .player-container {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
        margin: 0;
        max-width: none;
        width: 100%;
        align-items: center;
        justify-items: center;
    }
    
    .lyrics-panel .player-footer .progress-container {
        display: flex;
        width: 100%;
        max-width: none;
        grid-row: 1;
        grid-column: 1;
        justify-self: center;
    }
    
    .lyrics-panel .player-footer .progress-bar {
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .lyrics-panel .player-footer .progress {
        background: rgba(255, 255, 255, 0.9);
    }
    
    .lyrics-panel .player-footer .buttons-row {
        grid-row: 2;
        grid-column: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 20px;
        width: 100%;
        pointer-events: auto;
    }
    
    .lyrics-panel .player-footer .song-info {
        display: none !important;
    }
    
    .lyrics-panel .player-footer .volume-control {
        display: none !important;
    }
    
    .lyrics-panel .player-footer .control-btn {
        background: transparent !important;
        color: #ffffff !important;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        font-size: 18px;
        cursor: pointer;
        pointer-events: auto !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .lyrics-panel .player-footer .control-btn:active {
        background: rgba(255, 255, 255, 0.2) !important;
    }
    
    .lyrics-panel .player-footer #play-pause-btn {
        width: 56px;
        height: 56px;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 50%;
    }
    
    .lyrics-panel .player-footer #play-pause-btn i {
        font-size: 20px;
    }
    
    .lyrics-panel .player-footer #prev-btn,
    .lyrics-panel .player-footer #next-btn {
        width: 44px;
        height: 44px;
    }
    
    .lyrics-panel .player-footer #current-time,
    .lyrics-panel .player-footer #duration {
        color: rgba(255, 255, 255, 0.8);
        font-size: 12px;
        min-width: 32px;
    }
    
    .lyrics-panel .player-footer #playmode-btn,
    .lyrics-panel .player-footer #queue-btn {
        display: flex !important;
    }
    
    .lyrics-panel .player-footer #current-time,
    .lyrics-panel .player-footer #duration {
        color: rgba(255, 255, 255, 0.8);
        font-size: 10px;
        min-width: 28px;
    }
    
    .lyrics-panel .player-footer .buttons-row {
        grid-row: 2;
        grid-column: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 15px;
        width: 100%;
    }
    
    .lyrics-panel .player-footer .song-info {
        display: none;
    }
    
    .lyrics-panel .player-footer .volume-control {
        display: none;
    }
    
    .lyrics-panel .player-footer #prev-btn,
    .lyrics-panel .player-footer #next-btn {
        display: flex !important;
        width: 36px;
        height: 36px;
        background: transparent;
        color: white;
    }
    
    .lyrics-panel .player-footer #play-pause-btn {
        width: 48px;
        height: 48px;
        background: transparent;
        color: white;
    }
    
    .lyrics-panel .player-footer .control-btn {
        background: transparent;
        color: white;
        padding: 8px;
        min-width: 36px;
        min-height: 36px;
        font-size: 16px;
    }
    
    .lyrics-panel .player-footer #playmode-btn,
    .lyrics-panel .player-footer #queue-btn {
        display: flex !important;
        background: transparent;
        color: white;
    }
    
    /* 播放队列 - 移动端 */
    .queue-panel {
        position: fixed;
        top: auto;
        left: 0;
        width: 100%;
        height: 50vh;
        bottom: 0;
        border-radius: 0;
        transition: transform 0.3s ease, visibility 0.3s, opacity 0.3s;
        z-index: 100001;
        visibility: hidden;
        opacity: 0;
        transform: translateY(100%);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .queue-panel.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    .queue-header {
        flex-shrink: 0;
        padding: var(--spacing-md);
    }
    
    .queue-header h3 {
        font-size: 16px;
    }
    
    .close-queue-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .queue-content {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: var(--spacing-xs);
    }
    
    .queue-content::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }
    
    .queue-item {
        padding: var(--spacing-sm);
        min-height: 50px;
    }
    
    .queue-item img {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
    
    .queue-item-name {
        font-size: 13px;
    }
    
    .queue-item-artist {
        font-size: 11px;
    }
    
    /* 模态框 - 移动端 */
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: var(--spacing-md);
    }
    
    /* 按钮通用样式 - 移动端 */
    .btn-primary, .btn-secondary {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 20px;
        min-height: 40px;
    }
    
    /* 表单元素 - 移动端 */
    input, select, textarea {
        font-size: 16px;
        padding: 10px 14px;
        border-radius: 8px;
        min-height: 44px;
    }
}

/* 针对不同屏幕高度的适配 */
@media (max-height: 568px) {
    :root {
        --player-height: 80px;
        --header-height: 40px;
    }
    
    .main {
        height: calc(100vh - var(--header-height) - var(--player-height));
    }
}

@media (min-height: 736px) {
    .main {
        height: calc(100vh - var(--header-height) - var(--player-height));
    }
}

/* 超大屏手机适配 */
@media (min-width: 381px) and (max-width: 480px) {
    .playlist-recommendations,
    .hot-songs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .playlist-card img,
    .song-card img {
        height: 90px;
    }
}

/* 小屏幕手机适配 (≤480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 8px;
        --spacing-lg: 10px;
        --spacing-md: 8px;
        --spacing-sm: 6px;
        --player-height: 85px;
        --header-height: 45px;
        --font-size-md: 15px;
        --font-size-sm: 13px;
        --font-size-xs: 11px;
    }
    
    .header {
        padding: 6px 0;
    }
    
    .hamburger-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
        font-size: 16px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo i {
        font-size: 16px;
    }
    
    .main {
        position: relative;
        width: 100%;
        height: calc(100vh - var(--header-height) - var(--player-height));
        padding: 6px 0;
        padding-bottom: 0;
        margin: 0;
        overflow: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .main::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }
    
    .main .container {
        padding: 0 var(--container-padding);
    }
    
    .playlist-recommendations,
    .hot-songs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .playlist-card img,
    .song-card img {
        height: 75px;
    }
    
    /* 移动端搜索框 */
    .search-bar {
        margin: 8px auto;
        width: calc(100% - 2 * var(--container-padding));
    }
    
    .search-bar input {
        padding: 6px 12px;
        font-size: 12px;
        height: 36px;
    }
    
    .search-bar button {
        height: 36px;
        min-width: 36px;
    }
    
    /* 移动端平台选择 */
    .platform-select {
        height: 36px;
        max-width: 70px;
        font-size: 12px;
    }
    
    /* 移动端API切换按钮 */
    .api-toggle-btn.mobile-only {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* 歌词样式 */
    .lyrics-song-name {
        font-size: 14px;
    }
    
    .lyrics-content {
        font-size: 13px;
        line-height: 1.6;
    }
    
    /* 移动端侧边栏 */
    .sidebar {
        width: 90%;
        max-width: 280px;
    }
    
    .sidebar-header {
        padding: 12px;
    }
    
    .nav-item {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .nav-item i {
        margin-right: 12px;
        font-size: 16px;
        width: 20px;
    }
    
    .player-footer {
        padding: 6px 8px;
    }
    
    .song-info img {
        width: 32px;
        height: 32px;
    }
    
    .song-details .song-name {
        max-width: 100px;
        font-size: 11px;
    }
    
    .song-details .song-artist {
        max-width: 100px;
        font-size: 9px;
    }
    
    #play-pause-btn {
        width: 40px;
        height: 40px;
    }
    
    #prev-btn, #next-btn {
        width: 32px;
        height: 32px;
    }
    
    .control-btn {
        min-width: 32px;
        min-height: 32px;
        font-size: 12px;
    }
    
    .lyrics-song-name {
        font-size: 16px;
    }
    
    .lyrics-line {
        font-size: 12px;
    }
    
    .lyrics-line.active {
        font-size: 14px;
    }
    
    .queue-panel {
        height: 50vh;
        bottom: 0;
        transform: none;
        z-index: 100001;
        visibility: hidden;
        opacity: 0;
        transition: transform 0.3s ease, visibility 0.3s, opacity 0.3s;
    }
    
    .queue-panel.active {
        visibility: visible;
        opacity: 1;
    }
}

/* 加载动画 */
.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;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}

/* 成功提示 */
.success-message {
    background: #d1edff;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: center;
}


    

