/* Gas Station Radio — persistent player bar */

.gsr-player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px;
	background: #0a1929;
	color: #fff;
	z-index: 9999;
	display: flex;
	align-items: center;
	padding: 0 12px;
	gap: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

.gsr-player__left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
}

.gsr-art {
	width: 44px;
	height: 44px;
	border-radius: 4px;
	flex: 0 0 auto;
	background-color: #102a43;
	background-image: linear-gradient(135deg, #1976d2 0%, #102a43 100%);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.gsr-art::after {
	content: "♪";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.55);
	font-size: 20px;
	pointer-events: none;
	transition: opacity 0.2s;
}

.gsr-art.has-art::after { opacity: 0; }

.gsr-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.gsr-track {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gsr-artist {
	color: #b8c7d6;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gsr-player__center {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.gsr-play {
	background: #1976d2;
	color: #fff;
	border: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, transform 0.05s ease;
}

.gsr-play:hover {
	background: #1565c0;
}

.gsr-play:active {
	transform: scale(0.96);
}

.gsr-play::before {
	content: "▶";
	font-size: 14px;
	margin-left: 2px;
}

.gsr-play.is-playing::before {
	content: "❚❚";
	margin-left: 0;
	font-size: 12px;
	letter-spacing: -2px;
}

.gsr-player__right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.gsr-volume {
	-webkit-appearance: none;
	appearance: none;
	width: 100px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.18);
	outline: none;
	cursor: pointer;
}

.gsr-volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.gsr-volume::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: none;
	cursor: pointer;
}

/* Mobile */
@media (max-width: 600px) {
	.gsr-player {
		height: 56px;
		padding: 0 8px;
		gap: 8px;
	}

	.gsr-art {
		width: 36px;
		height: 36px;
	}

	.gsr-volume {
		width: 60px;
	}

	.gsr-artist {
		display: none;
	}
}

/* Padding na body żeby treść nie chowała się pod paskiem */
body.gsr-has-player {
	padding-bottom: 60px;
}

@media (max-width: 600px) {
	body.gsr-has-player {
		padding-bottom: 56px;
	}
}
