/**
 * Подборки аниме — стили под светлую/тёмную тему (переменные из common.css).
 */

/* ——— Страница и кнопки ——— */
.ac-page {
	max-width: var(--max-width, 1420px);
	margin: 0 auto;
	padding: 1.25rem var(--indent, 16px) 2.5rem;
	color: var(--tt);
}

.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 1.25rem;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ac-btn--primary,
a.ac-btn--primary {
	background: var(--bg1s);
	color: #fff;
	border-color: var(--bg1s);
}

.ac-btn--primary:hover,
a.ac-btn--primary:hover {
	background: var(--bg-btn-hover);
	color: #fff;
	border-color: var(--bg-btn-hover);
}

.ac-btn--ghost {
	background: var(--ui-bg-darker, var(--fltx));
	color: var(--tt);
	border-color: var(--ui-bdc);
}

.ac-btn--ghost:hover {
	background: var(--ui-bg-darkest, var(--bdc));
	border-color: var(--tt-accent);
	color: var(--tt);
}

.ac-btn--danger {
	background: transparent;
	color: #b91c1c;
	border-color: rgba(185, 28, 28, 0.35);
}

.ac-more {
	margin-top: 1.5rem;
	text-align: center;
}

.ac-empty {
	text-align: center;
	color: var(--tt-2);
	padding: 2rem 1rem;
	grid-column: 1 / -1;
}

/* ——— Шапка списка (как на референсе) ——— */
.ac-toolbar {
	margin-bottom: 1.5rem;
}

.ac-toolbar__top {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1rem;
	margin-bottom: 0.75rem;
}

.ac-toolbar__title-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.45rem;
	text-align: center;
	width: 100%;
}

.ac-toolbar__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.5vw, 1.6rem);
	font-weight: 700;
	color: var(--tt);
	line-height: 1.2;
}

.ac-toolbar__count {
	font-weight: 600;
	color: var(--tt-2);
	margin-left: 0.15em;
}

.ac-toolbar__mine {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 14px 12px;
	margin: 0 0 -1px 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--tt-2);
	border-bottom: 3px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	text-transform: uppercase;
	box-shadow: none;
	transition: color 0.15s, border-color 0.15s;
}

.ac-toolbar__mine:hover {
	color: #c9c9c9;
}

button.ac-toolbar__mine {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 14px 12px;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	box-shadow: none;
	outline: none;
}

button.ac-toolbar__mine:hover {
	color: #c9c9c9;
}

.ac-toolbar__mine.is-active {
	color: var(--tt-accent);
	border-bottom-color: var(--tt-accent);
	background: transparent;
}

.ac-toolbar__toggles {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.ac-toolbar__add {
	position: absolute;
	right: 0;
	top: 0;
}

.ac-toolbar__row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
}

@media screen and (max-width: 700px) {
	.ac-toolbar__add {
		position: static;
	}
}

.ac-toolbar__sort-wrap {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	color: var(--tt-2);
}

.ac-toolbar__sort-icon {
	display: flex;
	opacity: 0.75;
}

.ac-toolbar__sort {
    width: auto;
    max-width: 100%;
    font-size: 14px;
    color: var(--tt);
    cursor: pointer;
}

.dt-is-active .ac-toolbar__sort {
	background-color: var(--fltx);
	border-color: var(--ui-bdc);
	color: var(--tt);
}

/* ——— Сетка карточек ——— */
.ac-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.35rem;
}

.ac-grid > * {
	min-width: 0;
}

@media screen and (max-width: 1100px) {
	.ac-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 560px) {
	.ac-grid {
		grid-template-columns: 1fr;
	}
}

.ac-grid--profile {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.ac-profile-blocks {
	margin-top: 1rem;
}

.ac-profile-cards {
	margin-top: 0.65rem;
}

.ac-profile-cards .ac-card {
	margin-right: 12px;
}

.ac-profile-cards .owl-item .ac-card {
	margin-right: 0;
}

.ac-profile-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 0.65rem;
}

.ac-profile-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: var(--ui-bg);
	box-shadow: 0 4px 18px rgb(129 129 129 / 12%);
}

.ac-profile-item__poster {
	flex: 0 0 96px;
	line-height: 0;
	display: inline-flex;
	text-decoration: none;
}

