:root {
	--sh-grid-gap: 20px;
	--sh-card-bg: #ffffff;
	--sh-card-shadow: 0 4px 6px rgba( 0, 0, 0, 0.05 );
	--sh-border-radius: 8px;
	--sh-title-color: #2c3e50;
}

.sh-video-grid {
	display: grid;
	grid-template-columns: repeat( var( --sh-columns, 3 ), minmax( 0, 1fr ) );
	gap: var( --sh-grid-gap );
	margin: 20px 0;
}

.sh-video-card {
	background: var( --sh-card-bg );
	border-radius: var( --sh-border-radius );
	box-shadow: var( --sh-card-shadow );
	overflow: hidden;
	transition: transform 0.2s ease;
}

.sh-video-card:hover {
	transform: translateY( -4px );
}

.sh-video-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.sh-video-thumbnail {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.sh-video-content {
	padding: 15px;
}

.sh-video-title {
	margin: 0;
	font-size: 1.1rem;
	color: var( --sh-title-color );
	line-height: 1.4;
}

.sh-error,
.sh-no-results {
	padding: 12px 16px;
	border-radius: var( --sh-border-radius );
	background: #f7f7f7;
	color: #555;
}

@media ( max-width: 781px ) {
	.sh-video-grid {
		grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	}
}

@media ( max-width: 480px ) {
	.sh-video-grid {
		grid-template-columns: 1fr;
	}
}

/* --- Play-Button-Overlay (Lightbox-Modus) --- */
.sh-thumb {
	position: relative;
	display: block;
}

.sh-has-player .sh-video-link {
	cursor: pointer;
}

.sh-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	transform: translate( -50%, -50% );
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.6 );
	transition: background 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.sh-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate( -50%, -50% );
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent #ffffff;
}

.sh-video-card:hover .sh-play {
	background: #e50914;
	transform: translate( -50%, -50% ) scale( 1.08 );
}

/* --- Lightbox-Overlay --- */
.sh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sh-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.85 );
}

.sh-lightbox__dialog {
	position: relative;
	width: min( 900px, 92vw );
}

.sh-lightbox__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.sh-lightbox__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sh-video-date {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
}

.sh-lightbox__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 28px;
	line-height: 1;
	color: #ffffff;
	background: transparent;
	border: 0;
	cursor: pointer;
}
