:root {
	--theme-color: #7c5cff;
	--theme-color-light: #a28bff;
	--theme-color-glow: rgba(124, 92, 255, 0.35);

	--page-bg: #1f2227;
	--text-color: #f5f7fa;

	--icon-color: #ffffff;
	--title-color: #ffffff;
	--section-text-color: rgba(245, 247, 250, 0.92);

	--glass-bg: rgba(255, 255, 255, 0.08);
	--glass-bg-strong: rgba(255, 255, 255, 0.14);
	--glass-bg-soft: rgba(255, 255, 255, 0.06);
	--glass-border: rgba(255, 255, 255, 0.22);
	--glass-border-soft: rgba(255, 255, 255, 0.12);

	--player-bg-top: rgba(255, 255, 255, 0.12);
	--player-bg-bottom: rgba(255, 255, 255, 0.06);
	--player-border: rgba(255, 255, 255, 0.22);
	--player-shadow:
		0 24px 60px rgba(0, 0, 0, 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);

	--player-accent-border: rgba(124, 92, 255, 0.18);

	--logo-bg: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
	--logo-opacity: 0.8;
	--logo-hover-ring: rgba(124, 92, 255, 0.18);

	--cover-bg: rgba(255, 255, 255, 0.08);

	--card-bg: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
	--card-border: rgba(255, 255, 255, 0.16);
	--card-text-color: #f4f6f8;

	--song-time-bg: linear-gradient(90deg, #7c5cff 0%, #a28bff 100%);
	--song-time-color: #ffffff;

	--button-bg: linear-gradient(135deg, #7c5cff 0%, #a28bff 100%);
	--button-text: #ffffff;
	--button-border: rgba(255, 255, 255, 0.18);
	--button-shadow:
		0 10px 24px rgba(124, 92, 255, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
	--button-hover-shadow:
		0 16px 32px rgba(124, 92, 255, 0.42),
		0 0 22px rgba(124, 92, 255, 0.24);

	--range-track-bg: rgba(255, 255, 255, 0.16);
	--range-thumb-bg: #2b3037;
	--range-thumb-border: #a28bff;

	--control-bg: rgba(255, 255, 255, 0.08);
	--control-border: rgba(255, 255, 255, 0.16);
	--control-hover-bg: rgba(124, 92, 255, 0.16);
	--control-hover-border: rgba(124, 92, 255, 0.34);

	--loader-ring-bg: rgba(255, 255, 255, 0.12);
	--loader-ring-top: #a28bff;

	--blur-lg: blur(26px);
	--blur-md: blur(18px);
	--blur-sm: blur(12px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: "Open Sans", Arial, sans-serif;
	margin: 0;
	padding: 18px;
	min-height: 100vh;
	background:
		radial-gradient(circle at 20% 10%, rgba(124,92,255,0.25) 0%, transparent 30%),
		radial-gradient(circle at 80% 20%, rgba(124,92,255,0.18) 0%, transparent 35%),
		radial-gradient(circle at 50% 100%, rgba(124,92,255,0.15) 0%, transparent 40%),
		linear-gradient(180deg, #2c3138 0%, #1f2227 60%, #191c21 100%);
	color: var(--text-color);
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: default;
}

a {
	color: inherit;
}

.home-button,
.station-link.globe {
	color: var(--icon-color) !important;
}

.now,
.current_track_artist,
.history_artist {
	font-weight: 700;
}

.song-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 20px;
}

.station-link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.station-logo {
	width: 150px;
	height: 150px;
	object-fit: cover;
	border-radius: 22px;
	opacity: var(--logo-opacity);
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease;
	margin: 0 10px;
	cursor: pointer;
	background: var(--logo-bg);
	border: 1px solid var(--glass-border);
	backdrop-filter: var(--blur-sm);
	-webkit-backdrop-filter: var(--blur-sm);
	box-shadow:
		0 12px 28px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255,255,255,0.18);
}

.station-logo:hover {
	opacity: 1;
	transform: translateY(-4px);
	box-shadow:
		0 18px 36px rgba(0, 0, 0, 0.28),
		0 0 0 1px var(--logo-hover-ring),
		0 0 20px rgba(124, 92, 255, 0.16);
	border-color: rgba(255,255,255,0.28);
}

.arrows {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 10px;
	position: absolute;
	bottom: -44px;
	left: 50%;
	transform: translateX(-50%);
}

.arrow_mobile {
	display: none;
}

.arrow {
	background: var(--control-bg);
	border: 1px solid var(--control-border);
	font-size: 22px;
	cursor: pointer;
	color: #fff;
	opacity: 0.92;
	transition:
		opacity 0.22s ease,
		transform 0.22s ease,
		background 0.22s ease,
		border-color 0.22s ease,
		box-shadow 0.22s ease;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: var(--blur-sm);
	-webkit-backdrop-filter: var(--blur-sm);
	box-shadow:
		0 8px 18px rgba(0,0,0,0.18),
		inset 0 1px 0 rgba(255,255,255,0.12);
}

.arrow:hover {
	opacity: 1;
	transform: translateY(-2px);
	background: var(--control-hover-bg);
	border-color: var(--control-hover-border);
	box-shadow:
		0 12px 24px rgba(0,0,0,0.22),
		0 0 18px rgba(124, 92, 255, 0.16);
}

.cover-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

.cover {
	width: 300px;
	height: 300px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	overflow: hidden;
	border-radius: 26px;
	margin: 0 20px;
	background-color: var(--cover-bg);
	border: 1px solid var(--glass-border);
	backdrop-filter: var(--blur-md);
	-webkit-backdrop-filter: var(--blur-md);
	box-shadow:
		0 20px 44px rgba(0, 0, 0, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cover::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 26px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 32%),
		linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 45%);
	pointer-events: none;
}

.cover::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 26px;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.cover-loader {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 5px solid var(--loader-ring-bg);
	border-radius: 50%;
	border-top: 5px solid var(--loader-ring-top);
	width: 58px;
	height: 58px;
	animation: spin 1s linear infinite;
	z-index: 2;
	box-shadow: 0 0 20px rgba(124, 92, 255, 0.18);
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.player-container {
	background: linear-gradient(180deg, var(--player-bg-top) 0%, var(--player-bg-bottom) 100%);
	border-radius: 28px;
	overflow: hidden;
	width: 100%;
	max-width: 700px;
	box-shadow: var(--player-shadow);
	border: 1px solid var(--player-border);
	position: relative;
	backdrop-filter: var(--blur-lg);
	-webkit-backdrop-filter: var(--blur-lg);
}

.player-container::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 35%),
		radial-gradient(circle at top right, rgba(124,92,255,0.14) 0%, transparent 30%);
	pointer-events: none;
	z-index: 0;
}

.player-container::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, var(--theme-color) 0%, var(--theme-color-light) 100%);
	z-index: 1;
	box-shadow: 0 0 18px var(--theme-color-glow);
}