.ac-profile-item__fan {
	position: relative;
	display: block;
	width: 96px;
	height: 132px;
}

.ac-profile-item__fan-card {
	position: absolute;
	top: 0;
	left: 0;
	width: 78px;
	height: 116px;
	border-radius: 8px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.ac-profile-item__fan-card--1 {
	z-index: 1;
	transform: translateX(0) scale(0.92);
	opacity: 0.75;
}

.ac-profile-item__fan-card--2 {
	z-index: 2;
	transform: translateX(9px) scale(0.96);
	opacity: 0.9;
}

.ac-profile-item__fan-card--3 {
	z-index: 3;
	transform: translateX(18px) scale(1);
}

.ac-profile-item__main {
	flex: 1;
	min-width: 0;
}

.ac-profile-item__title {
	margin: 0 0 0.35rem;
	font-size: 1.02rem;
	line-height: 1.3;
	font-weight: 700;
}

.ac-profile-item__title a {
	color: var(--tt);
	text-decoration: none;
}

.ac-profile-item__title a:hover {
	color: var(--tt-accent);
}

.ac-profile-item__desc {
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--tt-2);
}

/* ——— Карточка подборки ——— */
.ac-card {
	position: relative;
	border-radius: 16px;
	background: var(--ui-bg);
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dt-is-active .ac-card {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ac-card:hover {
	border-color: var(--tt-accent);
	box-shadow: 0 8px 28px rgba(197, 7, 37, 0.12);
}

.dt-is-active .ac-card:hover {
	box-shadow: 0 8px 28px rgba(41, 183, 216, 0.15);
}

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

.ac-card__link:hover {
	color: inherit;
}

.ac-card__inner {
	padding: 1.15rem 1.15rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ac-card__name {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--tt);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 100%;
}

.ac-card__stats-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1rem;
	margin-bottom: 1rem;
	width: 100%;
}

.ac-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--tt-2);
}

.ac-card__ico {
	flex-shrink: 0;
	opacity: 0.85;
}

.ac-card__stat-val {
	color: var(--tt);
	font-variant-numeric: tabular-nums;
}

/* Веер постеров */
.ac-card__fan {
	position: relative;
	width: 100%;
	padding: 0 0.5rem 1.1rem;
	min-height: 190px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.ac-card__fan-inner {
	position: relative;
	width: 100%;
	max-width: 220px;
	height: 110px;
	margin: 0 auto;
}

.ac-card__fan-img {
	position: absolute;
	bottom: 0;
	width: 52%;
	padding-top: 74%;
	border-radius: 10px;
	background: var(--ui-bg-darkest) center / cover no-repeat;
	border: 2px solid var(--ui-bg);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease;
}

.ac-card__fan-img--empty {
	left: 50%;
	transform: translateX(-50%);
	width: 45%;
	padding-top: 64%;
	background: linear-gradient(135deg, var(--ui-bg-darker), var(--ui-bg-darkest));
	border: 1px dashed var(--ui-bdc);
	box-shadow: none;
}

.ac-card__fan-pos--1 {
	left: 4%;
	z-index: 1;
	transform: rotate(-6deg) translateY(4px);
}

.ac-card__fan-pos--2 {
	left: 50%;
	z-index: 3;
	transform: translateX(-50%) translateY(-4px);
	width: 56%;
	padding-top: 80%;
}

.ac-card__fan-pos--3 {
	right: 4%;
	z-index: 2;
	transform: rotate(6deg) translateY(4px);
}

.ac-card:hover .ac-card__fan-pos--1 {
	transform: rotate(-8deg) translateY(2px);
}

.ac-card:hover .ac-card__fan-pos--3 {
	transform: rotate(8deg) translateY(2px);
}

.ac-card__author {
	margin: 0;
	padding: 0 1rem 1rem;
	font-size: 0.75rem;
	color: var(--tt-2);
	text-align: center;
	line-height: 1.35;
}

.ac-card__author-lbl {
	opacity: 0.85;
}

.ac-card__author-name {
	color: var(--tt-2);
	font-weight: 500;
}

/* ——— Просмотр / редактор (одиночная страница) ——— */
.ac-page--single .ac-title,
.ac-page--edit .ac-title,
.ac-page--userlist .ac-title {
	color: var(--tt);
}

.ac-page--userlist .ac-title {
	text-align: center;
	margin-bottom: 30px;
}

.ac-head,
.ac-single-head {
	margin-bottom: 1.25rem;
}

.ac-sort {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ac-sort__link {
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	border: 1px solid var(--ui-bdc);
	background: var(--ui-bg-darker);
	color: var(--tt);
	font-size: 0.875rem;
	text-decoration: none;
}

.ac-sort__link:hover {
	border-color: var(--tt-accent);
	color: var(--tt-accent);
}

.ac-sort__link.is-active {
	background: rgba(197, 7, 37, 0.12);
	border-color: var(--bg1s);
	color: var(--bg1s);
}

.dt-is-active .ac-sort__link.is-active {
	background: rgba(41, 183, 216, 0.15);
	border-color: var(--tt-accent);
	color: var(--tt-accent);
}

.ac-anime-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.ac-anime-item {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1rem;
	border-radius: 12px;
	background: var(--ui-bg);
	box-shadow: 0 4px 18px rgb(129 129 129 / 15%);
	align-items: stretch;
}

.ac-anime-item__head {
	width: 100%;
}

.ac-anime-item__title {
	margin: 0 0 0.45rem;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
}

.ac-anime-item__title a {
	color: var(--tt);
	text-decoration: none;
}

.ac-anime-item__title a:hover {
	color: var(--tt-accent);
}

.ac-anime-item__title-year {
	font-weight: 600;
	color: var(--tt-2);
	white-space: nowrap;
}

.ac-anime-item__body {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	width: 100%;
}

.ac-anime-item__poster {
	flex-shrink: 0;
	line-height: 0;
}

.ac-anime-item__poster img {
	border-radius: 8px;
	display: block;
	width: 110px;
	height: auto;
	max-height: 210px;
	object-fit: cover;
}

.ac-anime-item__main {
	min-width: 0;
	flex: 1;
}

.ac-anime-item__amd-desc {
	margin-top: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--tt);
}

.ac-hint {
	color: var(--tt-2);
	font-size: 0.9rem;
}

/* ——— Комментарии ——— */
.ac-comments {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ui-bdc);
}

