/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局CSS变量定义 */
:root {
    --mobile-container-padding: 15px;
    --mobile-container-border-radius: 20px;
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.1);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* VIP黑金循环扫光效果 */
.tag.vip-gold-shine {
    background: linear-gradient(120deg, #1a1a1a, #333, #1a1a1a) !important;
    background-size: 200% auto !important;
    position: relative;
    overflow: hidden;
    animation: shine 3s infinite linear;
    border: 1px solid #ffd700 !important;
    color: #ffd700 !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    padding: 4px 10px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    min-width: 40px !important;
}

.tag.vip-gold-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.3), transparent);
    transform: skewX(-20deg);
    animation: sweep 3s infinite linear;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes sweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* 头部样式 */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.header-icon {
    display: none;
    font-size: 2rem;
    color: var(--primary-color);
}

.logo {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    white-space: nowrap;
}

/* 搜索功能样式 */
.search-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
}

.search-container.full-width {
    max-width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 560px;
}

#searchInput {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

#searchBtn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

/* 搜索结果样式 - 优化确保一致性 */
.search-results {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    margin-top: 5px !important;
    display: none !important;
    width: auto !important;
    min-width: 200px !important;
    list-style: none !important;
    padding: 0 !important;
}

.search-results.show {
    display: block !important;
}

.search-results .search-result-item {
    padding: 12px 20px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #eee !important;
    transition: background-color 0.2s ease !important;
    line-height: 20px !important;
    color: var(--text-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: white !important;
    list-style-type: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.search-result-item:hover {
    background-color: #f8f9fa !important;
}

.search-result-item:last-child {
    border-bottom: none !important;
}

/* 搜索状态显示 */
.search-status {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    display: none;
    z-index: 999;
}

.search-result-more {
    color: var(--primary-color);
    font-style: italic;
    cursor: default !important;
}

/* 更新按钮样式 */
.update-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
}

.update-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

/* 主内容区样式 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    min-height: 600px;
    height: auto;
    margin-bottom: 20px;
}

.left-section {
    height: 100%;
}

/* 播放器样式 */
.player-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 600px;
    max-height: calc(100vh - 300px);
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

.album-cover {
    width: 100%;
    max-width: 600px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.album-cover:hover {
    transform: scale(1.05);
}

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

/* 播放器控制区样式 */
.player-controls {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* 歌曲信息样式 */
.song-info {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 5px;
}

.full-file-name {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.file-tags {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 10px;
    white-space: nowrap;
}

.tag {
    background: rgba(102, 126, 234, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    min-width: 40px;
}

#songTitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

#artistName {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* 进度条样式 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 0.1s linear;
}

#currentTime, #duration {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 45px;
    text-align: center;
}

/* 控制按钮样式 */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    background: #f8f9fa;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.control-btn.active {
    background: var(--primary-color);
    color: white;
}

.control-btn.one {
    background: var(--secondary-color);
    color: white;
}

.play-btn {
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    font-size: 20px;
}

.play-btn:hover {
    background: var(--secondary-color);
}

/* 音量控制样式 */
.volume-slider {
    width: 100px;
    margin: 0 10px;
}

#volumeSlider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 3px;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* 歌词区域样式 */
.lyrics-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    height: 100%;
    min-height: 200px;
    margin-bottom: 10px;
}

.lyrics-display {
    width: 100%;
    height: 100% !important;
    text-align: center;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scrollbar-width: none;
    position: relative;
    z-index: 10;
    background: transparent;
    margin: 0 auto;
    box-sizing: border-box;
}

.lyrics-display::-webkit-scrollbar {
    display: none;
}

.lyrics-display p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 3px 0;
    word-wrap: break-word;
}

/* 渐变歌词效果固定宽度的白色光束 - 修改版 */
.lyrics-display p.beam-lyric {
    font-size: 1.7rem;
    font-weight: bold;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorFlow 6s linear infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* 固定宽度的白色光束 - 修改版 */
.lyrics-display p.beam-lyric::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 30%; /* 更宽的光束 */
    /* 单边渐变，方向更明确 */
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        transparent 100%);
    animation: beamSweep 1.8s linear infinite; /* 线性动画 */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    z-index: 10;
}

