.fnc-comments {
	width: 100%;
}

.fnc-comments__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.fnc-comments__count {
	font-size: 0.875rem;
	color: var(--fnc-muted, #8a8f98);
}

.fnc-comments__form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.fnc-comments__field textarea {
	width: 100%;
	min-height: 5rem;
	resize: vertical;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	background: rgba(0, 0, 0, 0.18);
	color: inherit;
	font: inherit;
}

.fnc-comments__form-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
	width: 100%;
}

.fnc-comments__form-extras {
	display: flex;
	align-items: center;
	gap: 2px;
	order: -1;
}

.fnc-comments__feedback {
	flex: 1 1 auto;
	margin: 0;
	min-width: 0;
	color: var(--fnc-muted, #8a8f98);
	font-size: 0.9375rem;
}

.fnc-comments__feedback.is-error {
	color: #ff8a80;
}

.fnc-comments__feedback.is-ok {
	color: #8de4a9;
}

.fnc-comments button.fnc-comments__submit {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	flex: 0 0 auto;
	margin: 0 0 0 auto;
	padding: 0.62rem 1.1rem !important;
	min-height: 2.35rem;
	width: auto !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 10px !important;
	background: linear-gradient(180deg, #1a1d24 0%, #101218 100%) !important;
	color: rgba(245, 248, 255, 0.96) !important;
	font: inherit;
	font-size: 0.88rem !important;
	font-weight: 650 !important;
	line-height: 1 !important;
	letter-spacing: 0.01em;
	cursor: pointer;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 4px 14px rgba(0, 0, 0, 0.28) !important;
	transition:
		transform 0.15s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		background 0.18s ease;
}

.fnc-comments button.fnc-comments__submit:hover,
.fnc-comments button.fnc-comments__submit:focus-visible {
	outline: none;
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.24) !important;
	background: linear-gradient(180deg, #22262f 0%, #141820 100%) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.08) inset,
		0 8px 18px rgba(0, 0, 0, 0.34) !important;
}

.fnc-comments__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
}

.fnc-comments__submit-icon svg {
	display: block;
	width: 16px;
	height: 16px;
	opacity: 0.92;
}

.fnc-comments__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.fnc-comments__login-hint {
	color: var(--fnc-muted, #8a8f98);
	font-size: 0.9375rem;
}

.fnc-comments__closed {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border: 1px dashed var(--fnc-border, #2a2d34);
	border-radius: 0.75rem;
	background: var(--fnc-surface-2, rgba(255, 255, 255, 0.03));
	color: var(--fnc-muted, #8a8f98);
	font-size: 0.9375rem;
	text-align: center;
}

.fnc-comments__loading {
	display: none;
}

.fnc-comments__skeleton {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	padding: 0.95rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	list-style: none !important;
}

.fnc-comments__skeleton:first-child {
	border-top: 0;
}

.fnc-comments__skeleton--1 { opacity: 1; }
.fnc-comments__skeleton--2 { opacity: 0.66; }
.fnc-comments__skeleton--3 { opacity: 0.33; }

.fnc-comments__skeleton--reply {
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 0.65rem;
	padding: 0.65rem 0;
	border-top: 0;
}

.fnc-comments__skeleton--reply .fnc-comments__skeleton-avatar {
	width: 32px;
	height: 32px;
}

.fnc-comments__skeleton-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.06) 0%,
		rgba(255, 255, 255, 0.14) 50%,
		rgba(255, 255, 255, 0.06) 100%
	);
	background-size: 200% 100%;
	animation: fnc-comments-shimmer 1.2s ease-in-out infinite;
}

.fnc-comments__skeleton-lines {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding-top: 0.15rem;
}

.fnc-comments__skeleton-line {
	display: block;
	height: 0.72rem;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.05) 0%,
		rgba(255, 255, 255, 0.12) 50%,
		rgba(255, 255, 255, 0.05) 100%
	);
	background-size: 200% 100%;
	animation: fnc-comments-shimmer 1.2s ease-in-out infinite;
}

.fnc-comments__skeleton-line--short { width: 34%; }
.fnc-comments__skeleton-line--medium { width: 72%; }
.fnc-comments__skeleton-line:not(.fnc-comments__skeleton-line--short):not(.fnc-comments__skeleton-line--medium) { width: 92%; }

@keyframes fnc-comments-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.fnc-comments__menu {
	position: relative;
	flex: 0 0 auto;
}

.fnc-comments button.fnc-comments__menu-trigger {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(168, 178, 198, 0.82) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.08em;
	cursor: pointer;
}

.fnc-comments button.fnc-comments__menu-trigger:hover,
.fnc-comments button.fnc-comments__menu-trigger:focus-visible,
.fnc-comments__menu.is-open .fnc-comments__menu-trigger {
	outline: none;
	color: rgba(245, 248, 255, 0.96) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}

