.edu-library-section {
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.edu-library-section__layout {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
	gap: 20px;
	align-items: stretch;
}

.edu-library-section__main {
	display: flex;
	flex-direction: column;
	width: 100%;
	justify-content: flex-start;
}

.edu-library-section__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
}

.edu-library-section__heading-row {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-bottom: 0;
}

.edu-library-section__title {
	border-left: 3px solid var(--edu-primary) !important;
	padding-left: 12px !important;
	margin: 0 !important;
	color: var(--theme-palette-color-4) !important;
	text-align: justify !important;
	text-align-last: left !important;
}

.edu-library-section__title a {
	color: inherit;
	text-decoration: none;
}

.edu-library-section__title a:hover {
	color: var(--theme-palette-color-3);
	text-decoration: none;
}

.edu-library-section__control-row {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 10px;
	width: auto;
	margin-left: auto;
	margin-bottom: 0;
	flex: 0 0 auto;
}

.edu-library-section__dropdown {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: auto;
	flex: 0 1 auto;
}

.edu-library-section__dropdown-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	width: auto;
	white-space: nowrap;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 6px 0;
	color: #ef1b24;
	font-size: 18px;
	line-height: 1.2;
	cursor: pointer;
}

.edu-library-section__dropdown-label {
	color: #ef1b24;
	font-size: 18px;
}

.edu-library-section__dropdown-trigger:hover,
.edu-library-section__dropdown-trigger:hover .edu-library-section__dropdown-label {
	color: var(--theme-palette-color-2);
}

.edu-library-section__dropdown-arrow {
	flex-shrink: 0;
	transition: transform 0.2s ease;
	margin-top: 2px;
	color: var(--theme-palette-color-4);
}

.edu-library-section__dropdown.is-open .edu-library-section__dropdown-arrow {
	transform: rotate(180deg);
}

.edu-library-section__dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin: 4px 0 0 0;
	padding: 6px 0;
	list-style: none;
	background-color: var(--edu-white);
	border: 1px solid var(--edu-border);
	border-radius: var(--edu-radius);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	z-index: 4;
	min-width: 220px;
	max-height: 250px;
	overflow-y: auto;
	box-sizing: border-box;
}

.edu-library-section__dropdown-item {
	padding: 8px 16px;
	font-size: 16px;
	color: var(--theme-palette-color-4);
	cursor: pointer;
	white-space: nowrap;
}

.edu-library-section__dropdown-item:hover {
	background-color: var(--edu-bg-soft);
	color: var(--theme-palette-color-2);
}

.edu-library-section__dropdown-item.is-active {
	background-color: var(--edu-bg-soft);
	color: var(--theme-palette-color-3);
	font-weight: 600;
}

.edu-library-section__playlist-btn,
.edu-library-section__playlist-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0;
	line-height: 1;
	color: var(--theme-palette-color-2);
	cursor: pointer;
	outline: 0;
	transition: color 0.2s ease;
}

.edu-library-section__playlist-btn:hover,
.edu-library-section__playlist-button:hover {
	color: var(--theme-palette-color-3);
}

.edu-library-section__playlist-svg {
	display: block;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	margin: 0;
}

.edu-library-section__video-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: var(--edu-radius);
	overflow: hidden;
}

.edu-library-section .edu-yt-lazy-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.edu-library-section .edu-yt-lazy-player__play-btn {
	background-color: var(--theme-palette-color-3) !important;
	color: var(--edu-white) !important;
}

.edu-library-section .edu-yt-lazy-player__placeholder:hover .edu-yt-lazy-player__play-btn {
	background-color: var(--theme-palette-color-2) !important;
	transform: translate(-50%, -50%) scale(1.1) !important;
}

.edu-library-section__side {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.edu-library-section__posts-container {
	flex-grow: 1;
}

.edu-library-section__post-list {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	gap: 10px;
}

.edu-library-section__post-item {
	display: grid;
	grid-template-columns: clamp(118px, 34%, 150px) minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.edu-library-section__post-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: var(--edu-bg-soft);
	border-radius: var(--edu-radius);
	width: 100%;
	aspect-ratio: 16/9;
}

.edu-library-section__post-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.edu-library-section__post-item:hover .edu-library-section__post-thumb img {
	transform: scale(1.05);
}

.edu-library-section__post-thumb--placeholder {
	background: linear-gradient(135deg, var(--edu-bg-soft), var(--edu-border));
}

.edu-library-section__post-thumb--placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23cbd5e1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>');
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
	opacity: 0.6;
}

.edu-library-section__post-content {
	min-width: 0;
}

.edu-library-section__post-category {
	margin: 0 0 2px;
	font-size: 15px;
}

.edu-library-section__post-category a {
	color: inherit;
	text-decoration: none;
}

.edu-library-section__post-category a:hover {
	color: var(--theme-palette-color-3);
	text-decoration: none;
}

.edu-library-section__post-title {
	margin: 0;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: justify;
	text-align-last: left;
}

.edu-library-section__post-title a {
	color: var(--theme-palette-color-4);
	text-decoration: none;
	transition: color 0.2s ease;
}

.edu-library-section__post-item:hover .edu-library-section__post-title a {
	color: var(--theme-palette-color-2);
}

.edu-library-section__post-item:active .edu-library-section__post-title a {
	color: var(--theme-palette-color-3);
}

.edu-library-section__post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--edu-muted);
	font-size: 12px;
}

.edu-library-section__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.edu-library-section__meta-icon {
	flex-shrink: 0;
	stroke: currentColor;
}

.edu-library-section__meta-text {
	white-space: nowrap;
}

.edu-library-section__meta-sep {
	color: var(--edu-border);
	user-select: none;
}

.edu-library-section__empty-message {
	padding: 20px;
	text-align: center;
	color: var(--edu-muted);
	background-color: var(--edu-bg-soft);
	border-radius: var(--edu-radius);
	width: 100%;
	box-sizing: border-box;
}

.edu-library-section.is-loading {
	position: relative;
}

.edu-library-section.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.6);
	z-index: 99;
	cursor: wait;
	border-radius: var(--edu-radius);
}

@media (max-width: 1024px) {
	.edu-library-section__layout {
		grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
		gap: 16px;
	}

	.edu-library-section__post-item {
		grid-template-columns: clamp(110px, 34%, 130px) minmax(0, 1fr);
		gap: 12px;
	}
}

@media (max-width: 767px) {
	.edu-library-section__layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.edu-library-section__side {
		height: auto;
	}

	.edu-library-section__post-list {
		height: auto;
		gap: 12px;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}

	.edu-library-section__post-item {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
	}

	.edu-library-section__topbar {
		flex-wrap: wrap;
		gap: 10px;
	}
}