/*
Datalife Engine template
Redesign: "NEON EMERALD" — тёмная изумрудная тема
version dle: 14 and higher
*/

/* FONTS (локальные, из папки webfonts)
----------------------------------------------- */
@font-face {
	font-family: 'Manrope';
	src: url(../webfonts/manrope-400.woff2) format('woff2');
	font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
	/* один файл на все жирные начертания (600-800) — минус запрос и ~17 КБ */
	font-family: 'Manrope';
	src: url(../webfonts/manrope-700.woff2) format('woff2');
	font-weight: 600 800; font-style: normal; font-display: swap;
}
/* Fredoka One намеренно не подключается — экономия ~16 КБ и одного запроса.
   Логотип и номера в топе используют Manrope 700. */

:root {
	/* поверхности */
	--bg: #14201b;
	--bg-lighter: #1b2b24;
	--bg-lightest: #23372e;
	--bg-darker: #0e1814;
	--bg-black: #060d0a;
	--bg-panel: #101a15;
	--bg-panel-2: #0b1310;
	--bg-glass: rgba(22, 199, 102, 0.045);

	/* текст */
	--tt: #94a89d;
	--tt-lighter: #e9f6ef;
	--tt-lighter-2: #c2d3ca;
	--tt-darker: #6d827a;
	--tt-darker-2: #82968d;

	/* границы и тени */
	--bdc: #00000066;
	--bdc-lighter: #ffffff0f;
	--bdc-accent: rgba(30, 215, 96, 0.28);
	--bsh: 0 18px 40px -12px rgba(0,0,0,0.75);
	--bsh-2: 0 6px 18px -8px rgba(0,0,0,0.8);
	--glow: 0 0 0 1px rgba(30,215,96,0.25), 0 10px 30px -10px rgba(30,215,96,0.45);
	--glow-soft: 0 0 24px -6px rgba(30,215,96,0.35);

	/* акценты */
	--gradient: linear-gradient(180deg, #23372e, #16221d);
	--gradient-accent: linear-gradient(135deg, #1ed760 0%, #0aa14e 100%);
	--accent: #16c766;
	--accent-darker: #1ed760;
	--accent-2: #7bf1a8;
	--accent-3: #35d07f;
	--accent-warn: #ffc94a;
	--accent-red: #ff5c5c;

	/* UI */
	--ui-bg: #101a15;
	--ui-bg-darker: #0b1310;
	--ui-bg-darkest: #060d0a;
	--ui-bg-accent: #16c766;
	--ui-text-color-on-accent: #04140b;
	--ui-bdc: #182821;

	--radius: 14px;
	--radius-sm: 10px;

	--indent-negative: -42px;
	--indent: 42px; /* основной отступ справа и слева */
	--max-width: 1250px; /* максимальная ширина блока контента */
}
@media screen and (max-width: 1220px) {
	:root {
		--indent-negative: -20px;
		--indent: 20px;
	}
}

/* RESET, BASIC UI SETTINGS
----------------------------------------------- */
* {background: transparent; margin: 0; padding: 0; outline: none; border: 0; box-sizing: border-box;}
ol, ul {list-style: none;}
table {border-collapse: collapse; border-spacing: 0;}
img, table, iframe, video, frame, embed, object {max-width: 100%;}
body {
	font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: normal;
	padding: 0;
	margin: 0;
	color: var(--tt);
	background: var(--bg-black);
	min-height: 100%;
	width: 100%;
	font-weight: 400;
	overflow-x: hidden;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
}
a {color: var(--tt-lighter-2); text-decoration: none;}
a:hover, a:focus {color: var(--accent-darker); text-decoration: none;}
h1, h2, h3, h4, h5 {font-family: inherit; font-weight: 700; font-size: 24px; letter-spacing: -0.01em;}
::selection {background: var(--accent); color: #04140b;}
b, strong, .bolder {font-weight: 700;}

/* скроллбар */
* {scrollbar-color: var(--accent) var(--bg-darker); scrollbar-width: thin;}
::-webkit-scrollbar {width: 10px; height: 10px;}
::-webkit-scrollbar-track {background: var(--bg-black);}
::-webkit-scrollbar-thumb {background: linear-gradient(180deg, #1ed760, #0d7d3d); border-radius: 10px; border: 2px solid var(--bg-black);}
::-webkit-scrollbar-thumb:hover {background: var(--accent-darker);}

button, select, textarea, input[type="text"], input[type="password"], input[type="button"], input[type="submit"]
	{appearance: none; -webkit-appearance: none; font-size: 16px; font-family: inherit;}
button, .btn, input[type="button"], input[type="reset"], input[type="submit"], .form__btn, .self_delete_link,
.qq-upload-button, .pm__links a, .usp__btn a {display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; text-align: center; padding: 0 22px; height: 40px; font-size: 12px; font-weight: 700;
	white-space: nowrap; background: var(--gradient-accent); color: #04140b; border-radius: 999px;
	box-shadow: 0 6px 18px -8px rgba(30,215,96,0.7); position: relative; overflow: hidden;
	text-transform: uppercase; letter-spacing: 1px;}
button:hover, .btn:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover,
.form__btn:hover, .qq-upload-button:hover, .pm__links a:hover, .usp__btn a:hover, .self_delete_link:hover
{background: linear-gradient(135deg, #2bf074 0%, #12b95a 100%); color: #04140b;
	box-shadow: 0 10px 26px -8px rgba(30,215,96,0.85); transform: translateY(-1px);}
button:active, input[type="button"]:active, input[type="submit"]:active {transform: translateY(0);
	box-shadow: inset 0 2px 6px 0 rgba(0,0,0,0.25);}
.color-btn, [class*=fr], [class*=plyr], [class*=owl-], [id*=mceu] {padding: 0; margin: 0;
	line-height: normal; border: 0; box-shadow: none; background: none; border-radius: 0;}

input[type="text"], input[type="password"] {height: 42px; line-height: 42px; border-radius: 10px; padding: 0 16px;}
select {height: 42px; padding: 0 16px; display: block; border-radius: 10px;}
select:not([multiple]) {background-image: url(../dleimages/chevron.svg); padding-right: 30px;
	background-repeat: no-repeat; background-position: right 15px top 50%; background-size: .6em auto;}
select option {padding: 6px 10px; background: var(--bg-darker); color: var(--tt-lighter);}
select[multiple] {padding: 0 5px;}
textarea {padding: 15px; overflow: auto; vertical-align: top; resize: vertical; border-radius: 12px;}
input[type="text"], input[type="password"], select, textarea {width: 100%; background-color: var(--ui-bg-darker); color: var(--tt-lighter);
	box-shadow: inset 0 0 0 1px var(--bdc-lighter); transition: box-shadow .25s, background-color .25s;}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus
	{box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgba(30,215,96,0.12); background-color: var(--bg-panel-2);}
input::placeholder, textarea::placeholder {color: var(--tt); opacity: 0.8; font-size: 13px;}
input:focus::placeholder, textarea:focus::placeholder {color: transparent}

/* SNIPPETS
----------------------------------------------- */
.img-box, .img-wide, .img-responsive, .img-fit-cover {overflow: hidden; position: relative;}
.img-responsive {padding-top: 60%;}
.img-responsive--portrait {padding-top: 150%;}
.img-box > img, .img-responsive > img {width: 100%; min-height: 100%; display: block;}
.img-responsive > img {position: absolute; left: 0; top: 0;}
.img-wide img, .img-wide > a {width: 100%; display: block;}
.img-fit-cover img {width: 100%; height: 100%; object-fit: cover;}
.clr {clear: both;}
.clearfix::after {content: ""; display: table; clear: both;}
.ws-nowrap {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.line-clamp {display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.vw100 {margin:0 calc((100% - 100vw)/2); padding:0 calc((100vw - 100%)/2);}
.img-mask::before {content: ''; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 60%;
	background: linear-gradient(to top, #000 0%, transparent 100%); opacity: 0.8;}
.d-flex, .fx-row {display: flex; flex-wrap: wrap; flex-direction: row;}
.fd-column, .fx-col {flex-direction: column; flex-wrap: nowrap;}
.jc-space-between, .fx-row {justify-content: space-between;}
.jc-flex-start, .fx-start {justify-content: flex-start;}
.jc-center, .fx-center {justify-content: center;}
.jc-flex-end {justify-content: flex-end;}
.ai-flex-start {align-items: flex-start;}
.ai-center, .fx-middle {align-items: center;}
.ai-flex-end {align-items: flex-end;}
.order-first {order: -1;}
.order-last {order: 10;}
.flex-grow-1, .fx-1, .stretch-free-width {flex: 1 1 0; max-width: 100%; min-width: 50px;}
.btn-icon, .centered-content {display: inline-flex; justify-content: center; align-items: center;}
.icon-at-left [class*="fa-"], .icon-left .icon {margin-right: 0.5em;}
.icon-at-right [class*="fa-"], .icon-right .icon {margin-left: 0.5em;}
.hidden, #dofullsearch, .form__header .form__btn, .comment-item__main .quote + br, .d-none {display: none;}
.anim, button, .btn, a, a img, .btn-accent, .header__btn-search {transition: all .3s cubic-bezier(.2,.7,.3,1);}

.d-grid {display: grid; gap: 24px 20px; grid-template-columns: repeat(auto-fill,minmax(130px,1fr));}

/* СВЕТЛАЯ ТЕМА
----------------------------------------------- */
.lt-is-active {
	--bg: #ffffff;
	--bg-lighter: #eef4f0;
	--bg-lightest: #e7efea;
	--bg-darker: #f4f8f6;
	--bg-black: #062017;
	--bg-panel: #ffffff;
	--bg-panel-2: #f4f8f6;
	--bg-glass: rgba(22, 199, 102, 0.06);
	--tt: #4d5d56;
	--tt-lighter: #10241b;
	--tt-lighter-2: #10241b;
	--tt-darker: #8c9d95;
	--tt-darker-2: #8c9d95;
	--bdc: #0000000f;
	--bdc-lighter: #00000010;
	--bdc-accent: rgba(11, 150, 70, 0.35);
	--bsh: 0 18px 40px -18px rgba(6,32,23,0.35);
	--bsh-2: 0 6px 18px -10px rgba(6,32,23,0.3);
	--glow: 0 0 0 1px rgba(11,150,70,0.22), 0 12px 26px -14px rgba(11,150,70,0.5);
	--glow-soft: 0 0 20px -8px rgba(11,150,70,0.35);
	--gradient: linear-gradient(180deg, #ffffff, #e9f1ec);
	--gradient-accent: linear-gradient(135deg, #14b95c 0%, #0a8f45 100%);
	--accent: #0f9f4f;
	--accent-darker: #14b95c;
	--accent-2: #0a8f45;
	--accent-3: #0f9f4f;
	--ui-bg: #fff;
	--ui-bg-darker: #f4f8f6;
	--ui-bg-darkest: #eef4f0;
	--ui-bg-accent: #0f9f4f;
	--ui-text-color-on-accent: #fff;
	--ui-bdc: #dfe8e3;
}
.lt-is-active button, .lt-is-active .btn, .lt-is-active input[type="submit"], .lt-is-active input[type="button"] {color: #fff;}
.lt-is-active .top__title, .lt-is-active .site-desc h1, .lt-is-active .site-desc h2, .lt-is-active .site-desc h3,
.lt-is-active .footer__text, .lt-is-active .pmovie__header-list--accent > span:last-child,
.lt-is-active .header__link, .lt-is-active .card__fav .fas.added {color: #fff;}
.lt-is-active .nav-title, .lt-is-active .card__list a, .lt-is-active .site-desc a, .lt-is-active .updli-3 div,
.lt-is-active .lcomm__link, .lt-is-active .pmovie__header-list a,
.lt-is-active .theme-toggle:hover li:last-child {color: var(--accent);}
.lt-is-active .col-side {box-shadow: inset -1px 0 var(--bdc-lighter);}
.lt-is-active .card__fav .fas, .lt-is-active .pmovie__header-list--accent > span:first-child {color: var(--tt);}
.lt-is-active .card__rating-ext svg circle:nth-child(2) {stroke: var(--accent-2);}
.lt-is-active .card__rating-ext::before, .lt-is-active .nav-menu li > span,
.lt-is-active .updli-3 {color: var(--tt-darker-2);}
.lt-is-active .upd-box, .lt-is-active .lcomm {background-color: #00000008;}
.lt-is-active .filter-block__cell-content select, .lt-is-active .filter-block__cell-content input[type="text"],
.lt-is-active .filter-block__cell-content--check-group {border: 1px solid var(--bdc);}
.lt-is-active .stars, .lt-is-active .stars__rating-fill {background-image: url(../dleimages/rating2.svg);}
