/* Domain: comments, liked, tags (in comments block) */

/*comments*/
.comments__story-more {
    border: 0;
    outline: none;
    color: var(--color-text-muted);
    transition: .1s;
    font-size: .85rem;
    padding: .35rem 0;
    width: 100%;
    background: var(--color-surface-2);
    border-radius: .3rem;
    font-weight: 600;
    margin: .75rem 0 .35rem;
}

.comments__story-more:hover,
.comments__story-more:active,
.comments__story-more:focus {
    color: var(--color-brand);
    background: var(--color-border);
}

.comments__story-more svg {
    width: 17px;
    fill: var(--color-text-muted);
    margin-left: .2rem;
}

.comments__story-more:hover svg,
.comments__story-more:active svg,
.comments__story-more:focus svg {
    fill: var(--color-brand);
}

.spinner__comments-story {
    display: none;
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-bg);
    border-top: 2px solid var(--color-info);
    border-radius: 50%;
    animation: spin_comments_story .4s linear infinite;
    margin-left: .5rem;
}

@keyframes spin_comments_story {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.comments__story {
    padding: 1rem 1.5rem;
}

.comments__item {
    margin-bottom: .8rem;
    display: flex;
}

.comments__item-parent {
    padding-left: 1.5rem;
}

.comments__body {
    width: 100%;
    min-width: 0;
}

.comments__photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    outline: none;
    margin-right: .5rem;
    transition: .2s;
    min-width: 32px;
    display: block;
    flex-shrink: 0;
}

.comments__photo:hover,
.comments__photo:focus-visible {
    opacity: .85;
    box-shadow: 0 0 0 2px var(--color-brand-soft-border);
}

.comments__photo img {
    width: 100%;
    height: 100%;
    background-size: cover;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.comments__content {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}
.comments__text-wrap {
    width: 100%;
}
.comments__title {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.comments__title .comments__menu {
    margin-left: auto;
}

.comments__menu-btn {
    border: 0;
    background: initial;
    border-radius: .3rem;
    padding: 0;
    line-height: 1;
    transition: .2s;
    outline: none;
}

.comments__menu-btn::after {
    display: none;
}

.comments__menu-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text-muted);
    fill: var(--color-text-muted);
    display: block;
    transition: .2s;
}

.comments__menu-btn:hover,
.comments__menu-btn:active,
.comments__menu-btn:focus {
    background: var(--color-surface-2);
}

.comments__menu-list {
    background: var(--color-surface);
    border-radius: .3rem;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.08);
    border: 0;
    padding: .3rem;
    min-width: 8rem;
}

.comments__menu-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .5rem;
    cursor: pointer;
    border: 0;
    line-height: 1;
    border-radius: .3rem;
    transition: .2s;
    font-size: .9rem;
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--color-text);
}

.comments__menu-item > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--color-brand);
    color: var(--color-brand);
}

.comments__menu-item:hover {
    background: var(--color-surface-2);
}

.comments__menu-item:disabled {
    opacity: .55;
    cursor: default;
}

.comments__photo--muted {
    opacity: .55;
    pointer-events: none;
}

.comments__item--deleted .comments__title a,
.comments__item--pending-undo .comments__title a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.comments__deleted {
    margin: .25rem 0 .15rem;
}

.comments__deleted-text {
    margin: 0;
    font-size: .85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.comments__deleted-reason {
    margin: .15rem 0 0;
    font-size: .75rem;
    color: var(--color-text-muted);
}

.comments__undo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin: .25rem 0 .15rem;
}

.comments__undo-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin: 0 0 .8rem;
    padding: .35rem 0 .35rem 40px;
    min-height: 32px;
}

.comments__undo-bar--nested {
    padding-left: 0;
    margin-bottom: .8rem;
}

.comments__undo-text {
    font-size: .85rem;
    color: var(--color-text-muted);
}

.comments__undo-btn {
    border: 0;
    background: transparent;
    color: var(--color-brand);
    font-size: .85rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    transition: .15s;
}

.comments__undo-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.comments__undo-btn:disabled {
    opacity: .55;
    cursor: default;
}

@media (max-width: 767px) {
    .comments__undo-bar {
        padding-left: 1.5rem;
    }
}

