/* =====================================================================
   SerialTurk — стили шаблона
   Структура прежняя (шапка, популярное, меню слева, контент, подвал),
   без Font Awesome, Owl Carousel и jQuery-анимаций.
   ===================================================================== */

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(../fonts/montserrat-cyr.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url(../fonts/montserrat-lat.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--bg: #0c1016;
	--wrap: #1f1127;
	--panel: #180c1e;
	--card: #22122b;
	--card-2: #2b1836;
	--field: #121820;
	--field-2: #18202a;
	--line: rgba(255, 255, 255, .08);
	--text: #c3c8d4;
	--muted: #8b97ab;
	--link: #aac2e0;
	--title: #e6ebf3;
	--accent: #ffbb00;
	--accent-2: #ffd35c;
	--on-accent: #16100a;
	--pink: #e847ae;
	--good: #7cc24a;
	--bad: #ef4a5a;
	--r: 12px;
	--r-sm: 8px;
	--gap: 20px;
	--pad: 32px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .45);
	--font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	color-scheme: dark;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	min-width: 320px; background: var(--bg) url(../images/bg.webp); color: var(--text);
	font: 400 15px/1.5 var(--font); overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; border: 0; }
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: var(--link); text-decoration: none; transition: color .2s, background-color .2s, opacity .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5 { color: var(--title); font-weight: 600; line-height: 1.3; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
[hidden], .hidden, #dofullsearch { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.clr { clear: both; }
.clearfix::after { content: ""; display: table; clear: both; }
.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* поля и кнопки */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], select, textarea {
	width: 100%; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--field); color: var(--title); font-size: 15px; -webkit-appearance: none; appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
select { width: auto; padding-right: 32px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aac2e0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; overflow: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 187, 0, .15); }
::placeholder { color: var(--muted); opacity: 1; }
.btn, .button, .fbutton, .ac-submit button, .login-btn button, .form-submit button, .qq-upload-button, .usp-btn a,
input[type="button"], input[type="submit"], input[type="reset"], .ui-dialog-buttonset button, .bbcodes, .vote-buts button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
	border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent);
	font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .2s, transform .1s;
}
.btn:hover, .button:hover, .fbutton:hover, .ac-submit button:hover, .login-btn button:hover, .form-submit button:hover, .qq-upload-button:hover, .usp-btn a:hover,
input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover, .ui-dialog-buttonset button:hover, .bbcodes:hover, .vote-buts button:hover { background: var(--accent-2); color: var(--on-accent); }
.btn:active, .ac-submit button:active, .login-btn button:active { transform: translateY(1px); }

