.wbv-video-playlist,
.wbv-single-video {
	--wbv-green: #274c34;
	--wbv-green-soft: #e8f0e3;
	--wbv-copy: #243b2a;
	--wbv-muted: #5d6962;
	--wbv-focus: #6c936e;
	color: var(--wbv-copy);
}

.wbv-video-playlist {
	max-width: 980px;
	margin: 24px auto;
}

.wbv-main-video-card,
.wbv-video-card {
	overflow: hidden;
	border: 1px solid rgba(36, 59, 42, 0.16);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 9px 28px rgba(36, 59, 42, 0.11);
}

.wbv-video-header {
	min-height: 43px;
	display: flex;
	align-items: center;
	padding: 9px 16px;
	background: #f1f5ed;
}

.wbv-broadcast-frame {
	position: relative;
	background: #111;
}

.wbv-latest-badge {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
	font-size: clamp(14px, 1.8vw, 17px);
	font-weight: 800;
	line-height: 1.3;
	color: var(--wbv-green);
}

.wbv-latest-badge i {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d93333;
	box-shadow: 0 0 0 5px rgba(217, 51, 51, 0.12);
	animation: wbv-pulse 2s infinite;
}

.wbv-main-player,
.wbv-video-player {
	position: relative;
	background: #111;
	aspect-ratio: 16 / 9;
}

.wbv-main-player video,
.wbv-video-player video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wbv-transition-frame {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 60ms linear;
}

.wbv-transition-frame.is-visible {
	opacity: 1;
}

.wbv-next-video-preloader {
	position: absolute !important;
	top: 0;
	left: 0;
	z-index: -1;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
	pointer-events: none;
}

/*
 * Beim Quellenwechsel blendet der Browser sonst kurz seinen grossen
 * Play-Button und die Zeitleiste ein. Das controls-Attribut wird parallel per
 * JavaScript entfernt; die Pseudoelemente sind die zusaetzliche Safari-Sperre.
 */
.wbv-main-player.is-wbv-native-controls-suppressed .wbv-main-video::-webkit-media-controls {
	display: none !important;
	opacity: 0 !important;
}

.wbv-main-player.is-wbv-native-controls-suppressed .wbv-main-video::-webkit-media-controls-overlay-play-button {
	display: none !important;
}

.wbv-main-player.is-wbv-native-controls-suppressed .wbv-main-video::-webkit-media-controls-start-playback-button {
	display: none !important;
}

.wbv-main-player video::-webkit-media-controls-fullscreen-button,
.wbv-video-player video::-webkit-media-controls-fullscreen-button {
	display: none !important;
}

.wbv-video-playlist video::-webkit-media-controls-download-button,
[data-wbv-standalone-video] video::-webkit-media-controls-download-button {
	display: none !important;
}

.wbv-channel-logo {
	position: absolute;
	top: clamp(10px, 2vw, 18px);
	left: clamp(10px, 2vw, 18px);
	z-index: 3;
	display: block;
	width: clamp(105px, 20%, 185px);
	max-width: 34%;
	max-height: 28%;
	height: auto;
	object-fit: contain;
	opacity: 0.94;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.48));
	pointer-events: none;
	user-select: none;
}

.wbv-fullscreen-button {
	position: absolute;
	top: clamp(10px, 2vw, 18px);
	right: clamp(10px, 2vw, 18px);
	z-index: 6;
	display: grid;
	width: 42px;
	height: 42px;
	padding: 9px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 9px;
	background: rgba(0, 0, 0, 0.62);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
	color: #fff;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.wbv-fullscreen-button:hover,
.wbv-fullscreen-button:focus-visible {
	background: rgba(39, 76, 52, 0.94);
	transform: scale(1.05);
}

.wbv-fullscreen-button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.78);
	outline-offset: 2px;
}

.wbv-fullscreen-button svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.wbv-fullscreen-exit-icon {
	display: none !important;
}

.wbv-broadcast-frame.is-wbv-fullscreen .wbv-fullscreen-enter-icon,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen .wbv-fullscreen-enter-icon {
	display: none;
}