.comments__title a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: bold;
    font-size: .7rem;
    transition: .2s;
}

.comments__title a:hover {
    color: var(--color-text);
}

.comments__title-author {
    background: var(--color-brand-soft-border);
    border-radius: .3rem;
    padding: 2px 5px;
}

.comments__text {
    font-size: .9rem;
    line-height: 1.3rem;
    margin: .2rem 0;
    color: var(--color-text);
    white-space: pre-line;
}

.comments__text a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: .8rem;
    transition: .2s;
}

.comments__text a:hover {
    color: var(--color-text-muted);
}

.comments__date {
    font-size: .7rem;
    color: var(--color-text-muted);
}

.comments__edited {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .7rem;
    color: var(--color-text-muted);
    line-height: 1.1rem;
    white-space: nowrap;
}

.comments__edited-icon {
    width: .7rem;
    height: .7rem;
    flex-shrink: 0;
    opacity: .85;
}

.comments__reply-btn {
    border: 0;
    background: initial;
    font-size: .8rem;
    border-radius: .3rem;
    transition: .1s;
    user-select: none;
}

.comments__reply-btn:hover {
    background: var(--color-surface-2);
}

.comments__vote-block {
    display: flex;
    align-items: center;
}

.comments__vote {
    text-decoration: none;
    color: var(--color-text);
    font-size: .8rem;
    padding: .2rem .5rem;
    border-radius: .3rem;
    transition: .1s;
    display: flex;
    border: 0;
    background: initial;
    user-select: none;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.comments__vote svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-text-muted);
    fill: none;
    transform-origin: center;
    transition: transform .15s ease, stroke .15s ease, fill .15s ease;
}

.comments__vote.active svg {
    animation: voteHeartPop .18s ease-out;
    fill: var(--color-danger);
    color: var(--color-danger);
}
.comments__vote-count {
    line-height: 1;
    font-size: .6rem;
    white-space: nowrap;
}

@keyframes voteHeartPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1.08);
    }
}
.comments__vote:hover {
    color: var(--color-danger);
    background: var(--color-danger-soft);
}

.comments__option {
    display: flex;
    align-items: center;
}

.comments__option > button {
    margin-right: .3rem;
}

.comments__form {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: .75rem;
    padding-top: .65rem;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 12px -10px rgba(32, 35, 51, .18);
}

.comments__form-main {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.comments__form textarea,
.comments__form-text {
    border: 1px solid var(--color-border);
    width: 100%;
    border-radius: .45rem;
    padding: .45rem .75rem;
    background: var(--color-surface-2);
    min-height: 0;
    height: auto;
    max-height: 160px;
    resize: none;
    overflow-y: auto;
    font-size: .9rem;
    line-height: 1.35;
    box-sizing: border-box;
}

.comments__form textarea:active,
.comments__form textarea:focus,
.comments__form-text:focus {
    background: var(--color-surface);
    border-color: var(--color-brand-soft-border);
    outline: none;
}

.comments__form-toolbar {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.comments__form-toolbar .comments__form-send {
    margin-left: auto;
}

.comments__form-counter {
    font-size: .75rem;
    color: var(--color-text-muted);
    line-height: 1;
    user-select: none;
}

.comments__form-counter--warn {
    color: var(--color-warning);
}

.comments__form-auth {
    margin: .4rem 0 0;
    font-size: .8rem;
    color: var(--color-text-muted);
}

.comments__form-auth a {
    color: var(--color-brand);
    text-decoration: none;
}

.comments__form-auth a:hover {
    text-decoration: underline;
}

.comments__form-option {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.comments__form-option .comments__form-send {
    margin-left: auto;
}

.comments__images {
    display: flex;
    gap: 10px;
    margin: .45rem 0 .75rem;
    flex-wrap: wrap;
}

.comments__images-item {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: .4rem;
    overflow: hidden;
    transition: opacity .2s;
    background: var(--color-bg);
    flex-shrink: 0;
}

.comments__images-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.comments__images-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments__images-item:hover {
    opacity: .85;
}

.comments__images--single .comments__images-item {
    width: 120px;
    height: 120px;
}

.comments__form-preview {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
}

.comments__form-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: .4rem;
    overflow: hidden;
    background: var(--color-surface-2);
    flex-shrink: 0;
}

.comments__form-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments__form-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-inverse-text);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14px;
    padding: 0;
}

