/* 
Datalife Engine template,
name: Series Good Doctor clone, creation date: 09 november 2023, version dle: 15 and higher
*/

:root {
	--bg: #fff; /* цвет фона */
	--bg-darker: #fafafa; /* цвет фона темнее */
	--bg-darkest: #f0f0f0; /* цвет фона еще темнее */

	--tt: #5d0a06; /* цвет текста */
	--tt-fade: #576764; /* цвет текста светлее */

	--bg-colored: #000000; /* цвет фона шапки на главной (темно зеленый) */
	--tt-on-colored: #f7f7f7; /* цвет текста в шапке на темном фоне (белый) */ 
	--bsh-colored: rgba(7, 6, 6, 0.0); /* затемнение картинки на главной, если слишком светлая. Меняем 0.0 на 0.5 */

	--bg-menu: #0d0d0d;  /* цвет фона в меню сезоны */
	--bdc-menu: #202020;  /* цвет рамки в меню сезоны */
	--tt-menu: #a1a0a0; /* цвет текста в меню сезоны */

	--bg-btn-select: #ebebeb; /* цвет кнопок под плеером */
	--tt-btn-select: #070606;/* цвет текста кнопок под плеером */
	
	--bdc: rgba(7,6,6,.12); --bdc-darker: #c4c3c3; --bdc-on-colored: #c4c3c3; /* цвет горизонтальных линий */
	--bdrs: 4px; /* скругление картинок */
	--accent: #c31607; --accent-green: #24ff00; /* оранжевый и зеленый (ярко зеленый у круга рейтинга) */
	--bg-btn: #ff7a00; --tt-btn: #fff; --bg-btn-hover: #e47105; /* цвет кнопок и текст на кнопках */
	
	/* это служебное, не трогать */
	--ui-bg: #fff; --ui-bg-darker: #fafafa; --ui-bg-darkest: #e6e6e6; --ui-accent: #ff7a00;
	--ui-bdc: #d0d0d0; --ui-tt-fade: #a1a0a0; --ui-fw-bolder: 700; --ui-fw-fa: 900;
	--ui-bsh: 0 12px 40px rgba(0,0,0,0.3); --ui-bsh-inset: inset 1px 2px 5px rgba(0,0,0,0.1); --ui-bdrs: 4px;
	--ui-gradient: linear-gradient(to bottom, #5c4f68, #352d3c); --ui-bg-black: #352d3c;
	--ui-green: #65c03e; --ui-red: #eb4d4b; --ui-bg-attention: #FFF3E0; --ui-bd-attention: #FF9800;
	--indent-negative: -20px; --indent: 20px; --max-width: 1260px;
}

/* RESET, BASIC UI SETTINGS
----------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

ol,
ul {
	list-style: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

img,
table,
iframe,
video,
frame,
embed,
object {
	max-width: 100%;
}

body {
	font: 17px/1.5 'Gilroy', sans-serif;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--tt);
	background-color: var(--bg);
	width: 100%;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--tt);
	text-decoration: none;
}

a:focus {
	color: var(--tt);
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
	font-weight: 700;
	font-size: 24px;
}

::selection {
	background: #ff0000;
	color: #fff;
}

b,
strong,
.bolder {
	font-weight: 700;
}

button,
select,
textarea,
input[type="text"],
input[type="password"],
input[type="button"],
[type="reset"],
input[type="submit"] {
	appearance: none;
	-webkit-appearance: none;
	font-size: 16px;
	font-family: inherit;
	font-weight: inherit;
}

input[type="button"],
input[type="submit"] {
	font-size: 12px;
	font-weight: 600;
}

button,
.btn,
[type="button"],
[type="reset"],
[type="submit"],
.pmessages__links a,
.qq-upload-button,
.plupload_button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	padding: 0 20px;
	height: 40px;
	white-space: nowrap;
	gap: 10px;
	border-radius: var(--ui-bdrs);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	background-color: var(--bg-btn);
	color: var(--tt-btn);
	border: none; /* Убираем рамку */
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; /* Добавляем переход для масштабирования */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}

button:hover,
.btn:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover,
.pmessages__links a:hover,
.qq-upload-button:hover,
.plupload_button:hover {
	background-color: var(--bg-btn-hover);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Изменяем тень при наведении */
	transform: translateY(-2px) scale(1.05); /* Поднимаем кнопку и увеличиваем ее */
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
	box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.1),
		0 2px 4px rgba(0, 0, 0, 0.2); /* Сохраняем тень при нажатии */
	transform: translateY(1px) scale(0.95); /* Опускаем кнопку и уменьшаем ее */
}

