/* Sound-index filter on the games hub — mobile-first. */

.shturko-sound-filter {
	margin: 0 0 .75rem;
	padding: .55rem .85rem;
	border-radius: 16px;
	background: #fff;
	border: 1px solid rgba(18, 59, 100, .12);
	box-sizing: border-box;
	overflow-anchor: none;
}

.shturko-sound-filter *,
body.shturko-games-hub-page,
body.shturko-games-hub-page * {
	overflow-anchor: none;
}

.shturko-sound-filter:not(.shturko-sound-filter--collapsed) {
	padding: .85rem 1rem 1rem;
}

.shturko-sound-filter[hidden] {
	display: none;
}

.shturko-sound-filter__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem .75rem;
	margin: 0 0 .35rem;
}

.shturko-sound-filter__title {
	margin: 0;
	font-size: clamp(14px, 2.4vw, 16px);
	line-height: 1.3;
	font-weight: 400;
	color: #123b64;
	flex: 1 1 auto;
	min-width: 0;
}

.shturko-sound-filter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem;
	margin-left: auto;
}

.shturko-sound-filter__lead {
	margin: 0 0 .75rem;
	color: #2f4a63;
	font-size: 14px;
	line-height: 1.55;
}

.shturko-sound-filter button.shturko-sound-filter__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .35rem .9rem;
	border-radius: 999px;
	border: 0 !important;
	background: #fff !important;
	background-image: none !important;
	color: #123b64 !important;
	font-weight:400;font-size:14px;line-height:1;
	cursor: pointer;
	box-shadow: 0 5px 14px rgba(31, 51, 67, .12);
}

.shturko-sound-filter button.shturko-sound-filter__toggle:hover,
.shturko-sound-filter button.shturko-sound-filter__toggle:focus,
.shturko-sound-filter button.shturko-sound-filter__toggle:focus-visible {
	background: #fff !important;
	background-image: none !important;
	color: #123b64 !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(31, 51, 67, .16);
	outline: none;
}

.shturko-sound-filter__body[hidden] {
	display: none;
}

.shturko-sound-filter__row {
	margin: 0 0 .7rem;
}

.shturko-sound-filter__label {
	display: block;
	margin: 0 0 .35rem;
	font-size: 13px;
	font-weight: 400;
	color: #4a3a6e;
}

.shturko-sound-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.shturko-sound-filter button.shturko-sound-filter__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: .35rem .7rem;
	border-radius: 999px;
	border: 2px solid transparent !important;
	background: #fff !important;
	background-image: none !important;
	color: #123b64 !important;
	font-weight:400;font-size:15px;line-height:1;
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 5px 14px rgba(31, 51, 67, .1);
	transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.shturko-sound-filter button.shturko-sound-filter__chip.is-on {
	background: #123b64 !important;
	background-image: none !important;
	border-color: #123b64 !important;
	color: #fff !important;
	box-shadow: 0 5px 14px rgba(18, 59, 100, .35);
}

.shturko-sound-filter button.shturko-sound-filter__chip.is-on::before {
	content: '✓';
	margin-right: .3em;
	font-weight: 400;
}

.shturko-sound-filter button.shturko-sound-filter__chip:hover,
.shturko-sound-filter button.shturko-sound-filter__chip:focus,
.shturko-sound-filter button.shturko-sound-filter__chip:focus-visible {
	background: #fff !important;
	background-image: none !important;
	border-color: rgba(18, 59, 100, .35) !important;
	color: #123b64 !important;
	transform: translateY(-2px);
	outline: none;
}

.shturko-sound-filter button.shturko-sound-filter__chip.is-on:hover,
.shturko-sound-filter button.shturko-sound-filter__chip.is-on:focus,
.shturko-sound-filter button.shturko-sound-filter__chip.is-on:focus-visible {
	background: #123b64 !important;
	background-image: none !important;
	border-color: #123b64 !important;
	color: #fff !important;
}

.shturko-sound-filter__radios {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.shturko-sound-filter__radio {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 44px;
	padding: .3rem .75rem;
	border-radius: 999px;
	border: 1px solid rgba(100, 80, 160, .18);
	background: #fff;
	color: #2f2114;
	font-weight:400;font-size:13px;line-height:1.3;
	cursor: pointer;
}

.shturko-sound-filter__radio:has(input:checked) {
	background: #fff3e2;
	border-color: #fff3e2;
	color: #123b64;
}

.shturko-sound-filter__radio:hover,
.shturko-sound-filter__radio:has(input:checked):hover {
	transform: translateY(-2px);
}

.shturko-sound-filter__radio input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #123b64;
}

.shturko-sound-filter__live {
	position: sticky;
	top: calc(var(--header-h, 82px) + .35rem);
	z-index: 4;
	margin: 0 0 .75rem;
	padding: .45rem .65rem .55rem;
	border-radius: 14px;
	background: #fffdf8;
	border: 1px solid rgba(18, 59, 100, .12);
	box-shadow: 0 6px 16px rgba(31, 51, 67, .06);
}

body.admin-bar .shturko-sound-filter__live {
	top: calc(var(--header-h, 82px) + 32px + .35rem);
}

.shturko-sound-filter__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem .75rem;
	margin: 0;
}

.shturko-sound-filter__count {
	margin: 0;
	color: #0d2d4c;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
}

.shturko-sound-filter button.shturko-sound-filter__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .35rem .9rem;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	background-image: none !important;
	color: #123b64 !important;
	font-weight:400;font-size:14px;line-height:1;
	cursor: pointer;
	text-decoration: underline;
	box-shadow: none;
}

