.fm_videos_wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
	font-family: 'Kanit', sans-serif;
}

.fm_videos_wrapper * {
	box-sizing: border-box;
}

.fm_videos_wrapper .fm_heading {
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 28px;
	color: #111;
}

.fm_videos_layout {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
	gap: 24px;
	align-items: start;
}

.fm_video_main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.fm_video_frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.fm_video_iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fm_watch_youtube_btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #2b2b2b;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 999px;
}

.fm_watch_youtube_btn:hover {
	background: #111;
	color: #fff;
}

.fm_playlist_panel {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 420px;
}

.fm_playlist_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #ececec;
}

.fm_playlist_label {
	font-weight: 700;
	font-size: 14px;
	color: #161616;
}

.fm_playlist_count {
	font-size: 12px;
	color: #9a9a9a;
}

.fm_playlist_list {
	overflow-y: auto;
	flex: 1 1 auto;
}

.fm_playlist_item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px;
	cursor: pointer;
	border-bottom: 1px solid #f3f3f3;
}

.fm_playlist_item:hover {
	background: #f7f7f7;
}

.fm_playlist_item_active {
	background: #eef1ff;
}

.fm_playlist_thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
}

.fm_playlist_title {
	font-size: 13px;
	color: #222;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.fm_videos_layout {
		grid-template-columns: 1fr;
	}
	.fm_playlist_panel {
		max-height: 320px;
	}
}
