.posts-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.posts-page__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 6px 14px;
}

.posts-page__heading h1 {
    color: var(--color-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.posts-page__heading p {
    margin-top: 2px;
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 20px;
}

.posts-page__count {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 20px;
}

.posts-list {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.posts-list__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 76px 76px;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 14px 20px 14px 16px;
    color: var(--color-text);
    transition: background-color var(--transition-fast);
}

.posts-list__item + .posts-list__item {
    border-top: 1px solid var(--color-border);
}

.posts-list__item:hover {
    background: var(--color-surface-hover);
}

.posts-list__avatar {
    display: block;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid rgba(126, 139, 158, 0.28);
    border-radius: 50%;
}

.posts-list__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posts-list__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.posts-list__copy > strong {
    overflow: hidden;
    color: var(--color-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posts-list__meta,
.posts-list__tags {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.posts-list__meta {
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
}

.posts-list__meta span + span::before,
.posts-list__meta span + time::before {
    margin-right: 6px;
    color: var(--color-text-tertiary);
    content: "·";
}

.posts-list__tags {
    gap: 5px;
}

.posts-list__tags span {
    height: 19px;
    flex: 0 0 auto;
    padding: 0 7px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-surface-active);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 17px;
    white-space: nowrap;
}

.posts-list__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    line-height: 20px;
}

.posts-list__stat .icon {
    width: 17px;
    height: 17px;
    stroke-width: 1.7;
}

@media (max-width: 820px) {
    .posts-list__item {
        grid-template-columns: 40px minmax(0, 1fr) 80px;
    }

    .posts-list__stat:last-child {
        display: none;
    }
}

@media (max-width: 520px) {
    .posts-page__heading {
        min-height: 56px;
        padding-bottom: 10px;
    }

    .posts-list__item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 13px;
        min-height: 86px;
        padding-inline: 14px;
    }

    .posts-list__stat {
        display: none;
    }
}