.ac-comments__title {
	font-size: 1.25rem;
	margin: 0 0 1rem;
	color: var(--tt);
}

.ac-page--single .ac-comm-form-wrap {
	margin-bottom: 1.25rem;
}

.ac-comm-sort {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.ac-sort-pill {
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--ui-bdc);
	background: var(--ui-bg-darker);
	color: var(--tt);
	cursor: pointer;
	font: inherit;
}

.ac-sort-pill.is-active {
	background: rgba(197, 7, 37, 0.12);
	border-color: var(--bg1s);
	color: var(--bg1s);
}

.dt-is-active .ac-sort-pill.is-active {
	background: rgba(41, 183, 216, 0.15);
	border-color: var(--tt-accent);
	color: var(--tt-accent);
}

/* Не flex: иначе ломается float у .commenty как в обычных комментариях */
.ac-comm-list {
	display: block;
}

.ac-comm-item {
	padding: 0.75rem 1rem;
	border-radius: 12px;
	background: var(--ui-bg-darker);
	border: 1px solid var(--ui-bdc);
}

.ac-comm-head {
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

.ac-comm-head a {
	color: var(--tt-accent);
}

.ac-comm-date {
	color: var(--tt-2);
	font-size: 0.85rem;
}

.ac-comm-text {
	line-height: 1.45;
	word-break: break-word;
	color: var(--tt);
}

.ac-comm-actions {
	margin-top: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.ac-comm-like,
.ac-comm-reply,
.ac-comm-del {
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: var(--tt);
	padding: 0.2rem 0.4rem;
	border-radius: 6px;
}

.ac-comm-like:hover,
.ac-comm-reply:hover {
	background: var(--ui-bg-darkest);
}

.ac-comm-like.is-on {
	color: var(--bg1s);
	font-weight: 600;
}

.dt-is-active .ac-comm-like.is-on {
	color: var(--tt-accent);
}

.ac-comm-del {
	color: #b91c1c;
}

.ac-comm-form {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 640px;
}

.ac-comm-ta {
	width: 100%;
	min-height: 80px;
	padding: 0.6rem 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--ui-bdc);
	background: var(--fltx);
	color: var(--tt);
	font: inherit;
	resize: vertical;
}

.ac-comm-empty {
	color: var(--tt-2);
	margin: 0;
}

/* Редактор */
.ac-edit-form .ac-input,
.ac-edit-form .ac-textarea,
.ac-search .ac-input {
	background: var(--fltx);
	color: var(--tt);
	border: 1px solid var(--ui-bdc);
	border-radius: 10px;
}

.ac-label {
	color: var(--tt);
}

.ac-edit-item {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem 1rem;
	padding: 1rem 1.1rem;
	background: var(--ui-bg);
	border: 1px solid var(--ui-bdc);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* ——— Сортировка (кастомный вид select) ——— */
.ac-toolbar__sort-wrap {
	position: relative;
}

.ac-toolbar__sort {
	appearance: none;
    -webkit-appearance: none;
    min-width: 180px;
    height: 30px;
    padding: 0 2.5rem 0 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    background: none;
}

.dt-is-active .ac-toolbar__sort {
	background-color: var(--fltx);
	border-color: var(--ui-bdc);
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

/* ——— Карточка v2 ——— */
.ac-card--v2 {
	box-shadow: 0 4px 18px rgb(129 129 129 / 15%);
	overflow: visible;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.ac-card--v2 .ac-card__inner {
	flex: 1 1 auto;
	min-height: 0;
	padding: 1rem 1rem 1.15rem;
	align-items: stretch;
	text-align: left;
}

.ac-card__title-bar {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem 0.5rem;
	width: 100%;
	margin-bottom: 0.5rem;
}

/* Узкий столбец под карандаш / пустой баланс; заголовок забирает всю оставшуюся ширину */
.ac-card__title-bar > .ac-card__edit-link,
.ac-card__title-bar > .ac-card__edit-spacer:first-child {
	flex: 0 0 1.5rem;
	box-sizing: border-box;
}

.ac-card__title-bar > .ac-card__edit-spacer:first-child {
	min-height: 1px;
}

/* Заголовок отдельным блоком сверху; веер постеров ниже, без наслоения */
.ac-card__title-bar--top {
	position: relative;
	z-index: auto;
	margin-bottom: 0.15rem;
	padding-bottom: 0.35rem;
	background: var(--ui-bg);
}

.ac-card__edit-link {
	position: relative;
	z-index: auto;
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	line-height: 1;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--tt-accent);
	text-decoration: none;
	white-space: nowrap;
}

.ac-card__edit-link i {
	font-size: 1.05rem;
}

.ac-card__edit-link:hover {
	opacity: 0.82;
}

.ac-card__edit-spacer {
	display: block;
}

.ac-card__title-center {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.25rem 0.35rem;
}

.ac-card__year {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--tt-2);
}

.ac-card--v2 .ac-card__name {
	margin: 0;
	display: inline;
	-webkit-line-clamp: unset;
	text-align: center;
	font-size: 1.05rem;
	max-width: 100%;
}

.ac-card__title-link {
	color: inherit;
	text-decoration: none;
}

.ac-card__title-link:hover {
	color: var(--tt-accent);
}

.ac-card__fan-hit {
	display: block;
	text-decoration: none;
	color: inherit;
	margin: 0.35rem 0 0.35rem;
	position: relative;
	z-index: auto;
}

.ac-card__fan-img--blur {
	filter: blur(5px) saturate(0.85);
	opacity: 0.55;
	transform-origin: center bottom;
}

/* Боковые постеры веера — без blur/opacity, только трансформации */
.ac-card__fan-img--side {
	transform-origin: center bottom;
}

.ac-card--v2 .ac-card__fan-pos--2 {
	filter: none;
	opacity: 1;
}

.ac-card--v2 .ac-card__fan-inner {
	max-width: 220px;
	height: 180px;
}

.ac-card--v2 .ac-card__fan {
	padding-left: 0.35rem;
	padding-right: 0.35rem;
	padding-top: 0.5rem;
}

/* Список /anime-collections/: аватар автора подборки 65×65 */
.ac-page--list .ac-card--v2 .ac-card__avatar-wrap {
	width: 65px;
	height: 65px;
}

.ac-page--list .ac-card--v2 .ac-card__avatar-letter {
	font-size: 1.45rem;
}

.ac-card__amd-desc {
	margin: 0.5rem 0 0.75rem;
	width: 100%;
	text-align: left;
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--tt);
}

.ac-card__author-block {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	padding-top: 0.25rem;
	border-top: 1px solid var(--ui-bdc);
}

.ac-card--v2 .ac-card__author-block {
	margin-top: auto;
}

.ac-card__avatar-wrap {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ui-bg-darker);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ac-card__avatar-wrap--letter {
	background: linear-gradient(135deg, var(--bg1s), #7f1d1d);
}

.ac-card__avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ac-card__avatar-letter {
	font-size: 1.35rem;
	font-weight: 700;
	color: #fff;
}

.ac-card__author-meta {
	flex: 1;
	min-width: 0;
}

.ac-card__nick {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--tt);
	text-decoration: none;
	display: inline-block;
	margin-bottom: 0.15rem;
}

.ac-card__nick:hover {
	color: var(--tt-accent);
}

.ac-card__subline {
	font-size: 0.8rem;
	color: var(--tt-2);
	margin-bottom: 0.35rem;
}

.ac-card__fa-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	font-size: 0.8125rem;
	color: var(--tt-2);
}

