/* Lone Shark YouTube Grid — override any of these classes in your theme. */

.lsh-yt-grid {
	--lsh-yt-cols: 3;
	--lsh-yt-gap: 1.25rem;
	--lsh-yt-radius: 10px;
	display: grid;
	grid-template-columns: repeat(var(--lsh-yt-cols), minmax(0, 1fr));
	gap: var(--lsh-yt-gap);
	margin: 1rem 0;
	color: inherit;
}

.lsh-yt-card {
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, currentColor 8%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: var(--lsh-yt-radius);
	overflow: hidden;
	min-width: 0;
}

.lsh-yt-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #111;
	overflow: hidden;
}

.lsh-yt-media img,
.lsh-yt-media iframe,
.lsh-yt-media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.lsh-yt-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
}

.lsh-yt-play:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.lsh-yt-play-icon {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease;
}

.lsh-yt-play:hover .lsh-yt-play-icon,
.lsh-yt-play:focus .lsh-yt-play-icon {
	transform: scale(1.08);
	background: #c00;
}

.lsh-yt-play-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	margin-left: 2px;
	fill: currentColor;
}

.lsh-yt-meta {
	padding: 0.75rem 0.85rem 0.95rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.lsh-yt-title {
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
	margin: 0;
}

.lsh-yt-title a {
	color: inherit;
	text-decoration: none;
}

.lsh-yt-title a:hover,
.lsh-yt-title a:focus {
	text-decoration: underline;
}

.lsh-yt-sub {
	font-size: 0.8rem;
	opacity: 0.75;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lsh-yt-empty {
	margin: 1rem 0;
	opacity: 0.8;
}

@media (max-width: 800px) {
	.lsh-yt-grid {
		--lsh-yt-cols: 2 !important;
	}
}

@media (max-width: 520px) {
	.lsh-yt-grid {
		--lsh-yt-cols: 1 !important;
	}
}
