/* RealInside Videos – Leiste, Overlay und Player. Nutzt die Theme-Tokens (--ri-*) mit Fallbacks. */
.riv, .riv-modal, .rip {
	--rv-accent: var(--ri-accent, #c9a227);
	--rv-text: var(--ri-text, #111);
	--rv-pad: var(--ri-pad, 20px);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}
.riv button, .riv-modal button, .rip button {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

/* ---------- Video-Leiste ---------- */
.riv { padding: 24px 0 8px; border-top: 8px solid #f2f2f4; }
.riv .riv-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 var(--rv-pad) 14px;
	color: var(--rv-text);
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.riv-badge { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; }

.riv-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--rv-pad);
	padding: 0 var(--rv-pad) 16px;
	scrollbar-width: none;
}
.riv-track::-webkit-scrollbar { display: none; }

.riv .riv-card {
	position: relative;
	flex: 0 0 auto;
	width: 42%;
	max-width: 220px;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	background: #1a1a1a;
	color: #fff;
	text-align: left;
	scroll-snap-align: start;
}
.riv-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.riv-card::after {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .85));
	pointer-events: none;
}
.riv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	transform: translate(-50%, -50%);
	transition: transform .15s ease;
}
.riv-play svg { margin-left: 3px; }
.riv-card:hover .riv-play, .riv-card:focus-visible .riv-play { transform: translate(-50%, -50%) scale(1.08); }
.riv-card-title {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

/* ---------- Overlay ---------- */
.riv-lock, .riv-lock body { overflow: hidden; }
.riv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(20px + env(safe-area-inset-bottom, 0px));
	background: rgba(0, 0, 0, .94);
}
.riv-modal[hidden] { display: none; }
.riv-modal .riv-modal-close {
	position: absolute;
	top: calc(8px + env(safe-area-inset-top, 0px));
	right: 8px;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	color: #fff;
}
.riv-modal-stage { width: 100%; max-width: min(460px, calc((100vh - 140px) * 9 / 16)); }
.riv-modal-stage .rip { aspect-ratio: 9 / 16; }
.riv-modal-title {
	width: 100%;
	max-width: 460px;
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

/* ---------- Player ---------- */
.rip {
	position: relative;
	overflow: hidden;
	background: #000;
	color: #fff;
	line-height: 0;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
.rip video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.rip.is-fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }

.rip .rip-big {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	transform: translate(-50%, -50%);
	transition: opacity .2s, transform .2s;
}
.rip .rip-big svg { width: 32px; height: 32px; margin-left: 4px; }
.rip.is-playing .rip-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.85); }

.rip-controls {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 28px 10px 6px;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .75));
	line-height: 1;
	transition: opacity .25s;
}
.rip.is-idle .rip-controls { opacity: 0; pointer-events: none; }
.rip.is-idle { cursor: none; }

.rip-bar { display: flex; align-items: center; gap: 2px; }
.rip .rip-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: #fff;
}
.rip .rip-btn[hidden] { display: none; }
.rip-time { padding: 0 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rip-spacer { flex: 1; }

/* Schieberegler (Fortschritt + Lautstärke) */
.rip input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	height: 20px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.rip input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--rv-accent) var(--p, 0%), rgba(255, 255, 255, .55) var(--p, 0%), rgba(255, 255, 255, .55) var(--b, 0%), rgba(255, 255, 255, .25) var(--b, 0%));
}
.rip input[type="range"]::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--rv-accent) var(--p, 0%), rgba(255, 255, 255, .55) var(--p, 0%), rgba(255, 255, 255, .55) var(--b, 0%), rgba(255, 255, 255, .25) var(--b, 0%));
}
.rip input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
}
.rip input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.rip .rip-progress { display: block; width: 100%; }
.rip .rip-vol { width: 0; opacity: 0; transition: width .2s, opacity .2s; }
.rip-volume { display: flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
	.rip-volume:hover .rip-vol, .rip-vol:focus-visible { width: 70px; opacity: 1; margin-right: 6px; }
}

/* Einstellungen */
.rip-settings { position: relative; }
.rip-menu {
	position: absolute;
	right: 0;
	bottom: 46px;
	min-width: 150px;
	padding: 6px 0;
	background: rgba(20, 20, 20, .96);
	line-height: 1.2;
}
.rip-menu[hidden] { display: none; }
.rip-menu-title { padding: 6px 14px 8px; color: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rip .rip-speed {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 10px 14px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
}
.rip .rip-speed::before { content: ""; width: 18px; }
.rip .rip-speed[aria-checked="true"] { color: var(--rv-accent); }
.rip .rip-speed[aria-checked="true"]::before { content: "✓"; }
.rip .rip-speed:hover { background: rgba(255, 255, 255, .08); }

@media (prefers-reduced-motion: reduce) {
	.rip-big, .rip-controls, .riv-play { transition: none; }
}

.rip-error {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}
