/* Cinethursday Extras – Trending-Leiste */

.ct-trend {
	--ct-trend-bg: transparent;
	--ct-trend-fg: inherit;
	--ct-trend-line: rgba(127, 127, 127, 0.25);
	background: var(--ct-trend-bg);
	color: var(--ct-trend-fg);
	border-bottom: 1px solid var(--ct-trend-line);
	font-size: 0.82rem;
	line-height: 1;
}

.ct-trend--dark {
	--ct-trend-bg: #0F172A;
	--ct-trend-fg: #fff;
	--ct-trend-line: rgba(253, 152, 0, 0.35);
}

.ct-trend__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.9em;
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin: 0 auto;
	padding: 0 20px;
}

.ct-trend__label {
	flex: 0 0 auto;
	padding: 0.85em 0;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FD9800;
}

.ct-trend__scroll {
	position: relative;
	flex: 0 1 auto; /* nur so breit wie nötig → Leiste bleibt mittig */
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ct-trend__scroll::-webkit-scrollbar {
	display: none;
}

.ct-trend .ct-trend__list {
	display: flex;
	gap: 0;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	white-space: nowrap;
}

.ct-trend .ct-trend__list li {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
}

.ct-trend .ct-trend__list li + li::before {
	content: "";
	width: 1px;
	height: 0.95em;
	background: var(--ct-trend-line);
	margin: 0 0.9em;
}

.ct-trend .ct-trend__list a {
	display: inline-block;
	padding: 0.85em 0;
	color: inherit !important;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.ct-trend .ct-trend__list a:hover,
.ct-trend .ct-trend__list a:focus-visible,
.ct-trend .ct-trend__list .current-menu-item > a,
.ct-trend .ct-trend__list .current-menu-ancestor > a {
	color: #FD9800 !important;
	border-bottom-color: #FD9800;
}

@media (max-width: 600px) {
	.ct-trend__inner {
		justify-content: flex-start; /* auf dem Handy links beginnen, damit nichts abgeschnitten wird */
		padding: 0 14px;
		gap: 0.7em;
	}
	.ct-trend__scroll {
		flex: 1 1 auto;
		/* weicher Rand rechts als Hinweis „hier geht's weiter“ */
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
	}
	.ct-trend .ct-trend__list {
		padding-right: 28px !important;
	}
	.ct-trend__label {
		font-size: 0.72rem;
	}
}

@media print {
	.ct-trend {
		display: none !important;
	}
}