.comments__form-preview-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

.comments__form-upload {
    cursor: pointer;
    padding: 6px 8px;
    border-radius: .4rem;
    transition: background-color .2s, color .2s;
    color: var(--color-text-secondary);
    font-size: .9rem;
    font-weight: 500;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.comments__form-upload:hover {
    background-color: var(--color-surface-2);
    color: var(--color-text);
}

.comments__form-upload svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}

.comments__form-option button,
.comments__form-send {
    background: var(--color-brand);
    font-weight: bold;
    color: var(--color-inverse-text);
    border-radius: .3rem;
    padding: .35rem 1rem;
    border: 0;
    font-size: .85rem;
    transition: .2s;
    user-select: none;
}

.comments__form-option button:hover,
.comments__form-option button:active,
.comments__form-option button:focus,
.comments__form-send:hover,
.comments__form-send:active,
.comments__form-send:focus {
    background: var(--color-brand-hover);
}

.comments__form-option button:disabled,
.comments__form-send:disabled {
    background: var(--color-brand-soft-border);
}

.comments__message {
    text-align: right;
    font-size: .85rem;
    margin: .25rem 0 0;
}

.comments__message--block {
    text-align: left;
}

.comments__message span {
    margin-bottom: .5rem;
    color: var(--color-danger);
}

.comments__vote-error {
    color: var(--color-danger);
    font-size: .75rem;
    margin-top: .2rem;
}

.comments__reply textarea,
.comments__reply-text {
    border: 1px solid var(--color-border);
    width: 100%;
    border-radius: .45rem;
    padding: .4rem .7rem;
    background: var(--color-surface-2);
    min-height: 0;
    max-height: 140px;
    resize: none;
    overflow-y: auto;
    font-size: .85rem;
    line-height: 1.35;
    box-sizing: border-box;
}

.comments__reply textarea:active,
.comments__reply textarea:focus,
.comments__reply-text:focus {
    background: var(--color-surface);
    border-color: var(--color-brand-soft-border);
    outline: none;
}

.comments__reply-option {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.comments__reply-option .comments__reply-send {
    margin-left: auto;
}

.comments__reply-option button {
    background: var(--color-brand);
    font-weight: bold;
    color: var(--color-inverse-text);
    border-radius: .3rem;
    padding: .4rem 1.3rem;
    border: 0;
    font-size: .9rem;
    transition: .2s;
    user-select: none;
}

.comments__reply-option button:hover,
.comments__reply-option button:active,
.comments__reply-option button:focus {
    background: var(--color-brand-hover);
}

.comments__reply-option button:disabled {
    background: var(--color-brand-soft-border);
}

.comments__message-reply {
    font-size: .8rem;
    margin-bottom: .5rem;
}

.comments__message-reply span {
    margin-bottom: .5rem;
    color: var(--color-danger);
}

/* Skeleton РґР»СЏ Р±Р»РѕРєР° РєРѕРјРјРµРЅС‚Р°СЂРёРµРІ (StoryComments.vue) */
.comments__skeleton-row {
    display: flex;
    align-items: center;
    margin-bottom: .6rem;
}

.comments__skeleton-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: .5rem;
    background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-border) 50%, var(--color-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.comments__skeleton-lines {
    flex: 1;
}

.comments__skeleton-line {
    height: 10px;
    border-radius: 6px;
    margin-bottom: .35rem;
    background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-border) 50%, var(--color-bg) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.comments__skeleton-line.short {
    width: 60%;
}

.comments__empty {
    margin: .75rem 0 1rem;
    color: var(--color-text-muted);
    font-size: .9rem;
}

.comments__story-parent-load {
    background: initial;
    font-size: .9rem;
    border: 0;
    color: var(--color-text-secondary);
    border-radius: .3rem;
    line-height: 1rem;
    transition: .2s;
    margin: 0 0 1.3rem 2rem;
    user-select: none;
}

.comments__story-parent-load:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}

.comments__story-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 0 0 .85rem;
    line-height: 1.2;
    font-size: .9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
}

.comments__story-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 999px;
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    font-size: .6rem;
    font-weight: 500;
    line-height: 1;
}

/*comments-end*/
