/* палитра animedia -> yummy для окна «Кабинет» и всех страниц профиля (30.09.2026):
   их стили взяты с animedia и ждут её переменные */
.amedia_login.um, .up {
	--fltx: var(--bg-color-second); --bg: var(--bg-color); --bg-2: var(--bg-color);
	--tt: var(--third-text-color); --tt-2: var(--secondary-text-color); --tt-fade: rgba(255,255,255,.5);
	--tt-accent: var(--primary-color); --accent: var(--primary-color); --accent-anim: var(--primary-color);
	--bg1s: var(--primary-color); --ui-bg: var(--bg-color-second); --ui-bg-darker: #2a2a2a;
	--bgsm1: linear-gradient(135deg, var(--primary-color-darker), var(--primary-color));
	--bdc: rgba(255,255,255,.12);
}
body.light .amedia_login.um, body.light .up {
	--fltx: #f2f2f2; --bg: #fff; --bg-2: #fff; --tt: #161616; --tt-2: #666; --tt-fade: rgba(0,0,0,.5);
	--ui-bg: #fff; --ui-bg-darker: #f3f3f3; --bdc: rgba(0,0,0,.1);
}
/* Профиль пользователя (userinfo.tpl) — 27.09.2026.
   Цвета только из переменных темы: светлая (красный акцент) и тёмная
   (.dt-is-active, бирюзовый) подхватываются сами. */
.up { min-width: 0; width: 100%; max-width: 100%; grid-column: 1 / -1; --up-r: 14px; --up-card: var(--bg); --up-soft: var(--fltx); --up-line: var(--bdc); color: var(--tt); }
.up *, .up *::before, .up *::after { box-sizing: border-box; }

/* --- шапка */
.up-hero { background: var(--up-card); border-radius: var(--up-r); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.08); margin-bottom: 24px; }
.up-cover { position: relative; height: 190px; background: var(--bgsm1); background-size: cover; background-position: center; }
.up-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.35)); pointer-events: none; }
.up-cover__tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 2; }
.up-cover__tools form { margin: 0; }
.up .up-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; cursor: pointer;
	background: rgba(0,0,0,.45); color: #fff; font: inherit; font-size: 13px; backdrop-filter: blur(6px); transition: background .2s; }
.up .up-chip:hover { background: rgba(0,0,0,.65); }
.up .up-chip--icon { width: 34px; padding: 0; justify-content: center; }

.up-head { display: flex; align-items: flex-end; gap: 22px; padding: 0 28px; margin-top: -58px; position: relative; z-index: 3; flex-wrap: wrap; }
.up-ava { position: relative; width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%; padding: 5px; background: var(--up-card); }
.up-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--up-soft); }
.up-ava.is-online::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 18px; height: 18px; border-radius: 50%;
	background: #2ecc71; border: 3px solid var(--up-card); }
.up-ava__form { margin: 0; }
.up-ava__edit { position: absolute; inset: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
	background: rgba(0,0,0,.5); color: #fff; font-size: 26px; opacity: 0; transition: opacity .2s; }
.up-ava:hover .up-ava__edit { opacity: 1; }

.up-id { flex: 1 1 260px; min-width: 0; padding-bottom: 6px; }
.up-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--tt); }
.up-name > span { overflow-wrap: anywhere; }
.up-badge { --up-g: var(--tt-accent); display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 13px; font-weight: 700;
	color: var(--up-g); background: color-mix(in srgb, var(--up-g) 14%, transparent); border: 1px solid color-mix(in srgb, var(--up-g) 40%, transparent); }
.up-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--tt-2); font-weight: 400; }
.up-meta i { margin-right: 4px; opacity: .8; }
.up-seen { display: inline-flex; align-items: center; gap: 7px; }
.up-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tt-2); opacity: .6; }
.up-seen.is-online { color: #27ae60; }
.up-seen.is-online .up-dot { background: #2ecc71; opacity: 1; box-shadow: 0 0 0 4px rgba(46,204,113,.2); }

.up-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 10px; }
.up-actions form { margin: 0; }
.up .up-btn, .up-actions .us2-act-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 21px; border: 0; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; background: var(--tt-accent); transition: filter .2s, transform .2s; }
.up .up-btn:hover, .up-actions .us2-act-btn:hover { filter: brightness(1.1); color: #fff; transform: translateY(-1px); }
.up .up-btn--ghost, .up-actions .us2-act-btn--quiet { background: var(--up-soft); color: var(--tt); box-shadow: inset 0 0 0 1px var(--up-line); }
.up .up-btn--ghost:hover, .up-actions .us2-act-btn--quiet:hover { color: var(--tt); }
.up-actions .us2-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.up-stats { display: flex; flex-wrap: wrap; margin-top: 22px; border-top: 1px solid var(--up-line); }
.up-stat { flex: 1 1 120px; background: var(--up-card); box-shadow: 1px 1px 0 var(--up-line); padding: 16px 12px; text-align: center; text-decoration: none; color: var(--tt); display: block; }
.up-stat b { display: block; font-size: 22px; font-weight: 700; color: var(--tt-accent); line-height: 1.1; }
.up-stat span { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--tt-2); }
.up-stat--link:hover { background: var(--up-soft); }