/* 文字颜色流动动画 - 反转方向 */
@keyframes colorFlow {
    0% { background-position: 400% 50%; } /* 从右侧开始 */
    100% { background-position: 0% 50%; } /* 到左侧结束 */
}

/* 固定光束扫光 - 反转方向 */
@keyframes beamSweep {
    0% { left: 100%; }  /* 光束从右侧外部进入 */
    100% { left: -30%; } /* 光束从左侧外部离开 */
}
/* 播放列表样式 */
.playlist-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    height: 600px;
    max-height: calc(100vh - 300px);
    margin: 0;
}

/* 播放列表选择器样式 */
.playlist-selector {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-selector label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.playlist-selector select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-selector select:hover {
    border-color: var(--primary-color);
}

.playlist-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.playlist-container h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.playlist {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.playlist li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist li:hover {
    background-color: #f8f9fa;
    padding-left: 25px;
}

.playlist li.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.playlist li:last-child {
    border-bottom: none;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: white;
    font-size: 14px;
    position: relative;
    z-index: 20;
    background: transparent;
    width: 100%;
    clear: both;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
}

.modal-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

#updatePassword {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

#updatePassword:focus {
    border-color: var(--primary-color);
}

.btn-primary, #confirmUpdateBtn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover, #confirmUpdateBtn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.update-status {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.update-status.success {
    color: #28a745;
    background-color: #c6f6d5;
    border: 1px solid #9ae6b4;
    padding: 10px;
    border-radius: 8px;
}

