.search-container {
    display: flex;
    margin: 30px 0;
    position: relative;
}

#search-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #E4E7EC;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.1);
}

#search-btn {
    padding: 14px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 12px;
    transition: var(--transition);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}

#search-btn:hover {
    background-color: #0E4CD3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}

.search-results {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 12px;
    background-color: var(--white);
    border: 1px solid #F2F4F7;
    transition: var(--transition);
}

.search-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: transparent;
}

.play-container {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.search-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.search-item:hover img {
    transform: scale(1.08);
}

.play-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(22, 93, 255, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.play-button:hover {
    transform: scale(1.15);
    background-color: var(--secondary);
}

.info {
    flex: 1;
}

.audio-player {
    margin-top: 8px;
    width: 100%;
}
.search-item img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 4px;
}

.search-item .info {
    flex: 1;
}

.search-item h3 {
    margin: 0 0 5px 0;
}

.search-item p {
    margin: 0;
    color: #666;
}

/* 播放信息面板样式 */
.now-playing-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 380px;
    height: 100vh;
    background: linear-gradient(180deg, #121a29 0%, #0a101f 100%); /* 调整深色背景对比度 */
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff; /* 确保基础文本为白色 */
    z-index: 100;
    padding: 30px;
    overflow-y: auto;
}

/* 增强文本可读性 */
.now-playing-panel h2, .now-playing-panel h3 {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.now-playing-panel p {
    color: rgba(255, 255, 255, 0.9); /* 提高次要文本不透明度 */
}

/* 歌词文本优化 */
.lyric-line {
    padding: 8px 0;
    text-align: center;
    transition: var(--transition);
    opacity: 0.85; /* 提高默认不透明度 */
    transform: scale(0.96);
    color: rgba(255, 255, 255, 0.9);
}

.lyric-line.active {
    color: #40E0FF; /* 使用更明亮的青色作为激活歌词 */
    font-weight: 500;
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(64, 224, 255, 0.5);
}

.now-playing-panel.active {
    transform: translateX(0);
}

/* 歌词区域动画 */
#lyric-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    scroll-behavior: smooth;
}

#lyric-scroll::-webkit-scrollbar {
    width: 4px;
}

#lyric-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.lyric-line {
    padding: 8px 0;
    text-align: center;
    transition: var(--transition);
    opacity: 0.7;
    transform: scale(0.96);
}

.lyric-line.active {
    color: var(--accent);
    font-weight: 500;
    opacity: 1;
    transform: scale(1);
}

.cover-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    margin-bottom: 20px;
}

.cover-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lyric-container h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.lyric-container p {
    color: #666;
    margin-bottom: 20px;
}

/* 修改歌词容器样式 - 背景透明 */
.now-playing-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 380px;
    height: 100vh;
    background: transparent; /* 改为透明背景 */
    backdrop-filter: blur(10px); /* 添加模糊效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari兼容 */
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff;
    z-index: 100;
    padding: 30px;
    overflow-y: auto;
}

/* 修改歌词滚动区域样式 */
.lyric-scroll {
    height: calc(100vh - 320px);
    overflow: hidden;
    position: relative;
    background: transparent; /* 背景透明 */
}

/* 修改歌词内容区域样式 */
.lyric-content {
    position: absolute;
    width: 100%;
    transition: transform 0.3s ease;
    text-align: center;
    background: transparent; /* 背景透明 */
}

.lyric-line {
    padding: 8px 0;
    transition: color 0.3s ease, font-weight 0.3s ease;
    color: #333;
}

.lyric-container {
    position: relative;
}

.translation-controls {
    text-align: center;
    margin-bottom: 15px;
}

.translation-controls .btn {
    background-color: #d43c33;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.original-lyric {
    padding: 4px 0;
    color: #333;
}

.translated-lyric {
    padding: 4px 0;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.lyric-line.active .original-lyric {
    color: #c20c0c;
    font-weight: bold;
}

/* 调整主内容区域宽度，为右侧面板留出空间 */
.main-content {
    transition: margin-right 0.3s ease;
}

.main-content.with-panel {
    margin-right: 350px;
}

/* 评论面板样式 - 显示在左侧 */
.comment-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 380px;
    height: 100vh;
    background: transparent; /* 透明背景 */
    backdrop-filter: blur(10px); /* 添加模糊效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari兼容 */
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #333333; /* 将默认文本颜色改为深灰色 */
    z-index: 100;
    padding: 30px;
    overflow-y: auto;
}

.comment-nickname {
    font-weight: 500;
    color: #000000; /* 昵称使用黑色 */
}

.comment-time {
    margin-left: auto;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5); /* 时间戳使用深灰色 */
}

.comment-content {
    line-height: 1.6;
    color: #333333 !important; /* 强制设置评论内容为深灰色 */
}

.comment-panel.active {
    transform: translateX(0);
}

.comment-panel h2 {
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-list {
    margin-top: 20px;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-user {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-nickname {
    font-weight: 500;
}

.comment-time {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.comment-content {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.comment-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.comment-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

/* 调整主内容区域边距，适应左右两个面板 */
.main-content.with-panels {
    margin-left: 380px;
    margin-right: 380px;
}

/* 添加评论分页控件样式 */
.comment-pagination {
    padding: 20px 0;
    text-align: center;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.7);
}

/* 添加在文件末尾 */
/* 手机模式响应式样式 */
/* 修改媒体查询中的样式 */
@media (max-width: 768px) {
    /* 搜索容器调整 */
    .search-container {
        flex-direction: column;
        margin: 15px 0;
    }

    #search-input {
        width: 100%;
        margin-bottom: 10px;
    }

    #search-btn {
        width: 100%;
        margin-left: 0;
    }

    /* 歌曲列表调整 */
    .search-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .play-container {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
    }

    .search-item img {
        width: 100%;
        height: auto;
    }

    .play-button {
        width: 40px;
        height: 40px;
    }

    /* 播放面板调整 */
    .now-playing-panel {
        width: 100%;
        height: 100vh;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .now-playing-panel.active {
        transform: translateY(0);
    }

    /* 评论面板调整 */
    .comment-panel {
        width: 100%;
        height: 100vh;
        transform: translateY(100%);
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .comment-panel.active {
        transform: translateY(0);
    }

    /* 歌词区域调整 */
    .cover-container {
        width: 60%;
        margin: 20px auto;
        padding-top: 60%;
    }

    .lyric-scroll {
        height: calc(100vh - 400px);
    }

    /* 主内容区域调整 */
    .main-content.with-panel,
    .main-content.with-panels {
        margin: 0;
    }

    /* 移动端特有样式 */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background-color: var(--primary);
        color: white;
    }

    .mobile-toolbar {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 101;
    }

    .mobile-toolbar button {
        background: none;
        border: none;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #333;
    }
}

@media (max-width: 768px) {
    /* 确保面板居中并添加阴影效果增强层次感 */
    .now-playing-panel {
        transform: translate(-50%, 100%);
        left: 50%;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
    }
    
    .now-playing-panel.active {
        transform: translate(-50%, 0);
    }
    
    .comment-panel {
        transform: translate(-50%, 100%);
        left: 50%;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
    }
    
    .comment-panel.active {
        transform: translate(-50%, 0);
    }
}