:root {
    --as-ink: #374150;
    --as-muted: #8a98a8;
    --as-bg: #f4f6f9;
    --as-surface: #fff;
    --as-line: #dce3eb;
    --as-blue: #41aee8;
    --as-dark: #303b48;
    --as-dark-2: #3b4655;
    --as-radius: 4px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-size: 14px;
    background: var(--as-bg);
}

body {
    margin: 0;
    background: var(--as-bg);
    color: var(--as-ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
}

body,
button,
input {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.as-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 6px rgba(36, 45, 56, .12);
}

.as-header-top {
    background: var(--as-dark);
}

.as-header-inner {
    display: flex;
    align-items: center;
    width: min(1680px, calc(100% - 48px));
    margin: 0 auto;
}

.as-header-top .as-header-inner {
    min-height: 104px;
    gap: 28px;
}

.as-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
    color: #d8eefb;
    font-size: 1.72rem;
    font-weight: 700;
    text-decoration: none;
}

.as-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--as-blue);
    color: #fff;
    font-weight: 850;
}

.as-quick-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(460px, 36vw);
    height: 56px;
    padding: 0 18px;
    background: #3c4858;
    border-radius: 6px;
    color: #aeb9c6;
}

.as-quick-search span {
    font-size: 2rem;
    line-height: 1;
}

.as-quick-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #e9f3fb;
    font-size: 1.24rem;
}

.as-quick-search input::placeholder {
    color: #aeb9c6;
}

.as-header-actions {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 104px;
    margin-left: auto;
}

.as-icon-button,
.as-language,
.as-login-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0 28px;
    background: transparent;
    color: #b7c2cf;
    font-size: 1.14rem;
    text-decoration: none;
    cursor: pointer;
}

.as-login-link {
    background: var(--as-dark-2);
}

.as-header-nav {
    background: #fff;
}

.as-header-nav .as-header-inner {
    min-height: 78px;
    gap: 48px;
}

.as-header-nav a {
    color: #7c8999;
    font-size: 1.14rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.as-header-nav a.is-active {
    color: #334155;
}

.as-page {
    display: grid;
    row-gap: 40px;
    width: min(1640px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 76px;
}

.as-page > * {
    min-width: 0;
}

.as-hero {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.as-subhero {
    max-width: 980px;
    margin: 0 auto;
}

.as-subhero p {
    max-width: 760px;
    margin: 0;
    color: #7f8d9d;
    font-size: 1.06rem;
    line-height: 1.55;
    text-align: center;
}

.as-hero h1 {
    margin: 0;
    color: #455263;
    font-size: 2.72rem;
    line-height: 1.18;
    text-align: center;
    letter-spacing: 0;
}

.as-country {
    height: 46px;
    padding: 0 18px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: #eef3f8;
    color: #526173;
    font-size: 1.1rem;
}

.as-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    width: min(760px, 100%);
    min-height: 46px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: #fff;
    overflow: hidden;
}

.as-search input {
    min-width: 0;
    border: 0;
    padding: 0 16px;
    outline: 0;
    color: var(--as-ink);
    font-size: 1rem;
}

.as-search button,
.as-ad-card a,
.as-block-head a {
    border: 0;
    border-radius: var(--as-radius);
    background: #eef3f8;
    color: #526173;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
}

.as-search button {
    margin: 5px;
}

.as-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
    width: min(760px, 100%);
    margin-top: 6px;
}

.as-overview-stats p {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: #fff;
}

.as-overview-stats strong {
    color: #3d4856;
    font-size: 1.18rem;
    line-height: 1.1;
}

.as-overview-stats span {
    color: #8c99a8;
    font-size: .86rem;
}

.as-ad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.as-ad-card,
.as-directory-block,
.as-section-list,
.as-chat-section,
.as-post-section,
.as-three-columns article,
.as-tool,
.as-faq {
    background: var(--as-surface);
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    box-shadow: 0 16px 36px rgba(42, 52, 65, .04);
}

.as-ad-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-height: 220px;
    padding: 34px;
}

.as-ad-card h2 {
    margin: 0 0 22px;
    color: #3d4856;
    font-size: 1.55rem;
    line-height: 1.2;
}

.as-ad-card p {
    max-width: 280px;
    margin: 0 0 28px;
    color: #8190a3;
    font-size: 1.08rem;
    line-height: 1.45;
}

.as-ad-card a {
    display: inline-flex;
    padding: 12px 22px;
}

