
/* ADAPTIVE, MOBILE MENU
----------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
	.header__menu li:hover > a {opacity: 1; color: var(--episode-accent);}
}


@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--top .header__search {flex: 1 1 0; max-width: 100%; min-width: 50px; margin-left: 10px;}
	.header {padding: 10px var(--indent);}
	.header--top {min-height: 56px;}
	.header--top .logo {--logo-h: 34px; height: 34px;}
	.logo {height: 34px; padding-left: 42px;}
	.logo__text {height: 34px; font-size: 15px;}
	.logo::before {width: 34px; height: 34px;}
	.logo::after {width: 34px; height: 34px;}
	.header__menu {margin: 0 10px;}
	.header__menu > li > a {height: 56px; font-size: 14px;}
	.header--nav {min-height: 50px; max-height: 50px; height: 50px; padding: 0 var(--indent);}
	.header--nav .header__menu > li > a {height: 50px; min-height: 50px; max-height: 50px; font-size: 15px;}
	.header__collections {font-size: 14px; padding: 0 10px;}
	.header__btn-login {height: 30px; padding: 0 14px; font-size: 13px;}
	.header__btns {padding-left: 14px;}
	.header__btn1 {height: 26px; font-size: 11px;}
	.header__ava {width: 34px;}
	div.header__menu-hidden {max-width: calc(100vw - 40px);}

	.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;}
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 80px)/5);}

	.header--nav {flex-wrap: nowrap; align-items: stretch; gap: 0; overflow: visible;}
	.header--nav .header__menu-scroll {min-width: 0;}
	.header--nav .header__menu-scroll-body {
		overflow-x: auto; overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		touch-action: pan-x;
	}
	.header--nav .header__menu-scroll-body::-webkit-scrollbar {display: none;}
	.header--nav .header__menu {
		flex: none; width: max-content; max-width: none; margin-right: 0; margin-left: 0;
		display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch;
		gap: 0; column-gap: 20px; height: 100%; align-self: stretch;
	}
	.header--nav .header__menu > li {flex-shrink: 0;}
	.header--nav .header__menu > li > a {
		display: flex; align-items: center; justify-content: center;
		min-height: 50px; max-height: 50px; height: 50px;
		padding: 0 2px; font-size: 15px; line-height: 1.2;
		font-family: inherit; font-weight: 500; text-transform: none;
		white-space: nowrap; box-sizing: border-box;
		background: none; border: none; border-radius: 0; color: var(--tt); opacity: 0.6;
		transition: opacity 0.2s ease, color 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}
	.header--nav .header__menu > li > a:focus-visible {
		outline: 2px solid var(--accent); outline-offset: 2px; opacity: 1;
	}
	@media (hover: hover) and (pointer: fine) {
		.header--nav .header__menu > li > a:hover {
			opacity: 1;
			color: var(--episode-accent);
		}
		.header--nav .header__collections:hover {
			color: var(--episode-accent-hov, var(--episode-accent));
			opacity: 1;
		}
	}
	.header--nav .header__collections {
		flex: 0 0 auto; width: auto; max-width: none; margin-left: 16px !important;
		align-self: center; display: inline-flex; align-items: center; justify-content: center;
		font-size: 14px; font-weight: 500; font-family: inherit; padding: 0 10px;
		min-height: 50px; max-height: 50px; height: 50px; box-sizing: border-box;
		white-space: nowrap; line-height: 1.2; color: var(--episode-accent);
		background: none; border: none; border-radius: 0;
		transition: opacity 0.2s ease, color 0.2s ease;
		-webkit-tap-highlight-color: transparent; touch-action: manipulation;
	}
	.header--nav .header__collections:focus-visible {
		outline: 2px solid var(--episode-accent); outline-offset: 2px;
	}
}

@media screen and (max-width: 1220px) and (min-width: 590px) {
	.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: 170px;}
}

@media screen and (max-width: 950px) {
	.wrapper__container {max-width:768px;}
	/* iOS Safari: font-size < 16px on inputs triggers zoom on focus */
	.search-block__input[type="text"],
	.search-block__input[type="text"]:focus {
		font-size: 16px !important;
	}
	.search-block__input::placeholder {
		font-size: 16px;
	}
	.header--nav .header__logo-nav,
	.header--nav .header__search--nav {
		display: none !important;
	}
	.header--nav {
		box-sizing: border-box;
		padding: 0 max(var(--indent), env(safe-area-inset-left, 0px)) 0 max(var(--indent), env(safe-area-inset-right, 0px));
		border-top: 1px solid var(--bdc);
	}
	@media (hover: hover) and (pointer: fine) {
		.header--nav .header__menu > li > a:hover {
			opacity: 1;
			color: var(--episode-accent);
		}
		.header--nav .header__collections:hover {
			color: var(--episode-accent-hov, var(--episode-accent));
			opacity: 1;
		}
	}
	body.nav-is-sticky .header--nav {
		min-height: 50px;
		max-height: 50px;
		height: 50px;
		overflow: visible;
	}
	.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;}
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 60px)/4);}
}

