/* ADAPTIVE, MOBILE MENU
----------------------------------------------- */
.mobile-menu {width: 320px; height: 100%; overflow-x: hidden; overflow-y: auto;
	z-index: 999; position: fixed; left: -360px; top: 0; transition: left 0.4s; background-color: var(--bg);}
.mobile-menu.is-active {left: 0;}
body.mobile-menu-is-opened {overflow: hidden; width: 100%; height: 100%;}
.mobile-menu__header {padding: 15px 20px; gap: 10px; background-color: var(--bg-darker-1);}
.mobile-menu__header .logo {font-size: 20px;}
.mobile-menu__btn-close {font-size: 24px; width: 40px; height: 40px; margin-right: -10px;}
.mobile-menu__content {padding: 20px;}
.mobile-menu__content .header__search, .mobile-menu__content .header__btn-login {display: none;}
.mobile-menu__content .header__menu {display: block; margin: 0;}
.mobile-menu__content .header__menu > li > a {height: 50px;}
.mobile-menu__content .header__menu-hidden {opacity: 1; visibility: visible; translate: 0 0; position: static;
	background-color: var(--bg-darker); width: calc(100% + 40px); margin: 0 -20px; box-shadow: none; padding: 20px;}
.mobile-menu__content div.header__menu-hidden {grid-template-columns: repeat(2,minmax(0,1fr));}

@media screen and (max-width: 1220px) {
	:root {--indent-negative: -20px; --indent: 20px;}
	.wrapper__container {max-width:1000px;}
	body, .has-branding {padding-top: 0;}
	.wrapper::before, .wrapper::after {background: none; display: none;}
	.wrapper::before, .wrapper::after {height: auto; aspect-ratio: 3 / 2;}
	.wrapper::before {mask-image: none; background-size: cover;}
	.header .header__menu {display: none;}
	.header {padding: 20px var(--indent);}
	.header__search {flex: 1 1 0; max-width: 100%; min-width: 50px; margin-left: 10px;}
	.header__btn-menu {display: flex;}

	.page__cols {display: block;}
	.page__cols-right:has(.filter-block) {display: none;}
	.page__cols:has(.page__player) .page__cols-right {padding: 0;}
	.page__fr {position: static;}
	.page__fr .sect__content {height: auto; max-height: 150px;}
	.schedule-item {padding: 6px 20px; gap: 10px 20px;}
	.schedule-item__number {width: 140px;}
}
@media screen and (max-width: 1220px) {
	.sect:has(.sect__tabs) .grid-items {display: flex; overflow-y: hidden; overflow-x: auto;}
	.sect:has(.sect__tabs) .grid-items > .grid-items__item {flex-shrink: 0; width: 160px;}
	.sect:has(.sect__tabs) .grid-items .item__img {border-radius: 5px;}
}

@media screen and (max-width: 950px) {
	.wrapper__container {max-width:768px;}
	.footer__notify {margin: 0;}
	.footer__menu {width: 100%;}

	.pagination {gap: 10px;}
	.pagination__btn-loader a, .pagination__btn-loader span:not([class]) {width: 100%;}
	.pagination > a, .pagination > span {flex-grow: 1; order: 10;}
	.pagination__pages, .pagination__btns {min-width: 100%;}
	.pagination__pages a, .pagination__pages span, .pagination__btns > * {flex-grow: 1;}
}

@media screen and (max-width: 760px) {
	.wrapper__container {max-width:640px;}
	.header .header__search, .header .header__btn-login, .header__btn1 {display: none;}
	.mobile-menu__content .header__search, .mobile-menu__content .header__btn-login {display: block; 
		width: 100%; margin: 0; margin-bottom: 10px;}
	.mobile-menu__content .header__btn-login {display: flex;}
	.header__logo {flex: 1 1 0; max-width: 100%; min-width: 50px;}
	.header__btn-menu, .header__btns {order: 10; padding: 0;}
	.sect__header:has(.sect__tabs) .sect__title {width: 100%;}
	.sect__tabs {margin-top: 10px; gap: 10px; width: 100%;}
	.sect__tabs button {flex: 1 1 0; max-width: 100%; min-width: max-content; padding: 0 10px; font-size: 12px; height: 30px;}
	.sect .filter-block {display: none;}
	.sect .filter-block.is-active {display: block;}
	.sect__btn-filter {display: flex;}

	.page__main {display: block;}
	.page__main > * + * {margin-top: 20px;}
	.page__header h1, body:has(.page__header) .speedbar {text-align: center;}
	.page__poster {margin-left: auto; margin-right: auto; width: 200px;}
	.page__list-rates {padding: 10px 0;}
	.schedule-item {gap: 0 10px;}
	.schedule-item__number {width: 100px; text-align: right;}
	.schedule-item__descr {min-width: calc(100%	- 130px); order: -1;}
	.page__complaint {display: none !important;}
	.page__player .tabs-block__select button {flex-grow: 1;}
	.page__player-bottom {padding: 20px;}
	.ya-share2 {width: 100%; text-align: center;}
	.page__fav {margin: 0;}
	.page__likes a {padding: 0 10px; height: 30px; font-size: 12px; gap: 8px;}
	
	.page__ac {margin-bottom: 20px;}
	.ac-form__bottom {gap: 10px;}
	.ac-form__bottom button {padding: 0 20px; width: 100%;}
	.ac-form__header input + input {min-width: 100%; order: 10;}
	.ac-form__header > span, .comm::before {display: none;}
	.ac-form #b_color {display: none;}
	.ac-toggle .ac-form__bottom button {position: static; width: 100%;}
	.comm {padding: 15px 20px;}
	.comm__img {width: 40px; height: 40px; position: relative; left: 0; top: 0;}
	.comm__meta {display: block;}
	.comm__user-rating, .comm__group {translate: -50% -100%; display: none;}
}

