/* Rumble Mix Feed — styled to match Lone Shark YouTube Grid. */

.lsh-rb {
	font-family: inherit;
	margin: 1.5rem 0;
	width: 100%;
	max-width: 100%;
	color: inherit;
}

.lsh-rb-head h3 {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.lsh-rb-grid {
	--lsh-rb-cols: 2;
	--lsh-rb-gap: 1.25rem;
	--lsh-rb-radius: 10px;
	display: grid;
	grid-template-columns: repeat(var(--lsh-rb-cols), minmax(0, 1fr));
	gap: var(--lsh-rb-gap);
	margin: 1rem 0;
	color: inherit;
	width: 100%;
	max-width: 100%;
}

.lsh-rb-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-rb-radius);
	overflow: hidden;
	min-width: 0;
}

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

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

.lsh-rb-media iframe {
	object-fit: initial;
	background: #000;
}

.lsh-rb-media img:not([src]) {
	display: none;
}

.lsh-rb-play {
	text-decoration: none;
	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-rb-play:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.lsh-rb-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-rb-play:hover .lsh-rb-play-icon,
.lsh-rb-play:focus .lsh-rb-play-icon {
	transform: scale(1.08);
	background: #c00;
}

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

.lsh-rb-dur {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	padding: 2px 6px;
	border-radius: 4px;
	pointer-events: none;
	z-index: 1;
}

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

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

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

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

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

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

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

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