.fnc-comments__menu-panel {
	position: absolute;
	top: calc(100% + 0.25rem);
	right: 0;
	z-index: 20;
	min-width: 9.5rem;
	padding: 0.35rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	background: rgba(16, 18, 24, 0.98);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.fnc-comments button.fnc-comments__menu-item {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0.55rem 0.7rem !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(245, 248, 255, 0.94) !important;
	font: inherit;
	font-size: 0.875rem !important;
	font-weight: 550 !important;
	line-height: 1.25 !important;
	text-align: left;
	cursor: pointer;
}

.fnc-comments button.fnc-comments__menu-item i {
	width: 1rem;
	flex: 0 0 auto;
	text-align: center;
	font-size: 0.78rem;
	opacity: 0.88;
}

.fnc-comments button.fnc-comments__menu-item:hover,
.fnc-comments button.fnc-comments__menu-item:focus-visible {
	outline: none;
	background: rgba(255, 255, 255, 0.06) !important;
}

.fnc-comments button.fnc-comments__menu-item--delete {
	color: #ff8a80 !important;
}

.fnc-comments__item-actions {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 0.2rem 0.55rem;
	margin-top: 0.25rem;
	width: 100%;
}

.fnc-comments button.fnc-comments__reply-btn,
.fnc-comments button.fnc-comments__view-replies-btn,
.fnc-comments a.fnc-comments__view-replies-btn,
.fnc-comments button.fnc-comments__like-btn {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(132, 142, 162, 0.88) !important;
	font: inherit;
	font-size: 0.8125rem !important;
	font-weight: 550 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	flex: 0 0 auto;
}

.fnc-comments button.fnc-comments__reply-btn:hover,
.fnc-comments button.fnc-comments__reply-btn:focus-visible,
.fnc-comments button.fnc-comments__view-replies-btn:hover,
.fnc-comments button.fnc-comments__view-replies-btn:focus-visible,
.fnc-comments a.fnc-comments__view-replies-btn:hover,
.fnc-comments a.fnc-comments__view-replies-btn:focus-visible,
.fnc-comments button.fnc-comments__like-btn:hover,
.fnc-comments button.fnc-comments__like-btn:focus-visible {
	outline: none;
	color: rgba(168, 178, 198, 0.96) !important;
	text-decoration: underline;
}

.fnc-comments a.fnc-comments__view-replies-btn {
	text-decoration: none;
}

.fnc-comments button.fnc-comments__like-btn i {
	font-size: 0.875rem;
	line-height: 1;
}

.fnc-comments__item-actions .fnc-like-group--comment {
	flex: 0 0 auto;
	align-items: center;
	margin-right: 0.35rem;
}

.fnc-comments__item-actions .fnc-like-group--comment .fnc-comments__like-btn {
	padding: 0.35rem 0.45rem !important;
	min-height: 1.85rem !important;
}

.fnc-comments__item-actions .fnc-like-group--comment .fnc-like-group__likers {
	color: rgba(132, 142, 162, 0.88) !important;
	font-size: 0.8125rem !important;
	font-weight: 550 !important;
	padding: 0.35rem 0.65rem 0.35rem 0.5rem !important;
	min-height: 1.85rem !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 6px;
}

.fnc-comments__item-actions .fnc-like-group--comment .fnc-like-group__likers:hover,
.fnc-comments__item-actions .fnc-like-group--comment .fnc-like-group__likers:focus-visible {
	color: rgba(168, 178, 198, 0.96) !important;
	background: rgba(255, 255, 255, 0.04) !important;
}

.fnc-comments__reply-count {
	font-size: 0.8125rem;
	color: rgba(132, 142, 162, 0.82);
	flex: 0 0 auto;
}

.fnc-comments__replies-more-wrap {
	margin-top: 0.45rem;
}

.fnc-comments button.fnc-comments__replies-more {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(132, 142, 162, 0.88) !important;
	font: inherit;
	font-size: 0.8125rem !important;
	font-weight: 550 !important;
	line-height: 1.2 !important;
	cursor: pointer;
}

.fnc-comments button.fnc-comments__replies-more:hover,
.fnc-comments button.fnc-comments__replies-more:focus-visible {
	outline: none;
	color: rgba(168, 178, 198, 0.96) !important;
	text-decoration: underline;
}

.fnc-comments__reply-form {
	margin-top: 0.65rem;
}

.fnc-comments__replies {
	list-style: none !important;
	margin: 0.75rem 0 0;
	padding: 0 0 0 0.35rem;
	border-left: 2px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fnc-comments__item--reply {
	padding: 0.75rem 0 0;
	border-top: 0;
}

.fnc-comments__item--reply .fnc-comments__item-layout {
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 0.65rem;
}

.fnc-comments__item--reply .fnc-comments__avatar,
.fnc-comments__item--reply .fnc-comments__avatar--fallback {
	width: 32px;
	height: 32px;
}

.fnc-comments__pagination {
	margin-top: 1rem;
}

.fnc-comments__pagination .pagination {
	justify-content: center;
}

.fnc-comments button.fnc-comments__delete {
	display: none;
}

.fnc-comments__list {
	list-style: none !important;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.fnc-comments__list > li {
	list-style: none !important;
}

.fnc-comments__list > .fnc-comments__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4.25rem;
	padding: 1.1rem 1.35rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.14);
	text-align: center;
	color: rgba(168, 178, 198, 0.92);
	font-size: 0.95rem;
	line-height: 1.45;
}

.fnc-comments__item {
	padding: 0.75rem 0 0.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fnc-comments__item + .fnc-comments__item {
	margin-top: 0.15rem;
}

.fnc-comments__item:first-child {
	border-top: 0;
	padding-top: 0.35rem;
}

.fnc-comments__item-layout {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
}

.fnc-comments__avatar-wrap {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
}

.fnc-comments__avatar {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.08);
}

.fnc-comments__avatar--fallback {
	display: block;
}

.fnc-comments__item-main {
	min-width: 0;
}

.fnc-comments__item-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.65rem;
}