.color-btn,
[class*=fr],
[class*=plyr],
[class*=owl-],
[id*=mceu],
[class*=tox-],
.ui-dialog-titlebar-close {
	padding: 0;
	margin: 0;
	line-height: 1.4;
	border: 0;
	box-shadow: none;
	background: none;
	border-radius: 0;
}

.btn-without-bg {
	background: none;
	color: var(--tt);
	padding: 0;
	height: 40px;
	min-width: 40px;
	box-shadow: none;
}

.btn-secondary,
.dle-popup-complaint .ui-dialog-buttonset button:first-child:not(:hover),
.dle-popup-sendpm .ui-dialog-buttonset button:first-child:not(:hover),
.dle-popup-userprofile .ui-dialog-buttonset button:not(:first-child,:hover),
.dle-popup-confirm .ui-dialog-buttonset button:first-child:not(:hover),
.dle-popup-promt .ui-dialog-buttonset button:first-child:not(:hover) {
	background-color: var(--ui-bg-darker);
	color: var(--ui-tt-fade);
}

[type="text"],
[type="password"] {
	height: 40px;
	line-height: 39px;
	padding: 0 15px;
}

select {
	height: 40px;
	padding: 0 15px;
	display: block;
	font-size: 16px;
}

select:not([multiple]) {
	background-image: url(../dleimages/chevron-down.svg);
	padding-right: 30px;
	background-repeat: no-repeat;
	background-position: right 15px top 50%;
	background-size: 12px auto;
}

select option {
	padding: 6px 10px;
}

select[multiple] option {
	padding: 3px 10px;
}

select[multiple] {
	padding: 9px 5px;
	border-radius: var(--ui-bdrs);
}

textarea {
	padding: 15px;
	overflow: auto;
	vertical-align: top;
	resize: vertical;
}

[type="text"],
[type="password"],
select,
textarea {
	width: 100%;
	background-color: var(--ui-bg-darkest);
	color: var(--tt);
	border: 1px solid var(--ui-bdc);
	box-shadow: var(--ui-bsh-inset);
	border-radius: var(--ui-bdrs);
}

[type="text"]:focus,
[type="password"]:focus,
textarea:focus {
	border-color: var(--ui-accent);
}

input::placeholder,
textarea::placeholder {
	color: var(--ui-tt-fade);
	opacity: 1;
	font-size: 16px;
}

input:focus::placeholder,
textarea:focus::placeholder {
	color: transparent;
}


/* SNIPPETS
----------------------------------------------- */
.img-wide,
.img-responsive,
.img-fixed-size,
.has-expanded-link,
.p-relative {
	position: relative;
}

.img-responsive {
	padding-top: 60%;
}

.img-responsive > img,
.img-fixed-size img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.img-responsive > img {
	position: absolute;
	left: 0;
	top: 0;
}

.img-wide img,
.img-wide > a {
	width: 100%;
	display: block;
}

.clr {
	clear: both;
}

.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

.ws-nowrap {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.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: 66%;
	background: linear-gradient(to top, #000 0%, transparent 100%);
	opacity: 1;
}

.has-expanded-link__trg::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
}

.d-flex {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
}

.fd-column {
	flex-direction: column;
	flex-wrap: nowrap;
}

.jc-space-between {
	justify-content: space-between;
}

.jc-flex-start {
	justify-content: flex-start;
}

.jc-center {
	justify-content: center;
}

.jc-flex-end {
	justify-content: flex-end;
}

.ai-flex-start {
	align-items: flex-start;
}

.ai-center {
	align-items: center;
}

.ai-flex-end {
	align-items: flex-end;
}

.order-first {
	order: -1;
}

.order-last {
	order: 10;
}

.flex-grow-1,
.ui-dialog-title,
.ac-form__bottom .comments_subscribe {
	flex: 1 1 0;
	max-width: 100%;
	min-width: 50px;
}

.flex-grow-1-column {
	flex: 1 0 min-content;
}

.pi-center {
	display: inline-grid;
	place-items: center;
}

.ta-center {
	text-align: center;
}

.gap-10 {
	gap: 10px;
}