/* --- колонки */
.up-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.up-box { background: var(--up-card); border-radius: var(--up-r); padding: 22px 24px; margin-bottom: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.up-h { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 19px; font-weight: 700; color: var(--tt); }
.up-h i { color: var(--tt-accent); }
.up-h em { font-style: normal; font-size: 13px; color: var(--tt-2); background: var(--up-soft); border-radius: 10px; padding: 2px 8px; }

/* --- вкладки списков */
.up-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.up .up-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px; border: 0; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 700; color: var(--tt); background: var(--up-soft); box-shadow: inset 0 0 0 1px var(--up-line); transition: background .2s, color .2s; }
.up .up-tab b { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; font-size: 12px; line-height: 22px; background: var(--up-card); color: var(--tt-2); }
.up .up-tab:hover { color: var(--tt-accent); }
.up .up-tab.is-active { background: var(--tt-accent); color: #fff; box-shadow: none; }
.up .up-tab.is-active b { background: rgba(255,255,255,.22); color: #fff; }
.up-pane { display: none; }
.up-pane.is-active { display: block; animation: upFade .25s ease; }
@keyframes upFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 16px; }
.up-card { display: block; text-decoration: none; color: var(--tt); }
.up-card__img { position: relative; display: block; aspect-ratio: 163 / 228; border-radius: 10px; overflow: hidden; background: var(--up-soft); }
.up-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.up-card:hover .up-card__img img { transform: scale(1.05); }
.up-card__score { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px;
	background: rgba(0,0,0,.65); color: #ffd23f; font-size: 12px; font-weight: 700; }
.up-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 14px; line-height: 1.3; font-weight: 700; }
.up-card:hover .up-card__title { color: var(--tt-accent); }
.up-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 10px; text-align: center; color: var(--tt-2); font-weight: 400; }
.up-empty i { font-size: 34px; opacity: .6; }
.up-note { margin-top: 14px; text-align: center; color: var(--tt-2); font-weight: 400; }

/* --- комментарии */
.up-coms { display: grid; gap: 10px; }
.up-com { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 10px; background: var(--up-soft); text-decoration: none; color: var(--tt); }
.up-com:hover { box-shadow: inset 0 0 0 1px var(--tt-accent); }
.up-com__title { font-weight: 700; color: var(--tt-accent); }
.up-com__date { font-size: 12px; color: var(--tt-2); font-weight: 400; white-space: nowrap; }
.up-com__text { grid-column: 1 / -1; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--tt); }