.current-song,
.current-show,
.song-history,
.show-more {
	position: relative;
	z-index: 2;
}

.current-song {
	padding: 24px 24px 20px;
	text-align: center;
	border-bottom: 1px solid var(--player-accent-border);
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--section-text-color);
}

.current-show {
	display: flex;
	align-items: center;
	padding: 20px 24px;
	text-align: center;
	border-bottom: 1px solid var(--player-accent-border);
	gap: 10px;
	color: var(--section-text-color);
	background: rgba(255,255,255,0.02);
}

.home-button {
	margin-right: auto;
	width: 30px;
	cursor: pointer;
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--control-bg);
	border: 1px solid var(--control-border);
	height: 36px;
	min-width: 36px;
	backdrop-filter: var(--blur-sm);
	-webkit-backdrop-filter: var(--blur-sm);
	box-shadow:
		0 8px 18px rgba(0,0,0,0.16),
		inset 0 1px 0 rgba(255,255,255,0.10);
	transition:
		background 0.18s ease,
		transform 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.home-button:hover {
	background: var(--control-hover-bg);
	border-color: var(--control-hover-border);
	transform: translateY(-1px);
	box-shadow:
		0 10px 20px rgba(0,0,0,0.20),
		0 0 14px rgba(124, 92, 255, 0.14);
}

.displayname {
	font-size: 1.65rem;
	font-weight: 700;
	margin-right: 0;
	flex-grow: 1;
	line-height: 1.2;
	color: var(--title-color);
	letter-spacing: -0.02em;
}

.song-history-extended {
	display: none;
	overflow: hidden;
}

.song-info div {
	margin-bottom: 6px;
}

.song-history {
	padding: 20px 24px 10px;
	cursor: default;
}

.show-more {
	padding: 4px 24px 22px;
	cursor: pointer;
	color: rgba(245,247,250,0.72);
	font-weight: 600;
	transition: color 0.18s ease, text-shadow 0.18s ease;
}

.show-more:hover {
	color: #ffffff;
	text-shadow: 0 0 12px rgba(124,92,255,0.18);
}

.invisible {
	display: none;
	padding-top: 0;
}

.song {
	padding: 12px 14px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: 16px;
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	backdrop-filter: var(--blur-sm);
	-webkit-backdrop-filter: var(--blur-sm);
	box-shadow:
		0 8px 18px rgba(0,0,0,0.12),
		inset 0 1px 0 rgba(255,255,255,0.08);
	color: var(--card-text-color);
	transition:
		transform 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.song:hover {
	transform: translateY(-1px);
	border-color: rgba(255,255,255,0.22);
	box-shadow:
		0 10px 22px rgba(0,0,0,0.14),
		0 0 16px rgba(124, 92, 255, 0.08);
}

.song:last-child {
	margin-bottom: 0;
}

.song-history .song .song-time {
	background: var(--song-time-bg);
	color: var(--song-time-color);
	padding: 4px 8px;
	border-radius: 10px;
	width: 48px;
	text-align: center;
	display: inline-block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	box-shadow:
		0 6px 14px rgba(124,92,255,0.26),
		inset 0 1px 0 rgba(255,255,255,0.18);
}

.song.hidden {
	display: none;
}

.player-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	gap: 14px;
}

