/* ==========================================================================
   Toopix × RadioArt Server & Player MK
   --------------------------------------------------------------------------
   Плеерот и блоковите од додатокот во изгледот на темата, радио сцената со
   светла и визуелизатор во ритам на музиката (--tx-pulse, --tx-bass,
   --tx-energy, --tx-high, --tx-down ги поставува assets/js/beat.js).
   ========================================================================== */

:root {
	--tx-pulse: 0;
	--tx-down: 0;
	--tx-bass: 0;
	--tx-energy: 0;
	--tx-high: 0;
}

/* 1. Плеерот на додатокот во бојата на темата
   ========================================================================== */
.rasp-player {
	--rasp-player-accent: var(--tx-accent);
	--rasp-player-bg: color-mix(in srgb, var(--tx-ink, #111) 94%, #fff);
	border-radius: var(--tx-radius, 14px);
	font-family: inherit;
}

.rasp-player--light {
	--rasp-player-bg: #fff;
	--rasp-player-text: var(--tx-ink);
	--rasp-player-surface: color-mix(in srgb, var(--tx-accent) 8%, #fff);
}

.rasp-player__button {
	background: var(--tx-accent);
	box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--tx-accent) 80%, transparent);
	transition: transform 0.2s, box-shadow 0.3s;
}

.rasp-player__button:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--tx-accent) 90%, transparent);
}

