/**
 * 歌单页面样式
 */

.playlists-page {
    padding: 20px;
    min-height: calc(100vh - 200px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.page-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 120px;
}

.btn-go-page {
    padding: 8px 16px;
    background: #c62f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-go-page:hover {
    background: #a02525;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    /* 确保无论缩放大小都能正确排列 */
    grid-auto-rows: auto;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* 确保所有歌单卡片大小一致 */
.playlist-card {
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 防止flex子元素溢出 */
    box-sizing: border-box;
}

.playlist-card:hover {
    transform: translateY(-5px);
}

.playlist-cover {
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
    max-height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    /* 确保无论缩放大小都保持正方形 */
    padding-bottom: 0;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 0;
    min-height: 0;
}


.playlist-cover .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(198, 47, 47, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    font-size: 20px;
}

.playlist-card:hover .play-icon {
    opacity: 1;
}

.playlist-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
    min-height: 20px;
    flex-shrink: 0;
}

.playlist-playcount {
    font-size: 12px;
    color: #999;
    min-height: 16px;
    flex-shrink: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #c62f2f;
    color: #c62f2f;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .page-info {
    color: #666;
    font-size: 14px;
    margin: 0 10px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* 响应式设计已完全删除，仅保留桌面端样式 */