@media screen and (max-width: 420px) {
	.header--nav .header__menu {column-gap: 14px;}
	.header--nav .header__menu > li > a {font-size: 14px;}
	.header--nav .header__collections {font-size: 13px; margin-left: 12px !important;}
}

@media screen and (min-width: 760px) {
	.pwidget {left: 50%; bottom: 50%; right: auto; translate: -50% 50%; width: 400px;}
	.pwidget::before {display: none;}
}

@media screen and (max-width: 760px) {
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 40px)/3);}
	.wrapper__container {max-width:640px;}
	.header__btn1 {display: none;}
	.header__burger {display: inline-flex; order: 0;}
	.header--nav {display: none;}
	.header-nav-spacer {display: none;}
	.header--top {
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: center;
		row-gap: 10px;
		column-gap: 10px;
		min-height: 0;
		padding-top: 10px;
		padding-bottom: 10px;
	}
	.header--top .header__logo {
		flex: 0 1 auto;
		max-width: 100%;
		min-width: 0;
		order: 1;
	}
	.header--top .header__btns,
	.header--top .header__btn-login {
		order: 2;
		margin-left: auto;
		flex: 0 0 auto;
	}
	.header--top .header__btns {padding: 0;}
	.header--top .header__search {
		order: 3;
		flex: 1 1 100%;
		width: 100%;
		min-width: 100%;
		max-width: none !important;
		margin-left: 0 !important;
	}
	.header--top .header__search .search-block__input {width: 100%;}
	.header--top .logo {--logo-h: 36px; height: 36px;}
	.header--top .logo img {max-width: min(100%, 200px);}
	.header--top .header__btn-login {
		height: 38px;
		min-height: 38px;
		padding: 0 18px;
		font-size: 14px;
	}
	.header--top .header__btns .header__ava {width: 40px;}
	.sect__header:has(.sect__tabs) {flex-direction: column; align-items: flex-start;}
	.sect__header:has(.sect__tabs) .sect__title {width: 100%;}
	.sect__header:has(.sect__tabs) .sect__tabs {width: 100%; flex-wrap: nowrap;}
	.sect__tabs {margin-top: 12px; gap: 8px; width: 100%; padding: 3px; background-color: var(--bg-darker-1);
		border-radius: 10px; display: flex;}
	.sect__tabs button {flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 13px; height: 36px;
		border-radius: 8px; font-weight: 500; text-align: center; transition: background 0.2s, color 0.2s;}
	.sect__tabs button.is-active {background-color: var(--bg); color: var(--tt); box-shadow: var(--bsh);}
	.sect .filter-block {display: none;}
	.sect .filter-block.is-active {display: block;}
	.sect__btn-filter {display: flex;}

	.carou {padding: 20px var(--indent);}
	.carou .owl-prev, .carou .owl-next {width: 32px; height: 32px; font-size: 12px;}
	.carou .owl-nav {top: -44px; gap: 6px;}

	.page__main {display: block;}
	.page__main > * + * {margin-top: 20px;}
	.page__header h1, .page__title-main, body:has(.page__header) .speedbar {text-align: center;}
	.page__meta {text-align: center;}
	.page--fullstory {--page-poster-w: 260px;}
	.page__poster {margin-left: auto; margin-right: auto; width: 100%; max-width: var(--page-poster-w);}
	.page__poster-inner {width: 100%; max-width: 100%; margin: 0;}
	.page__list-rates {padding: 12px 0; gap: 8px; margin-top: 12px; flex-wrap: nowrap; justify-content: stretch;}
	.page__list-rates-item {padding: 8px 10px 8px 28px; font-size: 12px; min-height: 36px;
		background-position-x: 10px; background-size: 14px; flex: 1 1 0; min-width: 0;
		justify-content: center; border-radius: 10px;}
	.page__info .page__list {grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px;}
	.page__schedules {padding: 16px var(--indent);}
	.page__schedule-list {gap: 6px;}
	.schedule-item {padding: 10px 12px; flex-wrap: wrap; gap: 8px 12px;}
	.schedule-item__number {font-size: 10px; padding: 2px 6px;}
	.schedule-item__descr {font-size: 12px; white-space: normal; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;}
	.schedule-item__date {font-size: 10px;}
	.schedule-item__status {font-size: 11px;}
	.schedule-item__status .fal {font-size: 12px;}
	.page__schedule-toggle {margin-top: 6px; height: 34px; font-size: 12px;}
	.page__player .tabs-block__select {width: 100%; margin-right: 0; gap: 4px; padding: 4px;
		background: rgba(0,0,0,0.35); border-radius: 10px;}
	.page__player .tabs-block__select button {flex: 1 1 0; min-width: 0; flex-direction: column;
		align-items: center; justify-content: center; gap: 3px; height: auto; min-height: 44px;
		padding: 8px 6px; font-size: 11px; line-height: 1.25; text-align: center; border-radius: 8px;
		transition: background 0.2s, color 0.2s;}
	.page__player .tabs-block__select button::before {font-size: 13px; line-height: 1;}
	.page__player .tabs-block__select button.is-active {background: rgba(255,255,255,0.08);}
	.social__helper {display: none;}
	.page__player-bottom {padding: 12px 16px;}
	.ya-share2 {width: 100%; text-align: center;}
	.page__likes a {padding: 0 10px; height: 30px; font-size: 12px; gap: 8px;}
	
	.page__ac {margin-bottom: 0;}
	.ac-form__bottom {gap: 10px;}
	.ac-form__name {max-width: 160px;}
	.ac-form #b_color {display: none;}
	.comm::before {display: none;}
	.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;}

	.complaint-modal {padding: 16px;}
	.complaint-modal__title {font-size: 18px; overflow-wrap: break-word; word-wrap: break-word;}
	.complaint-modal__option {min-width: 0; overflow-wrap: break-word; word-wrap: break-word;
		padding: 16px 18px; font-size: 14px;}
}

@media screen and (max-width: 590px) {
	.wrapper__container {max-width:480px;}
	.sect__tabs button {font-size: 12px; padding: 0 8px; height: 34px;}
	.page__player .tabs-block__select button {padding: 8px 4px; font-size: 10px; min-height: 42px;}
	.page__player .tabs-block__select button::before {font-size: 12px;}
	.page__schedules {padding: 16px var(--indent);}
	.schedule-item {padding: 12px 14px;}
	.lgn__content {padding: 24px 20px;}
	.lgn__ctrl-item {font-size: 15px; height: 46px;}
	.lgn__btn-close {right: 12px; top: 12px; font-size: 20px;}
	.lgn__avatar {width: 48px; height: 48px; font-size: 20px;}
	.lgn__title {font-size: 17px;}
	.lgn__caption {font-size: 13px;}
	.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;}

	.page--dmca-v2 .dmca__layout {grid-template-columns: 1fr;}
	.page--dmca-v2 .dmca__aside {border-left: none; border-top: 1px solid var(--bdc); padding-left: 0; padding-top: 24px;}
}

@media screen and (max-width: 470px) {
	.has-carousel:not(.owl-carousel) > .item {width: calc((100% - 20px)/2);}
	.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: 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;}
}