/* --- сайдбар */
.up-facts { list-style: none; margin: 0; padding: 0; }
.up-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--up-line); font-size: 14px; }
.up-facts li:last-child { border-bottom: 0; }
.up-facts span { color: var(--tt-2); font-weight: 400; }
.up-facts b { text-align: right; }
.up-about { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--up-soft); font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.up-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; color: var(--tt-accent); text-decoration: none; }
.up-link:hover { text-decoration: underline; }
.up-friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.up-friend { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--tt); min-width: 0; }
.up-friend__ava { position: relative; width: 56px; height: 56px; }
.up-friend__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--up-soft); }
.up-friend__ava.is-online::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid var(--up-card); }
.up-friend__name { max-width: 100%; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-friend:hover .up-friend__name { color: var(--tt-accent); }

/* --- телефон */
@media (max-width: 1100px) { .up-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
	.up-cover { height: 130px; }
	.up-head { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; margin-top: -54px; gap: 12px; }
	.up-id { flex: none; width: 100%; padding-bottom: 0; }
	.up-actions { padding-bottom: 0; }
	.up-ava { width: 108px; height: 108px; }
	.up-name { justify-content: center; font-size: 23px; }
	.up-meta { justify-content: center; }
	.up-actions { justify-content: center; }
	.up-box { padding: 18px 16px; border-radius: 12px; }
	.up-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.up-card__title { font-size: 12px; }
	.up-stat { flex-basis: 33%; }
	.up-stat b { font-size: 19px; }
}
@media (max-width: 420px) { .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- настройки (profile/settings.tpl) */
.up-set__head { margin-bottom: 20px; }
.up-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--tt-2); text-decoration: none; font-weight: 700; }
.up-back:hover { color: var(--tt-accent); }
.up-set__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.up-snav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--up-r); background: var(--up-card); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.up-snav__item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--tt); text-decoration: none; font-weight: 700; }
.up-snav__item i { width: 18px; text-align: center; color: var(--tt-2); }
.up-snav__item:hover { background: var(--up-soft); }
.up-snav__item.is-active { background: var(--tt-accent); color: #fff; }
.up-snav__item.is-active i { color: #fff; }
.up-form { display: grid; gap: 16px; }
.up-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.up-field { display: grid; gap: 7px; min-width: 0; }
.up-field > span { font-size: 13px; color: var(--tt-2); font-weight: 700; }
.up-field > em { font-style: normal; font-size: 12px; color: var(--tt-2); font-weight: 400; }
.up .up-field input, .up .up-field select, .up .up-field textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 10px; border: 0;
	background: var(--up-soft); color: var(--tt); box-shadow: inset 0 0 0 1px var(--up-line); font: inherit; font-size: 15px; font-weight: 400; }
.up .up-field textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.up .up-field input:focus, .up .up-field select:focus, .up .up-field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--tt-accent); }
.up .up-field input:disabled { opacity: .65; }
.up-submit { display: flex; justify-content: flex-end; }
.up-hint { margin-top: 10px; font-size: 13px; color: var(--tt-2); font-weight: 400; line-height: 1.45; }
.up-media { display: flex; flex-wrap: wrap; gap: 10px; }
.up-media form { margin: 0; }
.up-alert { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 20px; border-radius: 12px; font-weight: 700; }
.up-alert--ok { background: rgba(46,204,113,.14); color: #27ae60; }
.up-alert--err { background: rgba(231,76,60,.14); color: #e74c3c; }
.up-switch { position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 400; }
.up-switch input { position: absolute; opacity: 0; pointer-events: none; }
.up-switch > span { flex-shrink: 0; width: 44px; height: 24px; border-radius: 12px; background: var(--up-line); position: relative; transition: background .2s; box-shadow: inset 0 0 0 1px var(--up-line); }
.up-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.up-switch input:checked + span { background: var(--tt-accent); }
.up-switch input:checked + span::after { transform: translateX(20px); }
.up-devices { display: grid; gap: 10px; }
.up-devices .user__device { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--up-soft); }
.up-devices .user__device > span { font-size: 20px; color: var(--tt-accent); width: 24px; text-align: center; }
.up-devices .user__device-name { font-weight: 700; }
.up-devices .user__device-meta { font-size: 12px; color: var(--tt-2); font-weight: 400; margin-top: 3px; }
@media (max-width: 900px) {
	.up-set__body { grid-template-columns: 1fr; }
	.up-snav { position: static; flex-direction: row; overflow-x: auto; }
	.up-snav__item { flex-shrink: 0; }
	.up-row2 { grid-template-columns: 1fr; }
}

/* --- меню пользователя (login.tpl, вошедший) — окно темы, своё содержимое */
.amedia_login.um { width: 440px; max-width: calc(100% - 32px); padding: 0; border-radius: 18px; background: var(--bg); color: var(--tt); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.um-head { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 22px 20px; background: var(--bgsm1); color: #fff; }
.um-ava { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; padding: 3px; background: rgba(255,255,255,.35); }
.um-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
.um-id { min-width: 0; flex: 1; }
.um-name { display: block; font-size: 19px; font-weight: 700; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um-sub { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 400; color: rgba(255,255,255,.85); text-decoration: none; }
.um-sub:hover, .um-name:hover { color: #fff; text-decoration: underline; }
.amedia_login.um .um-close { position: absolute; top: 12px; right: 14px; margin: 0; color: #fff; opacity: .8; font-size: 20px; }
.um-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; }
.um-grid a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 12px; background: var(--fltx);
	color: var(--tt); text-decoration: none; font-size: 13px; font-weight: 700; text-align: center; box-shadow: inset 0 0 0 1px var(--bdc); transition: transform .2s, box-shadow .2s; }
.um-grid a i { font-size: 22px; color: var(--tt-accent); }
.um-grid a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--tt-accent); color: var(--tt); }
.um-grid a b { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; line-height: 20px; background: var(--tt-accent); color: #fff; }
.um-grid a b:empty, .um-grid a b.um-num:empty { display: none; }
.um-foot { display: flex; gap: 10px; padding: 0 18px 18px; }
.um-foot a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 14px; }
.um-admin { background: var(--tt-accent); color: #fff; }
.um-admin:hover { filter: brightness(1.1); color: #fff; }
.um-exit { background: var(--fltx); color: var(--tt); box-shadow: inset 0 0 0 1px var(--bdc); }
.um-exit:hover { color: #e74c3c; }
@media (max-width: 420px) { .um-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- личные сообщения (messenger.tpl + js/messenger-am.js) */
.pm { display: grid; grid-template-columns: 340px minmax(0, 1fr); width: 100%; max-width: 100%; height: min(78vh, 760px); min-height: 480px; border-radius: var(--up-r); overflow: hidden;
	background: var(--up-card); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.pm-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--up-line); }
.pm-side__head { padding: 20px 20px 12px; }
.pm-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; color: var(--tt); }
.pm-title i { color: var(--tt-accent); }
.pm-search { position: relative; display: block; margin: 0 16px 12px; }
.pm-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tt-2); }
.up .pm-search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 0; border-radius: 21px; background: var(--up-soft); color: var(--tt); font: inherit; font-weight: 400; box-shadow: inset 0 0 0 1px var(--up-line); }
.up .pm-search input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--tt-accent); }
.pm-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 12px; }
.pm-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--tt); }
.pm-item:hover { background: var(--up-soft); }
.pm-item.is-active { background: color-mix(in srgb, var(--tt-accent) 12%, transparent); }
.pm-ava { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.pm-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: var(--up-soft); }
.pm-ava.is-online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid var(--up-card); }
.pm-item__body { min-width: 0; flex: 1; }
.pm-item__top { display: flex; justify-content: space-between; gap: 8px; }
.pm-item__top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-item__top em { flex-shrink: 0; font-style: normal; font-size: 12px; color: var(--tt-2); font-weight: 400; }
.pm-item__last { display: block; margin-top: 3px; font-size: 13px; color: var(--tt-2); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-item.is-unread .pm-item__last { color: var(--tt); font-weight: 700; }
.pm-badge { flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--tt-accent); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.pm-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--tt-2); font-weight: 400; }
.pm-empty i { font-size: 30px; opacity: .6; }