.fnc-comments__author-block {
	min-width: 0;
	flex: 1 1 auto;
}

.fnc-comments__author-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	min-width: 0;
}

.fnc-comments__author {
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1.25;
	color: inherit;
	text-decoration: none;
}

.fnc-comments__author:hover {
	text-decoration: underline;
}

.fnc-comments__badges {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 0.15rem;
}

.fnc-comments__badges .profile-app-badge {
	flex: 0 0 auto;
	vertical-align: middle;
}

.fnc-comments__badges .profile-app-badge--icon,
.fnc-comments__badges .profile-app-badge.icon {
	width: 1.42rem;
	height: 1.42rem;
	flex: 0 0 1.42rem;
}

.fnc-comments__badges .profile-app-badge--icon .profile-app-badge__gem,
.fnc-comments__badges .profile-app-badge.icon .profile-app-badge__gem {
	width: 100%;
	height: 100%;
}

.fnc-comments__badges .profile-app-badge--icon .profile-app-badge__gem i,
.fnc-comments__badges .profile-app-badge.icon .profile-app-badge__gem i {
	font-size: 0.68rem;
}

.fnc-comments__time {
	font-size: 0.8125rem;
	line-height: 1.25;
	color: rgba(168, 178, 198, 0.82);
	white-space: nowrap;
}

.fnc-comments__status {
	display: block;
	margin-top: 0.12rem;
	font-size: 0.72rem;
	line-height: 1.25;
	color: rgba(168, 178, 198, 0.88);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fnc-comments__body {
	margin-top: 0.35rem;
	margin-bottom: 0;
	line-height: 1.55;
	word-break: break-word;
	color: rgba(245, 248, 255, 0.94);
}

.fnc-comments__body--sticker {
	line-height: 0;
}

.fnc-comments__sticker-media {
	display: inline-block;
	max-width: 140px;
}

button.fnc-comments__sticker-open {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 140px;
	border: none !important;
	border-radius: 10px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: inherit !important;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	transform: none !important;
	filter: none !important;
	cursor: pointer;
	line-height: 0;
}

button.fnc-comments__sticker-open:hover,
button.fnc-comments__sticker-open:focus-visible {
	background: rgba(124, 58, 237, .12) !important;
	transform: none !important;
	filter: none !important;
	box-shadow: none !important;
}

.fnc-comments__sticker-img {
	display: block;
	width: 120px;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	pointer-events: none;
}

.fnc-comments__body .fnc-link {
	color: #6ea8fe;
	text-decoration: none;
	word-break: break-all;
}
.fnc-comments__body .fnc-link:hover { text-decoration: underline; }

.fnc-comments button.fnc-comments__delete {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 auto;
	margin: 0;
	padding: 0.2rem 0.45rem !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(168, 178, 198, 0.75) !important;
	font-size: 1.15rem !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.fnc-comments button.fnc-comments__delete:hover,
.fnc-comments button.fnc-comments__delete:focus-visible {
	outline: none;
	color: #ff8a80 !important;
	background: rgba(255, 138, 128, 0.08) !important;
}

.fnc-comments button.fnc-comments__more {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0.5rem 1rem !important;
	min-height: 0 !important;
	border: 1px solid rgba(255, 255, 255, 0.16) !important;
	border-radius: 999px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
}

.fnc-comments button.fnc-comments__more:hover,
.fnc-comments button.fnc-comments__more:focus-visible {
	outline: none;
	border-color: rgba(255, 255, 255, 0.28) !important;
	background: rgba(255, 255, 255, 0.04) !important;
}

.fnc-comments__more-wrap {
	margin-top: 1rem;
	display: flex;
	justify-content: center;
}

.fnc-comments__more:disabled {
	opacity: 0.6;
	cursor: wait;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fnc-comments__item.fnc-comments__item--highlight {
	animation: fnc-comments-highlight 3.2s ease-out;
	border-radius: 0.5rem;
}

@keyframes fnc-comments-highlight {
	0%,
	18% {
		background-color: rgba(255, 196, 64, 0.24);
		box-shadow: inset 0 0 0 1px rgba(255, 196, 64, 0.5);
	}

	100% {
		background-color: transparent;
		box-shadow: none;
	}
}