.wbv-broadcast-frame.is-wbv-fullscreen .wbv-fullscreen-exit-icon,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen .wbv-fullscreen-exit-icon {
	display: block !important;
}

.wbv-broadcast-frame:fullscreen,
.wbv-broadcast-frame:-webkit-full-screen,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen {
	display: flex;
	width: 100vw;
	height: 100vh;
	flex-direction: column;
	background: #000;
}

.wbv-broadcast-frame.is-wbv-pseudo-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
}

/*
 * Mobile Browser ohne Screen-Orientation-Lock: Der komplette Playerrahmen
 * wird gedreht. Logo, Titelleiste und Video bleiben dadurch eine Einheit.
 */
.wbv-broadcast-frame:fullscreen.is-wbv-landscape-fallback,
.wbv-broadcast-frame:-webkit-full-screen.is-wbv-landscape-fallback,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen.is-wbv-landscape-fallback {
	position: fixed;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	width: 100vh;
	width: 100dvh;
	height: 100vw;
	height: 100dvw;
	max-width: none;
	max-height: none;
	transform: translate(-50%, -50%) rotate(90deg);
	transform-origin: center;
}

.wbv-broadcast-frame:fullscreen .wbv-video-header,
.wbv-broadcast-frame:-webkit-full-screen .wbv-video-header,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen .wbv-video-header {
	flex: 0 0 auto;
}

.wbv-broadcast-frame:fullscreen .wbv-main-player,
.wbv-broadcast-frame:fullscreen .wbv-video-player,
.wbv-broadcast-frame:-webkit-full-screen .wbv-main-player,
.wbv-broadcast-frame:-webkit-full-screen .wbv-video-player,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen .wbv-main-player,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen .wbv-video-player {
	min-height: 0;
	flex: 1 1 auto;
	aspect-ratio: auto;
}

.wbv-broadcast-frame:fullscreen .wbv-channel-logo,
.wbv-broadcast-frame:-webkit-full-screen .wbv-channel-logo,
.wbv-broadcast-frame.is-wbv-pseudo-fullscreen .wbv-channel-logo {
	top: calc(var(--wbv-video-offset-top, 0px) + clamp(10px, 2vw, 18px));
	left: calc(var(--wbv-video-offset-left, 0px) + clamp(10px, 2vw, 18px));
	width: clamp(120px, 16vw, 230px);
	max-height: 22%;
}

body.wbv-fullscreen-open {
	overflow: hidden;
}

.wbv-playback-error {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 4px 18px;
	align-items: center;
	padding: 14px 18px;
	border-top: 1px solid #e1b4aa;
	background: #fff0ed;
	color: #6e2f25;
}

.wbv-playback-error strong,
.wbv-playback-error span {
	grid-column: 1;
}

.wbv-playback-error a {
	grid-column: 2;
	grid-row: 1 / span 2;
	font-weight: 800;
	color: #6e2f25;
}

.wbv-share-only {
	padding: 12px 16px 15px;
}

.wbv-share,
.wbv-share-panels {
	margin: 0;
}

.wbv-carousel-section {
	position: relative;
	margin: 0;
	padding: 12px 48px 6px;
	border-top: 1px solid rgba(36, 59, 42, 0.15);
	background: #f7f9f5;
}

.wbv-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: grid;
	width: 34px;
	height: 34px;
	padding: 0 0 3px;
	place-items: center;
	border: 1px solid rgba(39, 76, 52, 0.28);
	border-radius: 50%;
	background: #fff;
	color: var(--wbv-green);
	font: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 2px 8px rgba(18, 31, 22, 0.12);
}

.wbv-carousel-previous {
	left: 8px;
}

.wbv-carousel-next {
	right: 8px;
}

.wbv-carousel-arrow:hover,
.wbv-carousel-arrow:focus-visible {
	background: var(--wbv-green);
	color: #fff;
}

.wbv-carousel-arrow:focus-visible {
	outline: 3px solid rgba(108, 147, 110, 0.38);
	outline-offset: 2px;
}

.wbv-carousel-arrow:disabled {
	opacity: 0.32;
	cursor: default;
}

