/* 
=====================================================
 Mobile menu (smartphone) - style like KinoGo
 by megohub
 Подключение: в smartphone/main.tpl или style.css
=====================================================
*/

.new_filter_ww {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

.new_filter_ww * {
	box-sizing: border-box;
}

/* Accordion section */
.new_filter_ww .dropdownn {
	margin: 0;
	padding: 0;
}

/* Header row */
.new_filter_ww .dropdown__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.new_filter_ww .dropdown__top a {
	color: #fff !important;
	text-decoration: none !important;
	display: block;
	width: 100%;
}

.new_filter_ww .dropdown__top a:hover {
	color: #fff !important;
}

.new_filter_ww .dropdown__top.menu-af::after {display: none;}

.dropdown__top.menu-af::after {display: none;}

/* Arrow */
.new_filter_ww .dropdownn.open .dropdown__top:after,
.new_filter_ww .dropdownn.is-open .dropdown__top:after {
	transform: rotate(180deg);
	border-top-color: #fff;
}

/* Body */
.new_filter_ww .dropdown__btm {
	display: none;
	padding: 8px;
	background: #2a2a2a;
}

.new_filter_ww .dropdownn.open .dropdown__btm,
.new_filter_ww .dropdownn.is-open .dropdown__btm {
	display: block !important;
}

/* If some panels are forced open via inline style, keep grid */
.new_filter_ww .dropdown__btm[style*="block"] {
	display: block !important;
}

/* ---- List items: categories ---- */
.new_filter_ww .ww1 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #3a3a3a;
	border-radius: 6px;
	margin: 0 0 6px 0;
	padding: 0;
	overflow: hidden;
}

.new_filter_ww .ww1:hover {
    color: #fff !important;
	background: #444;
}

.new_filter_ww .ww1 a {
	flex: 1;
	color: #eee !important;
	text-decoration: none !important;
	padding: 5px 12px;
	display: block;
	font-size: 14px;
}

.new_filter_ww .ww1 a:hover {
	color: #fff !important;
	background: #444;
}

.new_filter_ww .ww1 span {
	color: #999;
	font-size: 13px;
	padding: 0 12px 0 0;
	white-space: nowrap;
	flex-shrink: 0;
}

/* 2-column grid for genre items (skip first full-width ones optionally) */
.new_filter_ww .dropdown__btm {
	display: none;
}

.new_filter_ww .dropdownn.open .dropdown__btm,
.new_filter_ww .dropdownn.is-open .dropdown__btm {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 8px;
}

/* Full width items: first links like "Все фильмы", items with ww1_podb parent handled separately */
.new_filter_ww .dropdownn.open .dropdown__btm > .ww1:first-child,
.new_filter_ww .dropdownn.open .dropdown__btm > .ww1:nth-child(2),
.new_filter_ww .dropdownn.open .dropdown__btm > .ww1:nth-child(3),
.new_filter_ww .dropdownn.open .dropdown__btm > br {
	grid-column: 1 / -1;
}

.new_filter_ww .dropdown__btm > br {
	display: none;
}

/* Year items - 2 columns */
.new_filter_ww .ww2 {
	background: #3a3a3a;
	border-radius: 6px;
	display: flex;
	align-items: center;
}

.new_filter_ww .ww2 a {
	color: #eee !important;
	text-decoration: none !important;
	padding: 5px 12px;
	display: block;
	width: 100%;
	font-size: 14px;
}

.new_filter_ww .ww2 a:hover {
	background: #444;
	color: #fff !important;
}

/* Collections block */
.new_filter_ww .ww1_podb {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: 4px;
}

.new_filter_ww .ww1_podb a {
	display: block;
	background: #3a3a3a;
	color: #eee !important;
	text-decoration: none !important;
	padding: 5px 12px;
	border-radius: 6px;
	font-size: 14px;
}

.new_filter_ww .ww1_podb a:first-child {
	grid-column: 1 / -1;
	font-weight: 600;
}

.new_filter_ww .ww1_podb a:hover {
	background: #444;
	color: #fff !important;
}

/* Badge NEW */
.new_filter_ww .menu-new {
	background: #e74c3c;
	color: #fff;
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 50px;
	margin-left: 6px;
	font-weight: 700;
}

/* Hide ads inside menu if needed - optional */
.new_filter_ww .adv-banner {
	grid-column: 1 / -1;
}
