.ap-hero {
    background:
        radial-gradient(circle at top right, rgba(204, 26, 37, .22), transparent 36%),
        linear-gradient(135deg, #071229 0%, #0f172a 55%, #1e293b 100%);
    color: #fff;
    padding: 44px 0;
    margin-bottom: 34px;
    border-bottom: 4px solid var(--red, #cc1a25);
}

.ap-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ap-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .45);
    font-size: 12px;
    font-weight: 750;
}

.ap-breadcrumb a {
    color: rgba(255, 255, 255, .62);
}

.ap-breadcrumb a:hover {
    color: #fff;
}

.ap-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 12px;
}

.ap-hero h1 {
    color: #fff;
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 44px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.05em;
    margin: 0;
}

.ap-hero p {
    max-width: 720px;
    margin-top: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.75;
}

.ap-hero-stats {
    min-width: 270px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ap-hero-stats div {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    backdrop-filter: blur(14px);
}

.ap-hero-stats strong {
    display: block;
    color: #fff;
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.ap-hero-stats span {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ap-page {
    padding-bottom: 70px;
}

.ap-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.ap-main {
    min-width: 0;
}

.ap-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 24px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .08));
    padding: 18px;
    margin-bottom: 18px;
}

.ap-toolbar h2 {
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
    color: var(--navy, #0f172a);
    margin: 0;
}

.ap-toolbar p {
    margin-top: 4px;
    color: var(--text-soft, #64748b);
    font-size: 13px;
}

.ap-search {
    width: min(420px, 100%);
    display: flex;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: .15s;
}

.ap-search:focus-within {
    border-color: var(--red, #cc1a25);
    box-shadow: 0 0 0 4px rgba(204, 26, 37, .09);
    background: #fff;
}

.ap-search input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    color: var(--text, #111827);
    font-size: 13px;
}

.ap-search button {
    height: 44px;
    border: 0;
    background: var(--navy, #0f172a);
    color: #fff;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.ap-search button:hover {
    background: var(--red, #cc1a25);
}

.ap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ap-author-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 26px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .08));
    overflow: hidden;
    display: grid;
    grid-template-columns: 150px 1fr;
    transition: .18s;
}

.ap-author-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.ap-avatar {
    display: block;
    background: #e5e7eb;
    min-height: 100%;
    overflow: hidden;
}

.ap-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.ap-author-card:hover .ap-avatar img {
    transform: scale(1.06);
}

.ap-author-body {
    padding: 17px;
    min-width: 0;
}

.ap-author-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.ap-author-top h3 {
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 18px;
    font-weight: 950;
    line-height: 1.18;
    letter-spacing: -.03em;
    color: var(--navy, #0f172a);
    margin: 0;
}

.ap-author-top h3 a {
    color: inherit;
}

.ap-author-top h3 a:hover {
    color: var(--red, #cc1a25);
}

.ap-author-top span {
    display: block;
    margin-top: 3px;
    color: var(--text-soft, #64748b);
    font-size: 11px;
    font-weight: 800;
}

.ap-role {
    flex-shrink: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ap-author-body p {
    margin-top: 10px;
    color: var(--text-mid, #475569);
    font-size: 12px;
    line-height: 1.62;
}

.ap-author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.ap-author-stats div {
    min-width: 74px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 9px;
}

.ap-author-stats strong {
    display: block;
    color: var(--navy, #0f172a);
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
}

.ap-author-stats span {
    display: block;
    margin-top: 4px;
    color: var(--text-soft, #64748b);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ap-last-post {
    display: block;
    margin-top: 12px;
    border-left: 3px solid var(--red, #cc1a25);
    background: #fff7f7;
    border-radius: 0 14px 14px 0;
    padding: 10px 12px;
}

.ap-last-post small {
    display: block;
    color: var(--red, #cc1a25);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}

.ap-last-post b {
    display: block;
    color: var(--text, #111827);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 850;
}

.ap-last-post:hover b {
    color: var(--red, #cc1a25);
}

.ap-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    margin-top: 13px;
    border-radius: 14px;
    background: var(--navy, #0f172a);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ap-profile-btn:hover {
    background: var(--red, #cc1a25);
    color: #fff;
}

.ap-sidebar {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ap-side-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 24px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .08));
    overflow: hidden;
}

.ap-side-head {
    padding: 15px 17px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    background: #fbfdff;
}

.ap-side-head h3 {
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 15px;
    font-weight: 950;
    color: var(--navy, #0f172a);
    margin: 0;
}

.ap-popular-list {
    display: flex;
    flex-direction: column;
}

.ap-popular-item {
    display: grid;
    grid-template-columns: 28px 44px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    transition: .15s;
}

.ap-popular-item:last-child {
    border-bottom: 0;
}

.ap-popular-item:hover {
    background: #f8fafc;
}

.ap-popular-item > span {
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    color: var(--red, #cc1a25);
    opacity: .25;
    text-align: center;
}

.ap-popular-item img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    object-fit: cover;
}

.ap-popular-item strong {
    display: block;
    color: var(--text, #111827);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 900;
}

.ap-popular-item small {
    display: block;
    margin-top: 3px;
    color: var(--text-soft, #64748b);
    font-size: 10px;
    font-weight: 750;
}

.ap-side-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-soft, #64748b);
    font-size: 12px;
}

.ap-join-card {
    padding: 20px;
    background:
        radial-gradient(circle at top right, rgba(204, 26, 37, .18), transparent 45%),
        linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.ap-join-card h3 {
    color: #fff;
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -.03em;
    margin: 0;
}

.ap-join-card p {
    margin-top: 8px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.65;
}

.ap-join-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    margin-top: 14px;
    border-radius: 14px;
    background: var(--red, #cc1a25);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ap-empty {
    text-align: center;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 28px;
    padding: 58px 24px;
    box-shadow: var(--shadow, 0 10px 30px rgba(15, 23, 42, .08));
}

.ap-empty div {
    font-size: 60px;
    line-height: 1;
    margin-bottom: 12px;
}

.ap-empty h3 {
    font-family: var(--font-head, var(--fh, inherit));
    font-size: 24px;
    font-weight: 950;
    color: var(--navy, #0f172a);
    letter-spacing: -.03em;
    margin: 0;
}

.ap-empty p {
    max-width: 460px;
    margin: 8px auto 0;
    color: var(--text-soft, #64748b);
    font-size: 14px;
    line-height: 1.65;
}

.ap-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    margin-top: 18px;
    border-radius: 14px;
    background: var(--red, #cc1a25);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ap-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 30px;
}

.ap-pager a,
.ap-pager span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 13px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    transition: .15s;
}

.ap-pager a:hover,
.ap-pager span.cur {
    background: var(--red, #cc1a25);
    border-color: var(--red, #cc1a25);
    color: #fff;
}

.ap-pager-nav {
    min-width: 94px !important;
}

@media (max-width: 1160px) {
    .ap-layout {
        grid-template-columns: 1fr;
    }

    .ap-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ap-join-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .ap-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ap-hero-stats {
        width: 100%;
    }

    .ap-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .ap-search {
        width: 100%;
    }

    .ap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ap-hero {
        padding: 34px 0;
    }

    .ap-hero h1 {
        font-size: 34px;
    }

    .ap-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ap-author-card {
        grid-template-columns: 1fr;
    }

    .ap-avatar {
        height: 230px;
    }

    .ap-sidebar {
        grid-template-columns: 1fr;
    }
}