.d-grid-items {
	display: grid;
	gap: 52px 40px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.d-grid-items > *:not(.grid-item) {
	grid-column: 1 / -1;
}

.hidden,
.d-none,
.full-text .quote + br,
#category option:empty,
.ui-helper-hidden-accessible:empty,
#related_news:empty,
#result-registration:empty,
.info br,
#fullsearch + form .mass_comments_action,
.bb-sep,
.bb-pane > .clr {
	display: none;
}

.login__social:has(.login__social-caption:last-child),
.serv__social:has(.serv__subtitle:last-child) {
	display: none;
}

.animated-element,
button,
.btn,
a,
.header__menu li > span::after,
.header__logo img {
	transition: color 0.3s,
		background-color 0.3s,
		opacity 0.3s,
		box-shadow 0.3s,
		transform 0.3s,
		border-color 0.3s,
		height 0.3s;
}

@font-face {
	font-family: 'Gilroy';
	src: url('../webfonts/Gilroy-500.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Gilroy';
	src: url('../webfonts/Gilroy-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Gilroy';
	src: url('../webfonts/Gilroy-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: var(--tt);
		text-decoration: none;
	}

	button:hover,
	.btn:hover,
	input[type="button"]:hover,
	input[type="reset"]:hover,
	input[type="submit"]:hover,
	.pmessages__links a:hover,
	.qq-upload-button:hover,
	.us__btn a:hover,
	.plupload_button:hover,
	#searchsuggestions span.seperator a:hover {
		background-color: var(--bg-btn-hover);
		color: var(--tt-btn);
		border-color: var(--bg-btn-hover);
	}

	.btn-without-bg:hover {
		background: none;
		color: var(--tt);
		border-color: transparent;
		box-shadow: none;
	}

	.ui-dialog-titlebar-close:hover,
	.login__close:hover {
		background-color: var(--ui-red);
		color: var(--tt-btn);
	}

	.xfieldimagegallery a:hover,
	.comments-image-gallery a:hover {
		opacity: 0.8;
	}

	.fs-result:hover {
		background-color: var(--ui-bg-darker);
	}

	.header__menu > li:hover > *,
	.tabs__select button:hover,
	.sect__link:hover,
	.speedbar a:hover,
	.page__prev-next-link:hover {
		color: var(--accent);
	}

	.header__menu-submenu a:hover {
		color: #fff;
	}

	.header__menu li:hover > span::after {
		transform: rotate(180deg);
		color: var(--accent);
	}

	.header__menu li:hover .header__menu-submenu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.has-overlay-on-img:hover .has-overlay-on-img__trg {
		opacity: 1;
	}

	.speedbar a:hover {
		text-decoration: underline;
	}

	.pagination a:hover,
	.tabs__btn-hidden button:hover {
		background-color: var(--accent);
		color: #fff;
		border-color: var(--accent);
	}

	.comm__rating > *:hover {
		border-color: var(--accent);
	}

	.comm__rating > *:hover .fas {
		color: var(--accent);
	}

	.comm__action-reply a:hover {
		text-decoration: none;
	}

	.schedule-item:hover {
		z-index: 10;
		box-shadow: 0 0 0 2px var(--accent);
	}
}

/* цвета темной темы, только те что изменяем */
.dt-is-active {
	--bg: #0a0b0e;
	--bg-darker: #0d0d0d;
	--bg-darkest: #191818;
	--bg-colored: #000000;
	--tt: #fde1b4;
	--tt-fade: #dfd0c9;
	--tt-on-colored: #e6dcd5;
	--accent: #a52015;
	--bsh-colored: rgba(7, 6, 6, 0.6);
	--bg-menu: #0d0d0d;
	--bdc-menu: #202020;
	--tt-menu: #a1a0a0;
	--bg-btn-select: #0d0d0d;
	--tt-btn-select: #fff;
	--bdc: rgba(255, 255, 255, 0.22);
	--bdc-darker: #474747;
	--bdc-on-colored: #c4c3c3;

	--ui-bg: #070606;
	--ui-bg-darker: #0d0d0d;
	--ui-bg-darkest: #202020;
	--ui-bdc: rgba(255, 255, 255, 0.12);
	--ui-tt-fade: #565656;
	--ui-bsh: 0 12px 40px rgba(0, 0, 0, 0.3);
	--ui-bsh-inset: inset 1px 2px 5px rgba(0, 0, 0, 0.1);
	--ui-bg-attention: #0d0d0d;
	--ui-bd-attention: #c47908;
}

.dt-is-active .header__logo {
	filter: invert(1);
}

.dt-is-active .theme-toggle,
.dt-is-active .scrolltop {
	border: 2px solid transparent;
}

.dt-is-active .theme-toggle:not(:hover),
.dt-is-active .scrolltop:not(:hover) {
	background-color: #000;
	color: #fff;
	border-color: var(--bdc);
}

.dt-is-active .page__rating-stars > span {
	border-color: rgba(255, 255, 255, 0.32);
}

.dt-is-active .page__rating-score {
	--bg-darkest: rgba(255, 255, 255, 0.32);
}