/* STEFANY WIND — веб-радио */

:root {
	--dml-radio-blue: #2f7de8;
	--dml-radio-blue-hover: #2568c4;
}

body.dml-radio-active {
	padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.dml-radio-launch {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1001;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 26px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	background: linear-gradient(135deg, #0066ff 0%, #00c8ff 35%, #3d8bff 65%, #7b5cff 100%);
	background-size: 220% 220%;
	color: #fff;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.18em;
	cursor: pointer;
	text-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 40, 120, 0.5);
	box-shadow:
		0 0 18px rgba(0, 200, 255, 0.95),
		0 0 36px rgba(0, 120, 255, 0.75),
		0 0 72px rgba(47, 125, 232, 0.45),
		0 10px 36px rgba(0, 0, 0, 0.45);
	animation:
		dml-radio-launch-bg 3s ease-in-out infinite,
		dml-radio-launch-float 2.4s ease-in-out infinite,
		dml-radio-launch-glow 1.6s ease-in-out infinite;
	transition: transform 0.25s, filter 0.25s;
	overflow: visible;
	isolation: isolate;
}

.dml-radio-launch::before {
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 999px;
	border: 2px solid rgba(0, 220, 255, 0.85);
	opacity: 0;
	animation: dml-radio-launch-ring 2s ease-out infinite;
	pointer-events: none;
	z-index: -1;
}

.dml-radio-launch::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: linear-gradient(
		105deg,
		transparent 28%,
		rgba(255, 255, 255, 0.65) 48%,
		transparent 68%
	);
	background-size: 220% 100%;
	animation: dml-radio-launch-shine 2s linear infinite;
	pointer-events: none;
}

.dml-radio-launch:hover {
	animation:
		dml-radio-launch-bg 3s ease-in-out infinite,
		dml-radio-launch-glow 1.6s ease-in-out infinite;
	transform: translateY(-4px) scale(1.06);
	filter: brightness(1.12) saturate(1.15);
	box-shadow:
		0 0 24px rgba(0, 220, 255, 1),
		0 0 48px rgba(0, 140, 255, 0.9),
		0 0 96px rgba(80, 160, 255, 0.55),
		0 14px 40px rgba(0, 0, 0, 0.5);
}

.dml-radio-launch[hidden] {
	display: none;
}

.dml-radio-launch__dot {
	position: relative;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
	box-shadow: 0 0 10px #fff, 0 0 20px rgba(0, 220, 255, 0.9);
	animation: dml-radio-dot-beacon 1.2s ease-in-out infinite;
}

.dml-radio-launch__dot::after {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.7);
	animation: dml-radio-dot-ring 1.2s ease-out infinite;
}

@keyframes dml-radio-launch-bg {
	0%, 100% { background-position: 0% 50%; }
	50%      { background-position: 100% 50%; }
}

@keyframes dml-radio-launch-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-5px); }
}

@keyframes dml-radio-launch-glow {
	0%, 100% {
		box-shadow:
			0 0 18px rgba(0, 200, 255, 0.95),
			0 0 36px rgba(0, 120, 255, 0.75),
			0 0 72px rgba(47, 125, 232, 0.45),
			0 10px 36px rgba(0, 0, 0, 0.45);
	}
	50% {
		box-shadow:
			0 0 28px rgba(0, 240, 255, 1),
			0 0 56px rgba(0, 160, 255, 0.95),
			0 0 100px rgba(100, 180, 255, 0.6),
			0 10px 36px rgba(0, 0, 0, 0.45);
	}
}

@keyframes dml-radio-launch-ring {
	0%   { transform: scale(0.92); opacity: 0.95; }
	70%  { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

@keyframes dml-radio-launch-shine {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes dml-radio-dot-beacon {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 10px #fff, 0 0 20px rgba(0, 220, 255, 0.9);
	}
	50% {
		transform: scale(1.2);
		box-shadow: 0 0 16px #fff, 0 0 32px rgba(0, 240, 255, 1);
	}
}

@keyframes dml-radio-dot-ring {
	0%   { transform: scale(0.6); opacity: 1; }
	100% { transform: scale(2.2); opacity: 0; }
}

.dml-radio {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1002;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.97) 0%, #0a0a0a 100%);
	border-top: 1px solid rgba(47, 125, 232, 0.22);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dml-radio[hidden] {
	display: none;
}

.dml-radio__inner {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 16px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 20px;
	min-height: 72px;
}

.dml-radio__meta {
	min-width: 0;
}

.dml-radio__brand {
	font-size: 9px;
	letter-spacing: 0.22em;
	color: rgba(107, 168, 245, 0.75);
	margin-bottom: 4px;
	font-weight: 700;
}

.dml-radio__title {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dml-radio__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.dml-radio__prev,
.dml-radio__next {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: transparent;
	color: var(--dml-radio-blue);
	flex-shrink: 0;
	transition: color 0.2s, transform 0.15s;
}

.dml-radio__prev:hover,
.dml-radio__next:hover {
	color: var(--dml-radio-blue-hover);
	transform: scale(1.06);
}

.dml-radio__prev svg,
.dml-radio__next svg {
	width: 28px;
	height: 28px;
}

.dml-radio__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: var(--dml-radio-blue);
	color: #fff;
	flex-shrink: 0;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 4px 16px rgba(47, 125, 232, 0.35);
}

.dml-radio__toggle:hover {
	background: var(--dml-radio-blue-hover);
	transform: scale(1.04);
}

.dml-radio__toggle svg {
	width: 22px;
	height: 22px;
}

.dml-radio__icon-pause {
	display: none;
}

.dml-radio.is-playing .dml-radio__icon-play {
	display: none;
}

.dml-radio.is-playing .dml-radio__icon-pause {
	display: block;
}

.dml-radio__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: transparent;
	color: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
	transition: color 0.2s;
}

.dml-radio__close:hover {
	color: rgba(255, 255, 255, 0.85);
}

.dml-radio__close svg {
	width: 16px;
	height: 16px;
}

@media (max-width: 600px) {
	.dml-radio-launch {
		right: 12px;
		bottom: 12px;
		padding: 14px 20px;
		font-size: 11px;
		letter-spacing: 0.14em;
	}

	.dml-radio__inner {
		grid-template-columns: 1fr auto;
		padding: 10px 14px;
		gap: 10px;
	}

	.dml-radio__meta {
		grid-column: 1 / -1;
	}

	.dml-radio__controls {
		grid-column: 1;
		justify-content: flex-start;
	}

	.dml-radio__close {
		grid-column: 2;
		justify-self: end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dml-radio-launch,
	.dml-radio-launch::before,
	.dml-radio-launch::after,
	.dml-radio-launch__dot,
	.dml-radio-launch__dot::after {
		animation: none;
	}
}