#play-pause-button {
	background: var(--button-bg);
	color: var(--button-text);
	border: 1px solid var(--button-border);
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	margin-right: 0;
	box-shadow: var(--button-shadow);
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		filter 0.18s ease;
}

#play-pause-button:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.04);
	box-shadow: var(--button-hover-shadow);
}

#volume-slider {
	width: 180px;
}

/* Range reset */
input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 8px;
	background: transparent;
	border-radius: 999px;
	outline: none;
}

/* Chrome, Safari, Edge – Track */
input[type="range"]::-webkit-slider-runnable-track {
	background: var(--range-track-bg);
	height: 8px;
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

/* Chrome, Safari, Edge – Thumb */
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: var(--range-thumb-bg);
	border: 2px solid var(--range-thumb-border);
	cursor: pointer;
	margin-top: -6px;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.24),
		0 0 10px rgba(124,92,255,0.14);
}

/* Firefox – Track */
input[type="range"]::-moz-range-track {
	background: var(--range-track-bg);
	height: 8px;
	border-radius: 999px;
}

/* Firefox – Thumb */
input[type="range"]::-moz-range-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: var(--range-thumb-bg);
	border: 2px solid var(--range-thumb-border);
	cursor: pointer;
	box-shadow:
		0 2px 8px rgba(0, 0, 0, 0.24),
		0 0 10px rgba(124,92,255,0.14);
}

/* Edge Legacy / IE */
input[type="range"]::-ms-track {
	background: transparent;
	border-color: transparent;
	color: transparent;
	height: 8px;
}

input[type="range"]::-ms-fill-lower {
	background: var(--theme-color);
	border-radius: 999px;
}

input[type="range"]::-ms-fill-upper {
	background: var(--range-track-bg);
	border-radius: 999px;
}

input[type="range"]::-ms-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: var(--range-thumb-bg);
	border: 2px solid var(--range-thumb-border);
	cursor: pointer;
}

.station-link.globe {
	font-size: 1.3rem;
	margin-left: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--control-bg);
	border: 1px solid var(--control-border);
	backdrop-filter: var(--blur-sm);
	-webkit-backdrop-filter: var(--blur-sm);
	box-shadow:
		0 8px 18px rgba(0,0,0,0.16),
		inset 0 1px 0 rgba(255,255,255,0.10);
	transition:
		background 0.18s ease,
		transform 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.station-link.globe:hover {
	background: var(--control-hover-bg);
	border-color: var(--control-hover-border);
	transform: translateY(-1px);
	box-shadow:
		0 10px 20px rgba(0,0,0,0.20),
		0 0 14px rgba(124, 92, 255, 0.14);
}

@media (max-width: 600px) {
	body {
		padding: 12px;
		align-items: flex-start;
	}

	.player-container {
		border-radius: 20px;
	}

	.current-song {
		padding: 18px 16px 18px;
	}

	.current-show {
		padding: 16px;
	}

	.displayname {
		font-size: 1.25rem;
	}

	.station-logo {
		width: 110px;
		height: 110px;
		margin: 0 4px;
		border-radius: 18px;
	}

	.cover {
		width: 220px;
		height: 220px;
		margin: 0 8px;
		border-radius: 20px;
	}

	.cover::before,
	.cover::after {
		border-radius: 20px;
	}

	.arrow {
		display: none;
	}

	#volume-slider {
		display: none;
	}

	#play-pause-button {
		margin: 0 20px;
		width: 52px;
		height: 52px;
	}

	.arrow_mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--control-bg);
		border: 1px solid var(--control-border);
		font-size: 22px;
		cursor: pointer;
		color: #fff;
		opacity: 1;
		width: 42px;
		height: 42px;
		border-radius: 999px;
		backdrop-filter: var(--blur-sm);
		-webkit-backdrop-filter: var(--blur-sm);
		box-shadow:
			0 8px 18px rgba(0,0,0,0.16),
			inset 0 1px 0 rgba(255,255,255,0.10);
		transition:
			background 0.18s ease,
			transform 0.18s ease,
			border-color 0.18s ease,
			box-shadow 0.18s ease;
	}

	.arrow_mobile:hover {
		background: var(--control-hover-bg);
		border-color: var(--control-hover-border);
		transform: translateY(-1px);
		box-shadow:
			0 10px 20px rgba(0,0,0,0.20),
			0 0 14px rgba(124, 92, 255, 0.14);
	}

	.song-history {
		padding: 16px 16px 8px;
	}

	.show-more {
		padding: 4px 16px 18px;
	}
}