:root {
    --bg: #0f0f10;
    --card: #141416;
    --card-2: #101014;
    --text: #e7e7e7;
    --muted: #a7a7a7;
    --accent: #7c5cff;
    --border: #ffffff14;
    --radius: 18px;
    --r-sm: 12px;
}

.follow-page {
    max-width: 980px;
    margin: 20px auto;
    padding: 0 14px;
    color: var(--text);
}

.follow-page {
    background: var(--bgc-app, var(--bg));
    padding-top: 12px;
    padding-bottom: 28px;
}

.muted {
    color: var(--muted);
}

.follow-page__head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin: 0 0 12px;
    backdrop-filter: blur(6px);
}

.tabs {
    display: flex;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    align-items: center;
}

.tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    list-style: none;
    transition:
        color 0.12s ease,
        transform 0.12s ease,
        text-decoration-color 0.12s ease;
}

.tab::before,
.tab::after {
    content: none;
}

.tab svg,
.tab i,
.tab .icon {
    display: inline-block !important;
    margin-right: 8px;
    opacity: 0.9;
}

.tab .badge {
    display: inline-block;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    margin-left: 8px;
}

.tab:is(:hover, :focus-visible) {
    color: #fff;
    transform: translateY(-1px);
}

.tab.is-active {
    color: var(--accent);
}

.panels {
    margin-top: 8px;
}

.panel {
    display: none;
}

.panel.is-active {
    display: block;
}

.follow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.follow-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.follow-item:last-child {
    border-bottom: none;
}

.follow-item .user {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.follow-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--full-border);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: block;
    overflow: hidden;
    flex-shrink: 0;
}

.follow-item .meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.follow-item .meta strong {
    font-size: 15px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-item .meta .name {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-item .meta .bio {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
}

.js-follow-form {
    display: inline-flex;
}

.js-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--full-border);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        filter 0.12s ease,
        background-color 0.12s ease,
        border-color 0.12s ease;
}

.js-follow-btn:is(:hover, :focus-visible) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.js-follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.js-follow-btn.is-following {
    background: transparent;
    color: var(--accent);
    border-color: rgba(124, 92, 255, 0.16);
}

.js-follow-btn.is-following:is(:hover, :focus-visible) {
    background: rgba(124, 92, 255, 0.1);
}

.empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 34px 16px;
    margin: 12px 0;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.empty-lottie {
    width: 120px;
    height: 120px;
    display: block;
}

.follow-page__foot {
    display: flex;
    justify-content: center;
    margin: 18px 0 28px;
}

.follow-page__foot .back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: transparent;
    transition:
        background-color 0.12s ease,
        transform 0.12s ease;
}

.follow-page__foot .back:is(:hover, :focus-visible) {
    background: var(--card);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    .follow-page {
        padding: 0 12px;
    }

    .tabs {
        gap: 14px;
    }

    .tab {
        font-size: 12.5px;
        padding: 6px 0;
    }

    .follow-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .follow-item .user {
        grid-template-columns: 40px 1fr;
    }

    .follow-item .avatar {
        width: 40px;
        height: 40px;
    }

    .js-follow-btn {
        width: var(--full-width);
        height: 42px;
        font-size: 15px;
    }
}

@media (min-width: 521px) and (max-width: 860px) {
    .follow-item {
        grid-template-columns: 1fr auto;
    }

    .follow-item .meta .bio {
        max-width: 52vw;
    }
}

@media (min-width: 861px) {
    .follow-item .meta .bio {
        max-width: 560px;
    }
}
