.bcf-library,
.bcf-filters,
.bcf-grid,
.bcf-heading,
.bcf-empty,
.bcf-pagination {
	width: 100%;
}

.bcf-heading {
	margin: 0 0 1.25rem;
	font-size: clamp(1.75rem, 3vw, 2.6rem);
	line-height: 1.15;
	font-weight: 500;
	color: #000;
}

.bcf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: stretch;
	margin: 0 0 1.75rem;
}

.bcf-filters__field {
	flex: 1 1 260px;
	min-width: 0;
	margin: 0;
}

.bcf-dropdown {
	position: relative;
}

.bcf-dropdown__native-wrap {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bcf-dropdown__native,
.bcf-filters__search,
.bcf-filters__submit,
.bcf-dropdown__toggle {
	width: 100%;
	height: 48px;
	border: 1px solid #d8d3ca;
	border-radius: 2px;
	background: #fff;
	color: #1c1c1c;
	font: inherit;
	font-size: 15px;
	padding: 0 14px;
}

.bcf-dropdown__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	text-align: left;
}

.bcf-dropdown__value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bcf-dropdown__chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid #1c1c1c;
	border-bottom: 2px solid #1c1c1c;
	transform: rotate(45deg);
	flex: 0 0 auto;
	margin-top: -4px;
}

.bcf-dropdown.is-open .bcf-dropdown__chevron {
	transform: rotate(225deg);
	margin-top: 4px;
}

.bcf-dropdown__toggle:focus,
.bcf-dropdown__native:focus,
.bcf-filters__search:focus,
.bcf-filters__submit:focus {
	outline: 2px solid #d4a017;
	outline-offset: 2px;
	border-color: #d4a017;
}

.bcf-dropdown__panel {
	position: absolute;
	z-index: 40;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d8d3ca;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	max-height: calc(var(--bcf-dropdown-rows, 6) * 44px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.bcf-dropdown__list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
}

.bcf-dropdown__heading {
	padding: 10px 14px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8c8f94;
}

.bcf-dropdown__option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	padding: 8px 14px;
	cursor: pointer;
}

.bcf-dropdown__option:hover,
.bcf-dropdown__option.is-active {
	background: #f4f1ed;
}

.bcf-dropdown__option.is-selected {
	font-weight: 600;
}

.bcf-dropdown__badge {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f6e7c1;
	color: #7a5a12;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bcf-filters__submit {
	flex: 0 0 auto;
	width: auto;
	min-width: 140px;
	background: #000;
	color: #fff;
	border-color: #000;
	cursor: pointer;
	font-weight: 600;
}

.bcf-filters__submit:hover {
	background: #222;
}

.bcf-filters__reset {
	flex: 0 0 auto;
	align-self: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.bcf-filters__reset:hover,
.bcf-filters__reset:focus {
	color: #000;
	text-decoration: none;
}

.bcf-filters__reset:focus {
	outline: 2px solid #d4a017;
	outline-offset: 3px;
}

.bcf-grid {
	display: grid;
	grid-template-columns: repeat(var(--bcf-columns, 2), minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.bcf-grid__item {
	min-width: 0;
}

.bcf-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	height: 100%;
}

.bcf-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #1c1c1c;
	overflow: hidden;
}

.bcf-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bcf-card__play {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px 6px 6px;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.bcf-card__play-icon {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: #d4a017;
	position: relative;
}

.bcf-card__play-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
	transform: translate(-50%, -50%);
}

.bcf-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 0 0;
}

.bcf-card__title {
	font-size: 1.15rem;
	line-height: 1.3;
	font-weight: 500;
	color: #000;
}

.bcf-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.45;
	color: #494847;
}

.bcf-empty {
	padding: 1.5rem 0;
	color: #494847;
}

.bcf-pagination {
	margin: 2rem 0 0;
}

.bcf-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bcf-pagination .page-numbers li {
	margin: 0;
}

.bcf-pagination a,
.bcf-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #d8d3ca;
	color: #1c1c1c;
	text-decoration: none;
}

.bcf-pagination .current {
	background: #000;
	border-color: #000;
	color: #fff;
}

.bcf-admin-hint {
	margin: 0.5rem 0 1.25rem;
	padding: 10px 12px;
	background: #fff8e5;
	border-left: 3px solid #d4a017;
	color: #1c1c1c;
	font-size: 14px;
}

@media (max-width: 1023px) {
	.bcf-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.bcf-filters__submit {
		width: 100%;
	}
}
