.author-card {
    color: inherit;
}

.authors-grid .empty-state,
.author-books-grid .empty-state {
    grid-column: 1 / -1;
    background: white;
    border-radius: 28px;
    padding: 3rem;
    text-align: center;
    color: var(--muted);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.authors-layout {
    padding: 2rem 0 4rem;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.author-card {
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.author-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255, 103, 102, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-strong);
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card h3 {
    font-size: 1.25rem;
}

.author-card p {
    color: var(--muted);
    line-height: 1.7;
}

.author-card-meta {
    color: var(--muted);
    font-size: 0.92rem;
}

.author-detail {
    padding: 2rem 0 4rem;
}

.author-detail-header {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2rem;
    align-items: center;
    background: white;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    margin-bottom: 2rem;
}

.author-detail-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 103, 102, 0.1);
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-strong);
}

.author-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-detail-header p {
    color: var(--muted);
    margin-top: 0.75rem;
    max-width: 44rem;
    line-height: 1.8;
}

.author-books-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .author-books-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .authors-grid,
    .author-books-grid {
        grid-template-columns: 1fr;
    }

    .author-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}