.ac-card__fa-stat {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	color: var(--tt);
}

.ac-card__fa-stat i {
	opacity: 0.85;
	width: 1.1em;
	text-align: center;
}

/* ——— Страница подборки ——— */
.ac-single-title-row {
	display: grid;
	grid-template-columns: minmax(5rem, 1fr) minmax(0, 5fr) minmax(5rem, 1fr);
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.ac-single-edit-link {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--tt-accent);
	text-decoration: none;
}

.ac-single-edit-link i {
	font-size: 1.05rem;
}

.ac-single-edit-link:hover {
	opacity: 0.82;
}

.ac-single-all-link {
	justify-self: end;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tt-accent);
	text-decoration: none;
	white-space: nowrap;
}

.ac-single-all-link:hover {
	text-decoration: underline;
}

.ac-single-title-center {
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.35rem;
}

.ac-single-year {
	font-size: 1rem;
	font-weight: 600;
	color: var(--tt-2);
}

.ac-single-title {
	margin: 0;
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--tt);
}

.ac-single-amd-desc {
	margin: 0 0 1rem;
	text-align: left;
}

.ac-single-amd-tags {
	margin-bottom: 1rem;
}

.ac-single-author-row {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--ui-bdc);
}

.ac-single-avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ui-bg-darker);
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ac-page--single .ac-single-avatar {
	width: 95px;
	height: 95px;
}

