/**
 * Hide'n'Geek Radio
 * Fläche #001836, Akzent #FFC107 / #ECA600, Text weiss, Schrift geerbt.
 * Jeder Selektor hängt an #gm26-radio / .gm26-radio.
 * Bewusst kein seitenweites Verstecken von audio, video oder Fremdplayern.
 */

#gm26-radio.gm26-radio {
	position: fixed;
	z-index: 9990;
	left: 20px;
	bottom: 20px;
	width: auto;
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	color-scheme: dark;
	box-sizing: border-box;
}

#gm26-radio.gm26-radio.gm26-radio--bottom-right {
	left: auto;
	right: 20px;
	/* WPFront Scroll Top sitzt bei right:20px; bottom:20px. Der Player stapelt darüber. */
	bottom: 84px;
}

#gm26-radio.gm26-radio *,
#gm26-radio.gm26-radio *::before,
#gm26-radio.gm26-radio *::after {
	box-sizing: border-box;
}

#gm26-radio.gm26-radio--yield {
	visibility: hidden !important;
	pointer-events: none !important;
}

#gm26-radio .gm26-radio__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 2px solid #ffc107;
	border-radius: 999px;
	background: #001836;
	color: #ffc107;
	line-height: 1;
	font-family: inherit;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 24, 54, 0.35);
	appearance: none;
	-webkit-appearance: none;
}

#gm26-radio .gm26-radio__toggle:hover {
	border-color: #eca600;
	color: #eca600;
}

#gm26-radio .gm26-radio__icon {
	display: block;
	width: 26px;
	height: 26px;
}

#gm26-radio .gm26-radio__eq {
	display: none;
	align-items: flex-end;
	justify-content: center;
	gap: 3px;
	width: 22px;
	height: 16px;
}

#gm26-radio.gm26-radio--playing.gm26-radio--collapsed .gm26-radio__icon {
	display: none;
}

#gm26-radio.gm26-radio--playing.gm26-radio--collapsed .gm26-radio__eq {
	display: flex;
}

#gm26-radio .gm26-radio__eq span {
	display: block;
	width: 3px;
	height: 100%;
	background: #ffc107;
	transform-origin: center bottom;
	animation: gm26-radio-eq 0.9s ease-in-out infinite alternate;
}

#gm26-radio .gm26-radio__eq span:nth-child(2) {
	animation-delay: 0.15s;
}

#gm26-radio .gm26-radio__eq span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes gm26-radio-eq {
	from {
		transform: scaleY(0.35);
	}
	to {
		transform: scaleY(1);
	}
}

#gm26-radio .gm26-radio__panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 12px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 320px;
	max-width: calc(100vw - 40px);
	max-height: min(420px, calc(100vh - 108px));
	margin: 0;
	padding: 16px;
	overflow: auto;
	border: 1px solid rgba(255, 193, 7, 0.45);
	border-radius: 16px;
	background: #001836;
	color: #ffffff;
	box-shadow: 0 16px 40px rgba(0, 24, 54, 0.4);
}

#gm26-radio.gm26-radio--bottom-right .gm26-radio__panel {
	left: auto;
	right: 0;
}

#gm26-radio .gm26-radio__panel[hidden] {
	display: none !important;
}

#gm26-radio .gm26-radio__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
}

#gm26-radio .gm26-radio__title {
	margin: 0;
	color: #ffc107;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

#gm26-radio .gm26-radio__collapse,
#gm26-radio .gm26-radio__sheet-close {
	margin: 0;
	border: 0;
	background: transparent;
	color: #ffc107;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

#gm26-radio .gm26-radio__collapse {
	min-height: 44px;
	padding: 8px 4px;
}

#gm26-radio .gm26-radio__collapse:hover,
#gm26-radio .gm26-radio__sheet-close:hover {
	color: #eca600;
}

#gm26-radio .gm26-radio__sheet-close {
	display: none;
}

#gm26-radio .gm26-radio__transport {
	display: flex;
	align-items: center;
	gap: 12px;
}

#gm26-radio .gm26-radio__play {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #ffc107;
	color: #001836;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

#gm26-radio .gm26-radio__play:hover {
	background: #eca600;
}

#gm26-radio .gm26-radio__glyph {
	display: block;
	width: 22px;
	height: 22px;
}

#gm26-radio .gm26-radio__glyph--pause {
	display: none;
}

#gm26-radio .gm26-radio__play[aria-pressed="true"] .gm26-radio__glyph--play {
	display: none;
}

#gm26-radio .gm26-radio__play[aria-pressed="true"] .gm26-radio__glyph--pause {
	display: block;
}

#gm26-radio .gm26-radio__now {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	text-overflow: ellipsis;
}

#gm26-radio .gm26-radio__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

#gm26-radio .gm26-radio__label {
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

#gm26-radio .gm26-radio__select {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 36px 8px 12px;
	border: 1px solid rgba(255, 193, 7, 0.75);
	border-radius: 8px;
	background-color: #00284f;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFC107' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

#gm26-radio .gm26-radio__select:hover {
	border-color: #eca600;
}

#gm26-radio .gm26-radio__volume {
	width: 100%;
	height: 44px;
	margin: 0;
	accent-color: #ffc107;
	cursor: pointer;
}

#gm26-radio .gm26-radio__audio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
	pointer-events: none;
}

#gm26-radio button:focus,
#gm26-radio select:focus,
#gm26-radio input:focus,
#gm26-radio button:focus-visible,
#gm26-radio select:focus-visible,
#gm26-radio input:focus-visible {
	outline: 3px solid #ffc107;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	#gm26-radio.gm26-radio {
		left: 16px;
		bottom: 16px;
	}

	#gm26-radio.gm26-radio.gm26-radio--bottom-right {
		left: auto;
		right: 16px;
		bottom: 80px;
	}

	#gm26-radio .gm26-radio__toggle {
		width: 48px;
		height: 48px;
	}

	#gm26-radio.gm26-radio.gm26-radio--open {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
	}

	#gm26-radio.gm26-radio.gm26-radio--open .gm26-radio__toggle {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	#gm26-radio.gm26-radio.gm26-radio--open .gm26-radio__panel {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		width: 100%;
		max-width: none;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 16px 16px 0 0;
		/* Rechte untere Ecke frei lassen, damit der Scroll-Top-Button klickbar bleibt. */
		padding-right: 80px;
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	#gm26-radio .gm26-radio__collapse {
		display: none;
	}

	#gm26-radio .gm26-radio__sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		min-width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		font-size: 32px;
		line-height: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	#gm26-radio .gm26-radio__eq span {
		animation: none;
		transform: scaleY(0.7);
	}

	#gm26-radio .gm26-radio__toggle,
	#gm26-radio .gm26-radio__panel,
	#gm26-radio .gm26-radio__play {
		transition: none;
	}
}

@media (forced-colors: active) {
	#gm26-radio button:focus-visible,
	#gm26-radio select:focus-visible,
	#gm26-radio input:focus-visible {
		outline: 3px solid Highlight;
	}
}

@media print {
	#gm26-radio.gm26-radio {
		display: none !important;
	}
}
