.local-library-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 20px 70px;
}

.local-library-banner {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.local-library-banner img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.local-library-toolbar {
    background: #ffffff;
    border: 1px solid #e3e6ef;
    border-radius: 18px;
    padding: 26px 28px 30px;
    margin-bottom: 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.local-library-toolbar-text {
    text-align: center;
    margin-bottom: 22px;
}

.local-library-kicker {
    display: inline-block;
    background: #eef1ff;
    color: #2f25ff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.local-library-toolbar-text h2 {
    color: #2f25ff !important;
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
}

.local-library-toolbar-text p {
    color: #5f6675;
    font-size: 15px;
    margin: 0;
}

.local-library-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.local-library-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    opacity: .75;
    z-index: 2;
    pointer-events: none;
}

.local-library-search {
    width: 100%;
    height: 54px;
    border: 1px solid #d7dbe7;
    border-radius: 16px;
    padding: 0 20px 0 52px;
    font-size: 15px;
    outline: none;
    background: #f8f9ff;
    transition: 0.2s ease;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.local-library-search:focus {
    border-color: #2f25ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(47, 37, 255, .10);
}

.local-library-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 0 26px;
}

.library-filter {
    border: 1px solid #d7dbe7;
    background: #ffffff;
    color: #333333;
    padding: 9px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.library-filter:hover,
.library-filter.active {
    background: #2f25ff;
    color: #ffffff;
    border-color: #2f25ff;
}

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

.local-library-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e3e6ef;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: 0.22s ease;
    display: flex;
    flex-direction: column;
    min-height: 455px;
}

.local-library-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.local-library-cover {
    height: 235px;
    background: #f3f5fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 78px;
}

.local-library-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.local-library-info {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.local-library-info h3 {
    color: #202124 !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    min-height: 58px;
    margin: 0 0 8px;
}

.local-library-info p {
    color: #697080;
    font-size: 13px;
    margin: 0 0 8px;
}

.local-library-info span,
.local-library-category-badge {
    display: inline-block;
    align-self: center;
    background: #eef1ff;
    color: #2f25ff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.local-library-rating {
    margin: 8px 0 14px;
    text-align: center;
}

.rating-average {
    color: #f5b301;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.rating-average small {
    color: #697080;
    font-size: 12px;
    margin-left: 4px;
}

.rating-user {
    font-size: 12px;
    color: #5f6675;
}

.local-library-info .rating-user span {
    display: block;
    background: transparent;
    color: #5f6675;
    padding: 0;
    border-radius: 0;
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 700;
}

.rating-user a {
    color: #c6cad5 !important;
    font-size: 20px;
    text-decoration: none !important;
    transition: 0.2s ease;
    line-height: 1;
}

.rating-user a:hover,
.rating-user a.selected {
    color: #f5b301 !important;
    transform: scale(1.1);
}

.local-library-button {
    display: block;
    background: #2f25ff;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.2s ease;
    margin-top: auto;
}

.local-library-button:hover {
    background: #2118d8;
    color: #ffffff !important;
}

.local-library-button.disabled {
    background: #aaa;
    cursor: not-allowed;
}

.local-library-bottom-actions {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid #e3e6ef;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.local-library-bottom-button {
    display: inline-block;
    background: #2f25ff;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.local-library-bottom-button:hover {
    background: #2118d8;
    color: #ffffff !important;
}

.local-library-bottom-button.secondary {
    background: #eef1ff;
    color: #2f25ff !important;
}

.local-library-bottom-button.secondary:hover {
    background: #dfe4ff;
    color: #2f25ff !important;
}

@media (max-width: 992px) {
    .local-library-page {
        padding: 24px 16px 60px;
    }

    .local-library-toolbar-text h2 {
        font-size: 28px;
    }

    .local-library-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }
}

@media (max-width: 576px) {
    .local-library-banner img {
        max-height: 180px;
    }

    .local-library-toolbar {
        padding: 22px 18px 26px;
    }

    .local-library-toolbar-text h2 {
        font-size: 24px;
    }

    .local-library-search {
        height: 50px;
        font-size: 14px;
    }

    .local-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .local-library-cover {
        height: 190px;
    }

    .local-library-info h3 {
        font-size: 14px;
    }
}
