.yew-solo,
.yew-list {
	max-width: 100%;
}

.yew-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.yew-player iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Vertikale Liste: Player links, Liste rechts (Desktop) */
.yew-list[data-layout="list"] {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.yew-list[data-layout="list"] .yew-player {
	flex: 1 1 50%;
	margin-bottom: 0;
}

.yew-list[data-layout="list"] .yew-cards-wrap {
	flex: 1 1 50%;
	min-width: 0;
}

@media (max-width: 767px) {
	.yew-list[data-layout="list"] {
		flex-direction: column;
	}
}

/* Player ausgeblendet: Liste nutzt immer die volle Breite */
.yew-list.yew-no-player {
	display: block;
}

.yew-list.yew-no-player .yew-player {
	display: none;
}

.yew-list.yew-no-player .yew-cards-wrap {
	width: 100%;
}

/* Karten-Container je Layout */
.yew-cards-wrap {
	position: relative;
}

.yew-cards {
	display: flex;
	gap: 14px;
}

.yew-cards--row {
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.yew-cards--list {
	flex-direction: column;
}

.yew-cards--grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.yew-item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yew-cards--list .yew-item,
.yew-cards--grid .yew-item {
	width: 100%;
}

/* Thumbnails: feste Groesse, Text hat keinen Einfluss auf Layout */
.yew-thumb {
	width: 100%;
	overflow: hidden;
	background: #000;
	flex-shrink: 0;
}

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

.yew-thumb-ratio-16-9 .yew-thumb { aspect-ratio: 16 / 9; }
.yew-thumb-ratio-4-3 .yew-thumb { aspect-ratio: 4 / 3; }
.yew-thumb-ratio-1-1 .yew-thumb { aspect-ratio: 1 / 1; }

.yew-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.yew-seg-1,
.yew-seg-2,
.yew-seg-3,
.yew-seg-4 {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Karussell-Pfeile */
.yew-has-arrows {
	padding: 0 34px;
}

.yew-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yew-arrow--prev { left: 0; }
.yew-arrow--next { right: 0; }

/* "Weitere laden"-Button */
.yew-load-more {
	display: block;
	margin: 16px auto 0;
	padding: 10px 22px;
	border: 1px solid currentColor;
	background: transparent;
	border-radius: 6px;
	cursor: pointer;
}

/* Lightbox */
.yew-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.yew-lightbox-inner {
	position: relative;
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16 / 9;
}

.yew-lightbox-inner iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.yew-lightbox-close {
	position: absolute;
	top: -36px;
	right: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 767px) {
	.yew-cards--grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
