.llm-playlist-grid {
	--llm-min-col: 280px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--llm-min-col), 1fr));
	gap: 20px;
	width: 100%;
	box-sizing: border-box;
}

.llm-playlist-grid * {
	box-sizing: border-box;
}

.llm-video-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.llm-video-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.llm-video-play-trigger {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
}

.llm-video-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.llm-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	max-width: 20%;
	max-height: 20%;
	transition: transform .15s ease, opacity .15s ease;
	opacity: 0.9;
}

.llm-play-button svg {
	width: 100%;
	height: 100%;
}

.llm-video-play-trigger:hover .llm-play-button {
	transform: translate(-50%, -50%) scale(1.1);
	opacity: 1;
}

.llm-video-thumb-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.llm-video-title {
	padding: 12px 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #1d2327;
}

.llm-playlist-empty {
	padding: 20px;
	text-align: center;
	color: #666;
}

/* Responsive column tuning for common breakpoints */
@media (max-width: 480px) {
	.llm-playlist-grid {
		--llm-min-col: 100%;
		gap: 16px;
	}
}

@media (min-width: 481px) and (max-width: 782px) {
	.llm-playlist-grid {
		--llm-min-col: 260px;
	}
}
