

/* Start:/local/components/china/feed/templates/.default/style.css?177241575618682*/
/* ===== Feed / Social Styles ===== */

/* --- Общие --- */
.feed-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 00px;
}

/* --- Шапка --- */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.feed-header__title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* --- Кнопки --- */
.feed-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.feed-btn--primary {
    background: #c62828;
    color: #fff;
}

.feed-btn--primary:hover {
    background: #b71c1c;
}

.feed-btn--outline {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
}

.feed-btn--outline:hover {
    border-color: #c62828;
    color: #c62828;
}

.feed-btn--sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* --- 3-колоночный лейаут --- */
.feed-layout {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 30px;
    align-items: start;
}

.feed-post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: start;
}

/* --- Сайдбар --- */
.feed-sidebar {
    position: sticky;
    top: 20px;
}

/* --- Категории (левый сайдбар) --- */
.feed-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-categories__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.feed-categories__item:hover {
    background: #f5f5f5;
    color: #333;
}

.feed-categories__item--active {
    background: #fef5f5;
    color: #c62828;
    font-weight: 500;
    border-left-color: #c62828;
}

.feed-categories__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 0;
}

.feed-categories__icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
}

.feed-categories--compact .feed-categories__item {
    padding: 7px 10px;
    font-size: 13px;
}

/* --- Карточки постов --- */
.feed-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.feed-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feed-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.feed-card__author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.feed-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 16px;
}

.feed-card__author-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    display: block;
}

.feed-card__date {
    font-size: 12px;
    color: #999;
    display: block;
}

.feed-card__tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    text-decoration: none;
    transition: background 0.15s;
}

.feed-card__tag:hover {
    background: #eee;
}

.feed-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feed-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
    line-height: 1.3;
}

.feed-card__link:hover .feed-card__title {
    color: #c62828;
}

.feed-card__preview {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.feed-card__footer {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.feed-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
}

.feed-card__stat:hover {
    color: #666;
}

/* --- Виджет (правый сайдбар) --- */
.feed-widget {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.feed-widget__title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
}

/* --- Топ авторов --- */
.feed-blogger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f5f5f5;
}

.feed-blogger:last-child {
    border-bottom: none;
}

.feed-blogger:hover .feed-blogger__name {
    color: #c62828;
}

.feed-blogger__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-blogger__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.feed-blogger__name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.15s;
}

/* --- Пустая лента --- */
.feed-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.feed-empty .feed-btn {
    margin-top: 16px;
}

/* --- Пагинация --- */
.feed-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

/* --- Страница поста --- */
.feed-post {
    min-width: 0;
}

.feed-post__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.feed-post__author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.feed-post__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-post__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 18px;
}

.feed-post__author-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    display: block;
}

.feed-post__author-name:hover {
    color: #c62828;
}

.feed-post__date {
    font-size: 13px;
    color: #999;
}

.feed-post__edit-btn {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.feed-post__edit-btn:hover {
    color: #c62828;
    border-color: #c62828;
}

.feed-post__title {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin: 16px 0;
    line-height: 1.25;
}

.feed-post__body {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.feed-post__body h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.feed-post__body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.feed-post__body p {
    margin: 0 0 16px;
}

.feed-post__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.feed-post__body ul, .feed-post__body ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.feed-post__body blockquote {
    border-left: 4px solid #c62828;
    margin: 16px 0;
    padding: 12px 20px;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.feed-post__stats {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 24px 0;
}

/* --- Комментарии --- */
.feed-comments {
    margin-top: 24px;
}

.feed-comments__title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-comments__count {
    background: #f0f0f0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
}

.feed-comments__login {
    color: #999;
    font-size: 14px;
}

.feed-comments__login a {
    color: #c62828;
}

.feed-comment-form {
    margin-bottom: 24px;
}

.feed-comment-form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 8px;
    transition: border-color 0.15s;
}

.feed-comment-form__input:focus {
    outline: none;
    border-color: #c62828;
}

.feed-comments__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-comment {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
}

.feed-comment__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feed-comment__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-comment__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 13px;
}

.feed-comment__author {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.feed-comment__author:hover {
    color: #c62828;
}

.feed-comment__date {
    font-size: 12px;
    color: #999;
}

.feed-comment__text {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.feed-comment__reply-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
}

.feed-comment__reply-btn:hover {
    color: #c62828;
}

.feed-comment-reply-form {
    display: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.feed-comment-reply-form--visible {
    display: block;
}

/* --- Форма создания --- */
.feed-create {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.feed-create__title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 24px;
}

.feed-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.feed-alert--error {
    background: #fef5f5;
    border: 1px solid #f5c6c6;
    color: #c62828;
}

.feed-alert p {
    margin: 0 0 4px;
}

.feed-alert p:last-child {
    margin-bottom: 0;
}

.feed-form__title-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.feed-form__title-input:focus {
    outline: none;
    border-color: #c62828;
}

.feed-form__title-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.feed-form__select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    margin-bottom: 16px;
    font-family: inherit;
    cursor: pointer;
    box-sizing: border-box;
}

.feed-form__select:focus {
    outline: none;
    border-color: #c62828;
}

.feed-form__editor {
    width: 100%;
    min-height: 320px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.feed-form__editor:focus {
    outline: none;
    border-color: #c62828;
}

.feed-form__editor::placeholder {
    color: #bbb;
}

.feed-form__hint {
    font-size: 12px;
    color: #999;
    margin: 8px 0 20px;
}

.feed-form__actions {
    display: flex;
    gap: 12px;
}

/* --- Профиль --- */
.feed-profile {
    margin-bottom: 30px;
}

.feed-profile__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
}

.feed-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.feed-profile__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #666;
    font-weight: 700;
    font-size: 30px;
}

.feed-profile__name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #222;
}

