/* search.html 特有样式 */

/* 搜索结果统计样式 */
.search-stats {
    background-color: transparent;
    border-radius: 1rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: #999;
    width: 100%;
    text-align: center;
}

/* 确保统计文本水平居中 */
#stats-text {
    display: block;
    text-align: center;
    width: 100%;
}

/* 搜索结果列表样式 */
.search-results {
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #E4E4E4;
    transform: translateX(5px);
}

.result-info {
    flex: 1;
}

.result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333333;
}

.result-artist {
    font-size: 0.9rem;
    color: #666666;
}

.result-album {
    font-size: 0.85rem;
    color: #999999;
    margin-top: 0.25rem;
}

.play-icon {
    width: 36px;
    height: 36px;
    background-color: #FF8C42;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.play-icon:hover {
    background-color: #ff7a2e;
    transform: scale(1.1);
}

.play-icon svg {
    color: white;
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    gap: 1rem;
}

/* 页面切换控件行样式 */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
    flex-wrap: nowrap;
    overflow: visible;
}

/* 页码信息行样式 */
.page-info {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* 页码按钮容器样式 */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-button {
    padding: 0.5rem 1rem;
    border: 1px solid #FF8C42;
    background-color: white;
    color: #FF8C42;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-width: 40px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: 1;
}

/* 确保上一页和下一页按钮与页码按钮高度一致 */
#prev-page, #next-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

#prev-page svg, #next-page svg {
    display: block;
}

.page-button:hover:not(:disabled) {
    background-color: #FF8C42;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.2);
}

.page-button:active:not(:disabled) {
    transform: translateY(0);
}

.page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-button.active {
    background-color: #FF8C42;
    color: white;
    font-weight: 600;
}

.page-info {
    margin: 0 1rem;
    color: #666666;
    font-size: 0.95rem;
}

/* 响应式媒体查询 - 当页面变窄时 */
@media (max-width: 480px) {
    /* 首先隐藏上一页和下一页按钮的文字，只显示图标 */
    #prev-page span,
    #next-page span {
        display: none;
    }
    
    /* 减小图标大小 */
    #prev-page svg,
    #next-page svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    /* 隐藏除当前页码外的其他页面切换按钮 */
    .page-numbers button:not(.active) {
        display: none;
    }
    
    /* 保持省略号可见 */
    .page-ellipsis {
        display: inline-block;
    }
}