/* FNM Fußball-Videos - Slider + Grid (Akzentfarbe je Kanal via --fnmv-accent) */

.fnmv-vs,
.fnmv-grid-wrap {
	--fnmv-accent: #dc0023;
}

/* ---------- Slider ---------- */
.fnmv-vs {
	margin: 2.5em 0;
}
.fnmv-vs__heading {
	font-size: 1.4em;
	line-height: 1.2;
	margin: 0 0 0.7em;
	font-weight: 800;
}
.fnmv-vs__viewport {
	position: relative;
}
.fnmv-vs__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 14px;
	scrollbar-width: thin;
}
.fnmv-vs__track::-webkit-scrollbar {
	height: 8px;
}
.fnmv-vs__track::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.25);
	border-radius: 4px;
}
.fnmv-vs__slide {
	flex: 0 0 auto;
	width: 260px;
	max-width: 78vw;
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fnmv-vs__slide:hover,
.fnmv-vs__slide:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

/* ---------- Gemeinsame Bausteine ---------- */
.fnmv-vs__thumb,
.fnmv-grid__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: #0b1f3a;
	overflow: hidden;
}
.fnmv-vs__img,
.fnmv-grid__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fnmv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--fnmv-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	transition: transform 0.18s ease;
}
.fnmv-vs__slide:hover .fnmv-play,
.fnmv-grid__tile:hover .fnmv-play {
	transform: translate(-50%, -50%) scale(1.08);
}
.fnmv-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--fnmv-accent);
	color: #fff;
	font-size: 0.7em;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.fnmv-vs__title {
	display: block;
	padding: 12px 14px 14px;
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Slider-Navigation */
.fnmv-vs__nav {
	position: absolute;
	top: calc(50% - 18px);
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #0b1f3a;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
}
.fnmv-vs__nav:hover {
	background: #f0f0f0;
}
.fnmv-vs__nav--prev {
	left: -6px;
}
.fnmv-vs__nav--next {
	right: -6px;
}
.fnmv-vs__nav[hidden] {
	display: none;
}

/* ---------- Grid (Kategorie-Archiv) ---------- */
.fnmv-grid-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 60px;
}
.fnmv-grid-title {
	font-size: 1.9em;
	font-weight: 800;
	margin: 0 0 0.2em;
	line-height: 1.15;
}
.fnmv-grid-desc {
	margin: 0 0 1.6em;
	color: #555;
	max-width: 720px;
}
.fnmv-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.fnmv-grid__tile {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fnmv-grid__tile:hover,
.fnmv-grid__tile:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.17);
}
.fnmv-grid__tile .fnmv-play {
	width: 60px;
	height: 60px;
}
.fnmv-grid__body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fnmv-grid__title {
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.fnmv-grid__date {
	font-size: 0.82em;
	color: #888;
}
.fnmv-grid-sentinel {
	height: 1px;
	width: 100%;
}
.fnmv-grid-loader {
	text-align: center;
	padding: 28px 0 10px;
}
.fnmv-grid-loader[hidden] {
	display: none;
}
.fnmv-grid-spinner {
	display: inline-block;
	width: 26px;
	height: 26px;
	border: 3px solid rgba(11, 31, 58, 0.2);
	border-top-color: var(--fnmv-accent);
	border-radius: 50%;
	animation: fnmv-spin 0.8s linear infinite;
}
@keyframes fnmv-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.fnmv-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.fnmv-grid {
		grid-template-columns: 1fr;
	}
	.fnmv-vs__nav {
		display: none !important;
	}
	.fnmv-vs__slide {
		width: 75vw;
	}
}
