/* =====================================================================
   Multyk.net — шаблон для DLE 18
   Мультфільми та мультсеріали українською. Один мульт = одна сторінка.
   ===================================================================== */

/* ---------- 1. Змінні ---------- */
:root {
	--bg: #1b2130;
	--panel: #242c3d;
	--panel-2: #1f2635;
	--card: #2c3549;
	--card-2: #353f56;
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .14);
	--text: #f3f5fb;
	--muted: #a7b0c5;
	--dim: #7e889e;
	--pink: #ff4fa3;
	--pink-2: #ff7a59;
	--pink-glow: rgba(255, 79, 163, .45);
	--yellow: #ffd23f;
	--yellow-2: #ffb800;
	--blue: #4cc3ff;
	--green: #3ddc84;
	--red: #ff5468;
	--r-xl: 26px;
	--r: 18px;
	--r-sm: 12px;
	--r-xs: 8px;
	--shadow: 0 14px 34px rgba(0, 0, 0, .35);
	--shadow-sm: 0 6px 16px rgba(0, 0, 0, .25);
	--font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-cond: "Oswald", "Rubik", "Arial Narrow", sans-serif;
	--wrap: 1320px;
	--hdr-h: 72px;
	--gap: 24px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
	margin: 0; min-height: 100vh;
	font: 400 16px/1.55 var(--font); color: var(--text);
	background: var(--bg) url(../images/pattern.svg) 0 0 / 240px repeat fixed;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: #8fdaff; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
.clearfix::after, .clr::after { content: ""; display: table; clear: both; }
.clr { clear: both; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--yellow); color: #1b2130; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Прокрутка в стилі сайту ---------- */
/* Chrome, Edge, Opera, Safari */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #141925; }
::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--pink), var(--pink-2));
	border: 3px solid #141925; border-radius: 12px; min-height: 48px;
}
::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(90deg, var(--pink), var(--pink-2)); min-width: 48px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ff72b6, #ff9577); }
::-webkit-scrollbar-thumb:active { background: var(--yellow); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }

/* внутрішні блоки: тонша смуга, доріжка зливається з фоном блоку */
.nav__sub::-webkit-scrollbar, .hdr__nav::-webkit-scrollbar, .modal::-webkit-scrollbar,
#searchsuggestions::-webkit-scrollbar, .ui-dialog-content::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 8px; height: 8px; }
.nav__sub::-webkit-scrollbar-track, .hdr__nav::-webkit-scrollbar-track, .modal::-webkit-scrollbar-track,
#searchsuggestions::-webkit-scrollbar-track, .ui-dialog-content::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track { background: transparent; }
.nav__sub::-webkit-scrollbar-thumb, .hdr__nav::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb,
#searchsuggestions::-webkit-scrollbar-thumb, .ui-dialog-content::-webkit-scrollbar-thumb { border: 2px solid var(--card); }
textarea::-webkit-scrollbar-thumb { border: 2px solid #1d2433; }
/* ряди з картками — ледь помітна смуга, яскравішає при наведенні */
.row::-webkit-scrollbar { height: 6px; }
.row::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 6px; }
.row::-webkit-scrollbar-thumb { border: 0; border-radius: 6px; background: rgba(255, 79, 163, .45); }
.row:hover::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--pink), var(--pink-2)); }