.ac-page--single .ac-single-avatar--letter {
	font-size: 2rem;
}

.ac-single-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ac-single-avatar--letter {
	background: linear-gradient(135deg, var(--bg1s), #4c0519);
	font-size: 1.75rem;
	font-weight: 800;
	color: #fff;
}

.ac-single-author-main {
	flex: 1;
	min-width: 0;
}

.ac-single-nick {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--tt);
	text-decoration: none;
	display: inline-block;
	margin-bottom: 0.2rem;
}

.ac-single-nick:hover {
	color: var(--tt-accent);
}

.ac-single-sub {
	font-size: 0.9rem;
	color: var(--tt-2);
	margin-bottom: 0.5rem;
}

.ac-single-stat-icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
}

.ac-single-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tt-2);
}

.ac-ico-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: 0;
	background: var(--fltx);
	color: var(--tt);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.35rem 0.65rem;
	border-radius: 10px;
	cursor: pointer;
	border: 1px solid var(--ui-bdc);
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ac-ico-toggle:hover {
	border-color: var(--tt-accent);
}

.ac-ico-toggle.is-on {
	color: var(--bg1s);
	border-color: rgba(177, 0, 33, 0.45);
	background: rgba(177, 0, 33, 0.06);
}

.dt-is-active .ac-ico-toggle.is-on {
	color: var(--tt-accent);
	border-color: var(--tt-accent);
	background: rgba(41, 183, 216, 0.08);
}

/* Страница подборки: 4 счётчика в одном стиле — без рамки/фона, крупнее, ховер = смена цвета */
.ac-page--single .ac-single-stat-icons {
	gap: 0.55rem 1rem;
}

.ac-page--single .ac-single-stat-icons .ac-single-stat-pill,
.ac-page--single .ac-single-stat-icons .ac-ico-toggle {
	font-size: 1rem;
	font-weight: 600;
	gap: 0.45rem;
	color: var(--tt-2);
}

