.authors-main {
    min-width: 0;
}

.authors-hero {
    padding: 24px 26px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(212, 175, 55, 0.06));
    margin-bottom: 20px;
}

.authors-eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 6px;
}

.authors-title {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

.authors-subtitle {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 64ch;
}

.authors-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.author-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.author-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: inherit;
    transition: all 0.18s ease;
}

.author-tab:hover {
    border-color: rgba(212, 175, 55, 0.55);
}

.author-tab.is-active {
    background: #d4af37;
    color: #0f172a;
    border-color: #d4af37;
    font-weight: 600;
}

.tab-count {
    font-size: 0.76rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.16);
}

.author-tab.is-active .tab-count {
    background: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

.author-search-form {
    flex: 1 1 260px;
    max-width: 360px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

#author-live-search {
    width: 100%;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.45);
    color: inherit;
    font-size: 0.9rem;
    outline: none;
}

#author-live-search:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.btn-clear-search {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    color: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 16px;
}

.author-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.author-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.author-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

.author-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-card-avatar,
.author-card-avatar-fallback {
    width: 52px;
    height: 52px;
    max-width: 52px;
    max-height: 52px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    border: 1.5px solid rgba(212, 175, 55, 0.45);
}

.author-card-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.author-card-meta {
    min-width: 0;
    flex: 1;
}

.author-card-name {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-card-handle {
    display: block;
    font-size: 0.83rem;
    opacity: 0.72;
    margin-top: 2px;
}

.author-card-role-row {
    margin-top: 12px;
}

.poetic-role-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 999px;
}

.poetic-role-badge.role-author {
    background: rgba(212, 175, 55, 0.14);
    color: #e5c158;
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.poetic-role-badge.role-editor {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.28);
}

.author-card-bio {
    margin: 12px 0 0;
    font-size: 0.89rem;
    line-height: 1.55;
    opacity: 0.86;
    flex: 1;
}

.author-card-bio.is-muted {
    font-style: italic;
    opacity: 0.65;
}

.author-card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.works-count {
    opacity: 0.78;
}

.read-profile-cta {
    color: #d4af37;
    font-weight: 600;
}

.authors-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 18px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    opacity: 0.85;
}

.authors-pagination {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .authors-hero {
        padding: 18px;
    }

    .author-search-form {
        max-width: 100%;
    }
}