.feed-profile__stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #999;
}

.feed-profile__bio {
    font-size: 14px;
    color: #666;
    margin: 8px 0 0;
}

.feed-profile__section-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
}

/* --- Мобильная панель --- */
.feed-mobile-bar {
    display: none;
    gap: 8px;
    margin-bottom: 16px;
}

.feed-mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    cursor: pointer;
    text-decoration: none;
}

.feed-mobile-btn:hover {
    background: #eee;
}

.feed-mobile-btn--write {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
    .feed-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feed-post-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .feed-sidebar--left,
    .feed-sidebar--right {
        display: none;
        position: static;
    }

    .feed-sidebar--left.feed-sidebar--open {
        display: block;
        background: #fafafa;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 16px;
        border: 1px solid #e8e8e8;
    }

    .feed-sidebar--post {
        display: none;
    }

    .feed-mobile-bar {
        display: flex;
    }

    .feed-header .feed-btn--primary {
        display: none;
    }
}

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

    .feed-header__title {
        font-size: 22px;
    }

    .feed-card {
        padding: 16px;
    }

    .feed-card__title {
        font-size: 16px;
    }

    .feed-post__title {
        font-size: 24px;
    }

    .feed-profile__header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .feed-profile__stats {
        justify-content: center;
    }

    .feed-create {
        padding: 10px 0 40px;
    }

    .feed-form__title-input {
        font-size: 18px;
        padding: 12px 16px;
    }

    .feed-form__editor {
        min-height: 240px;
    }

    .feed-form__cover-dropzone {
        min-height: 120px;
    }

    .feed-profile__header {
        padding: 20px;
    }
}

/* --- Галочка верификации --- */
.feed-verified {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}

.feed-verified--sm {
    margin-left: 3px;
}

/* --- Обложка в карточке ленты --- */
.feed-card__cover {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

/* --- Обложка в посте --- */
.feed-post__cover {
    margin: 16px 0 24px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

/* --- Аватар на странице профиля (загрузка) --- */
.feed-profile__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.feed-profile__avatar-form {
    position: absolute;
    bottom: 0;
    right: 0;
}

.feed-profile__avatar-edit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.feed-profile__avatar-edit:hover {
    background: rgba(0, 0, 0, 0.75);
}

.feed-profile__avatar-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

/* --- Форма обложки --- */
.feed-form__cover {
    margin-bottom: 16px;
}

.feed-form__cover-label {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.feed-form__cover-dropzone {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
    min-height: 160px;
}

.feed-form__cover-dropzone:hover,
.feed-form__cover-dropzone--dragover {
    border-color: #c62828;
}

.feed-form__cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: #bbb;
    font-size: 14px;
    text-align: center;
}

.feed-form__cover-placeholder svg {
    color: #ccc;
}

.feed-form__cover-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.feed-form__cover-preview--hidden {
    display: none;
}

.feed-form__cover-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.feed-form__cover-change {
    display: inline-block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.feed-form__cover-change:hover {
    background: rgba(0, 0, 0, 0.8);
}

.feed-form__cover-change input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.feed-form__cover-delete {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #999;
    cursor: pointer;
}

/* End */
/* /local/components/china/feed/templates/.default/style.css?177241575618682 */