.ac-page--single .ac-single-stat-icons .ac-single-stat-pill {
	transition: color 0.15s ease;
}

.ac-page--single .ac-single-stat-icons .ac-single-stat-pill:hover {
	color: var(--tt-accent);
}

.ac-page--single .ac-single-stat-icons i {
	font-size: 1.22rem;
	line-height: 1;
	vertical-align: middle;
}

.ac-page--single .ac-single-stat-icons .ac-ico-toggle {
	background: transparent;
	border: none;
	padding: 0.1rem 0;
	border-radius: 0;
	box-shadow: none;
	transition: color 0.15s ease;
}

.ac-page--single .ac-single-stat-icons .ac-ico-toggle:hover {
	background: transparent;
	border: none;
	color: var(--tt-accent);
}

.ac-page--single .ac-single-stat-icons .ac-ico-toggle.is-on {
	background: transparent;
	border: none;
	color: var(--tt-accent);
}

.ac-page--single .ac-single-stat-icons .ac-ico-toggle.is-on:hover {
	color: var(--tt-accent);
	opacity: 0.92;
}

.dt-is-active .ac-page--single .ac-single-stat-icons .ac-ico-toggle.is-on {
	background: transparent;
	border: none;
	color: var(--tt-accent);
}

.ac-page--single .ac-single-stat-icons .ac-ico-toggle:focus-visible {
	outline: 2px solid var(--tt-accent);
	outline-offset: 3px;
}

/* ——— Список аниме (мутный постер) ——— */
.ac-anime-item__poster--blur {
	flex-shrink: 0;
	width: 100px;
	height: 142px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ui-bg-darker);
}

.ac-anime-item__poster-img {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	filter: blur(6px);
	transform: scale(1.06);
	transition: filter 0.25s ease, transform 0.25s ease;
}

.ac-anime-item:hover .ac-anime-item__poster-img {
	filter: blur(0);
	transform: scale(1);
}

.ac-anime-item__amd-tags {
	margin: 0 0 1.5rem;
}

.ac-anime-item__year {
	font-size: 0.85rem;
	color: var(--tt-2);
	margin-bottom: 0.35rem;
}

/* ——— Комментарии: как в шаблоне fullstory ——— */
.ac-comments.page__comments-block {
	margin-top: 2rem;
	padding-top: 0;
	border-top: none;
}

/* Заголовок «Комментарии» всегда над формой и списком (перебивает стили fullstory) */
.ac-page--single #ac-comments.ac-comments.page__comments-block {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	clear: both;
}

.ac-page--single .ac-comments__title.ac-comments__title--first,
.ac-page--single .ac-comments.page__comments-block > .page__comments-title {
	order: 0;
	float: none !important;
	clear: both;
	width: 100%;
	position: relative;
	z-index: 2;
	margin: 0 0 1rem;
}

.ac-page--single .ac-comments.page__comments-block > .ac-comm-form-wrap,
.ac-page--single .ac-comments.page__comments-block > .ac-hint {
	order: 1;
	clear: both;
}

.ac-page--single .ac-comments.page__comments-block > .ac-comm-list {
	order: 2;
	clear: both;
}

.ac-comm-tree {
	margin: 0;
	padding: 0;
}

.ac-comm-like-fa {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 0.875rem;
	color: var(--tt-2);
	padding: 0.15rem 0.35rem;
	border-radius: 8px;
}

.ac-comm-like-fa:hover {
	background: var(--ui-bg-darker);
	color: var(--tt);
}

.ac-comm-like-fa.is-on {
	color: var(--bg1s);
}

.ac-comm-reply-link {
	text-decoration: none;
}

.ac-comm-reply-link .cb {
	color: inherit;
}

.ac-comm-report-link {
	text-decoration: none;
}

.ac-comm-report-link .cb {
	color: inherit;
}

.ac-comments .bodycomm.ac-comm-reply-target,
.ac-comments .bodycommpre.ac-comm-reply-target {
	outline: 2px solid var(--tt-accent);
	box-shadow: 0 0 0 3px rgba(41, 183, 216, 0.2);
}

