.booklist-title {
    display: inline;
    font-size: 18px;
    font-family: var(--lv-sans);
    font-weight: 600;
    color: var(--lv-dark-brown);
}

.catalog-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0 16px;
    border-bottom: 1px solid rgba(92, 75, 56, 0.14);
    color: inherit;
    text-decoration: none;
}

.catalog-row:hover,
.catalog-row:focus {
    text-decoration: none;
}

.catalog-row:hover {
    background: rgba(255, 250, 244, 0.45);
}

.catalog-row:hover .catalog-row-title {
    color: var(--lv-bronze);
}

.catalog-row-cover {
    flex: 0 0 auto;
    display: block;
}

.catalog-row-cover img {
    display: block;
    width: 96px;
    height: auto;
    border-radius: 6px;
}

.catalog-row-body {
    min-width: 0;
    flex: 1 1 auto;
}

.catalog-row-title {
    display: block;
    margin: 0 0 5px;
    line-height: 1.25;
}

.catalog-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    color: #8f7b67;
    font-size: 13px;
    line-height: 1.5;
}

.catalog-row-separator {
    color: #b49f89;
}

.catalog-row-reader {
    color: var(--lv-brown);
}

.catalog-row-context {
    color: #8f7b67;
}

.booklist-author {
    display: inline;
    color: var(--lv-dark-brown);
    font-size: 14px;
    font-family: var(--lv-sans);
    font-weight: 600;
}

.booklist-author .author-prefix {
    color: var(--lv-dark-brown);
    font-weight: 600;
}


.booklist-chapter {
    display: inline-block;
    font-size: 85%;
    color: var(--lv-brown);
    margin: 0 0 0.25em;
}

.booklist-chapter .booklist-chapter-title {
    font-style: italic;
    color: inherit;
}

.booklist-description {
    margin-top: 4px;
    color: var(--lv-brown);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-row-description {
    max-width: 60ch;
    line-height: 1.6;
}

.search-form-inline {
    margin: 1em;
    padding: 1em;
}

.directory-header {
    margin-bottom: 22px;
}

.author-directory-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px 16px;
    padding: 0;
    margin: 0 0 28px;
}

.author-directory-item {
    margin: 0;
}

.author-directory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 100%;
    padding: 16px 14px 18px;
    text-align: center;
    text-decoration: none;
    background: #fffaf4;
    border: 1px solid rgba(221, 210, 197, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(51, 30, 5, 0.06);
    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease;
}

.author-directory-card:hover,
.author-directory-card:focus {
    color: var(--lv-dark-brown);
    text-decoration: none;
    transform: translateY(-2px);
    background: #fffdf9;
    border-color: rgba(200, 150, 101, 0.75);
    box-shadow: 0 14px 30px rgba(51, 30, 5, 0.1);
}

.author-directory-avatar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 104px;
    height: 104px;
}

.author-directory-avatar {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(51, 30, 5, 0.12);
    background: var(--lv-beige);
}

.author-directory-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(245, 238, 229, 0.85), rgba(221, 210, 197, 0.95)),
        var(--lv-beige);
    color: var(--lv-dark-brown);
    font-family: var(--lv-serif);
    font-size: 34px;
    font-weight: 600;
}

.author-directory-name {
    display: block;
    color: var(--lv-dark-brown);
    font-family: var(--lv-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
}

.genre-directory-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px 16px;
    padding: 0;
    margin: 0 0 28px;
}

.genre-directory-item {
    margin: 0;
}

.genre-directory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-height: 100%;
    padding: 12px 12px 14px;
    text-decoration: none;
    background: #fffaf4;
    border: 1px solid rgba(221, 210, 197, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(51, 30, 5, 0.06);
    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease;
}

.genre-directory-card:hover,
.genre-directory-card:focus {
    color: var(--lv-dark-brown);
    text-decoration: none;
    transform: translateY(-2px);
    background: #fffdf9;
    border-color: rgba(200, 150, 101, 0.75);
    box-shadow: 0 14px 30px rgba(51, 30, 5, 0.1);
}

.genre-directory-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 144px);
    margin: 0 auto;
}

.genre-directory-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: var(--lv-beige);
    box-shadow: 0 6px 16px rgba(51, 30, 5, 0.08);
}

.genre-directory-name {
    display: block;
    color: var(--lv-dark-brown);
    font-family: var(--lv-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .author-directory-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .author-directory-card {
        padding: 14px 12px 16px;
        border-radius: 18px;
    }

    .author-directory-avatar-wrap,
    .author-directory-avatar {
        width: 88px;
        height: 88px;
    }

    .author-directory-avatar-fallback {
        font-size: 28px;
    }

    .author-directory-name {
        font-size: 15px;
    }

    .genre-directory-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .genre-directory-card {
        gap: 12px;
        padding: 11px 11px 13px;
        border-radius: 18px;
    }

    .genre-directory-collage {
        gap: 5px;
        width: min(100%, 120px);
    }

    .genre-directory-name {
        font-size: 17px;
    }
}