@media screen and (max-width: 590px) {
	.wrapper__container {max-width:480px;}
	.lgn__content {padding: 30px 20px;}
	.lgn__ctrl > * {font-size: 17px; height: 40px;}
	.lgn__btn-close {right: 0; top: 0; color: var(--tt); font-size: 24px;}
	.lgn__header {padding-left: 60px;}
	.lgn__avatar {width: 40px; font-size: 18px;}
	.lgn__title {font-size: 17px;}
	.lgn__caption {font-size: 14px; margin-top: 0;}
	.header__login a, .header__btn1 {display: none;}
	.footer__notify {width: 100%; padding: 0; border: 0; text-align: center;}
	.footer__copyright {margin: 0; text-align: center; width: 100%;}
	
	.page__scr ul:has(li:nth-child(6)) {grid-template-columns: repeat(2,1fr);}
	.page__scr ul:not(:has(li:nth-child(6))) {gap: 10px;}
}

@media screen and (max-width: 470px) {
	.wrapper__container123 {max-width:410px;}
	.wrapper::before, .wrapper::after {aspect-ratio: 1 / 1.2;}
	.header__theme-select {height: 30px;}
	.pagination__btn-loader a {min-width: 0; width: 100%;}
	.filter__col--ranges {padding: 0 0;}
	.filter__cell--submit, .filter__col--submit {flex-direction: row; width: 100%;}
	.filter__cell--submit input {flex: 1 1 0; max-width: 100%; min-width: 50px;}
}

@media screen and (max-width: 420px) {
    .filter__bin {width: 100%;}
}

@media screen and (max-width: 400px) {
	.wrapper__container123 {max-width:360px;}
	
	.ac-form__bottom .comments_subscribe {font-size: 13px;}
	.full-text iframe {width: calc(100% + 40px); max-width: calc(100% + 40px); height: 260px; margin-left: -20px; margin-right: -20px;}
}

