html, body.arp-fullscreen-body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: #14101a;
	overflow: hidden;
}

.arp-fullscreen-body * {
	box-sizing: border-box;
}

.arp-player {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100%;
	height: 100%;
	height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: max(14px, env(safe-area-inset-top)) 24px max(14px, env(safe-area-inset-bottom));
	background: radial-gradient(120% 90% at 50% 0%, #3a2b3f 0%, #1e1620 45%, #120e17 100%);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	overflow: hidden;
}

.arp-layout {
	width: 100%;
	max-width: 420px;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.arp-topbar {
	width: 100%;
	max-width: 420px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 20px;
	min-height: 34px;
}

.arp-topbar-name {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #f1e9f4;
	opacity: 0.9;
	text-align: center;
}

.arp-topbar-banner-img {
	max-width: 100%;
	max-height: 90px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	display: block;
	margin: 0 auto;
}

.arp-icon-btn {
	background: none;
	border: none;
	color: #fff;
	opacity: 0.85;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}
.arp-icon-btn svg { width: 22px; height: 22px; }
.arp-icon-btn:disabled { opacity: 0.25; cursor: default; }

.arp-cover-wrap {
	position: relative;
	width: 100%;
	max-width: 300px;
	margin: 6px auto 20px;
	flex-shrink: 1;
	min-height: 0;
}
.arp-cover-wrap::before {
	content: "";
	display: block;
	padding-top: 100%; /* forces a reliable 1:1 square on every mobile browser, incl. older iOS Safari where aspect-ratio is flaky */
}

.arp-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.45);
	display: block;
	background: linear-gradient(145deg,#f2a26a,#e0577f);
}

.arp-meta {
	text-align: center;
	max-width: 420px;
	width: 100%;
	margin-bottom: 14px;
}
.arp-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.25;
}
.arp-artist {
	font-size: 15px;
	color: #b9adc4;
	margin-bottom: 2px;
}
.arp-album {
	font-size: 14px;
	color: #8d8194;
}

.arp-listener-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 8px;
	font-size: 12px;
	color: #a99fb0;
}
.arp-listener-count svg { width: 14px; height: 14px; }

.arp-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,77,77,0.15);
	border: 1px solid rgba(255,77,77,0.4);
	color: #ff8080;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.arp-live-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ff4d4d;
	animation: arp-live-pulse-fe 1.2s infinite;
}
@keyframes arp-live-pulse-fe {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}

.arp-row {
	width: 100%;
	max-width: 420px;
}
.arp-fav-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.arp-fav-btn.active { color: #e0577f; }
.arp-fav-btn svg { width: 22px; height: 22px; }

.arp-volume-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 130px;
}
.arp-vol-icon { width: 18px; height: 18px; opacity: .8; }
.arp-vol-icon { cursor: pointer; }
.arp-volume-wrap input[type="range"] {
	flex: 1;
	accent-color: #e0577f;
}

.arp-progress-wrap {
	width: 100%;
	max-width: 420px;
	margin: 6px 0 8px;
}
.arp-progress-track {
	position: relative;
	height: 4px;
	border-radius: 4px;
	background: rgba(255,255,255,0.18);
	cursor: default;
}
.arp-progress-fill {
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 0%;
	border-radius: 4px;
	background: linear-gradient(90deg,#e0577f,#f2a26a);
}
.arp-progress-handle {
	position: absolute;
	top: 50%;
	left: 0%;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #e0577f;
	transform: translate(-50%, -50%);
}
.arp-times {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #a99fb0;
	margin-top: 6px;
}

.arp-controls {
	width: 100%;
	max-width: 420px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 6px 0 18px;
}
.arp-side-btn svg { width: 22px; height: 22px; }

.arp-play-btn {
	width: 66px;
	height: 66px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg,#f2a26a,#e0577f);
	box-shadow: 0 10px 24px rgba(224,87,127,0.45);
	color: #fff;
	flex-shrink: 0;
}
.arp-play-btn svg { width: 26px; height: 26px; margin-left: 2px; }
#arp-pause-icon { margin-left: 0; }

.arp-lyrics-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: #a99fb0;
	font-size: 12px;
	cursor: pointer;
	margin-top: auto;
	padding-top: 6px;
}
.arp-lyrics-toggle svg { width: 20px; height: 20px; }

.arp-lyrics-panel {
	display: none;
	max-width: 420px;
	width: 100%;
	margin-top: 10px;
	padding: 16px;
	background: rgba(255,255,255,0.06);
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.7;
	color: #d8cfdd;
	max-height: 30vh;
	overflow-y: auto;
	white-space: pre-line;
}
.arp-lyrics-panel.open { display: block; }