/* Firefox (тут можна задати лише кольори й товщину) */
@supports (-moz-appearance: none) {
	html { scrollbar-color: var(--pink) #141925; }
	.nav__sub, .hdr__nav, .modal, #searchsuggestions, .ui-dialog-content, textarea { scrollbar-width: thin; scrollbar-color: var(--pink) transparent; }
	.row { scrollbar-width: thin; scrollbar-color: rgba(255, 79, 163, .45) transparent; }
}

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 44px; padding: 0 22px; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
	color: var(--text); background: var(--card-2); border: 0;
	transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; cursor: pointer;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--pink { background: linear-gradient(135deg, var(--pink), #ff6b8b 55%, var(--pink-2)); color: #fff; box-shadow: 0 8px 22px var(--pink-glow); }
.btn--pink:hover { box-shadow: 0 12px 30px var(--pink-glow); }
.btn--yellow { background: var(--yellow); color: #231c00; }
.btn--yellow:hover { color: #231c00; background: #ffe070; }
.btn--ghost { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost.is-on { color: var(--pink); }
.btn--lg { min-height: 52px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 14px; font-size: 19px;
	color: var(--text); background: rgba(255, 255, 255, .06); transition: background .2s, color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .13); color: #fff; }

/* Заголовки секцій — жовта риска як на simpsonsua */
.h-sect {
	position: relative; padding-left: 20px;
	font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: .01em; text-transform: uppercase;
}
.h-sect::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 6px; border-radius: 6px; background: var(--yellow); }
.h-count { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: .6em; vertical-align: middle; background: var(--card-2); color: var(--muted); }
.h-page { margin-bottom: 18px; font-size: clamp(24px, 3vw, 34px); font-weight: 900; text-transform: uppercase; color: var(--yellow); }

/* Бейджі */
.age {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 6px; border-radius: 50%;
	font: 700 14px/1 var(--font); color: #fff; background: #ff8a00;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
}
.age--0, .age--6 { background: #22b35e; }
.age--12 { background: #f4b400; color: #2a2000; }
.age--16 { background: #ff7a00; }
.age--18 { background: #ec1d3a; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.badge--imdb { background: #f5c518; color: #121212; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px;
	font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
	background: rgba(255, 255, 255, .08); color: var(--muted);
}
.chip--type { background: rgba(255, 79, 163, .16); color: #ff8cc3; }
.chip--status { background: rgba(76, 195, 255, .14); color: var(--blue); }
.chip--status[data-status="Виходить"] { background: rgba(61, 220, 132, .15); color: var(--green); }
.chip--status[data-status="Завершено"] { background: rgba(255, 255, 255, .08); color: var(--muted); }
.chip--age { background: rgba(255, 138, 0, .16); color: #ffae4d; }

/* ---------- 3. Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); }
/* фон із розмиттям — на псевдоелементі, щоб не ламати position:fixed мобільного меню */
.hdr::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(27, 33, 48, .88);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
body.menu-open .hdr { z-index: 220; }
.hdr__in { display: flex; align-items: center; gap: 18px; height: var(--hdr-h); }
.hdr__burger { display: none; }
.burger { display: grid; gap: 4px; width: 20px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo__icon { width: 36px; height: 36px; transition: transform .35s var(--ease); }
.logo:hover .logo__icon { transform: rotate(-10deg) scale(1.08); }
.logo__text {
	font-size: 29px; font-weight: 900; letter-spacing: -.02em; line-height: 1;
	background: linear-gradient(90deg, var(--pink) 0%, #ff6f91 50%, var(--pink-2) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 2px 10px rgba(255, 79, 163, .3));
}
.logo__text b { font-weight: 800; opacity: .85; }
.logo--sm .logo__text { font-size: 24px; }
.logo--sm .logo__icon { width: 30px; height: 30px; }

.hdr__nav { flex: 1; min-width: 0; display: flex; align-items: center; }
.hdr__nav-head, .hdr__nav-extra { display: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav__item { position: relative; }
.nav__link {
	display: flex; align-items: center; height: 42px; padding: 0 12px; border-radius: 12px;
	font: 700 17px/1 var(--font-cond); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
	color: var(--text);
}
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--yellow); background: rgba(255, 255, 255, .06); }
.nav__item.has-sub > .nav__link::after { content: "\f107"; font-family: "Font Awesome 5 Pro"; font-weight: 300; margin-left: 6px; font-size: 14px; }
.nav__sub {
	position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; min-width: 220px; padding: 8px;
	border-radius: 16px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* «місток», щоб меню не закривалось між пунктом і списком */
/* пункти випадаючих меню — окремими «таблетками» з невеликим відступом, як у категоріях */
.nav__sub { display: flex; flex-direction: column; gap: 4px; }
.nav__sub .nav__link { height: 38px; font-size: 15px; }
.nav__sub .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 10px; background: none; min-width: 0; }
.nav__sub .nav__sub::before { display: none; }
.nav__sub .has-sub > .nav__link::after { display: none; }
button.nav__link { cursor: pointer; background: none; border: 0; }
/* випадаюче меню категорій — у кілька колонок, вирівняне по правому краю */
.nav__item--pin > .nav__sub, .nav__more > .nav__sub { left: auto; right: 0; }
.nav__sub--cats { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 4px 6px; width: max-content; max-width: min(640px, 90vw); max-height: 70vh; overflow-y: auto; }
.nav__sub--cats .nav__link { white-space: normal; height: auto; min-height: 38px; padding: 8px 12px; line-height: 1.15; }

.hdr__search { position: relative; width: 250px; flex-shrink: 0; }
.hdr__search input {
	width: 100%; height: 44px; padding: 0 46px 0 18px; border-radius: 999px;
	background: rgba(255, 255, 255, .07); border: 1px solid var(--line); outline: 0;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.hdr__search input::placeholder { color: var(--dim); }
.hdr__search input:focus { background: rgba(255, 255, 255, .1); border-color: rgba(255, 79, 163, .6); box-shadow: 0 0 0 4px rgba(255, 79, 163, .15); }
.hdr__search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hdr__search-btn { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.hdr__search-btn:hover { color: var(--pink); }
.hdr__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr__search-toggle { display: none; }
.hdr__login { min-height: 46px; padding: 0 26px; font-size: 16px; }

/* ---------- 4. Макет ---------- */
.layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0;
	background: var(--panel); min-height: calc(100vh - var(--hdr-h));
	box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .35);
	padding: 0;
}
.layout--full { grid-template-columns: minmax(0, 1fr); }
.main { min-width: 0; padding: 30px 30px 40px; }
.side { min-width: 0; padding: 30px 22px 40px; background: var(--panel-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }

.sect { margin-bottom: 44px; }
.sect__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sect > .h-sect { margin-bottom: 20px; }
.banner-slot { margin: 20px 0; text-align: center; }

/* Вступ головної */
.intro { margin-bottom: 30px; }
.intro__title { font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; text-transform: uppercase; line-height: 1.1; }
.intro__title span { color: var(--yellow); }
.intro__text { margin: 10px 0 0; max-width: 760px; color: var(--muted); font-size: 16px; }

/* Хлібні крихти */
.crumbs { margin-bottom: 20px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--yellow); }

/* ---------- 5. Слайдер «Вибір глядачів» ---------- */
.hero { position: relative; }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--r-xl); scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
	flex: 0 0 100%; scroll-snap-align: start;
	display: grid; grid-template-columns: 1.85fr 1fr; min-height: 380px;
	border-radius: var(--r-xl); overflow: hidden;
	background: linear-gradient(135deg, #1a2140, #10152a);
	box-shadow: var(--shadow);
}
.hero__media { position: relative; display: block; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero__slide:hover .hero__media img { transform: scale(1.04); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #141a33 100%); }
.hero__badge {
	position: absolute; left: 26px; top: 26px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px;
	font-size: 19px; font-weight: 800; text-transform: uppercase; color: #fff;
	background: linear-gradient(135deg, var(--pink), #ff6b8b); box-shadow: 0 8px 22px var(--pink-glow);
}
.hero__badge .fa-fire { color: #ffd23f; }
.hero__body { display: flex; flex-direction: column; justify-content: center; padding: 28px 26px; }
.hero__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; text-transform: uppercase; line-height: 1.08; }
.hero__title a { color: #fff; }
.hero__title a:hover { color: var(--yellow); }
.hero__ep { margin-top: 8px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; text-transform: uppercase; line-height: 1.1; color: var(--pink); }
.hero__text { margin: 18px 0 22px; color: #d7dcea; font-size: 17px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero__btn { align-self: stretch; min-height: 64px; border-radius: 22px; font-size: 21px; }
.hero__arrow {
	position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
	background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .2s, background .2s;
}
.hero:hover .hero__arrow { opacity: 1; }
.hero__arrow:hover { background: var(--pink); }
.hero__arrow--prev { left: 14px; }
.hero__arrow--next { right: 14px; }
.hero__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 10px; background: var(--card-2); transition: width .3s var(--ease), background .3s; }
.hero__dots button.is-active { width: 30px; background: var(--pink); }
.hero.is-single .hero__arrow, .hero.is-single .hero__dots { display: none; }

/* ---------- 6. Горизонтальні ряди ---------- */
.row {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; margin: -4px -2px 0;
}
.row > * { scroll-snap-align: start; min-width: 0; }
.row--posters { grid-auto-columns: calc((100% - 5 * 18px) / 6); gap: 18px; }
.row-arrows { display: flex; gap: 8px; }
.row-arrow { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; color: var(--text); background: var(--card); transition: background .2s, color .2s; }
.row-arrow:hover { background: var(--pink); color: #fff; }

/* Картка «Останні оновлення» */
.upd__link { display: block; color: var(--text); border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.upd__link:hover { color: var(--text); transform: translateY(-5px); box-shadow: var(--shadow); }
.upd__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card-2); }
.upd__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s var(--ease); }
.upd__link:hover .upd__img img { transform: scale(1.06); }
.upd__ep {
	position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
	padding: 5px 11px; border-radius: 10px; font-size: 13px; font-weight: 800; text-transform: uppercase;
	color: #fff; background: var(--pink); box-shadow: 0 6px 16px var(--pink-glow);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upd__img .age { position: absolute; top: 10px; right: 10px; min-width: 32px; height: 32px; font-size: 12px; }
.upd__label { padding: 14px 16px 16px; }
.upd__title { font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.row > .upd:nth-child(4n+1) .upd__title { color: #f7f7fb; }
.row > .upd:nth-child(4n+2) .upd__title { color: #ffd23f; }
.row > .upd:nth-child(4n+3) .upd__title { color: #ff9a5c; }
.row > .upd:nth-child(4n+4) .upd__title { color: #6fd0ff; }

/* ---------- 7. Плитки з кольоровою плашкою ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tile, .card { --lc: #ffd54a; --lt: #9c7400; }
.tiles > .tile:nth-child(8n+2), .grid > .card:nth-child(8n+2), .row > .card:nth-child(8n+2) { --lc: #b4d5f2; --lt: #46698f; }
.tiles > .tile:nth-child(8n+3), .grid > .card:nth-child(8n+3), .row > .card:nth-child(8n+3) { --lc: #f3aa9d; --lt: #9a4232; }
.tiles > .tile:nth-child(8n+4), .grid > .card:nth-child(8n+4), .row > .card:nth-child(8n+4) { --lc: #ffa25a; --lt: #97400c; }
.tiles > .tile:nth-child(8n+5), .grid > .card:nth-child(8n+5), .row > .card:nth-child(8n+5) { --lc: #28334b; --lt: #a6dcff; }
.tiles > .tile:nth-child(8n+6), .grid > .card:nth-child(8n+6), .row > .card:nth-child(8n+6) { --lc: #a8e8ff; --lt: #2c6f8a; }
.tiles > .tile:nth-child(8n+7), .grid > .card:nth-child(8n+7), .row > .card:nth-child(8n+7) { --lc: #58738d; --lt: #f2f7ff; }
.tiles > .tile:nth-child(8n+8), .grid > .card:nth-child(8n+8), .row > .card:nth-child(8n+8) { --lc: #5a3526; --lt: #ffe2c2; }

.tile__link { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--lc); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.tile__link:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.tile__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--card-2); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s var(--ease); }
.tile__link:hover .tile__img img { transform: scale(1.07); }
.tile__img .age { position: absolute; top: 10px; left: 10px; }
.tile__label, .card__label {
	position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
	text-align: center; background-color: var(--lc); color: var(--lt);
	background-image: url(../images/pattern-dark.svg); background-size: 150px;
}
.tile__label { min-height: 92px; padding: 10px 12px; }
.tile__title {
	font: 700 clamp(22px, 2.3vw, 32px)/1 var(--font-cond); text-transform: uppercase; letter-spacing: .005em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .25);
}

/* ---------- 8. Каталог (сітка постерів) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 22px 18px; }
.grid > :not(.card) { grid-column: 1 / -1; }
.card { position: relative; min-width: 0; }
.card__link { display: block; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--lc); color: var(--lt); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.card__link:hover { color: var(--lt); transform: translateY(-6px); box-shadow: var(--shadow); }
.card__poster { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--card-2); }
.card__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.card__link:hover .card__poster img { transform: scale(1.06); filter: brightness(.8); }
.card__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; }
.card__badges .age { margin-left: auto; min-width: 34px; height: 34px; font-size: 13px; }
.card__ep {
	position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
	padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 800; text-transform: uppercase;
	color: #fff; background: var(--pink); box-shadow: 0 6px 14px var(--pink-glow);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card__play {
	position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px;
	color: #fff; background: var(--pink); box-shadow: 0 10px 26px var(--pink-glow);
	opacity: 0; transform: scale(.6); transition: .3s var(--ease);
}
.card__link:hover .card__play { opacity: 1; transform: scale(1); }
.card__label { min-height: 84px; padding: 10px 10px 12px; gap: 4px; }
.card__title {
	font: 700 20px/1.02 var(--font-cond); text-transform: uppercase;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; font-size: 12px; font-weight: 700; opacity: .8; }
.card__meta span + span::before { content: "•"; margin-right: 8px; }
.card__edit { position: absolute; top: 8px; right: 8px; z-index: 3; }
.card__edit a, .card__edit > span { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(0, 0, 0, .6); color: #fff; }
.card__badges + .card__edit { top: 50px; }
.card--short .card__label { min-height: 64px; }

/* Сортування (вбудоване DLE {sort}) */
.sorter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sorter__label { font-size: 14px; color: var(--dim); }
.sorter form { margin: 0; }
.sorter .sort { display: flex; flex-wrap: wrap; gap: 6px; }
.sorter .sort li a {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .06); transition: .2s;
}
.sorter .sort li a:hover { color: var(--text); background: rgba(255, 255, 255, .12); }
.sorter .sort li.asc a, .sorter .sort li.desc a { color: #231c00; background: var(--yellow); font-weight: 700; }
.sorter .sort li.asc a::after { content: "\f062"; font-family: "Font Awesome 5 Pro"; font-weight: 400; font-size: 12px; }
.sorter .sort li.desc a::after { content: "\f063"; font-family: "Font Awesome 5 Pro"; font-weight: 400; font-size: 12px; }
.cat-desc { margin: -6px 0 24px; color: var(--muted); }

/* Пагінація */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 34px 0 6px; flex-wrap: wrap; }
.pager__pages { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager__pages a, .pager__pages span, .pager > a, .pager__arrow {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 14px; font-weight: 700; color: var(--text); background: var(--card); transition: .2s;
}
.pager__pages a:hover, .pager > a:hover { background: var(--card-2); color: var(--yellow); }
.pager__pages > span:not(.nav_ext) { background: var(--yellow); color: #231c00; }
.pager__pages .nav_ext { background: none; min-width: 20px; }
.pager > span.pager__arrow { opacity: .35; }
.pager a .pager__arrow { background: none; min-width: 0; padding: 0; }
.pager > a { padding: 0; min-width: 44px; }

/* ---------- 9. Бічна колонка ---------- */
.side__box { padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-sm); }
.h-side { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.h-side .fal { color: var(--yellow); font-size: 19px; }
.side__box--random { background: linear-gradient(160deg, #2e2150, #1c1b36); box-shadow: inset 0 0 0 1px rgba(170, 120, 255, .25), var(--shadow-sm); }
.rnd { display: block; color: var(--text); }
.rnd:hover { color: var(--text); }
.rnd__img { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--card-2); }
.rnd__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .5s var(--ease); }
.rnd:hover .rnd__img img { transform: scale(1.06); }
.rnd__title { margin-top: 12px; font-size: 19px; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.rnd__meta { margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.rnd .btn { min-height: 46px; }

.toplist { counter-reset: top; display: flex; flex-direction: column; gap: 6px; }
.toplist__item { counter-increment: top; }
.toplist__link { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; color: var(--text); transition: background .2s; }
.toplist__link:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.toplist__link::before { content: counter(top); width: 22px; flex-shrink: 0; text-align: center; font: 700 22px/1 var(--font-cond); color: var(--dim); }
.toplist__item:nth-child(-n+3) .toplist__link::before { color: var(--yellow); }
.toplist__link img { width: 46px; height: 66px; flex-shrink: 0; object-fit: cover; border-radius: 8px; background: var(--card-2); }
.toplist__info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.toplist__title { font-weight: 700; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toplist__meta { font-size: 12px; color: var(--muted); }

.side-comms { display: flex; flex-direction: column; gap: 10px; }
.scomm { padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .18); }
.scomm__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.scomm__ava { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.scomm__ava img { width: 100%; height: 100%; object-fit: cover; }
.scomm__name { font-weight: 700; }
.scomm__date { margin-left: auto; color: var(--dim); font-size: 12px; }
.scomm__text { font-size: 14px; color: #d7dcea; line-height: 1.45; word-wrap: break-word; }
.scomm__news { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--pink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scomm__news:hover { color: #ff86c0; }
.comm-letter { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; text-transform: uppercase; color: #fff; }

/* ---------- 10. Текст / SEO ---------- */
.text { line-height: 1.7; color: #dde2ee; word-wrap: break-word; }
.text > *:last-child { margin-bottom: 0; }
.text h2, .text h3 { margin: 1.3em 0 .6em; color: var(--yellow); text-transform: uppercase; font-weight: 900; }
.text h2 { font-size: 22px; }
.text h3 { font-size: 18px; }
.text ul { margin: 0 0 1em; }
.text ul li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.text ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.text ol { margin: 0 0 1em 1.3em; list-style: decimal; }
.text strong, .text b { color: #fff; }
.text a { color: var(--blue); font-weight: 500; }
.text img { border-radius: 12px; }
.text iframe { width: 100%; border: 0; border-radius: 12px; }
.seo { margin-top: 20px; padding: 28px 30px; border-radius: var(--r); background: var(--card); color: var(--muted); font-size: 15px; }
.seo h2 { margin-top: 0; }

/* ---------- 11. Сторінка мультика ---------- */
.is-full .main { padding-top: 22px; }
.full { position: relative; }
.full__glow {
	position: absolute; left: -30px; right: -30px; top: -80px; height: 520px; z-index: 0; pointer-events: none;
	background-size: cover; background-position: center 25%;
	filter: blur(60px) saturate(1.3); opacity: .28;
	-webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
}
.full__layout {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 32px;
	grid-template-areas: "head aside" "player aside" "banner banner" "more more" "tags tags" "rel rel" "comms comms";
	align-items: start;
}
.full__head { grid-area: head; min-width: 0; }
.full__aside { grid-area: aside; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.player { grid-area: player; min-width: 0; }
.full__banner { grid-area: banner; }
.full__more { grid-area: more; }
.full__tags { grid-area: tags; }
.full__rel { grid-area: rel; min-width: 0; margin: 0; }
.full__comms { grid-area: comms; min-width: 0; margin: 0; }
.full__head-poster { display: none; }
.full__top-info { min-width: 0; }
.full__title { margin-top: 14px; font-size: clamp(28px, 3.6vw, 46px); font-weight: 900; line-height: 1.04; text-transform: uppercase; color: var(--yellow); text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.full__title-sub { display: block; margin-top: 8px; font-size: .42em; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.full__orig { margin-top: 8px; font-size: 16px; color: var(--dim); font-style: italic; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stat {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 12px;
	font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .06); color: #dde2ee;
}
.stat .fal { color: var(--yellow); }
.stat--imdb { background: #f5c518; color: #111; font-weight: 800; }
.stat--imdb b { font-weight: 900; letter-spacing: .02em; }
.full__last { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 79, 163, .12); color: #ffc2de; font-size: 15px; }
.full__last b { color: #fff; }
.dot-live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.dot-live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pink); animation: live 1.6s ease-out infinite; }
@keyframes live { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.full__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.full__actions a { color: inherit; }
.full__actions > a:not(.btn) { display: inline-flex; }
.share { display: flex; gap: 8px; margin-top: 12px; }
.share button { width: 42px; height: 42px; border-radius: 12px; font-size: 18px; background: var(--card); color: var(--text); transition: .2s; }
.share button:hover { background: var(--pink); color: #fff; }
.full__desc { margin-top: 22px; font-size: 17px; }
.full__desc.is-collapsed { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.more-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--pink); }
.full__seo { margin-top: 1em; }

/* Постер та інфо */
.poster { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); background: var(--card-2); aspect-ratio: 2 / 3; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster .age { position: absolute; top: 14px; left: 14px; min-width: 44px; height: 44px; font-size: 16px; }
.poster__play {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: rgba(10, 12, 25, .35); opacity: 0; transition: opacity .3s;
}
.poster__play .fas { display: flex; align-items: center; justify-content: center; width: 78px; height: 78px; padding-left: 5px; border-radius: 50%; font-size: 28px; color: #fff; background: var(--pink); box-shadow: 0 12px 30px var(--pink-glow); transform: scale(.7); transition: transform .3s var(--ease); }
.poster:hover .poster__play { opacity: 1; }
.poster:hover .poster__play .fas { transform: scale(1); }
.info { margin: 0; padding: 18px; border-radius: var(--r); background: var(--card); display: grid; gap: 12px; }
.info > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.info dt { color: var(--dim); font-weight: 500; }
.info dd { margin: 0; color: #e6e9f2; }
.info dd a { color: var(--blue); }
.info dd a:hover { color: var(--yellow); }
.info .info__wide { grid-template-columns: 1fr; gap: 4px; }

/* Плеєр */
.player { border-radius: var(--r-xl); }
.player__bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.player__title { font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.player__tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ptab {
	height: 50px; padding: 0 24px; border-radius: 14px;
	font: 900 19px/1 var(--font); letter-spacing: .03em; text-transform: uppercase;
	color: var(--text); background: #2a3143; box-shadow: inset 0 0 0 1px var(--line); transition: .2s;
}
.ptab:hover { background: #343c52; }
.ptab.is-active { background: var(--yellow); color: #1e1a06; box-shadow: 0 8px 22px rgba(255, 210, 63, .28); }
.ptab--trailer { font-size: 15px; font-weight: 700; }
.player__screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.player__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__start {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	width: 100%; background: #0b0e18 center / cover no-repeat; color: #fff;
}
.player__start::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(10, 12, 24, .35), rgba(10, 12, 24, .85)); }
.player__start > * { position: relative; }
.player__start-btn { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; padding-left: 6px; border-radius: 50%; font-size: 36px; background: var(--pink); box-shadow: 0 0 0 12px rgba(255, 79, 163, .2), 0 16px 40px var(--pink-glow); transition: transform .3s var(--ease); }
.player__start:hover .player__start-btn { transform: scale(1.08); }
.player__start-text { font-weight: 700; font-size: 16px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.player.is-loaded .player__start { display: none; }
.player__empty { display: none; position: absolute; inset: 0; z-index: 3; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 17px; font-weight: 500; color: var(--muted); background: #121626; }
.player.is-empty .player__empty { display: flex; }
.player__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.rate { display: flex; flex-direction: column; gap: 8px; }
.rate__btns { display: flex; align-items: center; gap: 10px; }
.rate__btns a { color: inherit; }
.rate__btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; font-size: 17px; font-weight: 500; background: rgba(255, 255, 255, .06); color: var(--muted); transition: .2s; }
.rate__btn .fas { font-size: 18px; }
.rate__btn--up:hover { color: var(--green); background: rgba(61, 220, 132, .12); }
.rate__btn--down:hover { color: var(--red); background: rgba(255, 84, 104, .12); }
.rate__score { font-size: 20px; font-weight: 800; min-width: 30px; text-align: center; }
.rate__bar { position: relative; height: 4px; border-radius: 4px; background: var(--red); overflow: hidden; }
.rate__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 50%; background: var(--yellow); border-radius: 4px; transition: width .6s var(--ease); }
.rate__stars .rating { display: inline-block; }
.rate__count { font-size: 13px; color: var(--dim); }
.player__tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tool, .player__tools a { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--text); background: #2a3143; transition: .2s; }
.tool:hover, .player__tools a:hover { background: #343c52; color: #fff; }
.tool .fal { font-size: 17px; color: var(--yellow); }
.player__tools a .tool { padding: 0; height: auto; background: none; }

/* Режим «вимкнути світло» */
body.lights-off .js-overlay { display: block !important; opacity: 1; background: rgba(4, 6, 12, .92); z-index: 150; }
body.lights-off .full__layout { z-index: auto; }
body.lights-off .player { position: relative; z-index: 160; }
body.lights-off .js-lights { background: var(--yellow); color: #231c00; }
body.lights-off .js-lights .fal { color: #231c00; }

.full__more { padding: 22px 24px; border-radius: var(--r); background: var(--card); }
.full__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--dim); }
.full__tags-list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; }
.full__tags a { display: inline-flex; height: 32px; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 14px; background: var(--card); color: var(--muted); }
.full__tags a:hover { background: var(--pink); color: #fff; }

/* ---------- 12. Коментарі ---------- */
.comms { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.comm { display: flex; gap: 14px; margin-bottom: 14px; padding: 16px; border-radius: var(--r); background: var(--card); }
.comm__ava { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--card-2); }
.comm__ava img { width: 100%; height: 100%; object-fit: cover; }
.comm__online { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--card); }
.comm__body { min-width: 0; flex: 1; }
.comm__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.comm__author, .comm__author a { font-weight: 700; color: var(--text); }
.comm__group { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 79, 163, .16); color: #ff8cc3; }
.comm__group *, .comm__group font { color: inherit !important; font-weight: inherit !important; }
.comm__date { color: var(--dim); font-size: 13px; }
.comm__select { margin-left: auto; }
.comm__text { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.comm__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.comm__foot a { color: var(--muted); }
.comm__foot a:hover { color: var(--yellow); }
.comm__act { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.comm__act--danger:hover { color: var(--red); }
.comm__rate { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.comm__rate a { display: inline-flex; align-items: center; gap: 5px; }
.comm-news { margin: 10px 0 -4px; font-weight: 700; }
/* деревоподібні коментарі: відповіді зсунуті й з'єднані лінією гілки */
.comments-tree-list { display: block; margin: 0; padding: 0; list-style: none; }
.comments-tree-item { display: block; margin: 0; padding: 0; }
.comments-tree-list .comments-tree-list { position: relative; margin: -4px 0 0 21px; padding: 0 0 0 20px !important; border-left: 2px solid var(--line-2); }
.comments-tree-list .comments-tree-list .comm { position: relative; background: #283144; }
.comments-tree-list .comments-tree-list .comm::before { content: ""; position: absolute; top: 36px; left: -20px; width: 18px; height: 2px; background: var(--line-2); }
/* панель «Вибрані коментарі» для адміністратора */
.mass_comments_action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 0; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, .2); font-size: 14px; color: var(--muted); }
.mass_comments_action select { width: auto !important; min-width: 220px; flex: 0 1 300px; min-height: 42px; }
.mass_comments_action input[type="submit"], .mass_comments_action .bbcodes { min-height: 42px; padding: 0 22px; background: linear-gradient(135deg, var(--pink), var(--pink-2)); }

.add-comm { padding: 20px; border-radius: var(--r); background: var(--card); }
.add-comm__title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.add-comm__title .fal { color: var(--yellow); font-size: 20px; }
.add-comm__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.add-comm__extra { display: grid; gap: 12px; margin-top: 12px; }
.add-comm__extra:not(:has(*)) { display: none; }
.add-comm__question { display: grid; gap: 6px; }
.add-comm__question label { font-size: 14px; font-weight: 500; color: var(--muted); }
/* нижній рядок: капча + поле коду + кнопка */
.add-comm__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.add-comm__captcha { display: flex; align-items: center; gap: 10px; }
.add-comm__captcha-img { position: relative; flex-shrink: 0; line-height: 0; }
.add-comm__captcha-img a { display: block; border-radius: 12px; }
.add-comm__captcha-img img { display: block; width: auto !important; height: 50px !important; border-radius: 12px; background: #fff; cursor: pointer; transition: opacity .2s; }
.add-comm__captcha-img:hover img { opacity: .85; }
.add-comm__refresh {
	position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1;
	color: #231c00; background: var(--yellow); box-shadow: 0 0 0 3px var(--card); pointer-events: none;
}
.add-comm__captcha input { width: 160px; height: 50px; min-height: 50px; }
.add-comm__recaptcha { min-width: 0; }
.add-comm__send { margin-left: auto; min-height: 50px; padding: 0 26px; }
.add-comm__upload { margin-top: 10px; font-size: 14px; }
.add-comm__upload a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 13. Форми ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="date"],
textarea, select, .f_input, .f_textarea {
	width: 100%; min-height: 46px; padding: 10px 16px; border-radius: 14px;
	background: #1d2433; color: var(--text); border: 1px solid var(--line-2); outline: 0;
	transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { cursor: pointer; }
input:focus, textarea:focus, select:focus { border-color: rgba(255, 79, 163, .65); box-shadow: 0 0 0 4px rgba(255, 79, 163, .14); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--pink); vertical-align: middle; }
input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; display: inline-grid; place-content: center; flex-shrink: 0;
	width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; vertical-align: middle; cursor: pointer;
	border-radius: 6px; border: 2px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .2); transition: background .15s, border-color .15s;
}
input[type="checkbox"]:hover { border-color: var(--pink); }
input[type="checkbox"]:checked { background: var(--pink); border-color: var(--pink); }
input[type="checkbox"]:checked::after { content: "\f00c"; font: 900 11px/1 "Font Awesome 5 Pro"; color: #fff; }
input[type="checkbox"]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
input[type="file"] { padding: 10px; border: 1px dashed var(--line-2); border-radius: 14px; width: 100%; background: #1d2433; }
input[type="button"], input[type="submit"], input[type="reset"], .bbcodes, .fbutton, button.bbcodes {
	display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px;
	font-weight: 700; color: #fff; background: var(--card-2); border: 0; cursor: pointer; transition: .2s;
}
input[type="button"]:hover, input[type="submit"]:hover, .bbcodes:hover, .fbutton:hover { background: var(--pink); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 14px; color: var(--muted); cursor: pointer; }

.box, .form-wrap, .pm-page, .search-page, .static-page {
	padding: 28px; border-radius: var(--r); background: var(--card); margin-bottom: 24px;
}
.form-wrap h1, .pm-page h1 { margin-bottom: 18px; font-size: 26px; font-weight: 900; text-transform: uppercase; color: var(--yellow); }
.form-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.form-item > label { color: var(--muted); font-size: 14px; font-weight: 500; }
.form-item input[type="button"] { grid-column: 2; justify-self: start; }
.form-item--captcha, .add-comm .form-item { grid-template-columns: 1fr; }
.form-textarea { margin-bottom: 16px; }
.form-textarea > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.form-checks { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.form-submit, .form-buts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-submit button, .form-buts .button { min-height: 48px; padding: 0 28px; border-radius: 999px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-2)); }
.form-submit button + button { background: var(--card-2); }
.form-secur { display: grid; gap: 10px; }
.captcha, .form-secur { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.captcha img, .form-secur img, .dle-captcha img { border-radius: 10px; }
.captcha input { max-width: 200px; }
.tableform, .xfields { width: 100%; border-collapse: collapse; }
.tableform td, .tableform th { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); text-align: left; vertical-align: top; }
.form-xfield { margin-bottom: 14px; }

/* Профіль, ПП, статистика */
/* Профіль користувача */
.profile { margin-bottom: 24px; }
.profile__card { display: flex; gap: 26px; align-items: center; padding: 26px; border-radius: var(--r); background: var(--card); }
.profile__ava { position: relative; flex-shrink: 0; width: 140px; }
.profile__ava img { display: block; width: 140px; height: 140px; object-fit: cover; border-radius: 50%; background: var(--card-2); box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--pink); }
.profile__status { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); white-space: nowrap; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--card-2); color: var(--muted); box-shadow: 0 0 0 3px var(--card); }
.profile__status.is-online { background: var(--green); color: #06301a; }
.profile__main { min-width: 0; flex: 1; }
.profile__name { font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.1; color: var(--yellow); word-break: break-word; }
.profile__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.profile__group img { width: 20px; height: 20px; }
.profile__group-name { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-weight: 700; background: rgba(255, 79, 163, .16); color: #ff8cc3; }
.profile__group-name *, .profile__group-name font { color: inherit !important; font-weight: inherit !important; }
.profile__nums { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.profile__num { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(0, 0, 0, .2); color: var(--muted); font-size: 13px; }
.profile__num b { font-size: 24px; font-weight: 900; color: var(--text); }
.profile__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.profile__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--card-2); color: var(--muted); transition: background .2s; }
.profile__btn a { color: var(--text); }
.profile__btn a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* уся «таблетка» клікабельна */
.profile__btn:hover { background: #435069; }
.profile__btn .fal { color: var(--yellow); }
.profile__btn--pink { background: linear-gradient(135deg, var(--pink), var(--pink-2)); box-shadow: 0 8px 20px var(--pink-glow); }
.profile__btn--pink:hover { background: linear-gradient(135deg, var(--pink), var(--pink-2)); filter: brightness(1.08); }
.profile__btn--pink a, .profile__btn--pink .fal { color: #fff; }
.profile__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0 0; }
.profile__info > div { padding: 14px 16px; border-radius: 14px; background: var(--card); }
.profile__info dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.profile__info dd { margin: 4px 0 0; color: var(--text); word-break: break-word; }
.profile__info .profile__wide { grid-column: 1 / -1; }
.profile__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.profile__links:empty { display: none; }
.profile__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--card); font-weight: 500; }
.profile__link .fal { color: var(--yellow); }
.profile-edit { margin-top: 10px; }
.profile-edit__sub { margin: 24px 0 14px; font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--text); }
.profile-edit__note { margin: 8px 0 0; font-size: 13px; color: #ff9aa6; }
.pm-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pm-menu a { display: inline-flex; height: 40px; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--card-2); color: var(--text); font-weight: 700; }
.pm-menu a:hover { background: var(--pink); color: #fff; }
.pm-status { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.pm_progress_bar { height: 10px; margin: 8px 0; border-radius: 10px; background: rgba(0, 0, 0, .25); overflow: hidden; }
.pm_progress_bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--pink-2)); }
.pm, .userstop { width: 100%; border-collapse: collapse; }
.pm, .userstop { border: 0 !important; border-radius: 14px; overflow: hidden; }
.pm tr td, .pm tr th, .userstop tr td, .userstop tr th { padding: 12px 10px; border: 0 !important; border-bottom: 1px solid var(--line) !important; font-size: 14px; color: #dde2ee; text-align: left; }
.pm tr:nth-child(2n+2), .userstop tr:nth-child(2n+2) { background: rgba(255, 255, 255, .03) !important; }
.userstop thead td, .userstop thead th, .pm thead td { background: rgba(0, 0, 0, .25); color: var(--muted) !important; font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.userstop td *, .userstop td font { color: inherit; }
.table-resp { overflow-x: auto; }
/* Статистика сайту */
.stats-period { display: grid; gap: 8px; margin-bottom: 18px; }
.stats-period__item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, .18); color: var(--muted); }
.stats-period__label { min-width: 96px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--yellow); }
.stats-period b, .stats-card b { color: var(--text); font-weight: 800; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stats-card { padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, .18); }
.stats-card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; text-transform: uppercase; color: var(--yellow); }
.stats-card li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.stats-card li:last-child { border-bottom: 0; }
.stats-sub { margin-bottom: 12px; font-size: 18px; font-weight: 800; text-transform: uppercase; }

/* Пошук */
.search-simple { display: grid; gap: 12px; }
.search-simple__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.search-ext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search-ext fieldset { margin: 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; color: var(--muted); font-size: 14px; }
.search-ext legend { padding: 0 6px; font-weight: 700; color: var(--text); }
.search-ext select, .search-ext input { margin: 4px 0; }
.search-ext__wide { grid-column: 1 / -1; }
.search-msg { margin-top: 16px; color: var(--muted); }
.grid--search > .search-page { margin-bottom: 0; }

/* Повідомлення DLE */
.msg, .berrors { margin: 0 0 24px; padding: 16px 20px; border-radius: 16px; background: rgba(255, 210, 63, .1); color: #ffe7a3; border: 1px solid rgba(255, 210, 63, .25); }
.msg__title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 800; color: var(--yellow); }
.berrors a, .msg a { color: #fff; text-decoration: underline; }
.cloud-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tags a { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--card-2); color: var(--text); }
.cloud-tags a:hover { background: var(--pink); color: #fff; }

/* ---------- 14. Службові елементи DLE (темна тема) ---------- */
.quote, .scriptcode, .title_spoiler, .text_spoiler, .hide { border-radius: 12px; background: rgba(0, 0, 0, .2) !important; color: #dde2ee !important; border: 1px solid var(--line) !important; }
.quote_block { margin: 12px 0; }
.title_quote { margin: 12px 0 0; padding: 9px 16px 0; border-left: 4px solid var(--pink); border-radius: 12px 12px 0 0; background: rgba(0, 0, 0, .2); font-size: 13px; font-weight: 700; color: var(--muted); }
.title_quote::before { content: "\f10d"; margin-right: 8px; font: 900 12px/1 "Font Awesome 5 Pro"; color: var(--pink); }
.quote { position: relative; margin: 8px 0 !important; padding: 12px 16px !important; font: inherit !important; font-style: normal !important; line-height: 1.55 !important; border: 0 !important; border-left: 4px solid var(--pink) !important; }
.title_quote + .quote { margin-top: 0 !important; padding-top: 8px !important; border-radius: 0 0 12px 12px; }
.quote::after, .quote::before { display: none !important; content: none !important; }
.quote > *:last-child, .quote_body > *:last-child { margin-bottom: 0; }
.title_spoiler { padding: 8px 12px; }
.title_spoiler a { color: var(--yellow) !important; }
.text_spoiler { padding: 12px; border-top: 0 !important; }

.bb-pane { background: #1d2433 !important; border: 1px solid var(--line-2) !important; border-bottom: 0 !important; border-radius: 14px 14px 0 0 !important; box-shadow: none !important; }
.bb-btn { color: var(--muted) !important; }
.bb-btn:hover { background: rgba(255, 255, 255, .08) !important; color: #fff !important; }
.bb-editor textarea, .bb-editor + textarea, #comments { border-radius: 0 0 14px 14px !important; }
.bb-pane-dropdown { background: var(--card) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; }
.bb-pane-dropdown > li > a { color: var(--text) !important; }
.bb-pane-dropdown > li > a:hover { background: rgba(255, 255, 255, .08) !important; }
.tox-tinymce { border-radius: 14px !important; border-color: var(--line-2) !important; }

#searchsuggestions {
	z-index: 99999; width: 360px !important; max-width: calc(100% - 24px); padding: 8px;
	border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); font-size: 14px;
}
#searchsuggestions a { display: block; padding: 0; border: 0; color: var(--text); border-radius: 12px; }
#searchsuggestions a:hover { background: rgba(255, 255, 255, .07); }
#searchsuggestions .fs-item { display: flex; align-items: center; gap: 12px; padding: 8px; }
#searchsuggestions .fs-item img { width: 40px; height: 60px; flex-shrink: 0; object-fit: cover; border-radius: 8px; }
#searchsuggestions .fs-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#searchsuggestions span.searchheading { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
#searchsuggestions .fs-item__meta { font-size: 12px; color: var(--muted); }
#searchsuggestions span.seperator a { margin-top: 6px; padding: 12px; text-align: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-2)); }
#searchsuggestions span.notfound { display: block; padding: 14px; color: var(--muted); }
#searchsuggestions .break { display: none; }

.ui-widget-overlay { background: rgba(5, 7, 14, .75) !important; opacity: 1 !important; }
.ui-dialog { padding: 0 !important; border-radius: 20px !important; background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .6) !important; overflow: hidden; max-width: calc(100% - 20px); }
.ui-dialog .ui-dialog-titlebar { position: relative; padding: 0 !important; background: rgba(0, 0, 0, .2) !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; color: var(--text) !important; }
.ui-dialog .ui-dialog-title { display: block; float: none !important; width: auto !important; margin: 0 !important; padding: 18px 64px 18px 22px !important; font-size: 18px !important; font-weight: 800 !important; color: var(--text) !important; }
.ui-dialog .ui-dialog-content { padding: 20px 22px !important; background: transparent !important; color: #dde2ee !important; }
.ui-dialog .ui-dialog-buttonpane { margin: 0 !important; padding: 4px 22px 22px !important; background: transparent !important; border: 0 !important; text-align: right; }
.ui-dialog .ui-dialog-buttonset { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; float: none !important; }
.ui-dialog .ui-dialog-buttonpane button {
	height: auto !important; min-height: 46px; margin: 0 !important; padding: 0 24px !important; line-height: 1 !important;
	border-radius: 999px !important; font-size: 15px !important; font-weight: 700 !important; color: #fff !important; text-shadow: none !important;
	background: var(--card-2) !important; border: 0 !important; box-shadow: none !important; transition: background .2s, box-shadow .2s;
}
.ui-dialog .ui-dialog-buttonpane button:hover { background: #435069 !important; }
/* у DLE перша кнопка — «Скасувати», остання — дія («Надіслати», «Так»), тому виділяємо останню */
.ui-dialog .ui-dialog-buttonpane button:last-child { background: linear-gradient(135deg, var(--pink), var(--pink-2)) !important; box-shadow: 0 8px 20px var(--pink-glow) !important; }
.ui-dialog .ui-dialog-buttonpane button.ui-button-delete { background: var(--red) !important; box-shadow: none !important; }
/* кнопка закриття: ховаємо текст «Close» і стару іконку, малюємо свій хрестик */
.ui-dialog .ui-dialog-titlebar-close {
	position: absolute !important; top: 50% !important; right: 14px !important; left: auto !important; bottom: auto !important;
	width: 38px !important; height: 38px !important; margin: -19px 0 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 12px !important; background: rgba(255, 255, 255, .07) !important; box-shadow: none !important;
	font-size: 0 !important; line-height: 0 !important; color: transparent !important; text-indent: 0 !important; overflow: hidden; cursor: pointer;
}
.ui-dialog .ui-dialog-titlebar-close > * { display: none !important; }
.ui-dialog .ui-dialog-titlebar-close::after {
	content: "\f00d"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font: 300 20px/1 "Font Awesome 5 Pro"; color: var(--muted);
}
.ui-dialog .ui-dialog-titlebar-close:hover { background: var(--pink) !important; }
.ui-dialog .ui-dialog-titlebar-close:hover::after { color: #fff; }
.ui-dialog textarea.ui-state-error, .ui-dialog input.ui-state-error { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(255, 84, 104, .18) !important; }
.dle-alert, .dle-confirm, .dle-promt { padding: 20px 22px !important; }
.ui-dialog input, .ui-dialog textarea, .ui-dialog select { background: #1d2433 !important; color: var(--text) !important; }
.ui-menu, .ui-autocomplete { background: var(--card) !important; border: 1px solid var(--line-2) !important; border-radius: 12px; color: var(--text); }
.ui-menu .ui-menu-item a, .ui-menu .ui-menu-item div { color: var(--text) !important; }
.ui-menu .ui-state-active, .ui-menu .ui-menu-item a.ui-state-active { background: var(--pink) !important; color: #fff !important; border: 0 !important; }

.unit-rating { margin: 0 !important; }
.ui-helper-hidden-accessible { display: none; }

/* Сповіщення DLE (DLEPush): «Скаргу надіслано», помилки тощо */
.DLEPush { position: fixed; z-index: 2001; left: auto; right: 20px; top: calc(var(--hdr-h) + 12px); width: 400px; max-width: calc(100% - 40px); }
@keyframes DLEPush-show { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.DLEPush-notification.wrapper {
	position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; width: 100%; margin-bottom: 10px;
	border-radius: 16px; overflow: hidden; background: var(--card); color: var(--text);
	border: 1px solid var(--line-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); animation: DLEPush-show .35s var(--ease);
}
.DLEPush-notification .DLEPush-icon { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; display: flex; align-items: center; justify-content: center; width: 50px; color: #fff; background: var(--pink); }
.DLEPush-notification .DLEPush-icon svg { width: 22px; height: 22px; }
.DLEPush-notification .DLEPush-header { grid-column: 2; grid-row: 1; margin: 12px 44px 0 16px; font-weight: 800; }
.DLEPush-notification .DLEPush-header:empty { margin-top: 0; }
.DLEPush-notification .DLEPush-message { grid-column: 2; grid-row: 2; margin: 12px 44px 12px 16px; font-size: 14px; line-height: 1.45; color: #dde2ee; }
.DLEPush-notification .DLEPush-message ul, .DLEPush-notification .DLEPush-message li { list-style: none; padding: 0; margin: 0; }
.DLEPush-notification .DLEPush-close { position: absolute; top: 8px; right: 10px; padding: 0; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.DLEPush-notification .DLEPush-close:hover { color: #fff; }
.DLEPush-notification.push-success .DLEPush-icon { background: var(--green); }
.DLEPush-notification.push-warning .DLEPush-icon { background: #ff9f1a; }
.DLEPush-notification.push-error .DLEPush-icon { background: var(--red); }

/* Індикатор завантаження DLE */
#loading-layer.withtext { padding: 12px 18px; border-radius: 14px; background: rgba(20, 25, 37, .94); color: #fff; box-shadow: var(--shadow); }
#loading-layer.withouttext { padding: 6px 6px 0; border-radius: 50%; background: rgba(20, 25, 37, .85); color: #fff; }

/* Рейтинг, картинки в тексті, галереї */
.ratingplus { color: var(--green); }
.ratingminus { color: var(--red); }
.ratingzero { color: var(--dim); }
.image-bordered { border: 1px solid var(--line-2); }
.image-shadows { box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.image-padded { padding: .5rem; }
.xfieldimagegallery, .comments-image-gallery { margin: 0; padding: 0; list-style: none; clear: both; }
.xfieldimagegallery li, .comments-image-gallery li { list-style: none; margin: 0; padding: 0; }
.comments-image-gallery li img { float: left; width: 100px; height: 100px; margin: 0 6px 6px 0; object-fit: cover; border-radius: 10px; }
.comments-user-profile { font-weight: 700; cursor: pointer; color: var(--blue); }
.mce-toc { margin: 0 0 .7rem; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; }
.mce-accordion summary { cursor: pointer; }

/* Особисті повідомлення (DLE 18) */
.pm td.pm_list, .pm th.pm_head { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.pm td.pm_head { font-weight: 700; }
.pm th.pm_checkbox { text-align: center; }
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user { cursor: pointer; }
.pm_list.pm_icon svg { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
.pm_list.pm_icon.pm-unread-image { color: var(--blue); }
.pm_list.pm_icon.pm-reply-image { color: var(--green); }
.pm_list.pm_icon.pm-read-image { color: var(--dim); }
.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user { color: var(--muted); font-size: .8rem; }
.pm_navigation { margin-top: 1rem; }
.pm_navigation .navigation { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: .4rem; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.pm_navigation .navigation a, .pm_navigation .navigation span { min-width: 2.25rem; padding: .5rem; border-radius: 8px; text-align: center; }
.pm_navigation .navigation a { color: var(--text); }
.pm_navigation .navigation a:hover { background: rgba(255, 255, 255, .08); }
.pm_navigation .navigation span { background: var(--yellow); color: #231c00; }

/* Службові поля та кнопки з розмітки DLE */
.wide, .ui-dialog textarea, select#category, .timezoneselect, .twofactorselect, .quick-edit-text { width: 100% !important; }
input[type="text"].comments_author_field { width: 100%; margin-bottom: 10px; }
.xfieldsdescr { width: 200px; }
.c-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-captcha img { width: 130px; height: 46px; border-radius: 10px; }
.c-captcha > input { width: 130px; }
.btn-big { min-height: 52px; padding: 0 28px; }
.btn-border { background: transparent !important; box-shadow: inset 0 0 0 2px var(--pink); color: var(--pink); }
.btn-white { background: #fff; color: var(--bg); }
.bbcodes.cancelchanges { background: var(--card-2); }
.self_delete_link { display: inline-flex; align-items: center; min-height: 46px; margin-left: 15px; padding: 0 24px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; }
.self_delete_link:hover { color: #fff; filter: brightness(1.1); }

/* Візуальний редактор TinyMCE (якщо увімкнено) */
.wseditor { border-top: 4px solid var(--pink); border-radius: 12px 12px 0 0; }
.wseditor .tox-tinymce { border-top: none; }
#dlefastreplycomments .wseditor { margin-bottom: 10px; }
.dlecomments-editor .tox .tox-toolbar__primary, .dlefastedit-editor .tox .tox-toolbar__primary { border-top: 0; box-shadow: none; }
.tox .tox-button:not(.tox-button--naked):not(.tox-button--secondary) { background-color: var(--pink) !important; border-color: var(--pink) !important; }
.tox .tox-dialog__footer .tox-button--secondary { background-color: var(--card-2) !important; border-color: var(--card-2) !important; color: #fff !important; }


/* ---------- 15. Логін-модалка, оверлей ---------- */
.overlay { position: fixed; inset: 0; z-index: 190; background: rgba(5, 7, 14, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal {
	position: fixed; left: 50%; top: 50%; z-index: 200; width: 400px; max-width: calc(100% - 24px); max-height: calc(100% - 24px); overflow: auto;
	transform: translate(-50%, -50%); padding: 28px; border-radius: 24px;
	background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
	animation: pop .25s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.modal__close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 12px; font-size: 20px; color: var(--muted); background: rgba(255, 255, 255, .06); }
.modal__close:hover { color: #fff; background: var(--pink); }
.login-form__title { font-size: 24px; font-weight: 900; text-transform: uppercase; color: var(--yellow); }
.login-form__hint { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }
.login-form__links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
.login-soc { margin-top: 20px; text-align: center; }
.login-soc__title { margin-bottom: 10px; font-size: 13px; color: var(--dim); }
.login-soc__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.login-soc__btns img { width: 36px; height: 36px; border-radius: 10px; }
.login-soc__btns:empty, .login-soc:has(.login-soc__btns:empty) { display: none; }
.login-user { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 40px; }
.login-user__ava { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--pink); }
.login-user__name { font-size: 20px; font-weight: 800; }
.login-user__profile { font-size: 14px; }
.login-admin { margin-bottom: 12px; }
.login-menu { display: grid; gap: 4px; }
.login-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: var(--text); font-weight: 500; }
.login-menu a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.login-menu a .fal { width: 20px; text-align: center; color: var(--yellow); }
.login-menu a b { margin-left: auto; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--card-2); }

/* ---------- 16. Підвал ---------- */
.ftr { margin-top: 0; padding: 40px 0 26px; background: #151a26; border-top: 1px solid var(--line); }
.ftr__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 60px; }
.ftr__about p { margin: 14px 0 0; max-width: 420px; color: var(--dim); font-size: 14px; }
.ftr__title { margin-bottom: 12px; font-size: 15px; font-weight: 800; text-transform: uppercase; color: var(--yellow); }
.ftr__col ul { display: grid; gap: 8px; }
.ftr__col ul ul { display: none; }
.ftr__col a { color: var(--muted); font-size: 14px; }
.ftr__col a:hover { color: #fff; }
.ftr__copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 16px;
	font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-2)); box-shadow: 0 10px 26px var(--pink-glow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 17. Адаптивність ---------- */
@media (max-width: 1280px) {
	.hdr__search { width: 200px; }
	.nav__link { padding: 0 9px; font-size: 16px; }
	.row { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
	.row--posters { grid-auto-columns: calc((100% - 4 * 18px) / 5); }
}

@media (max-width: 1100px) {
	:root { --hdr-h: 64px; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.side { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

	/* Мобільне меню */
	.hdr__burger { display: inline-flex; }
	.hdr__nav {
		position: fixed; left: 0; top: 0; bottom: 0; z-index: 210; width: 300px; max-width: 86vw;
		flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; overflow-y: auto;
		background: var(--card); box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
		transform: translateX(-105%); transition: transform .3s var(--ease);
	}
	body.menu-open .hdr__nav { transform: none; }
	.hdr__nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
	.hdr__nav-head .logo__text { font-size: 24px; }
	.nav { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav__link { height: 46px; font-size: 18px; }
	.nav__item.has-sub > .nav__link::after { display: none; }
	.nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 14px; min-width: 0; }
	.nav__sub::before { display: none; }
	.nav__sub--cats { display: flex; width: auto; max-width: none; max-height: none; overflow: visible; }
	.nav__item--pin > .nav__link { color: var(--muted); font-size: 14px; height: 36px; margin-top: 8px; pointer-events: none; }
	.hdr__nav-extra { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px; border-radius: 12px; color: var(--yellow); font-weight: 700; background: rgba(255, 210, 63, .08); }
	.hdr__search { position: absolute; left: 0; right: 0; top: 100%; width: auto; display: none; padding: 10px 12px 12px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 0, 0, .45); }
	.hdr__search input, .hdr__search input:focus { height: 50px; background: var(--card); }
	.hdr__search-btn { top: 17px; right: 18px; }
	body.search-open .hdr__search { display: block; }
	.hdr__search-toggle { display: inline-flex; }
	.hdr__actions { margin-left: auto; }
	.hdr__in { gap: 12px; }

	.full__layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 860px) {
	.main { padding: 22px 16px 32px; }
	.side { padding: 22px 16px 32px; }
	.wrap { padding: 0 12px; }
	.layout { box-shadow: none; }
	.hero__slide { grid-template-columns: 1fr; min-height: 0; }
	.hero__media { aspect-ratio: 16 / 9; }
	.hero__media::after { background: linear-gradient(transparent 55%, #141a33); }
	.hero__badge { left: 14px; top: 14px; height: 38px; padding: 0 16px; font-size: 14px; }
	.hero__body { padding: 4px 20px 22px; }
	.hero__text { font-size: 15px; -webkit-line-clamp: 3; margin: 12px 0 16px; }
	.hero__btn { min-height: 54px; font-size: 18px; }
	.row { grid-auto-columns: 62%; }
	.row--posters { grid-auto-columns: 40%; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.tile__label { min-height: 70px; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
	.card__title { font-size: 18px; }
	.card__label { min-height: 72px; }

	.full__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "player" "aside" "banner" "more" "tags" "rel" "comms"; gap: 24px; }
	.full__top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; }
	.full__head-poster { display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 2 / 3; }
	.full__head-poster img { width: 100%; height: 100%; object-fit: cover; }
	.full__desc { font-size: 16px; }
	.player__tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
	.player__tabs::-webkit-scrollbar { display: none; }
	.ptab { flex-shrink: 0; }
	.full__actions .btn { flex: 1 1 auto; }
	.full__title { margin-top: 10px; font-size: 26px; }
	.full__aside .poster { display: none; }
	.full__actions .btn--lg { min-height: 46px; padding: 0 20px; font-size: 16px; }
	.stats { gap: 6px; }
	.stat { height: 32px; padding: 0 10px; font-size: 13px; }
	.ptab { height: 44px; padding: 0 16px; font-size: 16px; }
	.player__screen { border-radius: 14px; margin: 0 -4px; }
	.player__start-btn { width: 74px; height: 74px; font-size: 28px; }
	.info > div { grid-template-columns: 100px minmax(0, 1fr); }

	.ftr__in { grid-template-columns: 1fr; }
	.form-item { grid-template-columns: 1fr; }
	.form-item input[type="button"] { grid-column: auto; }
	.profile__card { flex-direction: column; text-align: center; padding: 26px 16px 20px; }
	.profile__group, .profile__nums, .profile__btns { justify-content: center; }
	.search-ext { grid-template-columns: 1fr; }
	.box, .form-wrap, .pm-page, .search-page, .static-page { padding: 20px 16px; }
	.seo { padding: 20px 18px; }
	.add-comm__row { grid-template-columns: 1fr; }
	.add-comm__captcha { flex: 1 1 100%; }
	.add-comm__captcha input { flex: 1; width: auto; min-width: 0; }
	.add-comm__send { width: 100%; margin-left: 0; }
}

@media (max-width: 520px) {
	.DLEPush { right: 12px; max-width: calc(100% - 24px); }
	.logo__text { font-size: 24px; }
	.logo__icon { width: 30px; height: 30px; }
	.hdr__login { min-height: 40px; padding: 0 16px; font-size: 15px; }
	.icon-btn { width: 40px; height: 40px; }
	.full__top { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
	.full__title { font-size: 22px; }
	.full__title-sub { font-size: 12px; }
	.chip { height: 26px; padding: 0 10px; font-size: 11px; }
	.player__foot { flex-direction: column; align-items: stretch; }
	.player__tools { flex-wrap: nowrap; }
	.player__tools > * { flex: 1 1 auto; justify-content: center; }
	.tool, .player__tools a { padding: 0 12px; font-size: 14px; }
	.sect__head--catalog { flex-direction: column; align-items: flex-start; }
	.sorter .sort li a { height: 32px; padding: 0 12px; font-size: 13px; }
	.ftr__in { grid-template-columns: 1fr; }
	.comm { padding: 12px; gap: 10px; }
	.comments-tree-list .comments-tree-list { margin-left: 10px; padding-left: 10px !important; }
	.comments-tree-list .comments-tree-list .comm::before { left: -10px; width: 8px; }
	.mass_comments_action select { flex: 1 1 100%; }
	.comm__ava { width: 36px; height: 36px; }
}

@media (hover: none) {
	.hero__arrow { display: none; }
	.row-arrows { display: none; }
	.card__play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
