.cbr-layout-results { display: none; }

@media (min-width: 1200px) {
	.cbr-layout-controls {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
		align-items: center;
		gap: 24px;
		width: 100%;
		box-sizing: border-box;
		margin: 0 0 16px;
		padding: 8px 1rem 0;
	}

	.cbr-layout-tabs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
	.cbr-layout-controls-title-row { padding-top: 0; }
	.cbr-layout-controls-title-row .cbr-layout-tabs-empty { min-width: 0; }
	.cbr-layout-controls-title-row .cbr-layout-page-title {
		margin: 0 !important;
		padding: 0;
	}
	.cbr-layout-tab {
		min-height: 34px;
		padding: 6px 15px;
		border: 1px solid rgba(0, 0, 0, 0.14);
		border-radius: 999px;
		background: #fff;
		color: #171717;
		font: 500 13px/1.2 Rubik, Arial, sans-serif;
		cursor: pointer;
		transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	}
	.cbr-layout-tab:hover, .cbr-layout-tab:focus { border-color: #5f42e7; color: #5f42e7; outline: none; transform: translateY(-1px); }
	.cbr-layout-tab.is-active { border-color: #5f42e7; background: #5f42e7; color: #fff; box-shadow: 0 5px 14px rgba(95, 66, 231, 0.22); }

	.cbr-layout-search { position: relative; width: calc(100% - 1rem); max-width: calc(100% - 1rem); justify-self: start; }
	.cbr-layout-search-input {
		display: block;
		width: 100% !important;
		max-width: none !important;
		height: 62px;
		box-sizing: border-box;
		padding: 10px 44px 10px 16px;
		border: 1px solid rgba(0, 0, 0, 0.16);
		border-radius: 6px;
		background: #f0f0f0;
		font: inherit;
		outline: none;
	}
	.cbr-layout-search-input::-webkit-search-cancel-button, .cbr-layout-search-input::-webkit-search-decoration { appearance: none; -webkit-appearance: none; }
	.cbr-layout-search-input:focus { border-color: rgba(95, 66, 231, 0.7); box-shadow: 0 0 0 3px rgba(95, 66, 231, 0.12); }
	.cbr-layout-search-clear {
		position: absolute; top: 50%; right: 9px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
		background: transparent; font-size: 24px; line-height: 28px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(-50%);
	}
	.cbr-layout-search-clear.is-visible { opacity: 1; pointer-events: auto; }

	.cbr-layout-results.is-active { display: block; padding: 0 1rem 1.25rem; }
	.cbr-layout-native-hidden { display: none !important; }
	.cbr-layout-loading { opacity: 0.5; pointer-events: none; transition: opacity 140ms ease; }
	.cbr-layout-empty { padding: 28px 1rem; text-align: center; }

	.cbr-layout-mosaic {
		display: grid;
		grid-template-columns: 1.6fr 0.95fr 0.95fr;
		grid-template-rows: repeat(2, minmax(150px, 1fr));
		gap: 14px;
		height: clamp(490px, 29vw, 550px);
		margin: 0 0 25px;
	}
	.cbr-layout-content-featured {
		display: grid;
		grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
		gap: 14px;
		height: clamp(300px, 20vw, 360px);
		margin: 0 0 32px;
	}
	.cbr-layout-feature {
		position: relative;
		min-width: 0;
		overflow: hidden;
		border-radius: 11px;
		background: #272727;
		box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1);
	}
	.cbr-layout-feature-main { grid-row: 1 / span 2; }
	.cbr-layout-feature-image, .cbr-layout-feature > img, .cbr-layout-card-image, .cbr-layout-card-media > img {
		position: absolute; inset: 0; display: block; width: 100% !important; max-width: none !important; height: 100% !important;
		margin: 0 !important; object-fit: cover !important; object-position: center 38%; transition: transform 320ms ease;
	}
	.cbr-layout-feature:hover .cbr-layout-feature-image, .cbr-layout-feature:hover > img, .cbr-layout-card:hover .cbr-layout-card-image { transform: scale(1.025); }
	.cbr-layout-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.02) 22%, rgba(0,0,0,0.9) 100%); }
	.cbr-layout-cover-link { position: absolute; inset: 0; z-index: 2; }
	.cbr-layout-feature-copy { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; color: #fff; pointer-events: none; }
	.cbr-layout-feature-main .cbr-layout-feature-copy, .cbr-layout-content-main .cbr-layout-feature-copy { left: 21px; right: 21px; bottom: 19px; }
	.cbr-layout-kicker { display: block; margin-bottom: 5px; color: #ff9fa2; font: 700 10px/1.2 Rubik, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
	.cbr-layout-feature h2, .cbr-layout-feature h3 { margin: 0; color: #fff; font-family: Rubik, Arial, sans-serif; font-weight: 700; }
	.cbr-layout-feature h2 { max-width: 610px; font-size: clamp(20px, 1.55vw, 28px); line-height: 1.14; }
	.cbr-layout-feature h3 { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
	.cbr-layout-feature time { display: block; margin-top: 6px; font-size: 10px; opacity: .78; }

	.cbr-layout-section-head, .cbr-layout-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 12px; }
	.cbr-layout-section-head h2, .cbr-layout-block-head h2 { margin: 0; font: 700 21px/1.25 Rubik, Arial, sans-serif; }
	.cbr-layout-block-head a { color: #6d7179; font: 500 12px/1.3 Rubik, Arial, sans-serif; text-decoration: none; }
	.cbr-layout-block-head a:hover, .cbr-layout-block-head a:focus { color: #5f42e7; text-decoration: none; }
	.cbr-layout-universe-block { margin: 0 0 34px; }
	.cbr-layout-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 16px; }
	.cbr-layout-card { min-width: 0; }
	.cbr-layout-card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 10px; background: rgba(0,0,0,.06); box-shadow: 0 5px 14px rgba(0,0,0,.09); }
	.cbr-layout-card-copy { padding: 9px 5px 0; }
	.cbr-layout-card-category { display: block; margin-bottom: 4px; color: #d82025; font: 700 10px/1.2 Rubik, Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
	.cbr-layout-title-link, .cbr-layout-title-link:hover, .cbr-layout-title-link:focus { color: inherit; text-decoration: none; }
	.cbr-layout-card h3 { display: -webkit-box; overflow: hidden; min-height: 48px; margin: 0 0 6px; font: 700 13px/1.23 Rubik, Arial, sans-serif; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
	.cbr-layout-card time { display: block; color: #6d7179; font-size: 10px; line-height: 1.2; }

	.cbr-layout-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 28px 0 2px; }
	.cbr-layout-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 12px; line-height: 1; text-decoration: none; }

	body.dark-mode .cbr-layout-search-input { border-color: rgba(255,255,255,.16); background: #292929; color: #fff; }
	body.dark-mode .cbr-layout-search-input::placeholder { color: rgba(255,255,255,.55); }
	body.dark-mode .cbr-layout-tab { border-color: rgba(255,255,255,.15); background: #292929; color: #f5f5f5; }
	body.dark-mode .cbr-layout-tab:hover, body.dark-mode .cbr-layout-tab:focus { border-color: #8e7af0; color: #a899f3; }
	body.dark-mode .cbr-layout-tab.is-active { border-color: #5f42e7; background: #5f42e7; color: #fff; }
	body.dark-mode .cbr-layout-card-media { background: rgba(255,255,255,.07); box-shadow: 0 5px 15px rgba(0,0,0,.28); }
	body.dark-mode .cbr-layout-card-category { color: #ff777b; }
	body.dark-mode .cbr-layout-card time, body.dark-mode .cbr-layout-block-head a { color: rgba(255,255,255,.58); }
}