.arp-ticker {
	width: 100%;
	max-width: 420px;
	overflow: hidden;
	white-space: nowrap;
	margin: 4px 0 16px;
	padding: 9px 0;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 10px;
	-webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.arp-ticker-track {
	display: inline-flex;
	animation-name: arp-ticker-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.arp-ticker-track span {
	padding: 0 56px 0 24px;
	font-size: 13px;
	color: #d8cfdd;
	letter-spacing: 0.3px;
}
@keyframes arp-ticker-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.arp-chat {
	width: 100%;
	max-width: 420px;
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 0;
}
.arp-chat-header {
	display: flex;
	align-items: center;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #e8e2ec;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.arp-chat-header .arp-dot { margin-right: 8px; }
.arp-chat-close-btn {
	display: none;
	margin-left: auto;
	background: none;
	border: none;
	color: #b9adc4;
	width: 26px;
	height: 26px;
	padding: 0;
	cursor: pointer;
}
.arp-chat-close-btn svg { width: 18px; height: 18px; }
.arp-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e0577f;
}

.arp-chat-messages {
	flex: 1 1 160px;
	min-height: 60px;
	overflow-y: auto;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.arp-chat-msg {
	font-size: 13px;
	line-height: 1.4;
	word-break: break-word;
}
.arp-chat-msg .arp-chat-name {
	font-weight: 700;
	color: #f2a26a;
	margin-right: 6px;
}
.arp-chat-msg.arp-chat-own .arp-chat-name { color: #e0577f; }
.arp-chat-empty {
	color: #7c7183;
	font-size: 13px;
	text-align: center;
	margin: auto;
}

.arp-chat-form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid rgba(255,255,255,0.08);
}
.arp-chat-form input[type="text"] {
	background: rgba(255,255,255,0.08);
	border: none;
	border-radius: 8px;
	color: #fff;
	padding: 9px 12px;
	font-size: 13px;
	outline: none;
}
.arp-chat-form input[type="text"]::placeholder { color: #8d8194; }
#arp-chat-name { width: 84px; flex-shrink: 0; }
#arp-chat-input { flex: 1; min-width: 0; }
.arp-chat-send {
	background: linear-gradient(145deg,#f2a26a,#e0577f);
	border: none;
	border-radius: 8px;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.arp-chat-send svg { width: 17px; height: 17px; color: #fff; }

.arp-chat-toggle-btn {
	display: none;
	position: fixed;
	right: 18px;
	bottom: max(18px, env(safe-area-inset-bottom));
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(145deg,#f2a26a,#e0577f);
	box-shadow: 0 10px 24px rgba(224,87,127,0.45);
	color: #fff;
	align-items: center;
	justify-content: center;
	z-index: 40;
	cursor: pointer;
}
.arp-chat-toggle-btn svg { width: 24px; height: 24px; }
.arp-chat-toggle-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #ff4d6d;
	border: 2px solid #1e1620;
}

/* Mobile: chat is hidden behind a floating button until tapped open. */
@media (max-width: 640px) {
	.arp-chat {
		display: none;
		position: fixed;
		left: 14px;
		right: 14px;
		bottom: max(14px, env(safe-area-inset-bottom));
		max-height: 65vh;
		margin-top: 0;
		z-index: 39;
		background: #1e1620;
		border: 1px solid rgba(255,255,255,0.14);
		box-shadow: 0 16px 40px rgba(0,0,0,0.6);
	}
	.arp-chat.open { display: flex; }
	.arp-chat-close-btn { display: block; }
	.arp-chat-toggle-btn { display: flex; }
	.arp-chat-toggle-btn.hidden { display: none; }
}


.arp-tap-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10,7,13,0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.arp-tap-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: none;
	border: 2px solid rgba(255,255,255,0.25);
	border-radius: 20px;
	color: #fff;
	padding: 28px 36px;
	cursor: pointer;
	font-size: 15px;
}
.arp-tap-btn svg {
	width: 46px;
	height: 46px;
	background: linear-gradient(145deg,#f2a26a,#e0577f);
	border-radius: 50%;
	padding: 14px;
}

/* Tablet / desktop: keep the phone-app look centered */
@media (min-width: 640px) {
	.arp-player {
		justify-content: center;
	}
	.arp-cover-wrap { max-width: 320px; }
}

/* Small phones */
@media (max-width: 380px) {
	.arp-title { font-size: 19px; }
	.arp-cover-wrap { max-width: 240px; }
	.arp-play-btn { width: 60px; height: 60px; }
}

@media (max-height: 700px) {
	.arp-cover-wrap { max-width: 220px; margin-bottom: 12px; }
	.arp-meta { margin-bottom: 8px; }
}