@media screen and (max-width: 760px) {
	.header {
		position: sticky;
		top: -56px;
		padding: 14px 20px 12px;
		gap: 8px 14px;
		align-items: center;
		background-color: var(--bg);
		box-shadow: 0 1px 5px 0 rgba(0,0,0,0.08);
	}

	.header::after {
		content: '';
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		height: 0;
	}

	.header__logo.logo {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
		height: 34px;
		padding-left: 43px;
		color: var(--tt);
		font-family: 'Righteous-Regular';
		font-size: 21px;
		font-weight: 400;
		letter-spacing: 1px;
		text-transform: uppercase;
	}

	.header__logo.logo::before {
		width: 34px;
		height: 34px;
		background-image: url(../images/logo.svg);
	}

	.header__theme-select,
	.header .header__btn-login {
		display: flex !important;
		flex: 0 0 34px;
		width: 34px;
		height: 34px;
		padding: 0;
		color: var(--yellow);
		background-color: transparent;
		box-shadow: none;
		font-size: 0;
	}

	.header__theme-select {
		order: 2;
		margin-left: auto;
	}

	.header .header__btn-login {
		order: 3;
		border-radius: 4px;
		color: var(--tt);
		background-color: var(--bg-darker-1);
	}

	.header .header__btn-login span {
		display: none;
	}

	.header__theme-select::before,
	.header .header__btn-login::before,
	.header .search-block__btn::before,
	.header .search-block__close::before,
	.header .header__menu > li > a::before {
		content: '';
		display: block;
		flex: 0 0 auto;
		width: 22px;
		height: 22px;
		background-color: currentColor;
		mask-image: var(--lf-icon);
		-webkit-mask-image: var(--lf-icon);
		mask-repeat: no-repeat;
		-webkit-mask-repeat: no-repeat;
		mask-position: center;
		-webkit-mask-position: center;
		mask-size: contain;
		-webkit-mask-size: contain;
	}

	.header__theme-select::before {
		--lf-icon: url(../images/icons/moon.svg);
	}

	.dt .header__theme-select::before,
	body[data-theme="dark"] .header__theme-select::before {
		content: '';
		--lf-icon: url(../images/icons/sun.svg);
	}

	.header .header__btn-login::before {
		--lf-icon: url(../images/icons/login.svg);
	}

	.header .header__search {
		display: flex !important;
		order: 4;
		flex: 0 0 30px;
		width: 30px;
		min-width: 30px;
		max-width: 30px;
		height: 34px;
		margin: 0;
	}

	.header .header__search form {
		display: flex;
		align-items: center;
		width: 100%;
		height: 100%;
	}

	.header .search-block__input {
		display: none;
	}

	.header .search-block__btn {
		position: static;
		width: 30px;
		height: 34px;
		color: var(--tt);
		font-size: 0;
	}

	.header .search-block__btn::before {
		--lf-icon: url(../images/icons/search.svg);
		width: 23px;
		height: 23px;
	}

	.header__btn-menu {
		display: none !important;
	}

	.header .header__menu {
		display: flex !important;
		order: 5;
		flex: 1 1 0;
		flex-wrap: nowrap;
		align-items: center;
		gap: 18px;
		min-width: 0;
		margin: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.header .header__menu::-webkit-scrollbar {
		display: none;
	}

	.header .header__menu > li {
		display: block;
		flex: 0 0 auto;
	}

	.header .header__menu > li > a {
		display: inline-flex;
		align-items: center;
		gap: 7px;
		height: 34px;
		padding: 0;
		color: var(--tt);
		background-color: transparent;
		font-family: 'inter', Arial, sans-serif;
		font-size: 16px;
		font-weight: 500;
		line-height: 34px;
		letter-spacing: 0;
		opacity: .92;
		text-transform: none;
		white-space: nowrap;
	}

	.header .header__menu > li > a[href="/film/"]::before {
		--lf-icon: url(../images/icons/genres/film.svg);
	}

	.header .header__menu > li > a[href="/serial/"]::before,
	.header .header__menu > li > a[href="/season"]::before,
	.header .header__menu > li > a[href="/multiki/multserialy/"]::before,
	.header .header__menu > li > a[href="/multiki/"]::before {
		--lf-icon: url(../images/icons/genres/series.svg);
	}

	.header .header__menu > li > a[href="/anime/"]::before,
	.header .header__menu > li > a[href="/anime"]::before {
		--lf-icon: url(../images/icons/apps.svg);
	}

	.header .header__menu > li > a[href="/2026-year/"]::before,
	.header .header__menu > li > a[href="/serialy-2026/"]::before,
	.header .header__menu > li > a[href="/year/year-2026/"]::before {
		--lf-icon: url(../images/icons/update.svg);
	}

	.header .header__menu > li > a[href="/top-100.html"]::before {
		--lf-icon: url(../images/icons/cup.svg);
	}

	body.header-search-is-open .header {
		top: 0;
		padding: 8px 12px 10px;
	}

	body.header-search-is-open .header::after {
		display: none;
	}

	body.header-search-is-open .header__logo,
	body.header-search-is-open .header__theme-select,
	body.header-search-is-open .header .header__btn-login,
	body.header-search-is-open .header .header__menu {
		display: none !important;
	}

	body.header-search-is-open .header .header__search {
		order: 1;
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
		height: 46px;
	}

	body.header-search-is-open .header .search-block__close {
		position: absolute;
		left: 9px;
		top: 50%;
		display: flex;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		color: var(--accent);
		background-color: var(--bg-darker-1);
		translate: 0 -50%;
	}

	body.header-search-is-open .header .search-block__close::before {
		--lf-icon: url(../images/icons/close.svg);
		width: 15px;
		height: 15px;
	}

	body.header-search-is-open .header .search-block__input,
	body.header-search-is-open .header .search-block__input:focus {
		display: block;
		width: 100%;
		height: 46px;
		line-height: 46px;
		padding: 0 48px;
		border-radius: 23px;
		background-color: var(--bg);
		box-shadow: inset 0 0 0 1px var(--bdc), inset 1px 2px 5px rgba(0,0,0,.12);
		color: var(--tt);
		font-size: 16px;
	}

	body.header-search-is-open .header .search-block__input::placeholder {
		color: var(--tt-fade);
		opacity: .45;
		font-size: 16px;
	}

	body.header-search-is-open .header .search-block__btn {
		position: absolute;
		right: 7px;
		top: 50%;
		width: 34px;
		height: 34px;
		translate: 0 -50%;
	}
}


@media screen and (max-width: 760px) {
	.home-card-grid {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		gap: 10px;
		padding-bottom: 10px;
	}

	.home-card-grid > .grid-items__item,
	.home-card-grid > .item {
		flex: 0 0 155px;
		width: 155px;
		scroll-snap-align: start;
	}

	.home-card-grid .item__img {
		border-radius: 5px;
	}
}

@media screen and (max-width: 420px) {
	.home-card-grid > .grid-items__item,
	.home-card-grid > .item {
		flex-basis: 145px;
		width: 145px;
	}
}
