.top-influencers-page {
    color: #122c61;
    background: #eff5fd;
    font-family: var(--font_family3);
}

.top-influencers-page .cont {
    width: min(100% - 40px, 1260px);
}

.top-influencers-hero {
    margin-bottom: 0 !important;
    padding: 78px 0 52px;
    text-align: center;
}

.top-influencers-hero h1 {
    margin: 0 0 25px;
    color: #232368;
    font-family: var(--font_family3);
    font-size: 35px;
    font-style: normal;
    font-weight: 700;
    line-height: 35px;
}

.top-influencers-hero p {
    max-width: 1020px;
    margin: 0 auto;
    color: #232368;
    font-family: var(--font_family3);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.55;
}

.top-influencers-ranking {
    margin-bottom: 0 !important;
    padding: 0 0 76px;
}

.top-influencers-toolbar {
    display: flex;
    margin-bottom: 14px;
    padding: 18px 20px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(35, 35, 104, 0.1);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 44, 97, 0.06);
}

.top-influencers-toolbar__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 34px;
}

.top-influencers-toolbar__item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #7f8398;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.top-influencers-toolbar__item strong {
    color: #232368;
    font-size: 16px;
    font-weight: 500;
}

.top-influencers-search {
    display: flex;
    width: min(100%, 520px);
    align-items: center;
    gap: 16px;
    color: #232368;
    font-size: 16px;
    font-weight: 500;
}

.top-influencers-search > span:first-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.top-influencers-search__field {
    position: relative;
    display: block;
    flex: 1;
}

.top-influencers-search__field svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #777c94;
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
}

.top-influencers-search input {
    width: 100%;
    height: 43px;
    padding: 0 15px 0 42px;
    color: #232368;
    border: 1px solid #dfe2ef;
    border-radius: 11px;
    outline: none;
    background: #f9faff;
    font-family: var(--font_family3);
    font-size: 15px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.top-influencers-search input::placeholder {
    color: #9296a8;
}

.top-influencers-search input:focus {
    border-color: #7541e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(117, 65, 233, 0.12);
}

.top-influencers-table-shell {
    overflow: hidden;
    border: 1px solid rgba(35, 35, 104, 0.11);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 44, 97, 0.07);
}

.top-influencers-table-scroll {
    overflow-x: auto;
    scrollbar-color: #8a68dc #edf0f8;
    scrollbar-width: thin;
}

.top-influencers-table-scroll:focus-visible {
    outline: 3px solid rgba(117, 65, 233, 0.42);
    outline-offset: -3px;
}

.top-influencers-table {
    width: 100%;
    min-width: 1020px;
    border-spacing: 0;
    border-collapse: separate;
    color: #263768;
    font-family: var(--font_family3);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.top-influencers-table th,
.top-influencers-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eceef5;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.top-influencers-table th {
    position: sticky;
    z-index: 2;
    top: 0;
    padding-top: 15px;
    padding-bottom: 15px;
    color: #656a82;
    background: #f8f9fd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.top-influencers-table th:first-child,
.top-influencers-table td:first-child {
    width: 100px;
    padding-left: 20px;
}

.top-influencers-table th:nth-child(2),
.top-influencers-table td:nth-child(2) {
    width: 250px;
}

.top-influencers-table th:last-child,
.top-influencers-table td:last-child {
    padding-right: 20px;
    text-align: right;
}

.top-influencers-table tbody tr:last-child td {
    border-bottom: 0;
}

.top-influencers-table tbody tr {
    transition: background 140ms ease;
}

.top-influencers-table tbody tr:hover {
    background: #fbfbff;
}

.top-influencers-table th button {
    display: inline-flex;
    padding: 0;
    align-items: center;
    gap: 7px;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.top-influencers-table th button span {
    position: relative;
    width: 9px;
    height: 12px;
}

.top-influencers-table th button span::before,
.top-influencers-table th button span::after {
    position: absolute;
    left: 1px;
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: '';
}

.top-influencers-table th button span::before {
    top: 0;
    border-bottom: 4px solid #b3b6c5;
}

.top-influencers-table th button span::after {
    bottom: 0;
    border-top: 4px solid #b3b6c5;
}

.top-influencers-table th[aria-sort="ascending"] button,
.top-influencers-table th[aria-sort="descending"] button {
    color: #6037cf;
}

.top-influencers-table th[aria-sort="ascending"] button span::before {
    border-bottom-color: #7541e9;
}

.top-influencers-table th[aria-sort="descending"] button span::after {
    border-top-color: #7541e9;
}

.top-influencers-table th button:focus-visible,
.top-influencers-report-link:focus-visible,
.top-influencers-account:focus-visible {
    outline: 2px solid #7541e9;
    outline-offset: 3px;
}

.top-influencers-rank__line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.top-influencers-rank__line > strong {
    color: #232368;
    font-size: 15px;
    line-height: 1.2;
}

.top-influencers-movement {
    display: inline-flex;
    min-width: 20px;
    align-items: center;
    justify-content: center;
    color: #85899c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.top-influencers-movement.is-up {
    color: #4f9c65;
}

.top-influencers-movement.is-down {
    color: #c85a4a;
}

.top-influencers-movement.is-new {
    color: #7541e9;
}

.top-influencers-account {
    display: inline-flex;
    max-width: 235px;
    align-items: center;
    gap: 10px;
    color: #232368;
    text-decoration: none;
}

.top-influencers-avatar {
    display: inline-flex;
    overflow: hidden;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #7541e9, #e56a57);
    font-size: 14px;
    font-weight: 700;
}

.top-influencers-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-influencers-account > span:last-child {
    min-width: 0;
}

.top-influencers-account strong,
.top-influencers-account small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-influencers-account strong {
    color: #232368;
    font-size: 14px;
    font-weight: 700;
}

.top-influencers-account small {
    max-width: 180px;
    margin-top: 2px;
    color: #83879a;
    font-size: 10px;
    font-weight: 500;
}

.top-influencers-account:hover strong {
    color: #7541e9;
}

.top-influencers-score-total {
    color: #9699aa;
    font-size: 11px;
}

.top-influencers-na {
    color: #8a8ea1;
}

.top-influencers-report-link {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 14px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 9px;
    background: #5530bd;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease;
}

.top-influencers-report-link:hover {
    color: #fff;
    background: #7541e9;
    transform: translateY(-1px);
}

.top-influencers-empty {
    padding: 50px 20px !important;
    color: #73778e;
    text-align: center !important;
}

.top-influencers-editor {
    margin: 0 !important;
    padding: 72px 0;
    background: #fff;
}

.top-influencers-editor .cont {
    width: min(100% - 40px, 1260px);
}

@media (max-width: 767px) {
    .top-influencers-page .cont,
    .top-influencers-editor .cont {
        width: min(100% - 24px, 1260px);
    }

    .top-influencers-hero {
        padding: 48px 0 38px;
    }

    .top-influencers-hero h1 {
        font-size: 29px;
        line-height: 1.2;
    }

    .top-influencers-hero p {
        font-size: 16px;
    }

    .top-influencers-ranking {
        padding-bottom: 52px;
    }

    .top-influencers-toolbar {
        padding: 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        border-radius: 14px;
    }

    .top-influencers-toolbar__meta {
        justify-content: space-between;
        gap: 16px;
    }

    .top-influencers-search {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .top-influencers-table-shell {
        border-radius: 14px;
    }

    .top-influencers-table th,
    .top-influencers-table td {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .top-influencers-editor {
        padding: 50px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-influencers-table tbody tr,
    .top-influencers-report-link,
    .top-influencers-search input {
        transition: none;
    }
}