.rasp-player--global.rasp-player--sticky {
	border-radius: 18px;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.rasp-now-playing-card,
.rasp-recent-tracks li,
.rasp-schedule-public__day,
.rasp-public-shows article,
.rasp-song-request,
.rasp-podcast-archive,
.rasp-youtube-player {
	border-radius: var(--tx-radius, 14px);
	font-family: inherit;
}

/* 2. RadioArt блок (наслов + податоците од додатокот)
   ========================================================================== */
.tx-ra__head {
	max-width: 760px;
	margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.tx-ra__head.is-center {
	margin-inline: auto;
	text-align: center;
}

.tx-ra__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 0.9rem;
	color: var(--tx-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tx-ra__eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: currentColor;
}

.tx-ra__title {
	margin: 0;
	font-size: clamp(2rem, 4.4vw, 3.6rem);
	line-height: 1.04;
}

.tx-ra__text {
	margin: 1rem 0 0;
	color: var(--tx-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

/* Последни песни */
.tx-ra-recent {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.tx-ra-recent__item {
	position: relative;
	display: grid;
	grid-template-columns: 52px 44px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border: 1px solid var(--tx-line);
	border-radius: var(--tx-radius, 14px);
	background: color-mix(in srgb, var(--tx-fg, #fff) 3%, transparent);
	transition: border-color 0.3s, transform 0.3s;
	animation: tx-ra-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tx-ra-recent__item:nth-child(2) { animation-delay: 0.05s; }
.tx-ra-recent__item:nth-child(3) { animation-delay: 0.1s; }
.tx-ra-recent__item:nth-child(4) { animation-delay: 0.15s; }
.tx-ra-recent__item:nth-child(5) { animation-delay: 0.2s; }
.tx-ra-recent__item:nth-child(n+6) { animation-delay: 0.25s; }

.tx-ra-recent__item:hover {
	border-color: color-mix(in srgb, var(--tx-accent) 40%, transparent);
	transform: translateX(4px);
}

.tx-ra-recent__item.is-current {
	border-color: color-mix(in srgb, var(--tx-accent) 55%, transparent);
	background: linear-gradient(90deg, color-mix(in srgb, var(--tx-accent) 16%, transparent), transparent 70%);
}

.tx-ra-recent__item time {
	color: var(--tx-muted);
	font-size: 0.86rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.tx-ra-recent__art {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--tx-accent), var(--rd-violet, #7b4dff));
	color: #fff;
	font-weight: 800;
}

.tx-ra-recent__meta {
	display: grid;
	min-width: 0;
}

.tx-ra-recent__meta strong,
.tx-ra-recent__meta span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tx-ra-recent__meta span {
	color: var(--tx-muted);
	font-size: 0.88rem;
}

.tx-ra-recent__item em {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tx-accent);
	color: #fff;
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 0 calc(6px + var(--tx-pulse) * 18px) color-mix(in srgb, var(--tx-accent) 70%, transparent);
}

.tx-ra-recent__empty {
	padding: 18px;
	border: 1px dashed var(--tx-line);
	border-radius: var(--tx-radius, 14px);
	color: var(--tx-muted);
}

@keyframes tx-ra-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

/* Статистики во живо */
.tx-ra-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.tx-ra-stats__item {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 20px;
	overflow: hidden;
	border: 1px solid var(--tx-line);
	border-radius: var(--tx-radius, 14px);
	background: color-mix(in srgb, var(--tx-fg, #fff) 3%, transparent);
}

.tx-ra-stats__item::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tx-accent), var(--rd-violet, #7b4dff));
	transform: scaleX(calc(0.15 + var(--tx-energy) * 0.85));
	transform-origin: 0 50%;
	transition: transform 0.15s linear;
}

.tx-ra-stats__item .tx-icon {
	width: 22px;
	height: 22px;
	margin-bottom: 6px;
	color: var(--tx-accent);
}

.tx-ra-stats__item strong {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.tx-ra-stats__item strong.is-tick {
	animation: tx-ra-tick 0.6s ease;
}

.tx-ra-stats__item span {
	color: var(--tx-muted);
	font-size: 0.82rem;
}

@keyframes tx-ra-tick {
	0% { color: var(--tx-accent); transform: translateY(-4px); }
	100% { transform: none; }
}

/* Шорткодите од додатокот во изгледот на темата */
.tx-ra .rasp-schedule-public {
	gap: 12px;
}

.tx-ra .rasp-schedule-public__day,
.tx-ra .rasp-public-shows article,
.tx-ra .rasp-now-playing-card {
	border: 1px solid var(--tx-line);
	background: color-mix(in srgb, var(--tx-fg, #fff) 3%, transparent);
	color: inherit;
}

.tx-ra .rasp-schedule-public__day h3,
.tx-ra .rasp-public-shows h3 {
	color: inherit;
	font-size: 1rem;
	letter-spacing: 0.04em;
}

.tx-ra .rasp-schedule-public__item {
	border-color: var(--tx-line);
}

.tx-ra .rasp-schedule-public__item span {
	color: var(--tx-accent);
	font-weight: 800;
}

.tx-ra .rasp-song-request {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: clamp(20px, 3vw, 34px);
	border: 1px solid var(--tx-line);
	background: color-mix(in srgb, var(--tx-fg, #fff) 3%, transparent);
	color: inherit;
}

.tx-ra .rasp-song-request label:nth-of-type(n+5),
.tx-ra .rasp-song-request button,
.tx-ra .rasp-request-notice {
	grid-column: 1 / -1;
}

.tx-ra .rasp-song-request label span {
	color: var(--tx-muted);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tx-ra .rasp-song-request input,
.tx-ra .rasp-song-request textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tx-line);
	border-radius: calc(var(--tx-radius, 14px) - 4px);
	background: color-mix(in srgb, var(--tx-fg, #fff) 4%, transparent);
	color: inherit;
	font: inherit;
}

.tx-ra .rasp-song-request input:focus,
.tx-ra .rasp-song-request textarea:focus {
	border-color: var(--tx-accent);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tx-accent) 25%, transparent);
}

.tx-ra .rasp-song-request button {
	justify-self: start;
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--tx-btn-radius, 999px);
	background: var(--tx-accent);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.tx-ra .rasp-podcast-archive {
	border: 1px solid var(--tx-line);
	background: color-mix(in srgb, var(--tx-fg, #fff) 3%, transparent);
	color: inherit;
}

.tx-ra-missing {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px dashed color-mix(in srgb, var(--tx-accent) 60%, transparent);
	border-radius: var(--tx-radius, 14px);
	background: color-mix(in srgb, var(--tx-accent) 8%, transparent);
	color: inherit;
}

.tx-ra-missing .tx-icon {
	flex: none;
	width: 28px;
	height: 28px;
	color: var(--tx-accent);
}

.tx-ra-missing p {
	margin: 0;
	font-size: 0.92rem;
}

@media (max-width: 600px) {
	.tx-ra-recent__item {
		grid-template-columns: 44px minmax(0, 1fr) auto;
		gap: 10px;
		padding: 10px 12px;
	}

	.tx-ra-recent__art {
		display: none;
	}

	.tx-ra .rasp-song-request {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 3. Радио сцена
   ========================================================================== */
.tpb-widget--radio_stage {
	width: 100%;
}

.tx-rstage {
	--rs-h: 100vh;
	--rs-violet: var(--rd-violet, #7b4dff);
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: max(600px, var(--rs-h));
	overflow: hidden;
	background: #06050b;
	color: #fff;
	isolation: isolate;
}

.tx-rstage__bg {
	position: absolute;
	inset: 0;
	z-index: -4;
}

.tx-rstage__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.38;
	transform: scale(calc(1.05 + var(--tx-pulse) * 0.02));
	filter: saturate(1.15) contrast(1.05);
	transition: transform 0.12s ease-out;
}

.tx-rstage__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(70% 60% at 72% 42%, transparent 0%, rgba(6, 5, 11, 0.55) 70%),
		linear-gradient(90deg, rgba(6, 5, 11, 0.92) 0%, rgba(6, 5, 11, 0.5) 50%, rgba(6, 5, 11, 0.6) 100%),
		linear-gradient(0deg, #06050b 0%, transparent 32%);
}

/* Сценски рефлектори */
.tx-rstage__lights {
	position: absolute;
	inset: 0;
	z-index: -3;
	overflow: hidden;
	pointer-events: none;
	mix-blend-mode: screen;
}

.tx-rstage__lights i {
	--rot: 0deg;
	--c: var(--tx-accent);
	position: absolute;
	top: -12%;
	left: calc(var(--x) - 13vw);
	width: 26vw;
	height: 128%;
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, transparent) 0%, color-mix(in srgb, var(--c) 18%, transparent) 45%, transparent 78%);
	clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
	opacity: calc(0.1 + var(--tx-energy) * 0.22 + var(--tx-pulse) * 0.45);
	filter: blur(8px);
	transform-origin: 50% 0;
	animation: rs-sweep var(--dur, 9s) ease-in-out infinite alternate;
	transition: opacity 0.08s linear;
}

.tx-rstage__lights i:nth-child(1) { --x: 8%; --a: -22deg; --b: 10deg; --dur: 8s; }
.tx-rstage__lights i:nth-child(2) { --x: 24%; --a: 14deg; --b: -16deg; --dur: 11s; --c: var(--rs-violet); }
.tx-rstage__lights i:nth-child(3) { --x: 42%; --a: -10deg; --b: 18deg; --dur: 9.5s; --c: #fff; }
.tx-rstage__lights i:nth-child(4) { --x: 60%; --a: 20deg; --b: -12deg; --dur: 10.5s; }
.tx-rstage__lights i:nth-child(5) { --x: 78%; --a: -16deg; --b: 14deg; --dur: 8.5s; --c: var(--rs-violet); }
.tx-rstage__lights i:nth-child(6) { --x: 94%; --a: 12deg; --b: -20deg; --dur: 12s; --c: #fff; }

@keyframes rs-sweep {
	from { transform: rotate(var(--a)); }
	to { transform: rotate(var(--b)); }
}

.tx-beat-on .tx-rstage__lights i {
	animation-duration: calc(var(--dur, 9s) * 0.55);
}

/* Ласери */
.tx-rstage--lasers .tx-rstage__lights i {
	top: auto;
	bottom: -4%;
	left: 50%;
	width: 2px;
	height: 140%;
	background: linear-gradient(0deg, color-mix(in srgb, var(--c) 95%, transparent), transparent 85%);
	clip-path: none;
	filter: drop-shadow(0 0 6px var(--c));
	transform-origin: 50% 100%;
	opacity: calc(0.12 + var(--tx-pulse) * 0.85);
}

.tx-rstage--lasers .tx-rstage__lights i:nth-child(odd) { --c: var(--tx-accent); }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(even) { --c: #33e1ff; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(1) { --a: -58deg; --b: -30deg; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(2) { --a: -42deg; --b: -14deg; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(3) { --a: -24deg; --b: 4deg; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(4) { --a: -8deg; --b: 20deg; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(5) { --a: 8deg; --b: -20deg; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(6) { --a: 24deg; --b: -4deg; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(7) { --a: 42deg; --b: 14deg; --x: 50%; --dur: 9s; }
.tx-rstage--lasers .tx-rstage__lights i:nth-child(8) { --a: 58deg; --b: 30deg; --x: 50%; --dur: 10s; }

/* Меко светло */
.tx-rstage--soft .tx-rstage__lights i {
	top: auto;
	left: var(--x);
	width: 40vw;
	height: 40vw;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%);
	clip-path: none;
	filter: blur(30px);
	transform: translate(-50%, 0) scale(calc(0.85 + var(--tx-bass) * 0.35));
	animation: none;
}

.tx-rstage__haze {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background:
		radial-gradient(55% 38% at 50% 104%, color-mix(in srgb, var(--tx-accent) 34%, transparent), transparent 72%),
		radial-gradient(40% 30% at 12% 100%, color-mix(in srgb, var(--rs-violet) 30%, transparent), transparent 70%),
		radial-gradient(40% 30% at 90% 100%, color-mix(in srgb, var(--rs-violet) 26%, transparent), transparent 70%);
	opacity: calc(0.55 + var(--tx-bass) * 0.45);
	transition: opacity 0.1s linear;
}

.tx-rstage__flash {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(60% 50% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 70%);
	mix-blend-mode: screen;
	opacity: calc(var(--tx-down) * 0.18);
}

.tx-rstage.is-track .tx-rstage__flash {
	animation: rs-track 1.4s ease-out;
}

@keyframes rs-track {
	0% { opacity: 0.6; background-position: 0 0; }
	100% { opacity: 0; }
}

.tx-rstage__viz {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.tx-rstage__inner {
	position: relative;
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	align-items: center;
	gap: clamp(28px, 5vw, 80px);
	width: 100%;
	max-width: var(--tx-container);
	margin: 0 auto;
	padding: calc(var(--tx-header-h) + var(--tx-admin-bar) + 3vh) var(--tx-gutter) clamp(28px, 4vh, 56px);
	box-sizing: border-box;
}

.tx-rstage__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0 0 1.4rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tx-rstage__live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.tx-rstage__live i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff3b47;
	box-shadow: 0 0 0 calc(2px + var(--tx-pulse) * 6px) rgba(255, 59, 71, 0.25);
	animation: rs-blink 1.6s ease-in-out infinite;
}

.tx-beat-on .tx-rstage__live i {
	animation: none;
}

@keyframes rs-blink {
	50% { opacity: 0.35; }
}

.tx-rstage__title {
	margin: 0;
	color: #fff;
	font-size: clamp(3rem, 7.4vw, 7rem);
	line-height: 0.92;
	letter-spacing: -0.02em;
	text-shadow: 0 0 40px color-mix(in srgb, var(--tx-accent) 30%, transparent);
}

.tx-rstage__text {
	max-width: 540px;
	margin: 1.4rem 0 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: clamp(1rem, 1.2vw, 1.15rem);
	line-height: 1.65;
}

/* „Моментално се емитува“ */
.tx-rstage__np {
	max-width: 580px;
	margin-top: clamp(1.6rem, 3vh, 2.4rem);
	padding: 18px 22px 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.tx-rstage__np-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tx-rstage__eq {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 18px;
}

.tx-rstage__eq i {
	width: 3px;
	height: 100%;
	border-radius: 2px;
	background: var(--tx-accent);
	transform-origin: 50% 100%;
	transform: scaleY(0.2);
	transition: transform 0.08s linear;
}

.tx-beat-on .tx-rstage__eq i:nth-child(1) { transform: scaleY(calc(0.2 + var(--tx-bass) * 0.8)); }
.tx-beat-on .tx-rstage__eq i:nth-child(2) { transform: scaleY(calc(0.2 + var(--tx-pulse) * 0.8)); }
.tx-beat-on .tx-rstage__eq i:nth-child(3) { transform: scaleY(calc(0.25 + var(--tx-energy) * 0.75)); }
.tx-beat-on .tx-rstage__eq i:nth-child(4) { transform: scaleY(calc(0.2 + var(--tx-high) * 0.8)); }
.tx-beat-on .tx-rstage__eq i:nth-child(5) { transform: scaleY(calc(0.2 + var(--tx-down) * 0.8)); }

.tx-rstage__track {
	display: grid;
	gap: 4px;
	min-height: 4.2em;
	transition: opacity 0.3s ease, transform 0.35s ease;
}

.tx-rstage__track.is-out {
	opacity: 0;
	transform: translateY(-10px);
}

.tx-rstage__track.is-in {
	animation: rs-track-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rs-track-in {
	from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
	to { opacity: 1; transform: none; filter: none; }
}

.tx-rstage__artist {
	color: var(--tx-accent);
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tx-rstage__artist:empty {
	display: none;
}

.tx-rstage__song {
	display: -webkit-box;
	overflow: hidden;
	color: #fff;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
	font-weight: 700;
	line-height: 1.2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tx-rstage__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.tx-rstage__chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.84);
	font-size: 0.8rem;
	font-weight: 700;
}

.tx-rstage__chip .tx-icon {
	width: 15px;
	height: 15px;
	color: var(--tx-accent);
}

.tx-rstage__np.is-offline .tx-rstage__chip--state .tx-icon {
	color: #ff6b6b;
}

.tx-rstage__chip--bpm b {
	font-variant-numeric: tabular-nums;
}

.tx-rstage.is-live-dj .tx-rstage__live {
	border-color: var(--tx-accent);
	background: color-mix(in srgb, var(--tx-accent) 22%, transparent);
}

/* Дискот и плеерот */
.tx-rstage__deck {
	display: grid;
	justify-items: center;
	gap: clamp(20px, 3vh, 34px);
}

.tx-rstage__disc {
	position: relative;
	width: clamp(240px, 28vw, 420px);
	aspect-ratio: 1;
}

.tx-rstage__ring {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.tx-rstage__ring--1 {
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
	transform: scale(calc(1 + var(--tx-down) * 0.03));
}

.tx-rstage__ring--2 {
	inset: 8%;
	border: 1px dashed color-mix(in srgb, var(--tx-accent) 55%, transparent);
	animation: rs-spin 28s linear infinite;
}

.tx-beat-on .tx-rstage__ring--2 {
	animation-duration: 9s;
}

.tx-rstage__ring--3 {
	inset: 17%;
	border: 2px solid color-mix(in srgb, var(--tx-accent) 80%, #fff);
	box-shadow: 0 0 calc(12px + var(--tx-pulse) * 36px) color-mix(in srgb, var(--tx-accent) 70%, transparent), inset 0 0 calc(10px + var(--tx-pulse) * 24px) color-mix(in srgb, var(--tx-accent) 45%, transparent);
	opacity: calc(0.45 + var(--tx-pulse) * 0.55);
	transform: scale(calc(1 + var(--tx-bass) * 0.045));
	transition: transform 0.08s linear, opacity 0.08s linear;
}

@keyframes rs-spin {
	to { transform: rotate(360deg); }
}

.tx-rstage__core {
	position: absolute;
	inset: 25%;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, #2b2342 0%, #120f1f 55%, #07060c 100%);
	box-shadow: 0 0 calc(30px + var(--tx-pulse) * 50px) color-mix(in srgb, var(--tx-accent) 40%, transparent), 0 24px 50px -20px rgba(0, 0, 0, 0.8);
	transform: scale(calc(1 + var(--tx-pulse) * 0.035));
	transition: transform 0.08s linear;
}

.tx-rstage__core .tx-bm,
.tx-rstage__logo {
	width: 66%;
	height: auto;
	max-height: 66%;
	object-fit: contain;
}

.tx-rstage__glyph .tx-icon {
	width: 42%;
	height: auto;
	color: var(--tx-accent);
}

/* Плеерот од додатокот како конзола */
.tx-rstage__player {
	width: min(100%, 460px);
}

.tx-rstage .rasp-player {
	--rasp-player-bg: rgba(12, 10, 20, 0.72);
	--rasp-player-surface: rgba(255, 255, 255, 0.08);
	--rasp-player-border: rgba(255, 255, 255, 0.14);
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 12px 16px;
	padding: 14px 18px 14px 14px;
	border-radius: 999px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.tx-rstage .rasp-player__primary {
	grid-template-columns: auto;
}

.tx-rstage .rasp-player__meta {
	display: none;
}

.tx-rstage .rasp-player.is-reconnecting .rasp-player__meta,
.tx-rstage .rasp-player.is-offline .rasp-player__meta {
	display: grid;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	left: 0;
	text-align: center;
}

.tx-rstage .rasp-player.is-reconnecting .rasp-player__meta strong,
.tx-rstage .rasp-player.is-reconnecting .rasp-player__meta span,
.tx-rstage .rasp-player.is-offline .rasp-player__meta strong,
.tx-rstage .rasp-player.is-offline .rasp-player__meta span {
	display: none;
}

.tx-rstage .rasp-player {
	position: relative;
}

.tx-rstage .rasp-player__button {
	width: 64px;
	min-width: 0;
	height: 64px;
	padding: 0;
	border-radius: 50%;
	font-size: 0;
	box-shadow: 0 0 0 calc(var(--tx-pulse) * 10px) color-mix(in srgb, var(--tx-accent) 22%, transparent), 0 14px 30px -10px color-mix(in srgb, var(--tx-accent) 90%, transparent);
}

.tx-rstage .rasp-player__button [data-rasp-toggle-label] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.tx-rstage .rasp-player__icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
}

.tx-rstage .rasp-player.is-playing .rasp-player__icon {
	width: 18px;
	height: 18px;
	margin-left: 0;
	border: 0;
	border-radius: 3px;
	background: #fff;
}

.tx-rstage .rasp-player.is-buffering .rasp-player__icon {
	opacity: 0;
}

.tx-rstage .rasp-player__controls {
	grid-template-columns: auto minmax(90px, 1fr);
}

.tx-rstage .rasp-player__status {
	display: flex;
	grid-column: 1 / -1;
	justify-content: center;
	justify-items: center;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.tx-rstage .rasp-player__state,
.tx-rstage .rasp-player__listeners {
	display: none;
}

.tx-rstage .rasp-player__popup {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.6);
	font: inherit;
	font-size: 0.78rem;
	cursor: pointer;
}

.tx-rstage .rasp-player__popup:hover {
	color: #fff;
}

/* Лента со последните песни */
.tx-rstage__ticker {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(6, 5, 11, 0.7);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.tx-rstage__ticker-label {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	background: var(--tx-accent);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tx-rstage__ticker-label .tx-icon {
	width: 16px;
	height: 16px;
}

.tx-rstage__ticker-track {
	flex: 1 1 auto;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.tx-rstage__ticker-run {
	display: inline-flex;
	gap: 44px;
	padding-left: 28px;
	white-space: nowrap;
	animation: rs-ticker 60s linear infinite;
}

.tx-rstage__ticker:hover .tx-rstage__ticker-run {
	animation-play-state: paused;
}

.tx-rstage__tick {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
}

.tx-rstage__tick time {
	color: var(--tx-accent);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.tx-rstage__tick b {
	color: #fff;
}

@keyframes rs-ticker {
	to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
	/* Мобилен редослед: наслов, опис, диск, плеер, песната што свири. */
	.tx-rstage__inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}

	.tx-rstage__info,
	.tx-rstage__deck {
		display: contents;
	}

	.tx-rstage__eyebrow { order: 1; margin: 0; }
	.tx-rstage__title { order: 2; }
	.tx-rstage__text { order: 3; margin: 0; }
	.tx-rstage__disc { order: 4; align-self: center; width: min(58vw, 280px); margin-top: 6px; }
	.tx-rstage__player { order: 5; align-self: center; }
	.tx-rstage__np { order: 6; max-width: none; margin-top: 4px; }
	.tx-ra-missing { order: 5; }
}

@media (max-width: 600px) {
	.tx-rstage__inner {
		gap: 26px;
		padding-top: calc(var(--tx-header-h) + var(--tx-admin-bar) + 10px);
	}

	.tx-rstage__title {
		font-size: clamp(2.6rem, 13vw, 3.6rem);
	}

	.tx-rstage__np {
		padding: 16px;
	}

	.tx-rstage .rasp-player {
		border-radius: 26px;
	}

	.tx-rstage__lights i {
		width: 46vw;
		left: calc(var(--x) - 23vw);
	}

	.tx-rstage__ticker-label {
		padding: 12px 14px;
		font-size: 0;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tx-rstage__lights i,
	.tx-rstage__ring--2,
	.tx-rstage__ticker-run,
	.tx-rstage__live i {
		animation: none;
	}
}

/* 4. Радио копче во заглавието
   ========================================================================== */
.tx-hradio {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	max-width: min(44vw, 440px);
	margin-inline: auto 12px;
	padding: 5px 14px 5px 5px;
	border: 1px solid color-mix(in srgb, var(--tx-fg, #fff) 16%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--tx-bg, #0f0d18) 55%, transparent);
	color: var(--tx-fg, #fff);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.tx-hradio__play {
	position: relative;
	display: grid;
	flex: none;
	width: 38px;
	height: 38px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tx-accent);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 0 0 calc(var(--tx-pulse) * 7px) color-mix(in srgb, var(--tx-accent) 28%, transparent);
}

.tx-hradio__ico {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid currentColor;
}

.tx-hradio__play.is-playing .tx-hradio__ico {
	width: 11px;
	height: 11px;
	margin: 0;
	border: 0;
	border-radius: 2px;
	background: currentColor;
}

.tx-hradio__meta {
	display: grid;
	min-width: 0;
	line-height: 1.2;
}

.tx-hradio__meta b {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tx-accent);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tx-hradio__meta b i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ff3b47;
	animation: rs-blink 1.6s ease-in-out infinite;
}

.tx-hradio__song {
	overflow: hidden;
	font-size: 0.86rem;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.tx-hradio__eq {
	display: inline-flex;
	flex: none;
	align-items: flex-end;
	gap: 2px;
	height: 16px;
}

.tx-hradio__eq i {
	width: 3px;
	height: 100%;
	border-radius: 2px;
	background: var(--tx-accent);
	transform-origin: 50% 100%;
	transform: scaleY(0.2);
}

.tx-beat-on .tx-hradio__eq i:nth-child(1) { transform: scaleY(calc(0.2 + var(--tx-bass) * 0.8)); }
.tx-beat-on .tx-hradio__eq i:nth-child(2) { transform: scaleY(calc(0.2 + var(--tx-pulse) * 0.8)); }
.tx-beat-on .tx-hradio__eq i:nth-child(3) { transform: scaleY(calc(0.2 + var(--tx-energy) * 0.8)); }
.tx-beat-on .tx-hradio__eq i:nth-child(4) { transform: scaleY(calc(0.2 + var(--tx-high) * 0.8)); }

.tx-header--nonav .tx-header__inner {
	justify-content: space-between;
}

@media (max-width: 600px) {
	.tx-hradio {
		max-width: 56vw;
		margin-right: 0;
		padding-right: 10px;
	}

	.tx-hradio__eq {
		display: none;
	}
}

/* 5. Подножје „Сцена“: копчето го пушта плеерот; верзија за сајт од една страна
   ========================================================================== */
button.tx-fst__play {
	border: 0;
	font: inherit;
	cursor: pointer;
}

.tx-fst__ico-stop {
	display: none;
}

.tx-fst__play.is-playing .tx-fst__ico-play {
	display: none;
}

.tx-fst__play.is-playing .tx-fst__ico-stop {
	display: inline;
}

.tx-fst__grid--onepage {
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

@media (max-width: 760px) {
	.tx-fst__grid--onepage {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 6. Секциите влегуваат на удар
   ========================================================================== */
.tx-beat-reveal .tpb-section.tx-br > .tpb-container {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tx-beat-reveal .tpb-section.tx-br.is-beat-in > .tpb-container {
	opacity: 1;
	transform: none;
}

.tx-fallback .tpb-section.tx-br > .tpb-container {
	opacity: 1;
	transform: none;
}

/* Видео ѕидот пулсира во ритам */
.tx-beat-on .tpb-vwall__screen.is-front,
.tx-beat-on .tpb-vwall__main,
.tx-beat-on .tpb-vwall__screen.is-live {
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--tx-accent) 40%, transparent), 0 0 calc(20px + var(--tx-pulse) * 50px) color-mix(in srgb, var(--tx-accent) 35%, transparent);
}

/* One persistent RadioArt player, independent of builder sections. */
body.tx-has-radio-dock {
	--tx-radio-dock-fallback: calc(112px + env(safe-area-inset-bottom, 0px));
	padding-bottom: var(--tx-radio-dock-h, var(--tx-radio-dock-fallback));
}

html:has(body.tx-has-radio-dock) {
	scroll-padding-bottom: calc(var(--tx-radio-dock-h, 112px) + 16px);
}

.tx-radio-dock {
	position: fixed;
	inset: auto 0 0;
	z-index: 940;
	padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	background: #0c0a15;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
	color: #fff;
}

html:not(.js) .tx-radio-dock .rasp-player,
html:not(.js) [data-tx-radio-toggle] { display: none; }

.tx-radio-noscript {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	font-size: 0.8rem;
}
.tx-radio-noscript audio { width: min(100%, 360px); height: 54px; }

.tx-radio-dock .rasp-player {
	--rasp-player-bg: transparent;
	--rasp-player-text: #fff;
	--rasp-player-muted: rgba(255, 255, 255, 0.72);
	--rasp-player-surface: rgba(255, 255, 255, 0.08);
	position: relative;
	inset: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 280px) minmax(180px, 260px);
	grid-template-areas: "primary controls status";
	align-items: center;
	gap: 12px 24px;
	width: 100%;
	max-width: var(--tx-container, 1440px);
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.tx-radio-dock .rasp-player__primary {
	grid-area: primary;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px;
}

.tx-radio-dock .rasp-player__button {
	width: 48px;
	min-width: 48px;
	min-height: 48px;
	padding: 0;
	border-radius: 50%;
}

.tx-radio-dock [data-rasp-toggle-label] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.tx-radio-dock .rasp-player__meta strong {
	font-family: var(--tx-font-body, sans-serif);
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--rasp-player-muted);
}

.tx-radio-dock .rasp-player__meta span {
	font-size: 0.95rem;
}

.tx-radio-dock .rasp-player__controls {
	grid-area: controls;
	display: grid;
	grid-template-columns: auto minmax(80px, 1fr);
	gap: 12px;
	min-width: 0;
}

.tx-radio-dock .rasp-player__volume {
	min-width: 0;
}

.tx-radio-dock .rasp-player__volume input {
	min-width: 0;
	min-height: 24px;
	margin: 0;
}

.tx-radio-dock .rasp-player__mute,
.tx-radio-dock .rasp-player__popup {
	min-height: 44px;
	padding: 0 12px;
	font-family: inherit;
	font-size: 0.75rem;
}

.tx-radio-dock .rasp-player__status {
	grid-area: status;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "state popup" "listeners popup";
	align-items: center;
	justify-items: start;
	gap: 6px;
	min-width: 0;
	max-width: 270px;
}

.tx-radio-dock .rasp-player__state { grid-area: state; }
.tx-radio-dock .rasp-player__listeners { grid-area: listeners; }
.tx-radio-dock .rasp-player__popup { grid-area: popup; }

.tx-radio-dock .rasp-player__state,
.tx-radio-dock .rasp-player__listeners {
	max-width: 100%;
	font-variant-numeric: tabular-nums;
	white-space: normal;
	overflow-wrap: anywhere;
}

.tx-radio-dock .rasp-player__state,
.tx-radio-dock .rasp-player__listeners {
	min-height: 26px;
	padding: 7px 9px;
	font-size: 0.68rem;
}

.tx-radio-dock :is(button, input):focus-visible,
.tx-ra-play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.tx-has-radio-dock .tx-mobile-menu {
	padding-bottom: calc(var(--tx-radio-dock-h, 112px) + 24px);
}

.tx-ra-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 14px 24px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	background: var(--rd-grad, var(--tx-accent));
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.tx-ra-play__icon {
	width: 0;
	height: 0;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid currentColor;
}

.tx-ra-play.is-playing .tx-ra-play__icon {
	width: 11px;
	height: 11px;
	border: 0;
	border-radius: 2px;
	background: currentColor;
}

@media (max-width: 960px) {
	.tx-radio-dock .rasp-player {
		grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
		grid-template-areas: "primary controls" "status status";
		gap: 8px 16px;
	}

	.tx-radio-dock .rasp-player__status {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "state listeners popup";
		max-width: none;
	}

	.tx-radio-dock .rasp-player__popup {
		min-height: 30px;
		margin-inline-start: auto;
	}
}

@media (max-width: 600px) {
	body.tx-has-radio-dock {
		--tx-radio-dock-fallback: calc(180px + env(safe-area-inset-bottom, 0px));
	}

	.tx-radio-dock {
		padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
	}

	.tx-radio-dock .rasp-player {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "primary" "controls" "status";
		gap: 8px;
	}

	.tx-radio-dock .rasp-player__primary {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 10px;
	}

	.tx-radio-dock .rasp-player__button {
		width: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	.tx-radio-dock .rasp-player__controls {
		grid-column: 1;
		grid-template-columns: auto minmax(80px, 1fr);
		gap: 12px;
	}

	.tx-radio-dock .rasp-player__volume {
		grid-template-columns: auto minmax(60px, 1fr);
		gap: 10px;
	}

	.tx-radio-dock .rasp-player__volume span {
		gap: 6px;
	}

	.tx-radio-dock .rasp-player__meta small {
		font-size: 0.66rem;
	}

	.tx-radio-dock .rasp-player__status {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "state listeners popup";
		gap: 6px;
		min-height: 36px;
	}

	.tx-radio-dock .rasp-player__listeners {
		min-width: 0;
	}

	.tx-radio-dock .rasp-player__popup {
		min-height: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tx-rstage__ring,
	.tx-rstage__flash,
	.tx-rstage__track,
	.tx-hradio__meta,
	.tx-ra-recent__item,
	.tx-ra-stats__value.is-tick {
		animation: none;
		transition: none;
	}
}

@media print {
	.tx-radio-dock { display: none; }
	body.tx-has-radio-dock { padding-bottom: 0; }
}

/* Weak devices keep the stage composition, player and live metadata intact. */
html[data-tx-performance="light"] :is(.tx-rstage__lights i, .tx-rstage__ring, .tx-rstage__ticker-run, .tx-rstage__live i, .tx-rstage__eq i, .tx-rstage__track, .tx-hradio__meta) {
	animation: none;
	transition: none;
}
html[data-tx-performance="light"] :is(.tx-rstage__np, .tx-hradio) {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
html[data-tx-performance="light"] .tx-rstage__lights i { filter: none; }