/* Премиум: шапка как у обычных комментов (comments.tpl) — без «съезда» от margin-left на .comm-authorpremium */
.ac-comments .comment-item__header .comment-item__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	min-width: 0;
}
.ac-comments .comment-item__header .comm-authorpremium {
	margin-left: 0;
	margin-bottom: 0;
	line-height: 1.35;
}
.ac-comments .comment-item__header .group-icon {
	float: none;
	flex-shrink: 0;
}

/* Фон текста: у Premium (.bodycommpre) те же пресеты/плитка, что у .bodycomm в styles.css */
.ac-comments .bodycommpre[data-comm-bg-dark] {
	background-repeat: repeat;
	background-size: auto;
}
.ac-comments .bodycommpre.comm-bg-1 {
	background-color: transparent;
	background-image: url(/uploads/commfon/svg/1.svg);
	background-repeat: repeat;
	background-size: auto;
}
.ac-comments .bodycommpre.comm-bg-1::before {
	border-top-color: transparent;
}
body.dt-is-active .ac-comments .bodycommpre.comm-bg-1 {
	background-image: url(/uploads/commfon/svg/1d.svg);
	background-repeat: repeat;
	background-size: auto;
}
.ac-comments .bodycommpre[data-comm-bg-dark^="/"]::before {
	border-top-color: transparent;
}

/* Карточка комментария: clearfix + колонка с аватаром как на fullstory */
.ac-comments .comment-item {
	display: block;
	overflow: visible;
}
.ac-comments .comment-item::after {
	content: "";
	display: table;
	clear: both;
}
.ac-comments .commenty {
	float: left;
}

.amd-ac-comm-form-anchor {
	height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	pointer-events: none;
}

.amd-ac-reply-modal .comment-reply-modal__box {
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
}
.amd-ac-reply-modal-slot .ac-comm-form-wrap,
.amd-ac-reply-modal-slot .js-ac-comm-form-panel {
	margin: 0;
}

.amd-ac-complaint-modal .js-amd-ac-complaint-ta {
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.5rem;
	min-height: 120px;
	resize: vertical;
}
.amd-ac-complaint-modal__actions {
	margin-top: 1rem;
	text-align: right;
}

/* ——— Редактор: поля и живой поиск ——— */
.ac-edit-page-title {
	margin-bottom: 1.25rem;
}

.ac-edit-form--nice {
	max-width: 720px;
	margin-bottom: 2rem;
}

.ac-edit-fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ac-edit-form--nice .ac-label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ac-label__text {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tt-2);
}

.ac-edit-form--nice .ac-input,
.ac-edit-form--nice .ac-textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border-radius: 12px;
	font-size: 15px;
}

.ac-autosave-hint {
	font-size: 0.85rem;
	color: var(--tt-2);
	margin: 0.5rem 0 0;
}

.ac-editor-block-title {
	font-size: 1.25rem;
	margin: 0 0 0.35rem;
}

.ac-editor-hint {
	margin-bottom: 1rem;
}

.ac-editor-items {
	margin-top: 0.5rem;
}

.ac-search--live {
	position: relative;
	max-width: 640px;
	margin-bottom: 1.25rem;
}

.ac-search--live .ac-search__input {
	width: 100%;
	min-width: 0;
	height: 44px;
	box-sizing: border-box;
	padding: 0 1rem;
	font-size: 15px;
	border-radius: 12px;
}

.ac-search__drop {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	z-index: 20;
	max-height: 280px;
	overflow-y: auto;
	background: var(--ui-bg);
	border: 1px solid var(--ui-bdc);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	display: none;
	padding: 0.35rem 0;
}

.ac-search__drop.is-open {
	display: block;
}

.ac-search-hit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid var(--ui-bdc);
}

.ac-search-hit:last-child {
	border-bottom: 0;
}

.ac-search-hit__title {
	flex: 1;
	min-width: 0;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--tt);
}

.ac-edit-item__drag {
	cursor: grab;
	color: var(--tt-2);
	padding: 0.25rem;
	display: flex;
	align-items: center;
}

.ac-edit-item__thumb-wrap {
	flex-shrink: 0;
	width: 48px;
	height: 68px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--ui-bg-darker);
}

.ac-edit-item__thumb-blur {
	display: block;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transform: scale(1.08);
}

.ac-edit-item__thumb-blur--empty {
	filter: none;
	transform: none;
	background: linear-gradient(135deg, var(--ui-bg-darker), var(--ui-bg-darkest));
}

