/*
 * Eigener Filmplayer (ab Theme 1.1.0). Genutzt von der Industriefilm Seite und
 * von Projekten mit selbst gehostetem Film. Klein laeuft HD, im Vollbild 4K.
 */
.ind-player {
	position: relative;
	border-radius: var(--ind-radius, 4px);
	overflow: hidden;
	background: var(--film-black-deep);
	aspect-ratio: var(--film-format, 16 / 9);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
}
.ind-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--film-black-deep); }
.ind-player:fullscreen { aspect-ratio: auto; border-radius: 0; margin: 0; background: #05080a; }
.ind-player:fullscreen video { object-fit: contain; }
.ind-player__start {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	background: radial-gradient(circle at 50% 50%, rgba(10, 14, 16, 0) 0%, rgba(10, 14, 16, .45) 100%);
	cursor: pointer;
	transition: opacity .3s ease;
}
.ind-player__start span {
	display: grid;
	place-items: center;
	width: clamp(64px, 8vw, 92px);
	height: clamp(64px, 8vw, 92px);
	border-radius: 50%;
	background: rgba(10, 14, 16, .6);
	box-shadow: inset 0 0 0 1px rgba(111, 189, 184, .7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: transform .2s var(--ind-ease, cubic-bezier(.23, 1, .32, 1)), background-color .2s ease;
}
.ind-player__start svg { width: 34%; height: 34%; margin-left: 8%; fill: var(--tungsten); }
@media (hover: hover) and (pointer: fine) {
	.ind-player__start:hover span { transform: scale(1.06); background: rgba(10, 14, 16, .8); }
}
.ind-player__start:active span { transform: scale(.96); }
.ind-player.laeuft .ind-player__start, .ind-player.gestartet .ind-player__start { opacity: 0; pointer-events: none; }
.ind-player__leiste {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1.6rem 1rem .7rem;
	background: linear-gradient(180deg, rgba(5, 8, 10, 0), rgba(5, 8, 10, .82));
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s var(--ind-ease, cubic-bezier(.23, 1, .32, 1));
}
.ind-player.gestartet .ind-player__leiste { opacity: 1; transform: none; }
.ind-player.laeuft.ruhig .ind-player__leiste { opacity: 0; transform: translateY(6px); }
.ind-player__leiste button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 50%;
	color: var(--projector);
	transition: background-color .15s ease, transform .15s var(--ind-ease, cubic-bezier(.23, 1, .32, 1));
}
.ind-player__leiste button:hover { background: rgba(242, 244, 243, .1); }
.ind-player__leiste button:active { transform: scale(.94); }
.ind-player__leiste svg { width: 20px; height: 20px; fill: currentColor; }
.ind-player__zeit { font-family: JetBrains Mono Variable, ui-monospace, monospace; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--projector-2); min-width: 9ch; }
.ind-player__spur { flex: 1; accent-color: var(--tungsten); height: 24px; cursor: pointer; }
.ind-player__qualitaet { font-family: JetBrains Mono Variable, ui-monospace, monospace; font-size: .72rem; letter-spacing: .1em; color: var(--tungsten); min-width: 4ch; }


@media (max-width: 640px) {
	.ind-player__zeit { display: none; }
}
.ind-player:not(.gestartet) .ind-player__leiste { visibility: hidden; }
.ind-player.gestartet .ind-player__start { visibility: hidden; }
.ind-player:focus-within .ind-player__leiste { opacity: 1; transform: none; }
.ind-player__start:focus-visible { outline: 2px solid var(--tungsten); outline-offset: -6px; }
.if-cinema-hero__lokal:focus-visible { outline: 2px solid var(--tungsten); outline-offset: -6px; }
.if-projektfilm .ind-player { box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); }
.projekt-galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.projekt-galerie figure { margin: 0; }
.projekt-galerie picture { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: var(--film-black-3, #1a2025); }
.projekt-galerie img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.projekt-galerie figcaption { margin-top: .5rem; font-size: .85rem; color: var(--projector-3, #9aa3a6); }
@media (max-width: 640px) { .projekt-galerie { grid-template-columns: 1fr; } }