.update-status.error {
    color: #dc3545;
    background-color: #fed7d7;
    border: 1px solid #feb2b2;
    padding: 10px;
    border-radius: 8px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 音频找不到时的灰色提示样式 */
.song-info.no-audio {
    opacity: 0.6;
    color: #999;
}

.song-info.no-audio .full-file-name {
    color: #999;
}

/* 响应式设计 */

/* 平板设备 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .player-container {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .lyrics-container {
        grid-column: 1 / -1;
        height: 66.67% !important;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .player-controls {
        flex: 0 0 33.33%;
        justify-content: center;
    }
    
    .playlist-container {
        grid-column: 1 / -1;
    }
    
    .lyrics-display {
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        flex: 1;
    }
    
    /* PC端文件名显示样式 */
    .full-file-name {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    /* PC端进度条容器样式 */
    .progress-container {
        margin-top: 2px;
        margin-bottom: 2px;
    }
}

/* 移动端 (max-width: 767px) */
@media (max-width: 767px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    /* 移动端音符图标与H1平行对齐 */
    .header-left {
        align-items: center;
    }
    
    .header-icon {
        display: inline-block;
        font-size: 1.5rem;
        vertical-align: middle;
    }
    
    /* 确保移动端h1标题与图标对齐 */
    .header h1 {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
    }
    
    /* 减小移动端header下边距 */
    .header {
        margin-bottom: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        min-height: auto;
        gap: 15px;
        margin-bottom: 30px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .player-container {
        grid-column: 1;
        grid-row: 1;
        padding: env(safe-area-inset-top, 5px) var(--mobile-container-padding) env(safe-area-inset-bottom, 20px);
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: calc(70vh - 50px);
        min-height: 500px;
        width: calc(100vw - (var(--mobile-container-padding) * 2));
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        border: 0;
        box-shadow: var(--shadow-light);
        border-radius: var(--mobile-container-border-radius);
    }
    
    /* 设置移动端player-controls在父元素底部 */
    .player-controls {
        height: auto;
        max-height: 400px;
        margin-top: auto;
        margin-bottom: 8px;
        box-sizing: border-box;
    }
    
    /* 移动端音量条调整为合适宽度，确保与随机播放按钮在同一行 */
    .controls {
        flex-wrap: nowrap !important;
    }
    
    .volume-slider {
        width: 80px !important;
        margin: 0 5px !important;
    }
    
    /* 移动端歌词容器特殊样式 */
    .lyrics-container {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        background: transparent;
        border-radius: 20px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        height: 320px;
        position: relative;
        margin-bottom: 0 !important;
        margin-top: 5px;
    }
    
    /* 确保长歌词在移动端正确换行 */
    .lyrics-display p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        white-space: normal;
        max-width: 100%;
    }
    
    .playlist-container {
        grid-column: 1;
        grid-row: 3;
        padding: var(--mobile-container-padding) var(--mobile-container-padding) env(safe-area-inset-bottom, 30px);
        margin: 0 auto 30px;
        height: auto;
        max-height: calc(40vh - 30px);
        width: calc(100vw - (var(--mobile-container-padding) * 2));
        max-width: 100%;
        box-sizing: border-box;
        border: 0;
        box-shadow: var(--shadow-light);
        border-radius: var(--mobile-container-border-radius);
    }
    
    /* 确保所有子元素也不会超出容器 */
    .player-container > *, .playlist-container > * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* 移动端进度条样式 - 修复进度条不显示问题 */
    .progress-container {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px !important;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    .progress-bar {
        flex: 1;
        height: 8px;
        background: #ddd;
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        overflow: visible !important;
    }
    
    #currentTime, #duration {
        font-size: 12px;
        color: var(--text-secondary);
        min-width: 35px;
        text-align: center;
        white-space: nowrap;
    }
    
    .footer {
        margin-top: 30px;
        padding: 20px 0;
        position: relative;
        z-index: 20;
        clear: both;
        min-height: 60px;
    }
}

/* 大屏PC (min-width: 992px) */
@media (min-width: 992px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 30px;
    }
    
    .logo {
        margin-bottom: 0;
        font-size: 2rem;
    }
    
    .header-icon {
        display: block;
        font-size: 1.8rem;
    }
    
    .search-container {
        flex-direction: row;
        max-width: none;
        margin-left: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .search-box {
        flex: 0 0 500px;
        margin-right: 15px;
    }
    
    .update-btn {
        width: auto;
        max-width: 200px;
    }
    
    .main-content {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr;
        min-height: 800px;
        display: grid;
    }
    
    .left-section {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 30px;
        height: 100%;
    }
    
    .player-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .lyrics-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        height: 70%;
    }
    
    /* 确保播放器控制区域占用固定比例高度 */
    .player-controls {
        display: flex;
        flex-direction: column;
        flex: 0 0 30%;
        margin-top: auto;
        justify-content: center;
    }
    
    .playlist-container {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
    }
    
    /* PC端歌词显示区域跟随父容器高度 */
    .lyrics-display {
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
    }
    
    /* PC端文件名显示样式 */
    .full-file-name {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    /* PC端进度条容器样式 */
    .progress-container {
        margin-top: 2px;
        margin-bottom: 2px;
    }
}

/* 超大屏PC (min-width: 1080px) */
@media (min-width: 1080px) {
    .lyrics-container {
        height: 80%;
    }
    
    .player-controls {
        flex: 0 0 20%;
    }
}

/* 特定设备优化 - iPad Air 竖版 */
@media (max-width: 820px) and (orientation: portrait) {
    /* 修复播放区宽度问题 */
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }
    
    .left-section {
        grid-column: 1;
        grid-row: 1;
    }
    
    .playlist-container {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 15px;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
        padding: 0 10px;
    }
    
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .update-btn {
        width: 100%;
        max-width: none;
    }
    
    #songTitle {
        font-size: 1.5rem;
    }
    
    .controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .album-cover {
        width: 150px;
        height: 150px;
    }
}

/* 特定设备优化 - iPad mini 竖版 */
@media (width: 768px) and (orientation: portrait) {
    /* 恢复header边距为与其他设备一致，并添加左右padding */
    .header {
        padding: 20px 15px;
        margin-bottom: 30px;
        max-height: none;
        min-height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    /* 减小logo字体大小并调整布局 */
    .logo {
        font-size: 1.2rem;
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    /* 调整搜索容器布局为水平排列 */
    .search-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 0;
        margin: 0;
        max-width: none;
        width: auto;
    }
    
    .search-box {
        flex: 0 0 220px;
        max-height: none;
    }
    
    #searchInput {
        padding: 8px 40px 8px 15px;
        font-size: 12px;
        height: 36px;
    }
    
    #searchBtn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .update-btn {
        width: auto;
        max-width: 100px;
        font-size: 10px;
        padding: 6px 8px;
        margin-bottom: 0;
    }
    
    /* 确保header-left和搜索容器适应水平布局 */
    .header-left {
        flex: 0 0 auto;
        margin-right: 10px;
    }
}