.course-library-archive {
	background: #f8f6fb;
	padding: 34px 0 70px;
}

.yt-course-hero-filter {
	background:
		radial-gradient(circle at 12% 18%, rgba(189, 247, 207, 0.2), transparent 30%),
		radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.16), transparent 28%),
		linear-gradient(135deg, #1a0536 0%, #5b16c9 56%, #6d28d9 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 26px;
	box-shadow: 0 24px 58px rgba(26, 5, 54, 0.24);
	color: #fff;
	direction: rtl;
	margin-bottom: 18px;
	overflow: hidden;
	padding: 30px;
	position: relative;
}

.yt-course-hero-filter__top {
	align-items: flex-start;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-bottom: 26px;
	position: relative;
	z-index: 1;
}

.yt-course-hero-filter__copy {
	max-width: 680px;
	min-width: 0;
}

.yt-course-hero-filter__title {
	color: #fff;
	font-size: 34px;
	font-weight: bold;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0 0 10px;
}

.yt-course-hero-filter__description {
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	line-height: 1.9;
	margin: 0;
}

.yt-course-hero-filter__grid {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	position: relative;
	z-index: 1;
}

.yt-course-hero-filter__chip {
	align-items: center;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(124, 58, 237, 0.35);
	border-radius: 16px;
	box-shadow: none;
	color: #4c1d95;
	display: inline-flex;
	flex: 0 0 auto;
	max-width: max-content;
	min-width: unset;
	padding: 10px 14px;
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	white-space: nowrap;
	width: auto;
}

.yt-course-hero-filter__chip:hover,
.yt-course-hero-filter__chip:focus {
	background: rgba(250, 245, 255, 0.96);
	border-color: rgba(124, 58, 237, 0.55);
	box-shadow: none;
	color: #3b0764;
	transform: translateY(-1px);
}

.yt-course-hero-filter__chip.is-active {
	background: #f3e8ff;
	border-color: #7c3aed;
	box-shadow: none;
	color: #3b0764;
}

.yt-course-hero-filter__chip--all {
	background: #f3e8ff;
	border-color: #7c3aed;
	color: #3b0764;
}

.yt-course-hero-filter__text {
	display: block;
	min-width: 0;
	text-align: right;
}