.as-ad-badge {
    align-self: center;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    border: 8px solid #f5f7fa;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #86eaff, #2299d6);
    color: #fff;
    font-size: 2.4rem;
    font-weight: 850;
}

.as-ad-badge-dark {
    background: radial-gradient(circle at 35% 25%, #ef5350, #111827);
}

.as-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 16px;
}

.as-block-head h2,
.as-three-columns h2 {
    margin: 0;
    color: #465160;
    font-size: 1.55rem;
    line-height: 1.2;
}

.as-block-head a {
    padding: 9px 13px;
    background: transparent;
    color: #465160;
}

.as-directory-block,
.as-section-list,
.as-chat-section,
.as-post-section,
.as-faq {
    padding: 28px;
}

.as-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 46px;
}

.as-channel-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.as-channel-item[tabindex] {
    cursor: pointer;
}

.as-avatar,
.as-chat-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 1px solid var(--as-line);
    border-radius: 6px;
    background: #f7f9fc;
    color: #fff;
    font-weight: 850;
    overflow: hidden;
}

.as-avatar img,
.as-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-channel-item h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: #3e4957;
    font-size: 1.16rem;
    font-weight: 500;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-channel-item p,
.as-mini-list small {
    margin: 0;
    color: #94a1af;
    font-size: .95rem;
}

