.authors-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem) 5rem;
}

.authors-hero {
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    animation: authors-enter 480ms ease both;
}

.authors-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.authors-hero h1 {
    margin: 0;
    color: var(--primary-deep);
    font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.12;
    text-wrap: balance;
}

.authors-intro {
    max-width: 520px;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.authors-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.authors-section-heading h2 {
    margin: 0;
    color: var(--text);
    font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 500;
}

.authors-result-count {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.authors-search {
    width: min(100%, 340px);
}

.authors-search label {
    display: block;
    margin: 0 0 0.4rem 0.1rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.authors-search-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0 0.85rem;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.authors-search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.authors-search-field svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    stroke: var(--muted);
    stroke-width: 1.7;
    stroke-linecap: round;
}

.authors-search-field input {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.authors-search-field input::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.authors-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 82px;
    padding: 0.7rem 0.85rem;
    color: inherit;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(48, 35, 43, 0.035);
    animation: authors-enter 320ms ease both;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.author-card:nth-child(3n + 2) {
    animation-delay: 45ms;
}

.author-card:nth-child(3n) {
    animation-delay: 90ms;
}

.author-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--card-border));
    box-shadow: 0 10px 26px rgba(48, 35, 43, 0.09);
}

.author-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.author-card-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    color: var(--accent);
    background: linear-gradient(145deg, var(--surface-alt), color-mix(in srgb, var(--accent) 14%, var(--surface)));
    border: 1px solid var(--card-border);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 600;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-details {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.author-card-name {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.35;
}

.author-card-published {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.author-card-latest-likes {
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.author-card-published svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.author-card-arrow {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    stroke: var(--muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease, stroke 180ms ease;
}

.author-card:hover .author-card-arrow {
    transform: translateX(3px);
    stroke: var(--accent);
}

.authors-empty {
    margin: 2rem 0;
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
}

.authors-status {
    min-height: 1.5rem;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

.authors-load-more {
    display: block;
    min-height: 44px;
    margin: 0.75rem auto 0;
    padding: 0.65rem 1.2rem;
    color: var(--accent);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 650;
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.authors-load-more[hidden] {
    display: none;
}

.authors-load-more:hover:not(:disabled) {
    background: var(--surface-alt);
    border-color: var(--accent);
}

.authors-load-more:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.authors-load-more:disabled {
    cursor: wait;
    opacity: 0.65;
}

.authors-sentinel {
    height: 1px;
}

@keyframes authors-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 560px) {
    .authors-page {
        padding-top: 2.25rem;
    }

    .authors-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .authors-search {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .authors-hero,
    .author-card {
        animation: none;
    }

    .author-card,
    .author-card-arrow,
    .authors-search-field {
        transition: none;
    }
}
