/* ── Authors List Page ── */

.authors-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.authors-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.authors-search {
    position: relative;
    max-width: 320px;
}

.authors-search__input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #e0e0d8;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.authors-search__input:focus {
    border-color: #aaa;
}

.authors-search__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}

.authors-search__clear:hover {
    color: #1a1a1a;
}

.authors-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.authors-alphabet__btn {
    background: none;
    border: 1px solid #e0e0d8;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
    transition: background 0.1s, color 0.1s, border-color 0.1s;
    min-width: 30px;
    text-align: center;
}

.authors-alphabet__btn:hover {
    border-color: #aaa;
    color: #1a1a1a;
}

.authors-alphabet__btn--active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.authors-list {
    list-style: none;
    columns: 3;
    column-gap: 16px;
    border: 1px solid #e0e0d8;
    border-radius: 4px;
    padding: 16px;
    background-color: #fff;
}

.authors-list__item {
    break-inside: avoid;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0eb;
}

.authors-list__link {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.authors-list__link:hover {
    color: #555;
    text-decoration: underline;
}

.authors-hint,
.authors-empty {
    color: #999;
    font-size: 0.9rem;
}

/* ── Author Page ── */

.author-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.author-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.author-header__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-header__photo--placeholder {
    background: #e0e0d8;
}

.author-header__name {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.author-header__stats {
    font-size: 0.85rem;
    color: #888;
}

.author-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0d8;
}

.author-tabs__btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.author-tabs__btn:hover {
    color: #1a1a1a;
}

.author-tabs__btn--active {
    color: #1a1a1a;
    font-weight: 500;
    border-bottom-color: #1a1a1a;
}

.author-book-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding-top: 16px;
}

.author-book-card {
    background: #fff;
    border: 1px solid #e0e0d8;
    border-radius: 4px;
    aspect-ratio: 2 / 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}

.author-book-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.author-book-card__cover {
    flex: 1;
    background: #ece9e3;
    overflow: hidden;
}

.author-book-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-book-card__title {
    padding: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-about {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    border: 1px solid #e0e0d8;
    border-radius: 4px;
    padding: 16px;
    background-color: #fff;
}

.author-empty {
    padding-top: 16px;
    color: #999;
    font-size: 0.9rem;
}