/* иконки: SVG-маски, цвет = currentColor */
.ic {
	display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.125em;
	background: currentColor;
	-webkit-mask: var(--i, linear-gradient(transparent, transparent)) center / contain no-repeat;
	mask: var(--i, linear-gradient(transparent, transparent)) center / contain no-repeat;
}
.ic-dislike { transform: rotate(180deg); }
.ic-search{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}
.ic-menu{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E")}
.ic-film{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M7 3v18M17 3v18M3 12h18M3 7.5h4M3 16.5h4M17 7.5h4M17 16.5h4'/%3E%3C/svg%3E")}
.ic-home{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9v12h14V9'/%3E%3Cpath d='M10 21v-6h4v6'/%3E%3C/svg%3E")}
.ic-calendar{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E")}
.ic-eye{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
.ic-comment{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-5 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E")}
.ic-like{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v11'/%3E%3Cpath d='M15 5.9 14 10h5.8a2 2 0 0 1 1.9 2.6l-2.3 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.8a2 2 0 0 0 1.8-1.1L12 2a3.1 3.1 0 0 1 3 3.9Z'/%3E%3C/svg%3E")}
.ic-heart{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3C/svg%3E")}
.ic-heart-fill{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3C/svg%3E")}
.ic-edit{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.8 2.8 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E")}
.ic-alert{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E")}
.ic-close{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E")}
.ic-user{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E")}
.ic-plus{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")}
.ic-mail{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E")}
.ic-chart{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17v-5M13 17V8M18 17v-9'/%3E%3C/svg%3E")}
.ic-file{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E")}
.ic-logout{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E")}
.ic-cog{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z'/%3E%3C/svg%3E")}
.ic-question{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01'/%3E%3C/svg%3E")}
.ic-left{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E")}
.ic-right{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}
.ic-up{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E")}
.ic-down{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")}
.ic-download{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E")}
.ic-list{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E")}
.ic-link{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E")}
.ic-send{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.2 3.2 2.9 10.3c-1.2.5-1.2 1.2 0 1.6l4.7 1.5 1.8 5.6c.2.6.1.9.8.9.5 0 .7-.2 1-.5l2.3-2.2 4.8 3.5c.9.5 1.5.2 1.7-.8l3.1-14.8c.3-1.3-.5-1.9-1.9-1.3ZM8.6 13.2l9.6-6c.5-.3.9-.1.5.2l-8.1 7.3-.3 3.4Z'/%3E%3C/svg%3E")}


/* служебные flex-классы старого шаблона — оставлены, ими размечены .tpl */
.fx-row { display: flex; flex-wrap: wrap; justify-content: space-between; }
.fx-col { display: flex; flex-direction: column; }
.fx-center { justify-content: center; }
.fx-middle { align-items: center; }
.fx-start { justify-content: flex-start; }
.fx-between { justify-content: space-between; }
.fx-1 { flex: 1 1 0; min-width: 0; }
.icon-left .ic { margin-right: 8px; }

/* картинки в карточках */
.img-box, .img-wide, .img-fit { position: relative; overflow: hidden; }
.img-fit img { width: 100%; height: 100%; object-fit: cover; }
.img-wide img { width: 100%; }

/* ---------- каркас ---------- */
.wrap { position: relative; padding: 24px 16px 40px; }
.wrap-center { max-width: 1240px; margin: 0 auto; }
.wrap-main { position: relative; background: var(--wrap); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); overflow: clip; }
.cols { display: flex; align-items: flex-start; gap: 36px; padding: var(--pad); }
.main { flex: 1 1 0; min-width: 0; min-height: 60vh; }
.sidebar { flex: 0 0 300px; }

/* ---------- шапка ---------- */
.header { display: flex; align-items: center; gap: 24px; padding: 18px var(--pad); background: var(--panel); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--link); font-size: 30px; font-weight: 300; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo b { color: var(--accent); font-weight: 700; }
.logo:hover { color: var(--title); }
.search-wrap { flex: 1 1 auto; max-width: 560px; margin-left: auto; }
.search-box { position: relative; }
.search-box input { height: 46px; padding: 0 52px 0 18px; border-radius: 999px; background: var(--field); font-size: 14px; }
.search-btn { position: absolute; top: 3px; right: 3px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--link); font-size: 18px; }
.search-btn:hover { background: var(--accent); color: var(--on-accent); }
.header-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.header-btn:hover { background: var(--accent-2); }
.btn-menu { display: none; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--card); color: var(--accent); font-size: 24px; }

/* ---------- «Популярные» — лента с прокруткой ---------- */
.carou-sect { padding: 22px var(--pad) 26px; background: linear-gradient(180deg, var(--panel), var(--wrap)); border-bottom: 1px solid var(--line); }
.carou-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.carou-title { display: flex; align-items: center; gap: 10px; color: var(--title); font-size: 19px; font-weight: 600; line-height: 1.3; }
.carou-head .carou-title { flex: 1 1 auto; margin: 0; }
.carou-title .ic, .sect-title .ic, .side-bt .ic, .speedbar .ic { color: var(--accent); }
.carou-nav { display: flex; gap: 8px; }
.carou-nav button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); color: var(--title); font-size: 18px; transition: background-color .2s, color .2s, opacity .2s; }
.carou-nav button:hover { background: var(--accent); color: var(--on-accent); }
.carou-nav button:disabled { opacity: .35; pointer-events: none; }
.carou-track {
	--cols: 7;
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * 16px) / var(--cols)); gap: 16px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px;
}
.carou-track::-webkit-scrollbar { display: none; }
.frels .carou-track { --cols: 5; }
.popular-item { scroll-snap-align: start; min-width: 0; }
.popular-item-img { display: block; position: relative; aspect-ratio: 2 / 3; border-radius: var(--r); overflow: hidden; background: var(--field); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.popular-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.popular-item-img::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(9, 12, 16, .95)); pointer-events: none; }
.popular-item-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 12px; color: var(--title); font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popular-item-img:hover img { transform: scale(1.05); }
.popular-item-img:hover .popular-item-title { color: var(--accent); }

/* ---------- боковая колонка ---------- */
.side-box { margin-bottom: 28px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.side-bt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 14px; color: var(--title); font-size: 17px; font-weight: 600; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.side-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card-2); color: var(--title); font-size: 14px; font-weight: 500; }
.side-links a:hover { background: var(--accent); color: var(--on-accent); }
.side-bc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.nav-col { min-width: 0; }
.nav-title { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nav-menu a { display: block; padding: 5px 0; color: var(--text); font-size: 14px; overflow-wrap: normal; hyphens: auto; }
.nav-menu a:hover { color: var(--accent); }
.side-popular-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-popular-item:first-child { padding-top: 0; }
.side-popular-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-popular-item-title { color: var(--title); font-size: 14px; font-weight: 500; line-height: 1.4; }
.side-popular-item:hover .side-popular-item-title { color: var(--accent); }
.side-popular-item-info { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.side-recommend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.side-recommend-item { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 2 / 3; background: var(--field); }
.side-recommend-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.side-recommend-item:hover img { transform: scale(1.05); }

/* мобильное меню: колонка выезжает слева */
.menu-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(0, 0, 0, .65); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.sidebar-close { display: none; }

/* ---------- разделы и карточки ---------- */
.sect { margin-bottom: 36px; }
.sect:last-child { margin-bottom: 0; }
.sect-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sect-title { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 24px; }
.sect-title .ic { font-size: 22px; }

.sorter { position: relative; flex: none; }
.sorter-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card-2); color: var(--title); font-size: 13px; }
.sorter-btn:hover, .sorter.is-open .sorter-btn { background: var(--accent); color: var(--on-accent); }
.sorter form { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 190px; padding: 8px; background: var(--field-2); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.sorter.is-open form { display: block; }
.sorter li a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: 14px; }
.sorter li a:hover { background: var(--card-2); color: var(--title); }
.sorter li[class] a { color: var(--accent); font-weight: 600; }
.sorter li.asc a::after, .sorter li.desc a::after { content: " ↓"; }
.sorter li.desc a::after { content: " ↑"; }

.short-item { margin-bottom: 18px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.short-item:hover { border-color: rgba(255, 187, 0, .25); }
.short-cols { display: flex; gap: 20px; }
.short-img { position: relative; flex: 0 0 170px; aspect-ratio: 2 / 3; align-self: flex-start; border-radius: var(--r-sm); overflow: hidden; background: var(--field); box-shadow: 0 6px 16px rgba(0, 0, 0, .45); }
.short-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.short-img:hover img { transform: scale(1.04); }
.short-desc { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 1.6; }
.short-header { margin-bottom: 8px; font-size: inherit; font-weight: inherit; }
.short-title { display: block; color: var(--title); font-size: 20px; font-weight: 600; line-height: 1.35; }
a.short-title:hover { color: var(--accent); }
.short-text { color: var(--text); }
.short-list { margin: 10px 0 0; }
.short-list li { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 3px 0; font-size: 14px; line-height: 1.5; }
.short-list li > span:first-child { color: var(--muted); }
.short-list a { color: var(--accent); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.short-list a:hover { text-decoration: underline; }
.new-series { display: inline-block; justify-self: start; padding: 1px 10px; border-radius: 999px; background: rgba(255, 187, 0, .14); color: var(--accent); font-weight: 600; font-size: 13px; }
.short-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 14px; color: var(--muted); font-size: 13px; }
.short-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.short-rating { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--field); }
.short-rating a { display: inline-flex; }
.short-rating .ic-like { color: var(--good); }
.short-rating .ic-dislike { color: var(--bad); margin-left: 6px; }
.short-label { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.short-btn { margin-left: auto; min-height: 36px; padding: 0 16px; font-size: 13px; }
.mrating { overflow: hidden; }
.mrating a { transition: none; }

/* SEO-текст и навигация по страницам */
.site-desc { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.75; }
.site-desc h1, .site-desc h2 { margin-bottom: 10px; color: var(--link); font-size: 18px; font-weight: 600; }
.site-desc p { margin-bottom: 10px; }
.site-desc a { color: var(--accent); text-decoration: underline; }
.site-desc img { float: left; max-width: 200px; margin: 0 16px 10px 0; border-radius: var(--r-sm); }
.site-desc li { list-style: disc; margin-left: 24px; }
.bottom-nav { margin-top: 24px; }
.navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.navigation a, .navigation span, .pprev a, .pnext a, .pprev > span, .pnext > span {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 10px; background: var(--field); color: var(--link); font-weight: 600;
}
.navigation a:hover { background: var(--card-2); color: var(--accent); }
.navigation span:not(.nav_ext) { background: var(--accent); color: var(--on-accent); }
.speedbar { margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.speedbar.nowrap { white-space: normal; overflow: visible; }
.speedbar .ic { margin-right: 6px; }
.speedbar a { color: var(--link); }

/* ---------- страница сериала / сезона / серии ---------- */
.fcols { display: flex; gap: 24px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.fleft { flex: 0 0 210px; }
.fimg { position: relative; aspect-ratio: 19 / 28; border-radius: var(--r); overflow: hidden; background: var(--field); box-shadow: var(--shadow); }
.fimg img { width: 100%; height: 100%; object-fit: cover; }
.fright { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.fright h1.short-title { font-size: 24px; }
.fright h1 a { margin-left: 10px; font-size: 16px; color: var(--muted); }
.fcols .short-list li { font-size: 14px; }
.ftext { margin: 22px 0; }
.fsubtitle { margin: 0 0 16px; text-align: center; color: var(--title); font-size: 18px; font-weight: 600; }
.ep-lead { margin: 0 0 16px; padding: 14px 18px; background: var(--field); border-left: 3px solid var(--accent); border-radius: var(--r-sm); line-height: 1.65; }
.ep-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 20px; }
.ep-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--card-2); color: var(--title); font-weight: 500; font-size: 14px; }
.ep-nav a:hover { background: var(--accent); color: var(--on-accent); }
.ep-nav_all { margin: 0 auto; }

.fplayer { position: relative; margin-bottom: 36px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 0 16px 0 0; background: var(--card-2); }
.tabs-sel { display: flex; }
.tabs-sel > span { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs-sel > span.current, .tabs-sel > span:only-child { background: var(--panel); color: var(--title); box-shadow: inset 0 2px 0 var(--accent); }
.ffav, .fcompl { display: inline-flex; align-items: center; font-size: 14px; }
.ffav a, .ffav > span, .fcompl a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); cursor: pointer; }
.ffav a:hover, .ffav > span:hover, .fcompl a:hover { color: var(--accent); }
.ffav .ic-heart-fill { color: var(--pink); }
.tabs-box:not(.is-tabbed) .tabs-b ~ .tabs-b, .tabs-box.is-tabbed .tabs-b:not(.visible) { display: none; }
.video-box { background: #000; }
.video-box iframe, .video-box embed, .video-box object, .video-box video, .video-box frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 80vh; border: 0; }
.playercdn { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; background: #000; }
.playercdn > video-player { display: block; width: 100%; height: 100%; }

.ep-list-wrap { padding: 16px; border-top: 1px solid var(--line); }
.ep-head { margin-bottom: 12px; color: var(--title); font-weight: 600; }
.ep-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--card-2) transparent; }
.ep-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--r-sm); background: var(--field-2); color: var(--text); font-size: 13px; font-weight: 500; }
.ep-btn:hover { background: var(--card-2); color: var(--title); }
.ep-btn.is-active { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.fshare { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.fshare-title { margin-right: 4px; color: var(--muted); font-size: 13px; }
.fshare button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 36px; padding: 0 12px; border-radius: var(--r-sm); background: var(--card-2); color: #fff; font-size: 13px; font-weight: 700; }
.fshare button:hover { filter: brightness(1.15); }
.fshare [data-id="vk"] { background: #0062d6; }
.fshare [data-id="ok"] { background: #b85a00; }
.fshare [data-id="tlg"] { background: #16749f; }
.fshare [data-id="copy"].is-done { background: #3f7d1c; }
.fplayer-text { padding: 14px 18px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }

/* «Смотрите также», FAQ, комментарии */
.frels .carou-title, .page-faq .carou-title, .fcomms .carou-title { margin-bottom: 16px; }
.frels .carou-head { margin-bottom: 16px; }
.page-faq_list { display: grid; gap: 8px; }
.faq-item { background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s; }
.faq-item[open] { border-color: rgba(255, 187, 0, .45); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; color: var(--title); font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 8px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-a { padding: 0 18px 16px; line-height: 1.65; }

.full-text { font-size: 15px; line-height: 1.75; }
.full-text p { margin-bottom: 12px; }
.full-text a { color: var(--accent); text-decoration: underline; }
.full-text a:hover { text-decoration: none; }
.full-text img:not(.emoji) { max-width: 100%; margin: 10px 0; border-radius: var(--r-sm); }
.full-text > img[style*="left"], .full-text > .highslide img[style*="left"] { margin: 0 12px 10px 0; }
.full-text > img[style*="right"], .full-text > .highslide img[style*="right"] { margin: 0 0 10px 12px; }
.full-text h2, .full-text h3, .full-text h4, .full-text h5 { margin: 18px 0 10px; font-size: 20px; }
.full-text > ul li { list-style: disc; margin-left: 24px; }
.full-text > ol li { list-style: decimal; margin-left: 24px; }
.full-text table { width: 100%; margin: 10px 0; }
.full-text td, .full-text th { padding: 8px 10px; border: 1px solid var(--line); }
.full-text iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }

.add-comms { margin-bottom: 24px; padding: 18px; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); }
.ac-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ac-textarea textarea { min-height: 110px; margin-bottom: 12px; }
.ac-protect { display: none; margin-bottom: 12px; }
.add-comms.active .ac-protect { display: block; }
.ac-protect .form-item { margin-bottom: 10px; }
.ac-protect label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.ac-textarea .bb-editor + br, .mass_comments_action { display: none; }
.comments_subscribe { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.last-comm-link { display: block; padding-bottom: 12px; font-size: 16px; font-weight: 600; }
.comm-item { position: relative; min-height: 44px; margin-bottom: 18px; padding-left: 58px; font-size: 14px; }
.comm-avatar { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--field-2); }
.comm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comm-letter { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.comm-right { padding: 12px 16px; background: var(--field); border-radius: 4px var(--r) var(--r) var(--r); }
.comm-one { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.comm-author, .comm-author a { color: var(--title); font-weight: 600; }
.comm-two { margin: 6px 0 8px; font-size: 14px; }
.comm-three { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.comm-three-left { display: flex; align-items: center; gap: 14px; }
.comm-three-left > a { color: var(--link); border-bottom: 1px dotted currentColor; }
.comm-rate3 { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.comm-rate3 a { display: inline-flex; color: var(--muted); }
.comm-rate3 a:hover { color: var(--accent); }
.ratingtypeplus { color: #06b601; }
.ratingplus { color: #95c613; }
.ratingminus { color: var(--bad); }
.lcomm { margin-bottom: 16px; }
.lmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.lav { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; }
.lav .comm-letter { font-size: 11px; }
.ltext { padding: 10px 12px; background: var(--field); border-radius: var(--r-sm); font-size: 14px; line-height: 1.45; }
.ltitle { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; }

/* ---------- новости: лента-журнал и статья ---------- */
/* лента: DLE оборачивает список в #dle-content — если в нём карточки новостей, это сетка */
#dle-content:has(> .news-card), .sect-content:has(> .news-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#dle-content:has(> .news-card) > :not(.news-card), .sect-content:has(> .news-card) > :not(.news-card) { grid-column: 1 / -1; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.news-card {
	--tone: var(--pink);
	position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 22px 22px 18px;
	background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--tone); border-radius: var(--r);
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.news-card:nth-child(4n+2) { --tone: var(--accent); }
.news-card:nth-child(4n+3) { --tone: #3fb6c9; }
.news-card:nth-child(4n+4) { --tone: #9b7cf4; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tone) 45%, transparent); border-top-color: var(--tone); }
.news-card_kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.news-card_tag { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 16%, transparent); color: var(--tone); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.news-card_title { color: var(--title); font-size: 18px; font-weight: 700; line-height: 1.35; }
.news-card_title a { color: inherit; }
.news-card_title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* вся карточка кликабельна */
.news-card:hover .news-card_title a { color: var(--accent); }
.news-card_text { color: var(--text); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card_meta { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13px; }
.news-card_meta > span { display: inline-flex; align-items: center; gap: 6px; }
.news-card_more { margin-left: auto; color: var(--tone); font-weight: 600; }
.news-card.is-lead { grid-column: 1 / -1; padding: 32px 32px 26px; overflow: hidden;
	background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--tone) 22%, transparent), transparent 55%), var(--card); }
.news-card.is-lead::before { content: "\201C"; position: absolute; right: 22px; top: -18px; color: var(--tone); opacity: .18; font: 700 180px/1 Georgia, serif; pointer-events: none; }
.news-card.is-lead .news-card_title { max-width: 90%; font-size: 28px; line-height: 1.25; }
.news-card.is-lead .news-card_text { max-width: 760px; font-size: 16px; -webkit-line-clamp: 4; }

/* статья */
.news-article { --measure: 760px; }
.news-head { max-width: var(--measure); margin: 6px auto 28px; text-align: center; }
.news-kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.news-kicker a { padding: 3px 12px; border-radius: 999px; background: rgba(232, 71, 174, .15); color: var(--pink); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.news-kicker a:hover { background: var(--pink); color: #fff; }
.news-title { color: var(--title); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.news-title a { margin-left: 8px; font-size: 18px; color: var(--muted); }
.news-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.news-meta > span, .news-meta > a { display: inline-flex; align-items: center; gap: 7px; }
.news-meta > a { color: var(--muted); }
.news-meta > a:hover { color: var(--accent); }
.news-meta [hidden] { display: none; }

.news-body { max-width: var(--measure); margin: 0 auto 32px; font-size: 17px; line-height: 1.85; color: #d3d8e2; }
.news-body > p:first-child { margin-bottom: 22px; color: var(--title); font-size: 20px; line-height: 1.7; font-weight: 500; }
.news-body > p:first-child::first-letter { float: left; margin: 6px 12px 0 0; color: var(--accent); font: 700 64px/.8 var(--font); }
.news-body p { margin-bottom: 18px; }
.news-body h2 { position: relative; margin: 38px 0 14px; padding-left: 16px; color: var(--title); font-size: 24px; line-height: 1.3; scroll-margin-top: 16px; }
.news-body h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--accent); }
.news-body h3 { margin: 28px 0 10px; color: var(--title); font-size: 19px; }
.news-body blockquote, .news-body .quote { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--pink); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--field); color: var(--title); font-size: 19px; font-style: italic; line-height: 1.6; }
.news-body ul li, .news-body ol li { margin-bottom: 8px; }
.news-body ul li::marker { color: var(--accent); }
.news-body strong, .news-body b { color: var(--title); }

.news-toc { max-width: var(--measure); margin: 0 auto 30px; padding: 18px 22px; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); }
.news-toc_title { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-toc ol { counter-reset: toc; display: grid; gap: 6px; }
.news-toc li { counter-increment: toc; display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.news-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.news-toc a { color: var(--text); text-decoration: none; }
.news-toc a:hover { color: var(--accent); }

.news-article .fshare-solo { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.news-more .carou-title { margin-bottom: 16px; }
.news-more_all { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 14px; }
.news-more_all:hover { color: var(--accent-2); }

/* плитка новости в каруселях «Смотрите также» / «По теме» (у новостей нет постера) */
.text-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px;
	background: radial-gradient(120% 90% at 0% 0%, rgba(232, 71, 174, .35), transparent 60%), linear-gradient(160deg, #2e1a3b, #1a0f22); }
.text-tile::after { display: none; }
.text-tile::before { content: "\201C"; position: absolute; left: 12px; top: 4px; color: var(--pink); opacity: .45; font: 700 76px/1 Georgia, serif; }
.text-tile_tag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(255, 187, 0, .16); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.text-tile_title { color: var(--title); font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.text-tile:hover .text-tile_title { color: var(--accent); }
@media (max-width: 760px) {
	#dle-content:has(> .news-card), .sect-content:has(> .news-card), .news-grid { grid-template-columns: 1fr; gap: 12px; }
	.news-card { padding: 18px 16px 14px; }
	.news-card.is-lead { padding: 22px 18px 18px; }
	.news-card.is-lead .news-card_title { max-width: none; font-size: 22px; }
	.news-card.is-lead .news-card_text { font-size: 15px; }
	.news-card.is-lead::before { font-size: 120px; right: 10px; }
	.news-head { text-align: left; }
	.news-kicker, .news-meta { justify-content: flex-start; }
	.news-body { font-size: 16px; line-height: 1.8; }
	.news-body > p:first-child { font-size: 18px; }
	.news-body > p:first-child::first-letter { font-size: 52px; }
	.news-body h2 { font-size: 21px; margin-top: 30px; }
	.news-toc { padding: 14px 16px; }
}

/* ---------- окно входа / кабинет ---------- */
.login-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.login-box {
	position: fixed; z-index: 1001; left: 50%; top: 50%; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
	padding: 32px 32px 28px; background: var(--field-2); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .6); transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
body.login-open .login-box, body.login-open .login-overlay { opacity: 1; visibility: visible; }
body.login-open .login-box { transform: translate(-50%, -50%); }
.login-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 20px; }
.login-close:hover { background: var(--card-2); color: var(--title); }
.login-title { margin-bottom: 16px; color: var(--title); font-size: 22px; font-weight: 700; text-align: center; }
.login-avatar { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--bg); color: var(--muted); font-size: 28px; }
.login-avatar img { width: 100%; height: 100%; object-fit: cover; }
.login-input { margin-bottom: 12px; }
.login-check { display: flex; align-items: center; font-size: 14px; }
.login-check label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); }
.login-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.login-btn button { width: 100%; margin: 16px 0; }
.login-btm { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.login-btm a { color: var(--link); font-size: 13px; border-bottom: 1px dotted currentColor; }
.login-admin { margin: -6px 0 18px; text-align: center; }
.login-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.login-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--field); color: var(--text); font-size: 13px; }
.login-menu a:hover { background: var(--card-2); color: var(--accent); }
.login-menu .ic { color: var(--accent); }
.login-soc-title { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; color: var(--muted); font-size: 13px; }
.login-soc-title::before, .login-soc-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-soc-btns { display: flex; justify-content: center; gap: 8px; }
.login-soc-btns img { width: 32px; height: 32px; border-radius: 50%; }

/* ---------- подвал ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px var(--pad); background: #0b0e13; color: var(--muted); font-size: 13px; }
.footer-copyright { flex: 1 1 320px; display: flex; align-items: center; gap: 14px; }
.footer-copyright img { width: 36px; height: 36px; border-radius: 9px; }
.footer a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { text-decoration: underline; }

#gotop { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); color: var(--title); font-size: 22px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, visibility .25s, transform .25s, background-color .2s; }
#gotop.is-visible { opacity: 1; visibility: visible; transform: none; }
#gotop:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- служебные страницы DLE ---------- */
.mtitle, .sub-title h1, .form-wrap h1 { margin-bottom: 24px; color: var(--title); font-size: 24px; font-weight: 600; }
.berrors { margin: 0 0 24px; padding: 14px 18px; background: rgba(255, 187, 0, .1); border: 1px solid rgba(255, 187, 0, .3); border-radius: var(--r-sm); color: var(--text); }
.berrors b { color: var(--accent); }
.berrors a { color: var(--accent); text-decoration: underline; }
.full, .form-wrap, .search-page, .pm-page, .tags-page, .statistics { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.form-item { margin-bottom: 16px; }
.form-item > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
.form-submit { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.usp-cols { gap: 24px; }
.usp-av { width: 150px; height: 150px; border-radius: 50%; }
.usp-av img { width: 100%; height: 100%; object-fit: cover; }
.usp-name { color: var(--title); font-size: 22px; font-weight: 700; }
.usp-meta li { padding: 3px 0; }
.usp-meta li span { color: var(--muted); }
.usp-btn { margin-top: 12px; }

/* быстрый поиск, поиск, опросы, редактор — поверх стилей DLE из engine.css */
#searchsuggestions { width: 360px; max-width: calc(100% - 32px); overflow: hidden; background: var(--field-2); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); font-size: 14px; }
#searchsuggestions a, #searchsuggestions span.notfound { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
#searchsuggestions a:hover { background: var(--card-2); color: var(--title); }
#searchsuggestions span.searchheading { margin-bottom: 4px; color: var(--title); font-size: 14px; font-weight: 600; }
#searchsuggestions span.searchheading + span { color: var(--muted); font-size: 12px; }
#searchtable fieldset { border-color: var(--line); border-radius: var(--r-sm); }
#searchtable select, .commentsreplyname { background-color: var(--field); color: var(--title); border-color: var(--line); }
.sres-wrap, .sres-wrap:nth-child(2n) { background: var(--card); border-color: var(--line); }
.vote-title { margin: 0 0 12px; padding: 12px 16px; background: var(--field); color: var(--title); border-radius: var(--r-sm); }
.voteprogress, .pollprogress { background: var(--field); box-shadow: none; }
.bb-editor textarea { background: var(--field); color: var(--title); }
.fshare-solo { margin-bottom: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* топ-100 */
.top100-title { margin-bottom: 20px; font-size: 24px; }
.top100-items ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; counter-reset: top; }
.top100-item { position: relative; counter-increment: top; }
.top100-item a { display: block; color: var(--text); }
.top100-item::before { content: counter(top); position: absolute; z-index: 2; left: 8px; top: 8px; min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: rgba(9, 12, 16, .85); color: var(--title); font-weight: 700; font-size: 14px; }
.top100-item.trophy::before { background: var(--accent); color: var(--on-accent); }
.top100-img { aspect-ratio: 2 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--field); }
.top100-img img { width: 100%; height: 100%; object-fit: cover; }
.top100-name { margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.35; }
.top100-item a:hover .top100-name { color: var(--accent); }

/* ---------- адаптив ---------- */
@media (max-width: 1220px) {
	:root { --pad: 22px; }
	.wrap { padding: 0; }
	.wrap-main { border: 0; border-radius: 0; box-shadow: none; }
	.carou-track { --cols: 6; }
	.frels .carou-track { --cols: 5; }
	.btn-menu { display: grid; }
	.sidebar {
		position: fixed; z-index: 999; top: 0; bottom: 0; left: 0; width: min(330px, 88vw);
		padding: 60px 16px 24px; overflow-y: auto; overscroll-behavior: contain;
		background: var(--panel); box-shadow: var(--shadow); transform: translateX(-105%); visibility: hidden;
		transition: transform .3s ease, visibility .3s;
	}
	.sidebar.is-open { transform: none; visibility: visible; }
	.sidebar-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--card-2); color: var(--title); font-size: 20px; }
	.side-box { margin-bottom: 16px; padding: 16px; }
}
@media (max-width: 950px) {
	.carou-track { --cols: 5; }
	.frels .carou-track { --cols: 4; }
	.short-img { flex-basis: 140px; }
	.short-list li { grid-template-columns: 110px 1fr; }
	.fleft { flex-basis: 180px; }
}
@media (max-width: 760px) {
	:root { --pad: 16px; }
	.header { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
	.logo { flex: 1 1 auto; font-size: 24px; }
	.logo img { width: 34px; height: 34px; }
	.search-wrap { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
	.header-btn { min-height: 42px; padding: 0 16px; }
	.btn-menu { width: 42px; height: 42px; }
	.carou-track { --cols: 4; gap: 12px; grid-auto-columns: calc((100% - 3 * 12px) / 4); }
	.frels .carou-track { --cols: 3; grid-auto-columns: calc((100% - 2 * 12px) / 3); }
	.cols { padding-top: 18px; }
	.sect-title { font-size: 20px; }
	.fcols { flex-direction: column; align-items: center; padding: 16px; }
	.fleft { flex-basis: auto; width: 200px; }
	.fright { width: 100%; }
	.fright h1.short-title { font-size: 21px; text-align: center; }
	.fplayer { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); border-radius: 0; border-left: 0; border-right: 0; }
	.fctrl { padding: 0 12px 0 0; }
	.ac-inputs { grid-template-columns: 1fr; }
	.comments-tree-list .comments-tree-list { padding-left: 0 !important; }
	.login-box { padding: 26px 20px 22px; }
	.site-desc img { float: none; margin: 0 0 12px; }
}
@media (max-width: 590px) {
	.carou-track { --cols: 3; grid-auto-columns: calc((100% - 2 * 12px) / 3); }
	.carou-nav { display: none; }
	.short-item { padding: 12px; }
	.short-cols { gap: 14px; }
	.short-img { flex-basis: 110px; }
	.short-title { font-size: 16px; }
	.short-desc .short-text, .short-desc > .short-text, .short-item .short-list li:nth-child(n+3) { display: none; }
	.short-list li { grid-template-columns: 1fr; gap: 0; }
	.short-meta-item + .short-meta-item { display: none; }
	.short-btn { margin-left: 0; }
	.ep-nav a { padding: 0 12px; font-size: 13px; }
	.fctrl { gap: 4px 14px; padding-right: 10px; }
	.tabs-sel > span { padding: 0 14px; }
	.ffav, .fcompl { font-size: 13px; }
	.ep-nav_all { order: -1; width: 100%; justify-content: center; }
	.fshare-title { width: 100%; text-align: center; margin: 0; }
	.footer { text-align: center; justify-content: center; }
	.footer-copyright { flex-direction: column; }
	.ui-dialog { width: 100% !important; }
	.upop-left, .upop-right { float: none !important; width: 100% !important; margin: 0; padding: 0 20px; }
	.ui-dialog-buttonset button { display: block; width: 100%; margin: 0 0 5px; }
}
@media (max-width: 400px) {
	.carou-track, .frels .carou-track { grid-auto-columns: calc((100% - 12px) / 2.3); }
	.short-img { flex-basis: 96px; }
	.header-btn .btn-text { display: none; }
	.header-btn { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
