* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
:root {
	--live: #ff2a2a;
	--sets: #3d8bff;
	--panel: rgba(0, 0, 0, 0.6);
	--text: #fff;
	--muted: rgba(255, 255, 255, 0.6);
}
body {
	min-height: 100vh;
	min-height: 100dvh;
	font-family: Rubik, Arial, sans-serif;
	font-weight: 400;
	color: var(--text);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow-x: hidden;
	padding: 0 30px 70px;
	background-color: #000;
}
.background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: 0.6;
}
.background div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	animation: crossfade 35s linear infinite;
}
.background div:nth-child(1) { background-image: url('img/bg4.jpg'); opacity: 1; animation-delay: 0s; }
.background div:nth-child(2) { background-image: url('img/bg5.jpg'); animation-delay: 7s; }
.background div:nth-child(3) { background-image: url('img/bg3.jpg'); animation-delay: 14s; }
.background div:nth-child(4) { background-image: url('img/bg2.jpg'); animation-delay: 21s; }
.background div:nth-child(5) { background-image: url('img/bg1.jpg'); animation-delay: 28s; }

@keyframes crossfade {
	0% { opacity: 0; }
	4% { opacity: 1; }
	25% { opacity: 1; }
	29% { opacity: 0; }
	100% { opacity: 0; }
}

.content-wrapper {
	max-width: 520px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.image-container {
	width: 100%;
	max-width: 260px;
	padding: 6px 0 4px;
}
.image-container img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
}

/* Player panel */
.player {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding: 28px 25px 30px;
	background-color: var(--panel);
	border-radius: 35px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: box-shadow 0.6s ease, border-color 0.6s ease;
}
.player[data-mode="live"] {
	border-color: rgba(255, 42, 42, 0.6);
	box-shadow: 0 0 35px rgba(255, 42, 42, 0.35);
}
.player[data-mode="sets"] {
	border-color: rgba(61, 139, 255, 0.35);
	box-shadow: 0 0 30px rgba(61, 139, 255, 0.18);
}

/* Status badge */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 8px 18px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--muted);
	transition: background 0.4s ease, color 0.4s ease;
}
.badge .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--muted);
}
.player[data-mode="live"] .badge {
	background: var(--live);
	color: #fff;
}
.player[data-mode="live"] .badge .dot {
	background: #fff;
	animation: pulse 1.2s ease-in-out infinite;
}
.player[data-mode="sets"] .badge {
	background: rgba(61, 139, 255, 0.18);
	color: #cfe0ff;
}
.player[data-mode="sets"] .badge .dot {
	background: var(--sets);
}
@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.3; transform: scale(0.7); }
}

/* Play button */
.play {
	position: relative;
	width: 108px;
	height: 108px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}
.play:hover {
	transform: scale(1.05);
	background: rgba(255, 255, 255, 0.1);
}
.play:focus-visible {
	outline: 3px solid var(--sets);
	outline-offset: 4px;
}
.player[data-mode="live"] .play {
	border-color: var(--live);
}
.play svg {
	width: 48px;
	height: 48px;
	fill: currentColor;
}
.play .icon-play { margin-left: 6px; }
.play .icon-pause,
.play .spinner { display: none; }
.player[data-state="playing"] .play .icon-play,
.player[data-state="loading"] .play .icon-play { display: none; }
.player[data-state="playing"] .play .icon-pause { display: block; }
.player[data-state="loading"] .play .spinner { display: block; }
.spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #fff;
	animation: spin 0.9s linear infinite;
}
@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Equalizer bars */
.bars {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	height: 26px;
}
.bars span {
	width: 5px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.35);
	transition: height 0.3s ease;
}
.player[data-state="playing"] .bars span {
	background: #fff;
	animation: eq 0.9s ease-in-out infinite;
}
.player[data-state="playing"][data-mode="live"] .bars span { background: var(--live); }
.player[data-state="playing"] .bars span:nth-child(2) { animation-delay: -0.2s; animation-duration: 0.7s; }
.player[data-state="playing"] .bars span:nth-child(3) { animation-delay: -0.5s; animation-duration: 1.1s; }
.player[data-state="playing"] .bars span:nth-child(4) { animation-delay: -0.1s; animation-duration: 0.8s; }
.player[data-state="playing"] .bars span:nth-child(5) { animation-delay: -0.4s; animation-duration: 1s; }
@keyframes eq {
	0%, 100% { height: 4px; }
	50% { height: 26px; }
}

/* Now playing */
.now {
	width: 100%;
	text-align: center;
}
.now-label {
	font-size: 13px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}
.now-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px;
	padding-bottom: calc(15px + env(safe-area-inset-bottom));
	text-align: center;
	color: white;
	background-color: rgba(0, 0, 0, 0.9);
	font-size: 14px;
	font-weight: 500;
}

.now-format {
	margin-top: 8px;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: var(--muted);
	min-height: 1em;
}

@media (max-width: 600px) {
	body {
		padding: 0 16px 70px;
	}
	.image-container {
		max-width: 200px;
	}
	.player {
		padding: 24px 18px 26px;
		border-radius: 28px;
	}
	.now-title {
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.background div,
	.badge .dot,
	.bars span {
		animation: none !important;
	}
}
