/* ფილმების ფილტრი */
.kk-filter {
	/* საიტის (StreamVid თემის) ფერები */
	--kk-bar: #191c33;
	--kk-chips: #232748;
	--kk-menu: #1f2340;
	--kk-hover: #2b3056;
	--kk-line: #33385f;
	--kk-page: var(--bodybg, #00031c);
	--kk-text: var(--heading, #ffffff);
	--kk-muted: var(--body2, #a1a0a1);
	--kk-accent: var(--main, #7b61ff);
	--kk-accent-hover: #6c52ee;

	margin-bottom: 24px;
	border-radius: 5px;
	/* ოდნავ გამჭვირვალე — ზედა ფონი სუსტად ჩანს (იყო #191c33) */
	background: rgba(25, 28, 51, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--kk-text);
	font-family: inherit;
}

.kk-filter button,
.kk-filter input {
	font-family: inherit;
}

.kk-filter__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 10px 10px 12px;
}

.kk-filter__item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.kk-filter__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--kk-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.kk-filter__title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.kk-filter__item.has-value .kk-filter__title {
	color: var(--kk-accent);
}

.kk-filter__chevron {
	flex: none;
	transition: transform 0.2s;
}

.kk-filter__item.is-open .kk-filter__chevron {
	transform: rotate(180deg);
}

.kk-filter__menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 50;
	display: none;
	width: 240px;
	padding: 8px;
	border-radius: 5px;
	background: var(--kk-menu);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
	transform: translateX(-50%);
}

.kk-filter__item.is-open .kk-filter__menu {
	display: block;
}

.kk-filter__menu--scroll {
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--kk-line) transparent;
}

.kk-filter__search {
	position: sticky;
	top: -8px;
	z-index: 1;
	width: 100%;
	height: 38px;
	margin: -8px 0 6px;
	padding: 0 12px;
	border: 0;
	border-bottom: 1px solid var(--kk-line);
	border-radius: 5px 5px 0 0;
	background: var(--kk-menu);
	color: var(--kk-text);
	font-size: 14px;
}

.kk-filter__search:focus {
	outline: none;
	border-bottom-color: var(--kk-accent);
}

.kk-filter__option {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 9px 10px;
	border-radius: 5px;
	color: var(--kk-text);
	font-size: 14px;
	cursor: pointer;
}

.kk-filter__option:hover {
	background: var(--kk-hover);
}

.kk-filter__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.kk-filter__mark {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--kk-line);
	border-radius: 50%;
	transition: border-color 0.15s, background 0.15s;
}

.kk-filter__mark--check {
	border-radius: 4px;
}

.kk-filter__option input:checked + .kk-filter__mark {
	border-color: var(--kk-accent);
	background: var(--kk-accent);
	box-shadow: inset 0 0 0 3px var(--kk-menu);
}

.kk-filter__option input:checked + .kk-filter__mark--check {
	box-shadow: none;
}

.kk-filter__option input:checked + .kk-filter__mark--check::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 4px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kk-filter__option input:focus-visible + .kk-filter__mark {
	outline: 2px solid var(--kk-accent);
	outline-offset: 2px;
}

.kk-filter__count {
	margin-left: auto;
	color: var(--kk-muted);
	font-size: 12px;
}

.kk-filter__range.kk-filter__menu {
	width: 220px;
	padding: 14px;
}

.kk-filter__item.is-open .kk-filter__range {
	display: flex;
	gap: 10px;
}

.kk-filter__range label {
	flex: 1;
	margin: 0;
}

.kk-filter__range label span {
	display: block;
	margin-bottom: 6px;
	color: var(--kk-muted);
	font-size: 12px;
}

.kk-filter__range input {
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--kk-line);
	border-radius: 5px;
	background: var(--kk-bar);
	color: var(--kk-text);
	font-size: 14px;
}

.kk-filter__range input:focus {
	outline: none;
	border-color: var(--kk-accent);
}

.kk-filter__submit {
	flex: 1.1 1 0;
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 5px;
	background: var(--kk-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.kk-filter__submit:hover {
	background: var(--kk-accent-hover);
}

.kk-filter__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 0 0 5px 5px;
	background: var(--kk-chips);
}

.kk-filter__chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 4px 4px 16px;
	border-radius: 30px;
	background: var(--kk-bar);
	color: var(--kk-text);
	font-size: 14px;
	text-decoration: none;
}