.as-violet { background: linear-gradient(135deg, #8f4fff, #69c9ff); }
.as-red { background: #e51b3f; }
.as-yellow { background: #ffd800; color: #222; }
.as-blue { background: #2c8df2; }
.as-navy { background: #163f85; }
.as-photo { background: linear-gradient(135deg, #8796a8, #2f3b4a); }
.as-dark { background: #111827; }
.as-green-bg { background: #60ba18; }
.as-amber { background: #c77a16; }
.as-placeholder-avatar { background: linear-gradient(135deg, #d9e2ec, #8fa0b3); color: #fff; }

.is-placeholder h3,
.is-placeholder strong {
    color: #657386;
}

.is-placeholder p,
.is-placeholder small,
.is-placeholder time {
    color: #9aa7b5;
}

.as-category-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 46px;
}

.as-category-columns ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.as-category-columns li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #435060;
    font-size: 1.05rem;
}

.as-category-columns strong {
    color: #9ca9b7;
    font-weight: 700;
}

.as-section-list,
.as-chat-section,
.as-post-section,
.as-three-columns,
.as-tools,
.as-faq {
    margin-top: 8px;
}

.as-chat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 34px;
}

.as-chat-grid article {
    display: grid;
    justify-items: center;
    gap: 18px;
    min-height: 250px;
    padding: 26px 18px 18px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: #fff;
    text-align: center;
}

.as-chat-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2937, #9ca3af);
    font-size: 1.35rem;
}

.as-chat-grid h3 {
    margin: 0;
    color: #3d4856;
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.32;
}

.as-chat-grid p {
    align-self: end;
    width: 100%;
    margin: 0;
    padding: 8px;
    border-radius: var(--as-radius);
    background: #eef3f8;
    color: #516071;
}

.as-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.as-post-grid article {
    min-height: 170px;
    padding: 24px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
}

.as-post-grid h3 {
    margin: 0 0 30px;
    color: #435060;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.4;
}

.as-post-grid p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #7f8d9d;
}

.as-three-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.as-three-columns article {
    padding: 28px;
}

.as-mini-list {
    display: grid;
    gap: 20px;
    margin-top: 18px;
}

.as-mini-list p {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0;
}

.as-mini-list .as-avatar {
    width: 66px;
    height: 66px;
    grid-row: span 2;
}

.as-mini-list strong {
    display: block;
    overflow: hidden;
    color: #3e4957;
    font-size: 1.12rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.as-tool {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 16px;
    padding: 24px;
}

.as-tool img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    grid-row: span 2;
}

.as-tool h2 {
    margin: 0;
    color: #3d4856;
    font-size: 1.2rem;
}

.as-tool p,
.as-faq p {
    margin: 0;
    color: #7f8d9d;
    line-height: 1.5;
}

.as-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.as-faq h3 {
    margin: 0 0 10px;
    color: #3e4957;
    font-size: 1.08rem;
}

.as-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.as-filter-bar a,
.as-filter-bar button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: #f7fafc;
    color: #526173;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.as-filter-bar .is-active,
.as-filter-bar button.is-active {
    border-color: #a9d8f4;
    background: #eaf6fc;
    color: #2389c5;
}

.as-rank-table {
    display: grid;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    overflow: hidden;
}

.as-rank-row {
    display: grid;
    grid-template-columns: 46px minmax(260px, 1.7fr) minmax(120px, .7fr) minmax(110px, .55fr) minmax(100px, .55fr) minmax(80px, .4fr);
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 16px;
    border-top: 1px solid var(--as-line);
    background: #fff;
    color: #536172;
}

.as-rank-row:first-child {
    border-top: 0;
}

.as-rank-head {
    min-height: 44px;
    background: #f4f7fa;
    color: #8996a5;
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
}

.as-rank-title {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.as-rank-title .as-avatar {
    width: 46px;
    height: 46px;
}

.as-rank-title strong,
.as-rank-title small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.as-rank-title strong {
    color: #3e4957;
    font-size: 1rem;
    font-weight: 600;
}

.as-rank-title small {
    color: #9aa7b5;
    font-size: .86rem;
}

.as-dashboard-grid,
.as-monitor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.as-dashboard-grid article,
.as-monitor-grid article {
    min-height: 132px;
    padding: 24px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: var(--as-surface);
    box-shadow: 0 16px 36px rgba(42, 52, 65, .04);
}

.as-dashboard-grid span,
.as-dashboard-grid small {
    display: block;
    color: #8996a5;
}

.as-dashboard-grid strong {
    display: block;
    margin: 8px 0;
    color: #334155;
    font-size: 2rem;
    line-height: 1.1;
}

.as-monitor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-monitor-grid h2 {
    margin: 0 0 12px;
    color: #3d4856;
    font-size: 1.25rem;
}

.as-monitor-grid p {
    margin: 0 0 20px;
    color: #7f8d9d;
    line-height: 1.5;
}

.as-monitor-grid a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: var(--as-radius);
    background: #eef3f8;
    color: #526173;
    font-weight: 700;
    text-decoration: none;
}

.as-empty-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    min-height: 210px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: linear-gradient(180deg, #fff, #f7fafc);
}

.as-empty-chart span {
    display: block;
    min-height: 34px;
    border-radius: 4px 4px 0 0;
    background: #dcebf6;
}

.as-empty-chart span:nth-child(2) { height: 70px; }
.as-empty-chart span:nth-child(3) { height: 116px; }
.as-empty-chart span:nth-child(4) { height: 92px; }
.as-empty-chart span:nth-child(5) { height: 146px; }
.as-empty-chart span:nth-child(6) { height: 58px; }

.as-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 54px;
    padding: 56px max(24px, calc((100% - 1640px) / 2)) 64px;
    background: var(--as-dark);
    color: #c3ceda;
}

.as-footer h2 {
    margin: 0 0 18px;
    color: #d8e0e8;
    font-size: 1.4rem;
}

.as-footer a {
    display: block;
    margin-top: 12px;
    color: #b9c5d3;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .as-header-top .as-header-inner,
    .as-header-nav .as-header-inner {
        width: min(980px, calc(100% - 24px));
    }

    .as-header-nav .as-header-inner {
        overflow-x: auto;
        gap: 28px;
    }

    .as-header-actions {
        display: none;
    }

    .as-ad-grid,
    .as-three-columns,
    .as-tools,
    .as-faq-grid,
    .as-dashboard-grid,
    .as-monitor-grid {
        grid-template-columns: 1fr;
    }

    .as-channel-grid,
    .as-category-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .as-chat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .as-header-top .as-header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 12px;
    }

    .as-brand {
        min-width: 0;
    }

    .as-quick-search {
        width: 100%;
    }

    .as-page {
        width: min(620px, calc(100% - 18px));
        padding-top: 28px;
        row-gap: 28px;
    }

    .as-page > * {
        width: 100%;
    }

    .as-hero h1 {
        font-size: 2rem;
    }

    .as-search,
    .as-overview-stats,
    .as-channel-grid,
    .as-category-columns,
    .as-chat-grid,
    .as-post-grid,
    .as-footer {
        grid-template-columns: 1fr;
    }

    .as-rank-table {
        overflow-x: auto;
    }

    .as-rank-row {
        grid-template-columns: 36px 230px 110px 100px 90px 70px;
        min-width: 720px;
    }

    .as-ad-card {
        min-height: auto;
        padding: 22px;
    }

    .as-ad-badge {
        display: none;
    }
}
