.library-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.library-page h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Filters */

.library-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.library-filters select {
    min-width: 180px;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
}

.library-filters button {
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: #1e40af;
    color: #fff;
    font-weight: 600;
}

/* Results Header */

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.results-header h2 {
    margin: 0;
}

.results-header span {
    color: #666;
}

/* Grid */

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Card */

.library-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: all .2s ease;
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.library-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.library-card h3 {
    padding: 18px;
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

/* Tags */

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 18px;
}

.card-tags span {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile */

@media (max-width: 768px) {

    .library-page h1 {
        font-size: 32px;
    }

    .library-filters {
        flex-direction: column;
    }

    .library-filters select,
    .library-filters button {
        width: 100%;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

}
.library-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}
/* Buttons */

.filter-btn,
.clear-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.filter-btn {
    border: none;
    background: #1e40af;
    color: #fff;
}

.filter-btn:hover {
    opacity: .9;
}

.clear-btn {
    background: #f3f4f6;
    color: #333;
    border: 1px solid #ddd;
}

.clear-btn:hover {
    background: #e5e7eb;
}