/**
 * StreamSera — OBS / vMix "now playing" overlay (/?streamsera_overlay={station}).
 *
 * Plain CSS, loaded as is (no build step). Options from the overlay URL arrive as body classes:
 * ss-ov-theme-light, ss-ov-size-sm|md|lg, ss-ov-align-center.
 */

html,
body {
	margin: 0;
	background: transparent;
}

body {
	box-sizing: border-box;
	width: 100%;
	padding: 16px;
	display: flex;
	justify-content: flex-start;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #fff;
}

body.ss-ov-theme-light {
	color: #111827;
}

body.ss-ov-align-center {
	justify-content: center;
}

.ss-ov {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	max-width: 100%;
	padding: 14px 20px 14px 14px;
	border-radius: 18px;
	background: rgba(15, 17, 23, 0.85);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	font-size: 18px;
	transition: opacity 0.3s ease;
}

.ss-ov-theme-light .ss-ov {
	background: rgba(255, 255, 255, 0.9);
}

.ss-ov-size-sm .ss-ov {
	font-size: 14.4px;
}

.ss-ov-size-lg .ss-ov {
	font-size: 24.3px;
}

.ss-ov.is-hidden {
	opacity: 0;
}

.ss-ov__art {
	width: 3.4em;
	height: 3.4em;
	flex: none;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(127, 127, 127, 0.25);
}

.ss-ov__art[hidden] {
	display: none;
}

.ss-ov__text {
	flex: 1 1 auto;
	min-width: 0;
}

.ss-ov__k {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.62em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.7;
	overflow-wrap: anywhere;
}

.ss-ov__k::before {
	content: "";
	flex-shrink: 0;
	width: 0.5em;
	height: 0.5em;
	border-radius: 999px;
	background: #ef4444;
	box-shadow: 0 0 0 0.25em rgba(239, 68, 68, 0.3);
}

.ss-ov__t {
	max-width: 60vw;
	margin-top: 0.15em;
	font-weight: 700;
	font-size: 1.05em;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ss-ov__a {
	max-width: 60vw;
	font-size: 0.85em;
	opacity: 0.8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
	.ss-ov {
		transition: none;
	}
}