.wbv-carousel-track {
	display: grid;
	grid-auto-columns: clamp(135px, 18vw, 175px);
	grid-auto-flow: column;
	gap: 10px;
	padding: 2px 2px 8px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: inline mandatory;
	scrollbar-color: rgba(39, 76, 52, 0.38) transparent;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.wbv-carousel-track::-webkit-scrollbar {
	height: 7px;
}

.wbv-carousel-track::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: rgba(39, 76, 52, 0.38);
}

.wbv-playlist-item {
	position: relative;
	display: block;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	border: 3px solid transparent;
	border-radius: 14px;
	background: #172019;
	box-shadow: 0 4px 13px rgba(18, 31, 22, 0.16);
	color: #fff;
	font: inherit;
	text-align: left;
	aspect-ratio: 1;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wbv-playlist-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(18, 31, 22, 0.23);
}

.wbv-playlist-item:focus-visible {
	outline: 3px solid rgba(108, 147, 110, 0.45);
	outline-offset: 2px;
}

.wbv-playlist-item.is-active {
	border-color: #78a17b;
	box-shadow: 0 0 0 3px rgba(120, 161, 123, 0.22), 0 8px 20px rgba(18, 31, 22, 0.2);
}

.wbv-tile-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.wbv-tile-video {
	display: block;
	background: #172019;
	object-fit: cover;
}

.wbv-playlist-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: grid;
	width: 42px;
	height: 42px;
	padding-left: 3px;
	place-items: center;
	border: 2px solid rgba(255, 255, 255, 0.88);
	border-radius: 50%;
	background: rgba(27, 58, 37, 0.8);
	color: #fff;
	font-size: 15px;
	transform: translate(-50%, -50%);
	transition: transform 160ms ease, background 160ms ease;
}

.wbv-playlist-item:hover .wbv-playlist-play,
.wbv-playlist-item:focus-visible .wbv-playlist-play {
	background: var(--wbv-green);
	transform: translate(-50%, -50%) scale(1.1);
}

.wbv-playlist-item.is-preview-unavailable .wbv-playlist-play::after {
	position: absolute;
	right: -7px;
	bottom: -7px;
	display: grid;
	width: 20px;
	height: 20px;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #a64432;
	content: "!";
	font-size: 12px;
	font-weight: 900;
}

.wbv-single-video {
	max-width: 920px;
	margin: 20px auto;
}

.wbv-single-video .wbv-video-card {
	width: 100%;
}

.wbv-empty-public {
	padding: 20px;
	border-radius: 12px;
	background: #f1f5ed;
	color: #36533d;
	text-align: center;
}

.wbv-video-playlist [hidden],
.wbv-single-video [hidden] {
	display: none !important;
}

@keyframes wbv-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(217, 51, 51, 0.12); }
	50% { box-shadow: 0 0 0 8px rgba(217, 51, 51, 0); }
}

@media (max-width: 620px) {
	.wbv-video-playlist {
		margin: 16px auto;
	}

	.wbv-video-header {
		padding: 8px 12px;
	}

	.wbv-playback-error {
		grid-template-columns: 1fr;
		padding: 13px 15px;
	}

	.wbv-playback-error strong,
	.wbv-playback-error span,
	.wbv-playback-error a {
		grid-column: 1;
		grid-row: auto;
	}

	.wbv-carousel-arrow {
		display: none;
	}

	.wbv-carousel-section {
		padding: 9px 7px 3px;
	}

	.wbv-carousel-track {
		grid-auto-columns: min(39vw, 150px);
		gap: 8px;
	}

	.wbv-playlist-play {
		width: 38px;
		height: 38px;
	}

	.wbv-channel-logo {
		width: clamp(88px, 26%, 125px);
	}

	.wbv-fullscreen-button {
		width: 38px;
		height: 38px;
		padding: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wbv-latest-badge i {
		animation: none;
	}

	.wbv-carousel-track {
		scroll-behavior: auto;
	}

	.wbv-playlist-item,
	.wbv-playlist-play {
		transition: none;
	}
}