.pm-chat { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.pm-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; color: var(--tt-2); font-weight: 400; }
.pm-placeholder i { font-size: 54px; color: var(--tt-accent); opacity: .5; }
.pm-placeholder b { font-size: 18px; color: var(--tt); }
.pm-conv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pm-conv[hidden], .pm-placeholder[hidden] { display: none; }
.pm-conv__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--up-line); }
.up .pm-back, .up .pm-menu__btn { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tt); font-size: 18px; cursor: pointer; }
.up .pm-back:hover, .up .pm-menu__btn:hover { background: var(--up-soft); }
.pm-back { display: none; }
.pm-peer { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; color: var(--tt); }
.pm-peer .pm-ava { width: 42px; height: 42px; }
.pm-peer__id { min-width: 0; display: flex; flex-direction: column; }
.pm-peer__id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-peer__id em { font-style: normal; font-size: 12px; color: var(--tt-2); font-weight: 400; }
.pm-peer__id em.is-online { color: #27ae60; }
.pm-peer:hover b { color: var(--tt-accent); }
.pm-menu { position: relative; }
.pm-menu__pop { position: absolute; right: 0; top: 46px; z-index: 5; min-width: 220px; padding: 6px; border-radius: 12px; background: var(--up-card); box-shadow: 0 12px 30px rgba(0,0,0,.2), 0 0 0 1px var(--up-line); }
.up .pm-menu__pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--tt); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.up .pm-menu__pop button:hover { background: var(--up-soft); }
.pm-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; background: var(--up-soft); }
.pm-day { align-self: center; margin: 10px 0 4px; padding: 4px 12px; border-radius: 12px; font-size: 12px; color: var(--tt-2); background: var(--up-card); font-weight: 400; }
.pm-msg { max-width: min(75%, 560px); align-self: flex-start; padding: 9px 13px 6px; border-radius: 16px 16px 16px 4px; background: var(--up-card); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pm-msg.is-my { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--tt-accent); color: #fff; }
.pm-msg__text { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; line-height: 1.45; font-size: 15px; }
.pm-msg__meta { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; opacity: .7; font-weight: 400; }
.pm-note { padding: 10px 16px; font-size: 13px; text-align: center; background: var(--up-soft); color: var(--tt-2); border-top: 1px solid var(--up-line); }
.pm-note--err { color: #e74c3c; }
.pm-note--warn { color: #d68910; }
.pm-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--up-line); }
.pm-form[hidden] { display: none; }
.up .pm-form textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 16px; border: 0; border-radius: 22px; resize: none; background: var(--up-soft); color: var(--tt);
	font: inherit; font-size: 15px; font-weight: 400; line-height: 1.4; box-shadow: inset 0 0 0 1px var(--up-line); }
.up .pm-form textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--tt-accent); }
.up .pm-send { width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--tt-accent); color: #fff; font-size: 16px; cursor: pointer; transition: transform .15s, filter .2s; }
.up .pm-send:hover { filter: brightness(1.1); transform: scale(1.05); }
.pm-form.is-busy .pm-send { opacity: .6; pointer-events: none; }
@media (max-width: 760px) {
	.pm { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 150px); min-height: 420px; border-radius: 12px; }
	.pm-side { border-right: 0; }
	.pm .pm-chat { display: none; }
	.pm.is-chat .pm-side { display: none; }
	.pm.is-chat .pm-chat { display: flex; }
	.pm-back { display: inline-block; }
	.pm-msgs { padding: 12px; }
	.pm-msg { max-width: 85%; }
}

/* тонкие полосы прокрутки в сообщениях (глобальная полоса темы — 11px акцентом) */
.pm-list, .pm-msgs, .up-tabs { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--tt-2) 45%, transparent) transparent; }
.pm-list::-webkit-scrollbar, .pm-msgs::-webkit-scrollbar, .up-tabs::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
.pm-list::-webkit-scrollbar-thumb, .pm-msgs::-webkit-scrollbar-thumb, .up-tabs::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--tt-2) 45%, transparent); border-radius: 3px; }

/* колонки не распираются содержимым (строка вкладок прокручивается внутри) */
.up-main, .up-side, .up-box, .up-set__main, .up-grid { min-width: 0; }
.up-set__body { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 900px) { .up-set__body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
	.up-tabs { flex-wrap: wrap; overflow: visible; }
	.up .up-tab { flex: 1 1 auto; justify-content: center; height: 38px; padding: 0 12px; font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
	.up-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 24px; }
	.up-side .up-box { margin-bottom: 0; }
}

/* --- статистика (stats.tpl) */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.st-head .up-name { margin: 0; }
.st-head .up-name i { color: var(--tt-accent); margin-right: 6px; }
.st-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.st-kv { list-style: none; margin: 0; padding: 0; }
.st-kv li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--up-line); font-size: 14px; }
.st-kv li:last-child { border-bottom: 0; }
.st-kv span { color: var(--tt-2); font-weight: 400; }
.st-kv b { font-size: 20px; color: var(--tt-accent); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.st-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; background: var(--up-soft); box-shadow: inset 0 0 0 1px var(--up-line); color: var(--tt); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.st-tile i { font-size: 22px; color: var(--tt-accent); }
.st-tile b { font-size: 26px; line-height: 1.1; }
.st-tile span { font-size: 13px; color: var(--tt-2); font-weight: 400; }
a.st-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--tt-accent); color: var(--tt); }
.st-table { overflow-x: auto; }
.st .dle-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.st .dle-table thead td { padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--tt-2); border-bottom: 1px solid var(--up-line); white-space: nowrap; }
.st .dle-table tbody td, .st .dle-table tr:not(:first-child) td { padding: 12px; border-bottom: 1px dashed var(--up-line); font-weight: 400; white-space: nowrap; }
.st .dle-table tr:last-child td { border-bottom: 0; }
.st .dle-table a { color: var(--tt-accent); font-weight: 700; text-decoration: none; }
.st .dle-table a:hover { text-decoration: underline; }
.st .dle-table tr:hover td { background: var(--up-soft); }
@media (max-width: 900px) { .st-periods { grid-template-columns: minmax(0, 1fr); gap: 0; } }
@media (max-width: 760px) {
	.st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.st-tile { padding: 14px; }
	.st-tile b { font-size: 22px; }
	.st-head { margin-bottom: 16px; }
}

/* таблица «Самые активные»: снять рамки/заливку общих таблиц темы */
.up.st .dle-table, .up.st .dle-table tr, .up.st .dle-table td, .up.st .dle-table thead { border: 0; background: none; box-shadow: none; }
.up.st .dle-table thead td { color: var(--tt-2); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--up-line); }
.up.st .dle-table tbody tr td, .up.st .dle-table > tr td { padding: 13px 12px; border-bottom: 1px dashed var(--up-line); }
.up.st .dle-table tr:hover td { background: var(--up-soft); }
.up.st .dle-table td:first-child { text-align: left; }