.yt-course-hero-filter__text strong {
	display: block;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yt-course-hero-filter__chip--all .yt-course-hero-filter__text strong,
.yt-course-hero-filter__chip.is-active .yt-course-hero-filter__text strong {
	font-weight: 700;
}

.yt-course-hero-filter__text small {
	color: rgba(255, 255, 255, 0.62);
	display: block;
	font-size: 10px;
	line-height: 1.45;
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.yt-course-hero-filter__chip.is-active .yt-course-hero-filter__text small {
	color: rgba(50, 16, 95, 0.62);
}

.course-library-hero {
	background: linear-gradient(135deg, #1a0536 0%, #400095 100%);
	border-radius: 18px;
	box-shadow: 0 8px 12px rgba(26, 5, 54, 0.18);
	color: #fff;
	margin-bottom: 22px;
	padding: 28px 32px;
}

.course-library-kicker {
	color: #b8ffbf;
	display: block;
	font-size: 13px;
	font-weight: bold;
	margin-bottom: 8px;
}

.course-library-hero h1 {
	font-size: 34px;
	font-weight: bold;
	margin: 0 0 8px;
}

.course-library-hero p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	line-height: 1.7;
	margin: 0;
}

.course-library-cats,
.course-library-owner-tabs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 0 12px;
	-webkit-overflow-scrolling: touch;
}

.course-library-cats {
	align-items: center;
	gap: 9px;
	margin-bottom: 8px;
	padding: 8px 2px 16px;
	scroll-padding-inline: 2px;
}

.course-library-cats a,
.course-library-owner-tabs > a,
.course-library-owner-tabs > span {
	background: #fff;
	border: 1px solid rgba(64, 0, 149, 0.1);
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(26, 5, 54, 0.05);
	color: #400095;
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: bold;
	padding: 8px 15px;
	white-space: nowrap;
}

.course-library-owner-tabs > a,
.course-library-owner-tabs > span {
	align-items: center;
	display: inline-flex;
	gap: 7px;
}

.course-library-cats a {
	border-color: rgba(64, 0, 149, 0.08);
	color: #33104f;
	scroll-snap-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-library-cats a:hover,
.course-library-cats a:focus {
	box-shadow: 0 10px 10px rgba(26, 5, 54, 0.1);
	transform: translateY(-1px);
}

.course-library-cats .course-library-cat-all {
	background: linear-gradient(135deg, #400095 0%, #8c4ae8 100%);
	border: 0;
	border-radius: 18px;
	box-shadow: 0 12px 10px rgba(64, 0, 149, 0.2);
	color: #fff;
	font-size: 17px;
	padding: 13px 22px;
}

.course-library-cats .course-library-cat-chip {
	background: rgba(255, 255, 255, 0.86);
	border-radius: 16px;
	font-size: 13px;
	padding: 9px 14px;
}

.course-library-cats .course-library-cat-chip:nth-of-type(3n) {
	background: rgba(184, 255, 191, 0.55);
}

.course-library-cats .course-library-cat-chip:nth-of-type(3n + 1) {
	background: rgba(140, 74, 232, 0.08);
}

.course-library-cats .course-library-cat-chip:nth-of-type(3n + 2) {
	background: rgba(255, 70, 199, 0.08);
}

.course-library-cats a.is-active,
.course-library-owner-tabs a.is-active {
	background: #8c4ae8;
	color: #fff;
}

.course-library-filter-count {
	align-items: center;
	background: rgba(64, 0, 149, 0.08);
	border-radius: 999px;
	color: inherit;
	display: inline-flex;
	font-size: 11px;
	font-weight: bold;
	justify-content: center;
	line-height: 1;
	min-width: 22px;
	padding: 4px 7px;
}

.course-library-owner-tabs a.is-active .course-library-filter-count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.course-library-owner-tabs > span.is-disabled .course-library-filter-count {
	background: rgba(26, 5, 54, 0.06);
	color: #aaa;
}

.course-library-owner-tabs span.is-disabled {
	color: #aaa;
	cursor: not-allowed;
}

.course-library-toolbar {
	display: flex;
	margin: 8px 0 16px;
}

.course-library-count {
	color: #777;
	font-size: 13px;
	margin-bottom: 18px;
}

.course-library-section {
	margin-bottom: 34px;
}

.course-library-section-head {
	align-items: end;
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.course-library-section-head h2 {
	color: #1a0536;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.3;
	margin: 0;
}

.course-library-section-head p {
	color: #777;
	font-size: 13px;
	line-height: 1.7;
	margin: 5px 0 0;
	max-width: 720px;
}

.course-library-row {
	display: flex;
	gap: 16px;
	margin-left: -6px;
	margin-right: -6px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 6px 6px 18px;
	scroll-behavior: smooth;
	scroll-padding-inline: 6px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.course-library-row::-webkit-scrollbar {
	height: 7px;
}

.course-library-row::-webkit-scrollbar-track {
	background: rgba(64, 0, 149, 0.06);
	border-radius: 999px;
}

.course-library-row::-webkit-scrollbar-thumb {
	background: rgba(140, 74, 232, 0.32);
	border-radius: 999px;
}

.course-library-card {
	background: #fff;
	border: 1px solid rgba(64, 0, 149, 0.08);
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(26, 5, 54, 0.08);
	display: flex;
	flex: 0 0 220px;
	height: 290px;
	overflow: hidden;
	position: relative;
	scroll-snap-align: start;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-library-card:hover {
	box-shadow: 0 6px 10px rgba(26, 5, 54, 0.13);
	transform: translateY(-3px);
}

.course-library-card-link {
	color: inherit;
	display: grid !important;
	grid-template-rows: auto 1fr;
	height: 100% !important;
	width: 100%;
	text-decoration: none;
}

.course-library-card-link:hover,
.course-library-card-link:focus {
	color: inherit;
	text-decoration: none;
}

.course-library-cover {
	aspect-ratio: 3 / 2;
	background: #eee;
	display: block;
	flex: 0 0 auto;
	line-height: 0;
	overflow: hidden;
	position: relative;
}

.course-library-image {
	display: block;
	height: 100% !important;
	inset: 0;
	margin: 0;
	max-width: none;
	min-height: 100%;
	object-fit: cover !important;
	position: absolute;
	vertical-align: top;
	width: 100%;
}

.course-library-content {
	display: grid !important;
	align-items: center;
	grid-template-rows: 30px calc(1.4em * 2) 42px;
	justify-items: center;
	margin: 0;
	min-height: 0;
	padding: 6px 10px 8px;
	position: relative;
	row-gap: 3px;
	text-align: center;
}

.course-library-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	grid-row: 1;
	align-items: center;
	align-content: center;
	justify-content: center;
	margin: 0;
	max-height: 30px;
	min-height: 30px;
	overflow: hidden;
	position: static;
	text-align: center;
	width: 100%;
}

.course-library-meta:empty {
	display: none;
	margin: 0;
	padding: 0;
}

.course-library-meta span {
	border-radius: 999px;
	font-size: 10px;
	font-weight: bold;
	line-height: 1.15;
	overflow: hidden;
	padding: 6px 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.course-library-custom-badge {
	background: rgba(140, 74, 232, 0.09);
	color: #8c4ae8;
}

.course-library-sale-badge {
	background: rgba(255, 70, 199, 0.11);
	color: #d524a1;
}

.course-library-title {
	color: #3f315f;
	display: -webkit-box !important;
	font-size: 1.3rem !important;
	font-weight: 600;
	grid-row: 2;
	height: calc(1.4em * 2) !important;
	line-height: 1.4 !important;
	margin: 0;
	max-height: calc(1.4em * 2) !important;
	min-height: calc(1.4em * 2) !important;
	overflow: hidden !important;
	text-align: center;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
}

.course-library-price {
	align-items: center;
	color: #400095;
	display: flex;
	flex-direction: column;
	font-size: 12px;
	font-weight: bold;
	grid-row: 3;
	justify-content: center;
	line-height: 1.2;
	margin: 0;
	max-height: 42px;
	min-height: 42px;
	overflow: hidden;
	text-align: center;
	width: 100%;
}

.course-library-price.course-library-status-price {
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	flex-direction: row;
	gap: 5px;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.2;
	margin: 0 auto;
	max-height: none;
	max-width: fit-content;
	min-height: 0;
	padding: 8px 13px;
	width: auto;
}

.course-status-pill {
	box-shadow: 0 8px 18px rgba(26, 5, 54, 0.1);
	color: #fff;
}

.course-status-pill i {
	font-size: 10px;
	line-height: 1;
	margin-left: 1px;
}

.course-status-pill.is-owned {
	background: linear-gradient(135deg, #18b432, #10b32b);
	color: #fff;
}

.course-status-pill.is-full {
	background: linear-gradient(135deg, #f0567b, #d92f61);
	color: #fff;
}

.course-library-price del {
	color: #aaa;
	display: block;
	font-size: 11px;
	font-weight: normal;
	line-height: 1.15;
}

.course-library-price ins {
	display: block;
	line-height: 1.2;
	text-decoration: none;
}

.course-library-empty {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 6px 12px rgba(26, 5, 54, 0.08);
	color: #777;
	padding: 28px;
	text-align: center;
}

@media (max-width: 991px) {
	.yt-course-hero-filter {
		border-radius: 22px;
		padding: 24px;
	}

	.yt-course-hero-filter::before {
		display: none;
	}

	.yt-course-hero-filter__top {
		align-items: stretch;
		flex-direction: column;
		gap: 18px;
	}

	.yt-course-hero-filter__grid {
		gap: 9px 10px;
	}

	.course-library-card {
		flex-basis: 180px;
		height: 266px;
	}
}

@media (max-width: 700px) {
	.yt-course-hero-filter {
		border-radius: 18px;
		display: flex;
		flex-direction: column;
		max-height: 54vh;
		margin-left: -2px;
		margin-right: -2px;
		padding: 14px 12px;
	}

	.yt-course-hero-filter__top {
		flex: 0 0 auto;
		gap: 10px;
		margin-bottom: 10px;
	}

	.yt-course-hero-filter__title {
		font-size: 21px;
		margin-bottom: 5px;
	}

	.yt-course-hero-filter__description {
		display: -webkit-box;
		font-size: 11px;
		line-height: 1.55;
		max-width: 100%;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.yt-course-hero-filter__grid {
		gap: 7px 8px;
		flex: 1 1 auto;
		max-height: min(45vh, 250px);
		min-height: 0;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 2px 1px 3px;
		scrollbar-width: thin;
	}

	.yt-course-hero-filter__grid::-webkit-scrollbar {
		width: 4px;
	}

	.yt-course-hero-filter__grid::-webkit-scrollbar-track {
		background: rgba(255, 255, 255, 0.08);
		border-radius: 999px;
	}

	.yt-course-hero-filter__grid::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, 0.3);
		border-radius: 999px;
	}

	.yt-course-hero-filter__chip {
		align-items: center;
		border-radius: 13px;
		flex: 0 1 auto;
		height: auto;
		max-width: 100%;
		min-height: 36px;
		padding: 7px 10px;
	}

	.yt-course-hero-filter__text {
		min-width: 0;
	}

	.yt-course-hero-filter__text strong {
		font-size: 11.5px;
		line-height: 1.25;
		white-space: nowrap;
	}

	.yt-course-hero-filter__text small {
		display: none;
	}

	.course-library-archive {
		padding-top: 18px;
	}

	.course-library-hero {
		border-radius: 14px;
		margin-bottom: 14px;
		padding: 22px 20px;
	}

	.course-library-hero h1 {
		font-size: 25px;
	}

	.course-library-toolbar {
		margin-bottom: 10px;
	}

	.course-library-section {
		margin-bottom: 26px;
	}

	.course-library-section-head h2 {
		font-size: 18px;
	}

	.course-library-section-head p {
		font-size: 12px;
	}

	.course-library-row {
		gap: 14px;
		margin-left: 0;
		margin-right: 0;
		padding: 8px 2px 20px;
		scroll-padding-inline: 2px;
	}

	.course-library-row::-webkit-scrollbar {
		display: none;
	}

	.course-library-cats {
		gap: 8px;
		margin-left: -15px;
		margin-right: -15px;
		padding-left: 15px;
		padding-right: 15px;
		scroll-padding-inline: 15px;
	}

	.course-library-cats .course-library-cat-all {
		font-size: 15px;
		padding: 12px 18px;
	}

	.course-library-cats .course-library-cat-chip {
		font-size: 12px;
		padding: 8px 12px;
	}

	.course-library-card {
		flex-basis: clamp(185px, 58vw, 230px);
		height: 270px;
	}

	.course-library-card-link {
		display: flex !important;
		flex-direction: column;
	}

	.course-library-cover {
		aspect-ratio: 3 / 2;
	}

	.course-library-content {
		display: grid !important;
		flex: 1 1 auto;
		align-items: center;
		grid-template-rows: 24px calc(12px * 1.35 * 2) 32px;
		justify-items: center;
		min-height: 0;
		padding: 7px 10px 9px;
		row-gap: 4px;
	}

	.course-library-meta {
		grid-row: 1;
		max-height: 24px;
		min-height: 24px;
	}

	.course-library-meta.is-empty {
		display: flex;
		max-height: 22px;
		min-height: 22px;
		overflow: hidden;
		padding: 0;
	}

	.course-library-meta span {
		font-size: 10px;
		padding: 5px 9px;
	}

	.course-library-title {
		font-size: 12px !important;
		height: auto !important;
		line-height: 1.35 !important;
		margin-bottom: 0;
		max-height: calc(1.35em * 2) !important;
		min-height: 0 !important;
	}

	.course-library-content > .course-library-title:first-child {
		margin-top: 0;
	}

	.course-library-price {
		font-size: 12px;
		grid-row: 3;
		margin: 0;
		max-height: 32px;
		min-height: 30px;
	}

	.course-library-price.course-library-status-price {
		font-size: 11px;
		margin: 0 auto;
		min-height: 0;
		padding: 8px 13px;
	}
}