.kk-filter__chip:hover,
.kk-filter__chip:focus {
	color: var(--kk-text);
}

.kk-filter__chip-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--kk-line);
	font-size: 18px;
	line-height: 1;
	transition: background 0.15s;
}

.kk-filter__chip:hover .kk-filter__chip-x {
	background: var(--kk-accent);
}

.kk-filter__reset {
	margin-left: auto;
	color: var(--kk-muted);
	font-size: 13px;
	text-decoration: underline;
}

.kk-filter__reset:hover {
	color: var(--kk-text);
}

@media (max-width: 991px) {
	.kk-filter__bar {
		flex-wrap: wrap;
		padding: 12px;
	}

	.kk-filter__item {
		flex: 1 1 calc(33.333% - 10px);
	}

	.kk-filter__submit {
		flex: 1 1 100%;
	}
}

@media (max-width: 575px) {
	.kk-filter__item {
		flex: 1 1 calc(50% - 10px);
		border-radius: 5px;
		background: var(--kk-chips);
	}

	.kk-filter__menu {
		width: min(260px, calc(100vw - 32px));
	}

	.kk-filter__item:nth-child(even) .kk-filter__menu {
		left: auto;
		right: 0;
		transform: none;
	}

	.kk-filter__item:nth-child(odd) .kk-filter__menu {
		left: 0;
		transform: none;
	}

	.kk-filter__chips {
		gap: 8px;
		padding: 12px;
	}

	.kk-filter__chip {
		gap: 10px;
		padding-left: 14px;
		font-size: 13px;
	}

	.kk-filter__chip-x {
		width: 26px;
		height: 26px;
	}
}

/* ტიპის გადართვისას — გვერდი იტვირთება */
.kk-filter.is-loading { opacity: .6; pointer-events: none; transition: opacity .2s; }

/* შედეგების ფონური ჩატვირთვისას (kk-filter.js) — ბარათები ოდნავ ქრება */
.kk-is-loading > :not(.kk-filter) { opacity: .45; transition: opacity .2s; pointer-events: none; }
.kk-is-loading .kk-filter { pointer-events: none; }

/* პირველი ჩამოსაშლელი (ტიპი) — ზუსტად ფილტრის ბარის მარცხენა კიდეზე, არ გადადის გარეთ
   (ბარის მარცხენა padding = 12px) */
.kk-filter__bar > .kk-filter__item:first-child .kk-filter__menu {
	left: -12px;
	transform: none;
}

/* backdrop-filter ფორმას ცალკე ფენად აქცევს — ჩამოსაშლელი ბარათების ზემოთ რომ დარჩეს */
.kk-filter { position: relative; z-index: 30; }
/* ჩამოსაშლელები იწყება ზუსტად ბარის ქვედა კიდის ქვემოთ (ბარის ქვედა padding 10px + 6px დაშორება) */
.kk-filter__bar > .kk-filter__item .kk-filter__menu { top: calc(100% + 16px); }

/* ჩიპების ზოლი (არჩეული ფილტრები) — უფრო მკრთალი, ბარზე მეტად გამჭვირვალე (იყო #232748) */
.kk-filter__chips { background: rgba(35, 39, 72, 0.5); }
.kk-filter__chip { background: rgba(25, 28, 51, 0.7); }

/* "ყველა": სერიალის ნიშანი ფილმის სტილის ბარათზე (kk-card-poster.php) */
.post-media { position: relative; }
.kk-all-badge {
	position: absolute; left: 8px; top: 8px; z-index: 3; pointer-events: none;
	padding: 3px 8px; border-radius: 5px; background: #7b61ff; color: #fff;
	font-size: 11px; font-weight: 600; line-height: 1.3; box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* ბაგის გასწორება: "სერიალის" ნიშანი მეზობელი ბარათის ჰოვერ-ფანჯარაზე ზემოდან ჩანდა.
   მაუსის ქვეშ მყოფი ბარათი (თავისი ფანჯრით) ყველა სხვა ბარათზე მაღლა ადის; ნიშანი — დაბალ ფენაზე.
   ასლი: backups\2026-10-01-badge-zindex */
.kk-all-badge { z-index: 1; }
.movies_advanced_content > .jws-post-item:hover,
.movies_advanced_content > .jws-post-item:focus-within { z-index: 30; }