/* «Порядок просмотра» на странице тайтла (fullstory.tpl, [worldart-parts]) */
.amedia_fr-list.am-wo { display: flex; flex-direction: column; }
.am-wo .amedia_fr { cursor: default; padding-top: 8px; padding-bottom: 8px; }
.am-wo .amedia_fr__title { height: auto; line-height: 1.35; white-space: normal; }
.am-wo .amedia_fr.is-active .amedia_fr__title { color: var(--tt-accent); font-weight: 700; }
.am-wo-meta { margin-top: 2px; font-size: 12px; color: var(--tt-2); font-weight: 400; }
.am-wo-hidden { display: none !important; }
.am-wo.is-open .am-wo-hidden { display: flex !important; }
.am-wo-more { margin-top: 10px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--fltx); color: var(--tt-accent);
	font: inherit; font-weight: 700; cursor: pointer; box-shadow: inset 0 0 0 1px var(--bdc); }
.am-wo-more:hover { box-shadow: inset 0 0 0 1px var(--tt-accent); }

/* --- уведомления DLE (DLEPush / jGrowl) в цветах темы (27.09.2026: «уведа корявая»).
   Селектор с body — сильнее engine.css темы, который грузится позже. */
body .DLEPush { top: 16px; right: 16px; left: auto; max-width: calc(100vw - 32px); }
body .DLEPush-notification.wrapper { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto; align-items: stretch;
	width: 380px; min-width: 0; max-width: 100%; margin-bottom: 10px; padding: 0; border-radius: 14px; overflow: hidden;
	background: var(--bg); color: var(--tt); box-shadow: 0 14px 40px rgba(0,0,0,.25), 0 0 0 1px var(--bdc); font-family: inherit; }
