/* genres.css - 分类页专用样式 */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.genre-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.genre-image {
    height: 140px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.genre-info {
    padding: 1.25rem;
    text-align: center;
}

.genre-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.genre-count {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.tracks-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.track-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.track-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.track-image {
    width: 120px;
    flex-shrink: 0;
    background: #f8fafc;
}

.track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.track-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.track-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.track-title:hover {
    color: #3b82f6;
}

.track-meta {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.track-meta span {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
}

.track-album {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 500;
}

.track-count {
    margin-bottom: 1rem;
    color: #64748b;
}

/* Pagination styles - 修复居中问题 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination-link:hover {
    background-color: #f8fafc;
    border-color: #3b82f6;
}

.pagination-link.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design for Genres */
@media (max-width: 768px) {
    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .tracks-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .track-image {
        width: 100px;
    }
    
    .track-content {
        padding: 1rem;
    }
    
    .pagination-container {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .genres-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .genre-image {
        height: 120px;
    }
    
    .track-card {
        flex-direction: column;
    }
    
    .track-image {
        width: 100%;
        height: 120px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-link {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
}

/* Focus styles for accessibility */
.genre-card:focus,
.track-title:focus,
.pagination-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state for better UX */
.genres-grid.loading,
.tracks-layout.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for smooth transitions */
.genre-card,
.track-card,
.pagination-link {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #475569;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}