.shturko-sound-filter button.shturko-sound-filter__clear:hover,
.shturko-sound-filter button.shturko-sound-filter__clear:focus,
.shturko-sound-filter button.shturko-sound-filter__clear:focus-visible {
	background: transparent !important;
	background-image: none !important;
	color: #123b64 !important;
	transform: translateY(-2px);
	outline: none;
	box-shadow: none;
}

.shturko-sound-filter__note {
	margin: .55rem 0 0;
	color: #2f4a63;
	font-size: 13px;
	line-height: 1.5;
}

.shturko-sound-filter--compact {
	padding: .65rem .85rem;
	margin: 0 0 .85rem;
}

.shturko-sound-filter__active {
	margin: 0;
	color: #2f2114;
	font-size: 14px;
	line-height: 1.45;
}

.shturko-sound-filter__rule {
	margin: 0 0 .75rem;
	padding: .7rem .75rem .8rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(100, 80, 160, .16);
	box-sizing: border-box;
}

.shturko-sound-filter__rule-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .4rem .75rem;
	margin: 0 0 .55rem;
}

.shturko-sound-filter__rule-title {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: #4a3a6e;
}

.shturko-sound-filter__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .3rem .75rem;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: #123b64;
	font-weight:400;font-size:13px;line-height:1;
	cursor: pointer;
	text-decoration: underline;
}

.shturko-sound-filter button.shturko-sound-filter__add {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 0 0 .65rem;
	padding: .45rem .9rem;
	border-radius: 999px;
	border: 0 !important;
	background: rgba(255, 255, 255, .92) !important;
	background-image: none !important;
	color: #123b64 !important;
	font-weight:400;font-size:14px;line-height:1.3;
	cursor: pointer;
	box-sizing: border-box;
	box-shadow: 0 5px 14px rgba(31, 51, 67, .12);
}

.shturko-sound-filter button.shturko-sound-filter__add:hover,
.shturko-sound-filter button.shturko-sound-filter__add:focus,
.shturko-sound-filter button.shturko-sound-filter__add:focus-visible {
	background: rgba(255, 255, 255, .92) !important;
	background-image: none !important;
	color: #123b64 !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(31, 51, 67, .16);
	outline: none;
}

.shturko-sound-filter button.shturko-sound-filter__remove {
	background: transparent !important;
	background-image: none !important;
	color: #123b64 !important;
	border: 0 !important;
	box-shadow: none;
}

.shturko-sound-filter button.shturko-sound-filter__remove:hover,
.shturko-sound-filter button.shturko-sound-filter__remove:focus,
.shturko-sound-filter button.shturko-sound-filter__remove:focus-visible {
	background: transparent !important;
	background-image: none !important;
	color: #123b64 !important;
	outline: none;
}

.shturko-sound-filter__more {
	margin: 0;
}

.shturko-sound-filter__more-sum {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: .2rem 0;
	cursor: pointer;
	font-weight:400;font-size:13px;line-height:1.3;
	color: #4a3a6e;
	list-style: none;
}

.shturko-sound-filter__more-sum::-webkit-details-marker {
	display: none;
}

.shturko-sound-filter__more-sum::before {
	content: '▸';
	display: inline-block;
	width: 1.1em;
	margin-right: .15rem;
}

.shturko-sound-filter__more[open] > .shturko-sound-filter__more-sum::before {
	content: '▾';
}

.shturko-sound-filter__more .shturko-sound-filter__chips {
	margin-top: .35rem;
}

.shturko-sound-filter__words {
	margin: .45rem 0 0;
}

.shturko-sound-filter__words[hidden] {
	display: none;
}

.shturko-sound-filter__words-sum {
	margin: 0 0 .35rem;
	padding: 0;
	font-weight:400;font-size:13px;line-height:1.3;
	color: #0d2d4c;
}

.shturko-sound-filter__words-list {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	max-height: 7.5rem;
	overflow: auto;
	padding: 0;
}

.shturko-sound-filter__word {
	display: inline-flex;
	align-items: center;
	padding: .2rem .55rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(100, 80, 160, .16);
	color: #2f2114;
	font-weight:400;font-size:13px;line-height:1.3;
}

.shturko-sound-filter__empty {
	margin: .75rem 0;
	padding: .9rem 1rem;
	border-radius: 14px;
	background: #fffdf8;
	border: 1px solid rgba(18, 59, 100, .12);
	color: #123b64;
	line-height: 1.55;
}

@media (max-width: 782px) {
	body.admin-bar .shturko-sound-filter__live {
		top: calc(var(--header-h, 82px) + 46px + .35rem);
	}
}

@media (max-width: 720px) {
	.shturko-sound-filter {
		padding: .7rem .75rem .85rem;
	}

	.shturko-sound-filter__live {
		top: calc(var(--header-h, 72px) + .25rem);
	}

	body.admin-bar .shturko-sound-filter__live {
		top: calc(var(--header-h, 72px) + 46px + .25rem);
	}

	.shturko-sound-filter__chip {
		min-width: 44px;
		padding: .3rem .55rem;
		font-size: 14px;
	}

	.shturko-sound-filter__radio {
		flex: 1 1 calc(50% - .4rem);
	}
}

/* Excel download of the full sound index, under the filter (Shturko_Sound_Index::render_downloads). */
.shturko-sound-filter__download {
	margin: -.25rem 0 .9rem;
	color: #2f4a63;
	font-size: 14px;
	line-height: 1.55;
}

.shturko-sound-filter__download-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 .35rem;
	font-weight: 400;
	color: #123b64;
	text-decoration: underline;
}