body .DLEPush-notification .DLEPush-icon { grid-column: 1; grid-row: 1 / span 2; width: auto; height: auto; min-height: 100%; border-radius: 0;
	display: flex; align-items: center; justify-content: center; color: #fff; background: var(--tt-accent); }
body .DLEPush-notification .DLEPush-icon svg { width: 22px; height: 22px; scale: 1; }
body .DLEPush-notification .DLEPush-header { grid-column: 2; grid-row: 1; margin: 14px 40px 0 14px; font-size: 15px; font-weight: 700; }
body .DLEPush-notification .DLEPush-header:empty { display: none; }
body .DLEPush-notification .DLEPush-message { grid-column: 2; grid-row: 2; align-self: center; margin: 14px 40px 14px 14px; font-size: 14px; font-weight: 400; line-height: 1.45; }
body .DLEPush-notification .DLEPush-header:empty + .DLEPush-message { grid-row: 1 / span 2; }
body .DLEPush-notification .DLEPush-close { top: 50%; right: 12px; transform: translateY(-50%); font-size: 20px; color: var(--tt-2); opacity: .8; }
body .DLEPush-notification .DLEPush-close:hover { color: var(--tt); opacity: 1; }
body .DLEPush-notification.wrapper.push-success .DLEPush-icon { background: #27ae60; }
body .DLEPush-notification.wrapper.push-warning .DLEPush-icon { background: #f39c12; }
body .DLEPush-notification.wrapper.push-error .DLEPush-icon { background: #e74c3c; }
body .DLEPush-notification.wrapper.push-success, body .DLEPush-notification.wrapper.push-warning,
body .DLEPush-notification.wrapper.push-error { background: var(--bg); }
body .DLEPush .DLEPush-closer { display: none; }
@media (max-width: 600px) { body .DLEPush { left: 16px; } body .DLEPush-notification.wrapper { width: 100%; } }

/* animedia (28.09.2026): у DLE «Новые серии» рядом с плеером были только на
   компьютере ([desktop] в fullstory.tpl). Движок отдаёт вариант «компьютер»
   (кэш страниц общий для всех устройств), телефонную раскладку делаем тут. */
@media screen and (max-width: 760px) {
    .amedia_player_blok .amedia_posled_ser { display: none; }
    .amedia_player_blok { display: block; }
}

/* ===== Комментарии (animedia, 28.09.2026) — comments.tpl, блок .amc ===== */
.amc { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 0 0 12px;
    background: var(--ui-bg, #2f2336); border-radius: 12px; border: 1px solid rgba(255,255,255,.04); }
.amc__ava { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: rgba(0,0,0,.2); }
.amc__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amc__main { flex: 1 1 auto; min-width: 0; }
.amc__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.amc__who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.amc .amc__author, .amc .amc__author a { font-size: 14px; font-weight: 700; color: var(--tt, #e4e4e4); text-decoration: none; }
.amc .amc__author a:hover { color: var(--accent-anim, #996bb8); }
.amc__count { font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 9px; color: var(--tt, #e4e4e4);
    background: rgba(153,107,184,.22); white-space: nowrap; }
.amc__count .fal { font-size: 10px; opacity: .8; }
.amc__date { font-size: 12px; opacity: .55; white-space: nowrap; }
.amc__rating { display: flex; gap: 6px; margin-left: auto; }
.amc__rating a { text-decoration: none; }
.amc__vote { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 26px;
    padding: 0 10px; border-radius: 13px; background: rgba(255,255,255,.06); color: var(--tt, #e4e4e4); transition: background .15s; }
.amc__vote--up .fal { color: #3fb97a; }
.amc__vote--down .fal { color: #e2455b; }
.amc__rating a:hover .amc__vote--up { background: rgba(63,185,122,.18); }
.amc__rating a:hover .amc__vote--down { background: rgba(226,69,91,.18); }
.amc__news:empty { display: none; }
.amc__news { margin: 4px 0 0; font-size: 12px; opacity: .8; }
.amc__news a { color: var(--accent-anim, #996bb8); }
.amc__text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; word-wrap: break-word; overflow-wrap: anywhere; }
.amc__text img { max-width: 100%; height: auto; }
.amc__foot { display: flex; gap: 14px; margin: 8px 0 0; font-size: 12px; }
.amc__foot a { text-decoration: none; }
.amc__act { opacity: .6; cursor: pointer; transition: opacity .15s; }
.amc__foot a:hover .amc__act { opacity: 1; color: var(--accent-anim, #996bb8); }
.amc__act--del { color: #e2455b; }
/* ответы — со сдвигом и линией слева */
.comments-tree-item .comments-tree-item .amc, .amc.is-reply, .comments-tree-list .comments-tree-list .amc { margin-left: 28px; }
:root:not(.dt-is-active) .amc, body:not(.dt-is-active) .amc { border-color: rgba(0,0,0,.06); }
body:not(.dt-is-active) .amc__vote { background: rgba(0,0,0,.05); }
@media screen and (max-width: 590px) {
    .amc { padding: 12px; gap: 10px; }
    .amc__ava { flex-basis: 38px; width: 38px; height: 38px; }
    .amc__rating { margin-left: 0; width: 100%; }
    .comments-tree-item .comments-tree-item .amc, .amc.is-reply, .comments-tree-list .comments-tree-list .amc { margin-left: 14px; }
}
/* тема (styles.css грузится позже) задаёт .amedia_comment-item min-height:160px и свои отступы */
.amc.amedia_comment-item { min-height: 0; padding: 14px 16px; margin: 0 0 12px; }
@media screen and (max-width: 590px) { .amc.amedia_comment-item { padding: 12px; } }

/* ===== Фильтр (animedia, 28.09.2026) — main-filter.tpl, блок .amf ===== */
.amf.amedia_filter-block { padding: 18px 20px 20px; border-radius: 14px; background: var(--ui-bg, #2f2336);
    border: 1px solid rgba(255,255,255,.05); }
.amf .amf__form { display: block; }
.amf__head { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 16px; }
.amf__title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.amf__title .fal { color: var(--accent-anim, #996bb8); }
.amf__types { display: flex; flex-wrap: wrap; gap: 8px; }
.amf__chip { position: relative; cursor: pointer; margin: 0; }
.amf__chip input { position: absolute; opacity: 0; pointer-events: none; }
.amf__chip span { display: inline-block; padding: 6px 14px; border-radius: 16px; font-size: 13px; line-height: 18px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); transition: background .15s, border-color .15s, color .15s; }
.amf__chip:hover span { border-color: var(--accent-anim, #996bb8); }
.amf__chip input:checked + span { background: var(--bg1s, #c50725); border-color: var(--bg1s, #c50725); color: #fff; }
.amf__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.amf__cell { min-width: 0; }
.amf__label { font-size: 12px; opacity: .65; margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amf .amf__cell > select, .amf .amf__cell .tail-select { width: 100% !important; margin: 0; }
.amf .amf__cell > select { height: 38px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--ui-bg-darker, #493c52); color: var(--tt, #e4e4e4); }
.amf .tail-select .select-label { min-height: 38px; border-radius: 8px; padding: 9px 30px 9px 12px; }
.amf__ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin: 16px 0 0; }
.amf__range { min-width: 0; padding: 0 6px; }
.amf__actions { display: flex; gap: 10px; justify-content: flex-end; margin: 16px 0 0; }
.amf__btn { height: 40px; padding: 0 22px; border-radius: 20px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; }
.amf__btn--go { background: var(--bg1s, #c50725); color: #fff; }
.amf__btn--go:hover { filter: brightness(1.1); }
.amf__btn--reset { background: rgba(255,255,255,.08); color: var(--tt, #e4e4e4); }
.amf__btn--reset:hover { background: rgba(255,255,255,.14); }
body:not(.dt-is-active) .amf.amedia_filter-block { border-color: rgba(0,0,0,.08); }
body:not(.dt-is-active) .amf__chip span, body:not(.dt-is-active) .amf__btn--reset { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.08); }
@media screen and (max-width: 1220px) {
    .amf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .amf-toggle { border-radius: 10px; font-weight: 600; }
}
@media screen and (max-width: 900px) {
    .amf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .amf__ranges { grid-template-columns: 1fr; }
}
@media screen and (max-width: 560px) {
    .amf.amedia_filter-block { padding: 14px 12px 16px; }
    .amf__head { gap: 10px; }
    .amf__grid { grid-template-columns: 1fr; gap: 10px; }
    .amf__actions { flex-direction: column-reverse; }
    .amf__btn { width: 100%; }
}
@media screen and (max-width: 560px) {
    .amf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
    .amf .tail-select .select-label { padding: 9px 24px 9px 8px; font-size: 13px; }
    .amf__chip span { padding: 5px 11px; font-size: 12px; }
}
/* счётчик выбранного у tail.select: «0» на пустом списке только мешает — показываем с 1 */
.amf .tail-select .select-label .label-count { display: none; }
.amf .tail-select .select-label .label-count:not(:empty) ~ .label-inner { }
.amf .amf__actions input.amf__btn--reset[data-dlefilter="reset"] { background: rgba(255,255,255,.08) !important; color: var(--tt, #e4e4e4) !important; }
.amf .amf__actions input.amf__btn--go[data-dlefilter="submit"] { background: var(--bg1s, #c50725) !important; color: #fff !important; }
body:not(.dt-is-active) .amf .amf__actions input.amf__btn--reset[data-dlefilter="reset"] { background: rgba(0,0,0,.06) !important; color: var(--tt, #161616) !important; }
@media screen and (max-width: 560px) { .amf__actions { flex-direction: column; } }

/* кнопка входа гостя теперь ссылка на /login (не <button>) — фон кнопок темы на неё
   не действовал, в светлой теме иконка была белой на белом (28.09.2026) */
a.amedia_header__btn-login { background-color: var(--bg1s, #c50725); color: #fff !important; text-decoration: none; }
a.amedia_header__btn-login:hover { filter: brightness(1.1); color: #fff !important; }

/* плашка гостю вместо формы комментария (ANIMEGO_COMMENTS_GUEST_FORM=false):
   ссылки темы тёмные и сливались с фоном — делаем кнопками-ссылками */
.comments-guest-note { font-size: 14px; line-height: 1.6; }
.comments-guest-note a { display: inline-block; padding: 1px 10px; margin: 0 2px; border-radius: 12px; font-weight: 600;
    text-decoration: none !important; color: #fff !important; background: var(--bg1s, #c50725); }
.comments-guest-note a:hover { filter: brightness(1.12); }

/* animedia (28.09.2026, владелец: «голубой тут явно не подходит»): у этой темы в
   --bgsm1 тёмной темы голубой градиент, а цвет сайта — красный. Шапки входа/
   регистрации, обложка профиля и меню пользователя — красным градиентом
   (обложку со своей картинкой перекрывает inline background-image). */
.auth__head, .up-cover, .um-head { background: linear-gradient(135deg, #3a0a16 0%, #8c0b24 55%, #c50725 100%); }

/* страницы «Друзья» и «Комментарии» пользователя */
.up-sub__head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.up-sub__back { display: inline-flex; align-items: center; gap: 8px; color: var(--tt-fade); font-size: 13px; text-decoration: none; }
.up-sub__back:hover { color: var(--accent); }
.up-sub__title { margin: 0; font-size: 24px; font-weight: 700; }
.up-sub .user__friends-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.up-sub .user__friends-card { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--tt); text-decoration: none; text-align: center; }
.up-sub .user__friends-card:hover { color: var(--accent); }
.up-sub .user__friends-avatar { position: relative; width: 84px; height: 84px; border-radius: 50%; }
.up-sub .user__friends-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.up-sub .user__friends-online { position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px var(--up-card, #222); }
.up-sub .user__friends-card-name { font-size: 14px; font-weight: 600; word-break: break-word; }
.up-sub .user__friends-none { padding: 30px 10px; text-align: center; color: var(--tt-fade); }
.up-sub__comments > * + * { margin-top: 12px; }

/* заявки в друзья у счётчика профиля */
.up-stat__new { margin-left: 4px; font-style: normal; font-size: 12px; color: var(--accent); }

/* engine.css DLE: .pm {border:1px solid #cee0ed} (старые таблицы ЛС) — у мессенджера рамки нет */
.up.pm { border: 0; }

/* «Вход через Telegram» в настройках (29.09.2026) */
.up-tg .us2-hint, .up-tg .settings__hint { margin: 0 0 12px; font-size: 14px; opacity: .8; }
.up-tg .btn-tg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 22px; background: #2aabee; color: #fff !important; font-weight: 700; text-decoration: none; }
.up-tg .btn-tg:hover { background: #1d97d6; }
.up-tg .btn-tg svg { flex: none; }
.up-tg form .btn { height: 42px; padding: 0 20px; border-radius: 21px; border: 0; cursor: pointer; background: var(--up-soft, rgba(128,128,128,.15)); color: inherit; font: inherit; font-weight: 700; }
.up-tg form .btn:hover { color: #e74c3c; }
/* смайлы в тексте комментария — в строку с текстом (29.09.2026) */
body img.smiley {display: inline-block !important; float: none !important; width: auto !important; max-width: none !important; height: 32px !important; margin: 0 2px !important; vertical-align: middle; border-radius: 0; box-shadow: none;}
/* yummyanime.tv (30.09.2026): шапки входа, обложка профиля и меню «Кабинет» — фиолетовый акцент темы */
.auth__head, .up-cover, .um-head { background: linear-gradient(135deg, var(--primary-color-darker) 0%, var(--primary-color) 100%); }
/* yummy: в fontawesome.css темы начертание Light (fal) отключено — в блоках движка (профиль, «Кабинет», сообщения, настройки) рисуем обычным (400) */
[class^="up"] .fal, [class*=" up"] .fal, [class^="up"].fal, [class*=" up-"].fal, [class^="um"] .fal, [class*=" um"] .fal, [class^="pm"] .fal, [class*=" pm"] .fal, .messenger .fal, .settings .fal { font-family: "Font Awesome 5 Pro"; font-weight: 400; }
/* сортировка комментариев (30.09.2026, как jutsu/animego.online) */
.cmt-sort {display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 20px;}
.cmt-sort__label {margin-right: 4px; color: var(--primary-text-color);}
.cmt-sort__btn {height: 30px !important; line-height: 28px !important; padding: 0 10px !important; background: none !important; box-shadow: none !important;
	color: var(--primary-text-color) !important; font-size: 1.3rem !important; text-transform: none !important; border: 1px solid rgba(255,255,255,.2) !important; border-radius: 2px;}
.cmt-sort__btn:hover {border-color: var(--primary-color) !important;}
.cmt-sort__btn.active {background: var(--primary-color) !important; border-color: var(--primary-color) !important; color: #fff !important;}

/* всплывашки DLEPush вместо окон jQuery UI (js/notify.js), 30.09.2026 */
#DLEPush.DLEPush {top: 84px; right: 20px; left: auto; bottom: auto; z-index: 100000; width: 360px; max-width: calc(100vw - 32px); pointer-events: none;}
#DLEPush .DLEPush-notification:not(.wrapper) {display: none !important;}
#DLEPush .DLEPush-notification.wrapper {pointer-events: auto; display: block; position: relative; width: auto; max-width: none; min-width: 0;
	margin: 0 0 10px; padding: 14px 40px 14px 56px; background: #1e1e1e; color: #ddd; border: 1px solid rgba(255,255,255,.08);
	border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.5); font-size: 14px; line-height: 1.45; overflow: hidden;
	animation: push-in .25s ease-out; --push-c: var(--primary-color, #c740d3);}
#DLEPush .DLEPush-notification.wrapper::before {display: block; content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--push-c);}
#DLEPush .DLEPush-notification.push-error {--push-c: #e5484d;}
#DLEPush .DLEPush-icon {position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; display: grid; place-items: center; background: none; color: var(--push-c);}
#DLEPush .DLEPush-icon svg {width: 26px; height: 26px; scale: 1;}
#DLEPush .DLEPush-header {font-weight: 600; font-size: 15px; margin-bottom: 3px; color: #fff;}
#DLEPush .DLEPush-header:empty {display: none;}
#DLEPush .DLEPush-message a {color: var(--push-c); text-decoration: underline;}
#DLEPush .DLEPush-close {position: absolute; top: 9px; right: 10px; transform: none; width: 24px; height: 24px !important; line-height: 22px !important;
	padding: 0 !important; border: 0; background: none !important; box-shadow: none !important; color: #888 !important; font-size: 20px !important; cursor: pointer;}
#DLEPush .DLEPush-close:hover {color: #fff !important;}
#DLEPush .push-ask .DLEPush-close {display: none;}
#DLEPush .push-ask__input {display: block; width: 100%; height: 36px; margin-top: 10px; padding: 0 10px; border-radius: 6px;
	background: #2a2a2a; color: #eee; border: 1px solid rgba(255,255,255,.15); box-shadow: none;}
#DLEPush .push-ask__input--err {border-color: #e5484d;}
#DLEPush .push-ask__btns {display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px;}
#DLEPush .push-ask__btns button {height: 32px !important; line-height: 30px !important; padding: 0 16px !important; border-radius: 6px;
	font-size: 13px !important; text-transform: none !important; box-shadow: none !important; cursor: pointer;}
#DLEPush .push-ask__ok {background: var(--primary-color, #c740d3) !important; border: 1px solid var(--primary-color, #c740d3) !important; color: #fff !important;}
#DLEPush .push-ask__no {background: none !important; border: 1px solid rgba(255,255,255,.2) !important; color: #ccc !important;}
@keyframes push-in {from {opacity: 0; transform: translateX(24px);} to {opacity: 1; transform: none;}}
@media screen and (max-width: 590px) {
	#DLEPush.DLEPush {top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; max-width: none;}
	@keyframes push-in {from {opacity: 0; transform: translateY(24px);} to {opacity: 1; transform: none;}}
}

/* окно кабинета (.amedia_login из animedia) — позиционирование как там */
.amedia_login {position: fixed; z-index: 999; left: 50%; top: 50%; transform: translate(-50%,-50%); overflow: hidden;}
.amedia_login.d-none {display: none;}
@media screen and (max-width: 760px) {.amedia_login {max-width: 90%; max-height: 90%; overflow-x: hidden; overflow-y: auto;}}

/* быстрый поиск в две колонки на ПК, 30.09.2026 */
@media screen and (min-width: 961px) {
	#searchsuggestions {display: grid; grid-template-columns: 1fr 1fr;}
	#searchsuggestions > a:nth-child(odd) {border-right: 1px solid var(--bg-color-second);}
	#searchsuggestions > span, #searchsuggestions > div {grid-column: 1 / -1;}
}

/* смайлы и GIF в форме комментария (comments-tools.js), 30.09.2026 */
.cbb__gif {font-size: 12px; font-weight: 700; letter-spacing: .5px;}
.cmt-smilies {margin-top: 10px; padding: 10px; border: 1px solid rgba(128,128,128,.35); border-radius: 6px; max-height: 220px; overflow-y: auto;}
.cmt-smilies[hidden], .gif-panel[hidden] {display: none;}
.cmt-smilies__inner {display: flex; flex-wrap: wrap; gap: 6px;}
.cmt-smilies__inner img {width: 32px; height: 32px; object-fit: contain; cursor: pointer; padding: 2px; border-radius: 4px;}
.cmt-smilies__inner img:hover {background: rgba(128,128,128,.2);}
.gif-panel {margin-top: 10px; padding: 12px; border: 1px solid rgba(128,128,128,.35); border-radius: 8px;}
.gif-panel__head {display: flex; gap: 10px; align-items: center; margin-bottom: 10px;}
.gif-panel__search {flex: 1 1 auto; height: 36px; padding: 0 10px; color: inherit; background: rgba(128,128,128,.12); border: 1px solid rgba(128,128,128,.35); border-radius: 4px;}
.gif-panel__x {font-size: 24px; line-height: 1; background: none; border: 0; color: inherit; cursor: pointer; opacity: .7; box-shadow: none;}
.gif-panel__grid {display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto;}
.gif-panel__item {width: 100%; height: 110px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent;}
.gif-panel__item:hover {border-color: var(--primary-color, #c740d3);}
.gif-panel__note {margin-top: 8px; font-size: 12px; opacity: .7;}
.comment-gif {max-width: 320px; width: 100%; height: auto; border-radius: 8px; display: block; margin: 6px 0;}
.cbb__btn.active {background: var(--primary-color, #c740d3); color: #fff;}

/* заголовок комментариев и подсказка гостю, 30.09.2026 */
.cmt-head {margin-bottom: 15px;}
.cmt-guest {margin: 0 0 20px; padding: 12px 15px; border: 1px solid rgba(128,128,128,.3); border-radius: 6px; line-height: 1.5;}
.cmt-guest .fa {margin-right: 6px; color: var(--primary-color, #c740d3);}
.cmt-guest a {color: var(--primary-color, #c740d3); text-decoration: underline;}
