/* BASIC LAYOUT
----------------------------------------------- */

.owl-nav {position: absolute; right: 20px; top: 0; margin-top: -30px; display: flex; gap: 5px;}
.owl-prev, .owl-next {cursor: pointer; width: 30px; height: 30px; display: grid; place-items: center; 
	font-size: 18px; background-color: var(--accent); color: #fff; box-shadow: none; border-radius: 4px;}
.owl-prev {opacity: 1;}
.owl-next {opacity: 1;}

/* LOGIN
----------------------------------------------- */
.lgn {position: fixed; z-index: 999; left: 50%; top: 50%; translate: -50% -50%; width: 500px; max-width: calc(100% - 40px);}
.lgn__content {background-color: var(--bg); box-shadow: var(--bsh-long); padding: 30px 60px; position: relative;}
.lgn__ctrl > * {color: #fff !important; font-size: 19px; font-weight: 500; height: 45px; position: relative; text-transform: uppercase;}
.lgn__ctrl span::before {content: ''; border: 10px solid transparent; border-bottom-color: var(--bg); 
	position: absolute; left: 50%; bottom: 0; margin-left: -10px; z-index: 5;}
.lgn__btn-close {font-size: 40px; color: #fff; position: absolute; right: -50px; z-index: 10; background-color: #af3735; box-shadow: 0 3px 0 0 rgb(108, 31, 31)!important;}
.lgn__header {position: relative; padding-left: 80px; margin-bottom: 15px;}
.lgn__avatar {width: 60px; background-color: var(--bg-darker); font-size: 24px; 
	position: absolute; left: 0; top: 50%; translate: 0 -50%; overflow: hidden; border-radius: 50%;}
.lgn__title {font-size: 19px; font-weight: 500;}
.lgn__caption {color: var(--tt-fade); margin-top: 5px;}
.lgn__input input {height: 50px; line-height: 50px; border-radius: 0; padding: 0 30px;}
.lgn__input input::placeholder {font-size: 16px;}
.lgn__input input + input {margin-top: -1px;} 
.lgn__input input:focus {position: relative; z-index: 5;}
.lgn__btn button {height: 50px;}
.lgn__cell a {color: var(--ui-accent);}
.lgn__social-caption {font-size: 13px; color: var(--tt-fade); margin-top: 5px;}
.lgn__social-caption::before, .lgn__social-caption::after {content: ''; flex-grow: 1; background: var(--bdc); height: 1px;}
.lgn__social a {border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center;}
.lgn__social a img {height: 18px; width: 18px; display: block; filter: invert(1);}
.lgn__social-vk {background-color: #587ba1;}
.lgn__social-ok {background-color: #ff9800;}
.lgn__social-fb {background-color: #3b5998;}
.lgn__social-ml {background-color: #2196f3;}
.lgn__social-gg {background-color: #f44336;}
.lgn__social-ya {background-color: #fc3f1d;}
.lgn__social:not(:has(a)) {display: none;}
.lgn--logged {width: 400px;}
.lgn__menu a {display: flex; align-items: center; gap: 10px;}
.c-0 span {display: none;}
.scrolltop {position: fixed; width: 40px; height: 40px; right: 10px; bottom: 10px; padding: 0;
	z-index: 990; border-radius: 4px; font-size: 18px; opacity: 0; scale: 0 0; top: auto !important;}
.scrolltop.is-active {scale: 1 1; opacity: 1;}
.overlay {position: fixed; z-index: 998; left: 0; top: 0; width: 100%; height: 100%; 
	opacity: 0.8; background-color: #1d1924; cursor: pointer; display: none;}
.scrolltop:hover{
    top: auto!important;
}

html {background-color: #1e1e1e;}
.wrapper {min-width: 320px; overflow: hidden; overflow: clip;}
.wrapper__container {max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 20;}
.wrapper__container--main {background-color: var(--bg-darker); box-shadow: var(--bsh-long);}
.header {padding: 0 var(--indent); position: sticky; z-index: 1000; left: 0; top: 0;
	background-color: var(--bg); box-shadow: var(--bsh-block);}
.header-is-sticky .header {translate: 0 -200%;}
.content {padding: 20px var(--indent); min-height: 100vh; background-color: var(--bg);}
.footer {padding: 40px var(--indent); padding-bottom: 20px; background-color: var(--bg-black); 
	color: var(--tt-fade); --tt: #fff; --tt-fade: #ccc; --bdc: rgba(255,255,255,0.2);}
.footer__two {border-top: 1px solid var(--bdc); padding-top: 20px; margin-top: 40px;}

/* HEADER, TOPMENU
----------------------------------------------- */
.logo {display: flex; align-items: center; font-family: 'Righteous-Regular'; font-weight: 400; color: var(--tt);
	padding-left: 50px; text-transform: uppercase; position: relative; font-size: 24px; height: 40px; letter-spacing: 1px;}
.logo::before {content: ''; width: 40px; height: 40px; position: absolute; left: 0; top: 50%; 
	background: url(../images/logo.svg) 0 center / contain no-repeat; translate: 0 -50%;}
.lt .header__logo {--tt: #000;}
.logo:has(img) {background: none; min-width: 200px;}
.logo:has(img)::before {display: none;}
.logo img {display: block; position: absolute; left: 0; top: 50%; translate: 0 -50%; max-height: 100%;}

.header__ava {width: 40px; cursor: pointer;}

.header__menu {margin: 0 30px;}
.header__menu li {position: relative;}
.header__menu > li > a {display: flex; align-items: center; height: 70px; text-transform: uppercase;
	font-size: 16px; font-weight: 700; font-family: 'Oswald', sans-serif;}

.search-block {position: relative;}
.search-block__input, .search-block__input:focus {padding: 0 40px 0 10px; border: 0; box-shadow: none; 
	height: 34px; line-height: 34px; color: var(--tt); border: solid 1px var(--tt);}
.search-block__input:not(:focus)::placeholder {color: var(--tt); opacity: 0.66; font-size: 12px;}
.search-block__btn {position: absolute; right: 0; top: 0!important; height: 34px; font-size: 16px; width: 40px; color: var(--accent); box-shadow: none!important;}

/* SECTION
----------------------------------------------- */
.sect:not(:last-child) {margin-bottom: 20px;}
.sect__header {margin-bottom: 0px; padding-inline: var(--padding-inline);}
.sect__title {font-size: 30px;
    font-weight: 500;
    font-family: 'Bebas';
    margin-bottom: 0px;
    position: relative;
    top: -4px;
    text-transform: none;
    display: inline-flex;
    align-items: baseline;}
.sect__title :is(h1,h2,h3) {font-size: inherit;}

/* ITEM CAROUSEL, SHORTSTORY
----------------------------------------------- */
.item__img {box-shadow: var(--bsh); overflow: hidden;}
.item__label {font-size: 12px; padding: 3px 12px; border-radius: 3px; font-weight: 500;
	background-color: var(--accent); color: #fff; position: absolute; left: 10px; top: 10px; z-index: 1;}
.item__desc {position: absolute; inset: 0; z-index: 3; color: #fff; 
	--tt: #fff; --bdc: rgba(255,255,255,0.3); text-align: center; padding: 10px;}
.item__title {font-weight: 500; font-size: 15px; margin-bottom: 5px;}
.item__year {opacity: 0.8; font-size: 12px;}
.item__rates {line-height: 1; border-top: 1px solid var(--bdc); padding-top: 10px; margin-top: 10px;}
.item__rates-item::before {content: attr(data-text); display: inline; margin-right: 5px; text-transform: uppercase; font-weight: 500;}
.item__rates-item.kp::before {color: #f60;}
.item__rates-item.imdb::before {color: #fc0;}

/* FOOTER
----------------------------------------------- */
.footer__notify {border-left: 1px solid var(--bdc); padding-left: 20px;}
.footer__copyright {font-size: 14px;}

/* TEXT BLOCK, TYPOGRAPHY
----------------------------------------------- */
.full-text {line-height: 1.6; font-size: 14px; word-wrap: break-word; color: var(--tt-fade-0);}
.full-text a {text-decoration: underline; color: var(--ui-accent);}
.full-text img:not(.emoji), .full-text p, .full-text h1, .full-text h2, .full-text h3, .full-text h4, .full-text h5, 
.full-text > ul, .full-text > ol, .full-text table {margin-bottom: 25px;}
.full-text > ul li, .full-text > ol li {padding-left: 60px; position: relative;}
.full-text > ul li:before {content: ''; width: 8px; height: 8px; border-radius: 50%; 
	border: 3px solid var(--accent); position: absolute; top: 6px; left: 34px;}
.full-text > ol {counter-reset: num;}
.full-text > ol li:before {content: counter(num); counter-increment: num; background-color: var(--accent); color: #fff; 
	position: absolute; top: -3px; left: 17px; width: 24px; height: 30px; font-size: 14px; font-weight: 500;
	display: flex; justify-content: flex-end; align-items: center; padding-right: 6px; box-sizing: border-box;}
.full-text > ol li:after {content: ''; border: 10px solid transparent; border-left-color: var(--accent); 
	position: absolute; left: 41px; top: -3px; transform: scale(0.66,1.5); transform-origin: 0 0;}
.full-text > ul li + li, .full-text > ol li + li {margin-top: 10px;}
.full-text > *:last-child {margin-bottom: 0;}
.full-text h1, .full-text h2, .full-text h3, .full-text h4, .full-text h5 {font-size: 21px; margin-bottom: 20px;}

/* CLS FIX
----------------------------------------------- */
.has-carousel:not(.owl-carousel) {display: flex; overflow: hidden; gap: 20px;}
.has-carousel:not(.owl-carousel) > * {flex-shrink: 0;}
.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 100px)/6);}

@media screen and (max-width: 1220px) {
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 80px)/5);}
}
@media screen and (max-width: 950px) {
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 60px)/4);}
}
@media screen and (max-width: 760px) {
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 40px)/3);}
}
@media screen and (max-width: 470px) {
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 20px)/2);}
}