.book-list-page {
    --book-list-border: #e7ebf0;
    --book-list-muted: #6c757d;
    --book-list-text: #273444;
    --book-list-surface: #ffffff;
    color: var(--book-list-text);
    font-size: 1rem;
}

.book-list-page h1,
.book-list-page h2,
.book-list-page p,
.book-list-page label,
.book-list-page legend {
    color: inherit;
}

.book-list-page p {
    margin-top: 0;
    color: var(--book-list-text);
    font-size: 1rem;
    line-height: 1.7;
    text-indent: 0;
}

.book-list-page a:focus-visible,
.book-list-page button:focus-visible,
.book-list-page input:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.25);
    outline-offset: 2px;
}

.book-list__panel,
.book-list__controls,
.book-list-card {
    background: var(--book-list-surface);
    border: 1px solid var(--book-list-border);
    box-shadow: 0 0.35rem 1.5rem rgba(33, 37, 41, 0.05);
}

.book-list__panel,
.book-list__controls {
    border-radius: 1rem;
}

.book-list__title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.book-list__genre-cover,
.book-list__author-cover {
    display: block;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 2 / 3;
    margin-inline: auto;
    border-radius: 0.75rem;
    object-fit: cover;
    box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.12);
}

.book-list__intro,
.book-list__description {
    max-width: 76ch;
}

.book-list__description {
    font-size: 1.05rem;
    line-height: 1.7;
}

.book-list__description p:last-child {
    margin-bottom: 0;
}

.book-list__section-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

.book-list-filter__legend {
    float: none;
    width: auto;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.book-list-page .form-check-label {
    margin-bottom: 0;
    font-size: 0.95rem;
    font-weight: 400;
}

.book-list-page .form-check-input {
    margin-top: 0.2rem;
}

.book-list-page .btn {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.book-list-sort .dropdown-menu {
    min-width: 15rem;
    border: 1px solid var(--book-list-border);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.1);
}

.book-list-sort .dropdown-item {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

.book-list-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1rem;
    border-radius: 0.85rem;
}

.book-list-card__cover-link {
    display: block;
}

.book-list-card__cover {
    display: flex;
    width: 96px;
    aspect-ratio: 2 / 3;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    background: #f8f9fa;
    object-fit: cover;
}

.book-list-card__cover--empty {
    border: 1px solid var(--book-list-border);
    color: var(--book-list-muted);
}

.book-list-card__cover--empty .material-icons {
    font-size: 2rem;
}

.book-list-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.book-list-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.book-list-card__title a {
    color: var(--book-list-text);
}

.book-list-card__title a:hover {
    color: #198754;
}

.book-list-card__author,
.book-list-card__author a,
.book-list-card__rating {
    color: var(--book-list-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.book-list-card__author a:hover {
    color: #198754;
}

.book-list-card__rating span:first-child {
    color: #b7791f;
    font-weight: 700;
}

.book-list-page .pagination .page-link {
    min-width: 40px;
    border-color: var(--book-list-border);
    border-radius: 0.5rem;
    color: #198754;
    font-size: 0.875rem;
}

.book-list-page .pagination .page-item.active .page-link {
    border-color: #198754;
    background: #198754;
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .book-list__panel,
    .book-list__controls {
        border-radius: 0.75rem;
    }

    .book-list__title {
        font-size: 1.75rem;
    }

    .book-list-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .book-list-card__cover {
        width: 82px;
    }

    .book-list-sort,
    .book-list-sort .btn {
        width: 100%;
    }
}

