#floating-radio-player {
	position: fixed;
	bottom: 16px;
	left: 16px;
	width: calc(100% - 32px);
	max-width: 360px;
	background: linear-gradient(145deg, #1a1f2e 0%, #0d1117 100%);
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
	z-index: 9999;
	overflow: visible;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	touch-action: none;
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

#floating-radio-player.dragging {
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(39, 174, 96, 0.3);
	transform: scale(1.02);
}

.floating-player-header {
	background: linear-gradient(90deg, rgba(39, 174, 96, 0.25) 0%, rgba(39, 174, 96, 0.05) 100%);
	padding: 14px 16px;
	display: flex;
	border-radius: 20px 20px 0px 0px;
	align-items: center;
	justify-content: space-between;
	cursor: grab;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
	overflow: visible;
	position: relative;
}

.floating-player-header:active {
	cursor: grabbing;
}

.floating-player-title {
	color: #27ae60;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.floating-player-title .live-dot {
	width: 10px;
	height: 10px;
	background: #27ae60;
	border-radius: 50%;
	animation: pulse-live 1.5s ease-in-out infinite;
	box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

@keyframes pulse-live {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(0.85); }
}

.floating-info-icon {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.floating-info-icon:hover,
.floating-info-icon:active,
.floating-info-icon.active {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.floating-info-tooltip {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	background: #1a1f2e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 12px 14px;
	width: 260px;
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.5;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	z-index: 10000;
	pointer-events: none;
}

.floating-info-tooltip::after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-bottom-color: #1a1f2e;
}

.floating-info-tooltip.position-top {
	top: auto;
	bottom: calc(100% + 10px);
}

.floating-info-tooltip.position-top::after {
	top: 100%;
	bottom: auto;
	border-bottom-color: transparent;
	border-top-color: #1a1f2e;
}

.floating-info-icon:hover .floating-info-tooltip,
.floating-info-icon.active .floating-info-tooltip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.floating-info-tooltip a {
	color: #27ae60;
	text-decoration: none;
}

.floating-info-tooltip a:hover {
	text-decoration: underline;
}

.floating-player-actions {
	display: flex;
	gap: 8px;
}

.floating-player-actions button {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	font-size: 14px;
	-webkit-tap-highlight-color: transparent;
}

.floating-player-actions button:active {
	transform: scale(0.92);
	background: rgba(255, 255, 255, 0.2);
}

.floating-player-actions .close-btn:active {
	background: rgba(231, 76, 60, 0.4);
	color: #e74c3c;
}

.floating-player-body {
	padding: 16px;
	overflow: visible;
}

.floating-now-playing {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}

.floating-avatar {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
	border: 2px solid rgba(39, 174, 96, 0.4);
}

.floating-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.floating-avatar i {
	font-size: 22px;
	color: rgba(255, 255, 255, 0.3);
}

.floating-info {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.floating-dj {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.floating-dj-name {
	font-size: 15px;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
	max-width: 100%;
}

.floating-dj-name.scrolling {
	text-overflow: clip;
	animation: marquee 8s linear infinite;
}

.floating-song {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.floating-song.scrolling {
	text-overflow: clip;
	animation: marquee 10s linear infinite;
}

@keyframes marquee {
	0% { transform: translateX(0); }
	10% { transform: translateX(0); }
	90% { transform: translateX(calc(-100% + 150px)); }
	100% { transform: translateX(calc(-100% + 150px)); }
}

.floating-controls {
	display: flex;
	align-items: center;
	gap: 14px;
}

.floating-play-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	transition: all 0.2s ease;
	flex-shrink: 0;
	box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
	-webkit-tap-highlight-color: transparent;
}

.floating-play-btn:active {
	transform: scale(0.92);
	box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
}

.floating-play-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.floating-play-btn:disabled:active {
	transform: none;
}

.floating-volume-container {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
}

.floating-volume-btn {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: all 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.floating-volume-btn:active {
	transform: scale(0.92);
	background: rgba(255, 255, 255, 0.15);
}

.floating-volume-slider {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
	outline: none;
}

.floating-volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	background: #27ae60;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.floating-volume-slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background: #27ae60;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.floating-volume-text {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	min-width: 36px;
	text-align: right;
	font-weight: 600;
}

.floating-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.floating-listeners {
	display: flex;
	align-items: center;
	gap: 8px;
}

.floating-listeners i {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.4);
}

.floating-listeners span {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

.floating-listeners-count {
	font-weight: 700;
	color: #27ae60 !important;
}

.floating-age-rating img {
	max-height: 24px;
	opacity: 0.8;
}

.floating-resize-handle {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 28px;
	height: 28px;
	cursor: nwse-resize;
	opacity: 0.4;
	transition: opacity 0.2s ease;
	touch-action: none;
}

.floating-resize-handle::before {
	content: '';
	position: absolute;
	bottom: 8px;
	right: 8px;
	width: 10px;
	height: 10px;
	border-right: 2px solid rgba(255, 255, 255, 0.5);
	border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.floating-download-btn {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	font-size: 14px;
	-webkit-tap-highlight-color: transparent;
	position: relative;
}

.floating-download-btn:active,
.floating-download-btn.active {
	transform: scale(0.92);
	background: rgba(255, 255, 255, 0.2);
}

.floating-download-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: #1a1f2e;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 8px 0;
	min-width: 200px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 10001;
}

.floating-download-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.floating-download-menu::after {
	content: '';
	position: absolute;
	bottom: 100%;
	right: 16px;
	border: 8px solid transparent;
	border-bottom-color: #1a1f2e;
}

.floating-download-menu.position-top {
	top: auto;
	bottom: calc(100% + 10px);
	transform: translateY(10px);
}

.floating-download-menu.position-top.active {
	transform: translateY(0);
}

.floating-download-menu.position-top::after {
	top: 100%;
	bottom: auto;
	border-bottom-color: transparent;
	border-top-color: #1a1f2e;
}

.download-menu-header {
	padding: 8px 14px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	margin-bottom: 8px;
}

.download-menu-header span {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.download-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	font-size: 13px;
	transition: all 0.15s ease;
	cursor: pointer;
}

.download-menu-item:hover {
	background: rgba(39, 174, 96, 0.15);
	color: #fff;
}

.download-menu-item i {
	width: 20px;
	text-align: center;
	font-size: 14px;
	color: #27ae60;
}

.download-menu-item span {
	flex: 1;
}

.download-menu-item .badge {
	font-size: 9px;
	padding: 3px 6px;
	border-radius: 4px;
	background: rgba(39, 174, 96, 0.2);
	color: #27ae60;
	text-transform: uppercase;
}

.download-menu-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.06);
	margin: 8px 0;
}

.download-qr-section {
	padding: 12px 14px;
	text-align: center;
}

.download-qr-section span {
	display: block;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.download-qr-code {
	background: #fff;
	padding: 8px;
	border-radius: 8px;
	display: inline-block;
}

.download-qr-code svg {
	display: block;
}

#floating-toggle-btn {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
	border: none;
	color: #fff;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	z-index: 9998;
	box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
	transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

#floating-toggle-btn:active {
	transform: scale(0.92);
}

.floating-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	margin-top: 8px;
	justify-content: center;
}

.floating-status.playing {
	color: #27ae60;
}

.floating-status.error {
	color: #e74c3c;
}

#floating-radio-player.minimized .floating-player-body {
	display: none;
}

#floating-radio-player.minimized {
	width: auto;
	max-width: none;
}

#floating-radio-player.minimized .floating-player-header {
	border-bottom: none;
	padding: 12px 14px;
	border-radius: 20px;
}

@media (min-width: 768px) {
	#floating-radio-player {
		width: 360px;
		left: 20px;
		bottom: 20px;
	}
}

@media (max-width: 500px) {
	.floating-info-tooltip {
		left: 0;
		transform: translateX(0);
		width: 220px;
	}
	
	.floating-info-tooltip::after {
		left: 20px;
		transform: translateX(0);
	}
}

@media (max-width: 380px) {
	#floating-radio-player {
		left: 10px;
		width: calc(100% - 20px);
	}
	
	.floating-now-playing {
		gap: 10px;
	}
	
	.floating-avatar {
		width: 48px;
		height: 48px;
	}
	
	.floating-play-btn {
		width: 48px;
		height: 48px;
		font-size: 18px;
	}
}