.ac-edit-item__title {
	flex: 1;
	min-width: 140px;
	font-weight: 600;
	font-size: 0.95rem;
}

.ac-edit-item__note {
	flex: 2 1 200px;
	min-height: 52px;
	min-width: 0;
}

.ac-btn--danger-outline {
	background: transparent;
	color: var(--bg1s);
	border: 1px solid rgba(177, 0, 33, 0.55);
}

.ac-btn--danger-outline:hover {
	background: rgba(177, 0, 33, 0.08);
}

.ac-danger-zone {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--ui-bdc);
}

.ac-edit-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--ui-bdc);
}

/* Модалка «лимит подборок» (coll_limit) */
.amd-ac-limit-modal .amd-ac-limit-modal__text {
	margin: 0 0 0.25rem;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--tt);
}

.amd-ac-limit-modal .amd-ac-limit-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 1.15rem;
}

/* ——— Главная: блок «Подборки» (топ за вчера) ——— */
.ac-home-coll {
	margin-top: 3rem;
	margin-bottom: 0.5rem;
	padding-top: 10px;
	padding-bottom: 16px;
	overflow: visible;
}

.ac-home-coll__head {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 30px;
}

.ac-home-coll__title {
	margin: 0;
	text-align: center;
	max-width: 100%;
}

.ac-home-coll__title-link {
	color: inherit;
	text-decoration: none;
}

.ac-home-coll__title-link:hover {
	color: var(--tt-accent);
	text-decoration: underline;
}

.ac-home-coll__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.85rem;
	justify-items: stretch;
	align-items: stretch;
	overflow: visible;
}

@media (max-width: 1100px) {
	.ac-home-coll__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.ac-home-coll__grid {
		grid-template-columns: 1fr;
	}
}

.ac-card--home {
	box-shadow: 0 4px 18px rgb(129 129 129 / 15%);
	border-radius: 14px;
	overflow: hidden;
	background: var(--ui-bg);
	width: 100%;
	max-width: none;
	height: 100%;
	min-height: 300px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ac-card__inner--home {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0.85rem 0.75rem 0.65rem;
	min-height: auto;
	text-align: left;
	gap: 0.5rem;
}

/* Статистика + постеры прижаты к низу карточки (одинаковая линия постеров в ряду) */
.ac-card__home-bottom {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

.ac-card__name--home {
	margin: 0;
	padding-bottom: 0.15rem;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	min-height: calc(16px * 1.35 * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: left;
	position: relative;
	z-index: 2;
}

.ac-card__fa-stats--home {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0.4rem;
	margin-bottom: 0.4rem;
}

.ac-card__fa-stats--home .ac-card__fa-stat {
	background: var(--ui-bg-darker);
	border-radius: 999px;
	padding: 0.22rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.ac-card__fa-stats--home .ac-card__fa-stat i {
	font-size: 1.08rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ac-card__fan-hit--home {
	margin-left: -0.75rem;
	margin-right: -0.75rem;
	width: calc(100% + 1.5rem);
	max-width: none;
	position: relative;
	z-index: 1;
}

.ac-card__fan--home {
	padding: 0.35rem 0.45rem 0.85rem;
	overflow: visible;
	border-radius: 0 0 14px 14px;
}

.ac-card__fan-inner--home {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 138px;
	margin: 0 auto;
	overflow: visible;
}

/* Компактный веер: помещается в карточку без обрезки */
.ac-card--home .ac-card__fan-img {
	width: 34%;
	padding-top: 48%;
	border-width: 1px;
	border-radius: 8px;
}

.ac-card--home .ac-card__fan-pos--1 {
	left: 6%;
	transform: rotate(-4deg) translateY(2px);
}

.ac-card--home .ac-card__fan-pos--2 {
	width: 40%;
	padding-top: 55%;
	transform: translateX(-50%) translateY(0);
	filter: none;
	opacity: 1;
}

.ac-card--home .ac-card__fan-pos--3 {
	right: 6%;
	transform: rotate(4deg) translateY(2px);
}

.ac-card--home:hover .ac-card__fan-pos--1 {
	transform: rotate(-5deg) translateY(1px);
}

.ac-card--home:hover .ac-card__fan-pos--3 {
	transform: rotate(5deg) translateY(1px);
}
