/*
 * Radio Razom — theme styles.
 * Colours, fonts and sizes come from theme.json (var(--wp--preset--…)); this file holds the
 * component styles of the original static design, mapped onto core blocks and block styles.
 */

:root {
	--rr-header-height: 80px;
	--rr-border: rgba(142, 190, 222, 0.2);
	--rr-border-strong: rgba(80, 200, 255, 0.4);
	--rr-shadow-card: 0 30px 80px rgba(0, 0, 0, 0.34);
	--rr-shadow-glow: 0 0 46px rgba(33, 214, 177, 0.24);
	--rr-radius-sm: 12px;
	--rr-radius-md: 20px;
	--rr-radius-lg: 30px;
	--rr-radius-xl: 40px;
	--rr-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
	--rr-section-y: 104px;
	--rr-icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7 8 5-8 5V7Z'/%3E%3C/svg%3E");
	--rr-icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0 4-4m-4 4-4-4M5 19h14'/%3E%3C/svg%3E");
	--rr-icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4V5Zm4 4h8m-8 3h5'/%3E%3C/svg%3E");
	--rr-icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v3m10-3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v14H4V6a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
	--rr-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E");
	--rr-icon-bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18M5 8v8M19 6v12'/%3E%3C/svg%3E");
	--rr-icon-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 18h8M10 22h4M7 14a7 7 0 1 1 10 0c-1.2 1-1.7 1.8-1.8 3H8.8c-.1-1.2-.6-2-1.8-3Z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--rr-header-height) + var(--wp-admin--admin-bar--height, 0px) + 24px);
	scrollbar-gutter: stable;
}

body {
	min-width: 320px;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 72% 12%, rgba(18, 88, 121, 0.2), transparent 34rem),
		linear-gradient(145deg, #08111f 0%, #0a1725 44%, #050b14 100%);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Soft page glows of the original design. */
body::before,
body::after {
	position: fixed;
	z-index: -1;
	width: 420px;
	aspect-ratio: 1;
	content: "";
	border-radius: 50%;
	filter: blur(110px);
	opacity: 0.1;
	pointer-events: none;
}

body::before {
	top: 16%;
	right: -220px;
	background: #50c8ff;
}

body::after {
	bottom: 8%;
	left: -250px;
	background: #21d6b1;
}

html.rr-modal-open {
	overflow: hidden;
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

:focus-visible {
	outline: 3px solid var(--wp--preset--color--secondary);
	outline-offset: 4px;
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks > main,
.wp-site-blocks > .rr-main {
	flex: 1 0 auto;
}

.rr-icon {
	display: block;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

/* ---------- Header ---------- */

.rr-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

@media (max-width: 600px) {
	.admin-bar .rr-site-header {
		top: 0;
	}
}

.rr-header {
	min-height: var(--rr-header-height);
	background: rgba(8, 17, 31, 0.86);
	border-bottom: 1px solid rgba(130, 177, 207, 0.12);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.rr-header__inner {
	min-height: var(--rr-header-height);
	gap: 32px;
}

.rr-brand {
	flex-shrink: 0;
	gap: 12px;
	min-height: 48px;
}

.rr-brand .wp-block-image,
.rr-brand__logo {
	flex: 0 0 auto;
	margin: 0;
}

.rr-brand__logo img {
	display: block;
}

.rr-brand__copy {
	gap: 5px;
}

.rr-brand .wp-block-site-title,
.rr-brand .wp-block-site-tagline {
	margin: 0;
}

.rr-brand .wp-block-site-title a {
	color: #e8fffa;
	text-decoration: none;
}

.rr-header__actions {
	gap: 8px;
	margin-left: auto;
}

.rr-nav {
	gap: 8px;
}

.rr-nav .wp-block-navigation-item__content {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding-inline: 15px;
	color: var(--wp--preset--color--foreground-soft);
	border-radius: 12px;
	transition:
		color 180ms ease,
		background-color 180ms ease;
}

.rr-nav .wp-block-navigation-item__content:hover,
.rr-nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--foreground);
	background: rgba(80, 200, 255, 0.08);
}

.rr-header__download {
	margin-left: 8px;
}

/* ---------- Buttons ---------- */

.wp-block-button__link,
.wp-element-button {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	text-decoration: none;
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 220ms ease,
		transform 120ms ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-1px);
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: translateY(0);
}

.wp-element-button:disabled,
.wp-element-button[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.wp-block-button.is-style-rr-ghost .wp-block-button__link,
.rr-ghost-button {
	color: var(--wp--preset--color--foreground-soft);
	background: rgba(17, 39, 58, 0.55);
	border: 1px solid var(--rr-border);
	box-shadow: none;
}

.wp-block-button.is-style-rr-ghost .wp-block-button__link:hover,
.rr-ghost-button:hover {
	color: var(--wp--preset--color--foreground);
	background: rgba(26, 54, 77, 0.7);
	border-color: var(--rr-border-strong);
	box-shadow: none;
}

.wp-block-button.rr-compact .wp-block-button__link {
	min-height: 44px;
	padding: 9px 14px;
	font-size: 0.86rem;
}

/* Icons on core buttons (Button → sidebar → Radio Razom → Іконка). */
.wp-block-button[class*="rr-icon-"] .wp-block-button__link::before {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	content: "";
	background-color: currentColor;
	-webkit-mask: var(--rr-icon) center / contain no-repeat;
	mask: var(--rr-icon) center / contain no-repeat;
}

.wp-block-button.rr-icon-play { --rr-icon: var(--rr-icon-play); }
.wp-block-button.rr-icon-download { --rr-icon: var(--rr-icon-download); }
.wp-block-button.rr-icon-chat { --rr-icon: var(--rr-icon-chat); }
.wp-block-button.rr-icon-calendar { --rr-icon: var(--rr-icon-calendar); }

/* Gradient words inside headings (toolbar → «Градієнтний текст»). */
.rr-gradient-text {
	color: transparent;
	background: var(--wp--preset--gradient--text);
	-webkit-background-clip: text;
	background-clip: text;
}

/* ---------- Text block styles ---------- */

p.is-style-rr-kicker {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

p.is-style-rr-kicker + * {
	margin-block-start: 12px;
}

p.is-style-rr-eyebrow {
	width: fit-content;
	min-height: 36px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	padding: 7px 12px;
	color: var(--wp--preset--color--primary);
	background: rgba(33, 214, 177, 0.08);
	border: 1px solid rgba(33, 214, 177, 0.2);
	border-radius: 999px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

p.is-style-rr-eyebrow::before {
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	content: "";
	background: var(--wp--preset--color--primary);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(33, 214, 177, 0.1);
	animation: rr-live-pulse 2.2s ease-out infinite;
}

p.is-style-rr-eyebrow + * {
	margin-block-start: 0;
}

@keyframes rr-live-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 4px rgba(33, 214, 177, 0.09);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(33, 214, 177, 0.02);
	}
}

p.is-style-rr-lead {
	max-width: 640px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.72;
}

p.is-style-rr-badge-soon {
	width: fit-content;
	min-height: 44px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-block-start: 26px;
	padding: 9px 13px;
	color: var(--wp--preset--color--warning);
	background: rgba(255, 189, 112, 0.08);
	border: 1px solid rgba(255, 189, 112, 0.22);
	border-radius: 12px;
	font-size: 0.82rem;
	font-weight: 760;
	line-height: 1.3;
}

p.is-style-rr-badge-soon::before {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	content: "";
	background-color: currentColor;
	-webkit-mask: var(--rr-icon-calendar) center / contain no-repeat;
	mask: var(--rr-icon-calendar) center / contain no-repeat;
}

p.is-style-rr-notice {
	padding: 12px 14px;
	color: var(--wp--preset--color--warning);
	background: rgba(255, 189, 112, 0.07);
	border: 1px solid rgba(255, 189, 112, 0.22);
	border-radius: var(--rr-radius-sm);
	font-size: 0.85rem;
}

ul.is-style-rr-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-block-start: 34px;
	padding: 0;
	color: var(--wp--preset--color--foreground-soft);
	list-style: none;
	font-size: 0.86rem;
	font-weight: 650;
}

ul.is-style-rr-features li {
	min-height: 32px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

ul.is-style-rr-features li::before {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	content: "";
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: var(--rr-feature-icon, var(--rr-icon-check)) center / contain no-repeat;
	mask: var(--rr-feature-icon, var(--rr-icon-check)) center / contain no-repeat;
}

ul.is-style-rr-features li:nth-child(3n + 2) { --rr-feature-icon: var(--rr-icon-bars); }
ul.is-style-rr-features li:nth-child(3n + 3) { --rr-feature-icon: var(--rr-icon-bulb); }

/* ---------- Sections ---------- */

.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.is-style-rr-hero,
.is-style-rr-section,
.is-style-rr-band {
	position: relative;
	padding-block: var(--rr-section-y);
}

.is-style-rr-hero {
	/* Full screen, but never a giant empty block on very tall windows / full-page captures. */
	min-height: min(calc(100dvh - var(--rr-header-height)), 940px);
	display: grid;
	align-content: center;
	padding-top: 72px;
}

.is-style-rr-hero > * {
	width: 100%;
}

.is-style-rr-hero h1 {
	max-width: 760px;
	margin-bottom: 26px;
}

.is-style-rr-hero .rr-actions {
	gap: 12px;
	margin-block-start: 32px;
}

.is-style-rr-band {
	background:
		linear-gradient(rgba(7, 16, 27, 0.72), rgba(7, 16, 27, 0.72)),
		radial-gradient(circle at 75% 50%, rgba(80, 200, 255, 0.1), transparent 30rem);
	border-block: 1px solid rgba(130, 177, 207, 0.1);
}

.is-style-rr-section {
	padding-block: 88px;
}

.wp-block-columns.rr-split--hero {
	gap: clamp(42px, 7vw, 100px);
}

.wp-block-columns.rr-split--schedule {
	gap: clamp(48px, 8vw, 110px);
}

.rr-schedule-copy h2 {
	margin-bottom: 0;
}

.rr-schedule-copy p:not([class*="is-style"]) {
	max-width: 540px;
	margin-block-start: 24px;
}

.is-style-rr-card {
	padding: clamp(22px, 4vw, 34px);
	background: rgba(14, 31, 48, 0.84);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius-lg);
	box-shadow: var(--rr-shadow-card);
}

/* ---------- App promo card ---------- */

.wp-block-columns.is-style-rr-app-card {
	position: relative;
	gap: 28px;
	padding: clamp(28px, 5vw, 52px);
	overflow: hidden;
	background:
		linear-gradient(120deg, rgba(22, 56, 75, 0.92), rgba(13, 35, 52, 0.92)),
		var(--wp--preset--color--surface-raised);
	border: 1px solid rgba(33, 214, 177, 0.3);
	border-radius: var(--rr-radius-lg);
	box-shadow: var(--rr-shadow-card);
}

.wp-block-columns.is-style-rr-app-card::after {
	position: absolute;
	right: 4%;
	bottom: -190px;
	width: 390px;
	aspect-ratio: 1;
	content: "";
	background: rgba(33, 214, 177, 0.09);
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}

.is-style-rr-app-card > .rr-app-mark {
	flex: 0 0 96px !important;
}

.is-style-rr-app-card > .rr-app-copy {
	min-width: 0;
}

.is-style-rr-app-card > .rr-app-copy h2 {
	margin-bottom: 15px;
}

.is-style-rr-app-card > .rr-app-copy > p:not([class*="is-style"]) {
	max-width: 650px;
	margin-block-start: 15px;
}

.is-style-rr-app-card > .rr-app-action {
	position: relative;
	z-index: 1;
	flex: 0 0 auto !important;
	width: max-content;
}

.wp-block-image.is-style-rr-tile {
	width: 96px;
	height: 96px;
	display: grid;
	place-items: center;
	margin: 0;
	background: rgba(6, 23, 33, 0.55);
	border: 1px solid rgba(80, 200, 255, 0.22);
	border-radius: 26px;
}

.wp-block-image.is-style-rr-tile img {
	border-radius: 0;
}

/* ---------- Player block ---------- */

.rr-player {
	position: relative;
	isolation: isolate;
	padding: 30px;
	overflow: clip;
	color: var(--wp--preset--color--foreground);
	background:
		linear-gradient(145deg, rgba(22, 48, 71, 0.92), rgba(9, 24, 38, 0.96)),
		var(--wp--preset--color--surface);
	border: 1px solid rgba(80, 200, 255, 0.22);
	border-radius: var(--rr-radius-xl);
	box-shadow: var(--rr-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.rr-player::before {
	position: absolute;
	z-index: -1;
	top: -130px;
	right: -110px;
	width: 310px;
	aspect-ratio: 1;
	content: "";
	background: rgba(33, 214, 177, 0.12);
	border-radius: 50%;
	filter: blur(56px);
}

.rr-player,
.rr-player *,
.rr-modal,
.rr-modal * {
	box-sizing: border-box;
}

.rr-player p {
	margin: 0;
}

.rr-player__topline {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.rr-player__kicker {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 800;
	letter-spacing: 0.16em;
}

.rr-player .rr-player__title {
	margin: 5px 0 0;
	font-size: clamp(1.15rem, 2vw, 1.42rem);
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.rr-player__badge {
	flex: 0 0 auto;
	padding: 7px 10px;
	color: var(--wp--preset--color--foreground-soft);
	background: rgba(7, 20, 31, 0.6);
	border: 1px solid var(--rr-border);
	border-radius: 10px;
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	line-height: 1.6;
}

.rr-player__artwork {
	position: relative;
	width: min(72%, 290px);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	margin: 36px auto 28px;
	background: var(--wp--preset--gradient--artwork);
	border-radius: 34%;
	box-shadow: var(--rr-shadow-glow), 0 28px 50px rgba(0, 0, 0, 0.28);
}

.rr-player__artwork::after {
	position: absolute;
	inset: 8%;
	content: "";
	border: 1px solid rgba(4, 23, 32, 0.17);
	border-radius: 31%;
}

.rr-player__ring {
	position: absolute;
	border: 1px solid rgba(4, 23, 32, 0.14);
	border-radius: 50%;
}

.rr-player__ring--outer {
	width: 66%;
	height: 66%;
}

.rr-player__ring--inner {
	width: 46%;
	height: 46%;
}

.rr-player__eq {
	position: relative;
	z-index: 2;
	height: 78px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.rr-player__eq span {
	width: 9px;
	height: 28%;
	background: #061721;
	border-radius: 99px;
	transform-origin: center;
}

.rr-player__eq.is-playing span {
	animation: rr-equalizer 950ms ease-in-out infinite alternate;
}

.rr-player__eq.is-playing span:nth-child(2) { animation-delay: -640ms; }
.rr-player__eq.is-playing span:nth-child(3) { animation-delay: -250ms; }
.rr-player__eq.is-playing span:nth-child(4) { animation-delay: -780ms; }
.rr-player__eq.is-playing span:nth-child(5) { animation-delay: -430ms; }

@keyframes rr-equalizer {
	from {
		transform: scaleY(0.65);
	}
	to {
		transform: scaleY(2.4);
	}
}

.rr-player__now {
	text-align: center;
}

.rr-player .rr-player__now-label {
	margin-bottom: 4px;
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
}

.rr-player .rr-player__station {
	min-height: 32px;
	margin-bottom: 18px;
	font-size: 1.16rem;
	font-weight: 780;
	overflow-wrap: anywhere;
}

/* Artist (big) + song title (below), from the now-playing feed. */
.rr-player .rr-player__station:has(+ .rr-player__track:not([hidden])) {
	min-height: 0;
	margin-bottom: 2px;
}

.rr-player .rr-player__track {
	min-height: 22px;
	margin: 0 0 18px;
	color: var(--wp--preset--color--muted);
	font-size: 0.92rem;
	overflow-wrap: anywhere;
}


.rr-player__controls {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 88px;
}

.rr-player__play {
	position: relative;
	width: 82px;
	height: 82px;
	display: grid;
	place-items: center;
	padding: 0;
	color: #041712;
	background: linear-gradient(145deg, #37e0c4, #17afcf);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 9px rgba(33, 214, 177, 0.07), 0 14px 30px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition:
		box-shadow 200ms ease,
		transform 120ms ease;
}

.rr-player__play:hover {
	box-shadow: 0 0 0 11px rgba(33, 214, 177, 0.11), 0 16px 36px rgba(0, 0, 0, 0.3);
}

.rr-player__play:active {
	transform: scale(0.97);
}

.rr-player__play svg {
	width: 38px;
	height: 38px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.1;
}

.rr-player__play .rr-player__icon-pause,
.rr-player__play[aria-pressed="true"] .rr-player__icon-play {
	display: none;
}

.rr-player__play[aria-pressed="true"] .rr-player__icon-pause {
	display: block;
}

.rr-player__volume {
	position: absolute;
	right: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--muted);
}

.rr-player__volume svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.rr-player__volume input {
	width: 76px;
	height: 44px;
	margin: 0;
	accent-color: var(--wp--preset--color--primary);
	cursor: pointer;
}

.rr-player .rr-player__status {
	min-height: 24px;
	margin: 14px 0 0;
	color: var(--wp--preset--color--muted);
	text-align: center;
	font-size: 0.78rem;
}

.rr-player .rr-player__status.is-error {
	color: var(--wp--preset--color--warning);
}

.rr-player .rr-player__contact {
	width: 100%;
	margin-top: 20px;
	padding: 12px 20px;
	color: var(--wp--preset--color--foreground-soft);
	background: rgba(17, 39, 58, 0.55);
	border: 1px solid var(--rr-border);
	border-radius: 15px;
	box-shadow: none;
	font-weight: 760;
}

.rr-player .rr-player__contact:hover {
	color: var(--wp--preset--color--foreground);
	background: rgba(26, 54, 77, 0.7);
	border-color: var(--rr-border-strong);
	box-shadow: none;
}

.rr-player__contact svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

/* ---------- Schedule block ---------- */

.rr-schedule {
	padding: clamp(22px, 4vw, 34px);
	background: rgba(14, 31, 48, 0.84);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius-lg);
	box-shadow: var(--rr-shadow-card);
}

.rr-schedule__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.rr-schedule__head > div {
	display: grid;
	gap: 5px;
}

.rr-schedule__kicker {
	color: var(--wp--preset--color--primary);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.rr-schedule__title {
	font-size: 1.2rem;
}

.rr-schedule__head > svg {
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--secondary);
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.rr-schedule__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rr-schedule__placeholder,
.rr-schedule__item {
	min-height: 72px;
	display: grid;
	grid-template-columns: 58px 1fr 64px;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding-block: 16px;
	border-top: 1px solid rgba(142, 190, 222, 0.12);
}

.rr-schedule__placeholder span {
	display: block;
	height: 11px;
	background: linear-gradient(90deg, rgba(141, 165, 186, 0.12), rgba(141, 165, 186, 0.2));
	border-radius: 99px;
}

.rr-schedule__ph-time {
	width: 48px;
}

.rr-schedule__ph-copy {
	width: min(100%, 260px);
}

.rr-schedule__ph-copy--short {
	width: min(70%, 180px);
}

.rr-schedule__ph-pill {
	width: 58px;
	justify-self: end;
}

.rr-schedule__time {
	color: var(--wp--preset--color--secondary);
	font-size: 0.95rem;
	font-weight: 760;
	font-variant-numeric: tabular-nums;
}

.rr-schedule__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	line-height: 1.35;
}

.rr-schedule__copy strong {
	font-weight: 700;
}

.rr-schedule__copy small {
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
}

.rr-schedule__tag {
	justify-self: end;
	padding: 4px 10px;
	color: var(--wp--preset--color--primary);
	background: rgba(33, 214, 177, 0.08);
	border: 1px solid rgba(33, 214, 177, 0.2);
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.rr-schedule .rr-schedule__note {
	margin: 18px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
}

/* ---------- Track list block (now playing + next) ---------- */

.rr-tracklist {
	padding: clamp(22px, 4vw, 34px);
	background: rgba(14, 31, 48, 0.84);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius-lg);
	box-shadow: var(--rr-shadow-card);
}

.rr-tracklist__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.rr-tracklist__head > div {
	display: grid;
	gap: 5px;
}

.rr-tracklist__kicker {
	color: var(--wp--preset--color--primary);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
}

.rr-tracklist__title {
	font-size: 1.2rem;
}

.rr-tracklist__head > svg {
	width: 30px;
	height: 30px;
	color: var(--wp--preset--color--secondary);
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.rr-tracklist__list {
	max-height: 456px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	scrollbar-width: thin;
	scrollbar-color: rgba(142, 190, 222, 0.25) transparent;
}

.rr-tracklist__item {
	min-height: 64px;
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px 10px;
	border-top: 1px solid rgba(142, 190, 222, 0.12);
}

.rr-tracklist__item:first-child {
	border-top: 0;
}

.rr-tracklist__item.is-now {
	background: linear-gradient(90deg, rgba(33, 214, 177, 0.12), rgba(33, 214, 177, 0.02));
	border: 1px solid rgba(33, 214, 177, 0.24);
	border-radius: 14px;
}

.rr-tracklist__item.is-now + .rr-tracklist__item {
	border-top: 0;
}

.rr-tracklist__time {
	color: var(--wp--preset--color--secondary);
	font-size: 0.92rem;
	font-weight: 760;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rr-tracklist__item.is-now .rr-tracklist__time {
	color: var(--wp--preset--color--primary);
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.rr-tracklist__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	line-height: 1.35;
}

.rr-tracklist__copy strong,
.rr-tracklist__copy small {
	/* Song names are shown in full, exactly as typed in the radio admin. */
	overflow-wrap: anywhere;
	text-transform: none;
	letter-spacing: normal;
	font-variant-ligatures: none;
	unicode-bidi: plaintext;
}

.rr-tracklist__copy strong {
	font-weight: 750;
}

.rr-tracklist__copy small {
	color: var(--wp--preset--color--muted);
	font-size: 0.84rem;
}

.rr-tracklist__eq {
	height: 18px;
	display: flex;
	align-items: flex-end;
	gap: 3px;
}

.rr-tracklist__eq span {
	width: 3px;
	height: 100%;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
	transform-origin: bottom;
	animation: rr-tracklist-eq 1s ease-in-out infinite;
}

.rr-tracklist__eq span:nth-child(2) {
	animation-delay: -0.35s;
}

.rr-tracklist__eq span:nth-child(3) {
	animation-delay: -0.7s;
}

@keyframes rr-tracklist-eq {
	0%,
	100% {
		transform: scaleY(0.3);
	}
	50% {
		transform: scaleY(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-tracklist__eq span {
		animation: none;
		transform: scaleY(0.7);
	}
}

.rr-tracklist .rr-tracklist__empty,
.rr-tracklist .rr-tracklist__note {
	margin: 18px 0 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
}

.rr-tracklist .rr-tracklist__empty {
	padding: 22px 0;
	font-size: 0.92rem;
	text-align: center;
}

@media (max-width: 600px) {
	.rr-tracklist__item {
		grid-template-columns: 52px 1fr auto;
		gap: 12px;
		padding-inline: 8px;
	}

	.rr-tracklist__list {
		max-height: 400px;
	}
}

/* Logo modes (Appearance → Radio Razom → Логотип). */
.rr-logo-icon .rr-brand .wp-block-site-title,
.rr-logo-icon .rr-brand .wp-block-site-tagline {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ---------- Footer ---------- */

.rr-footer {
	padding-block: 30px;
	color: var(--wp--preset--color--muted);
	border-top: 1px solid rgba(130, 177, 207, 0.12);
	font-size: 0.8rem;
}

.rr-footer__inner {
	gap: 24px;
}

.rr-footer p {
	margin: 0;
}

.rr-brand--footer .wp-block-site-title {
	font-size: 0.88rem;
}

/* ---------- Modal (contact dialog) ---------- */

.rr-modal {
	position: fixed;
	width: min(560px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 28px;
	overflow: auto;
	overscroll-behavior: contain;
	color: var(--wp--preset--color--foreground);
	background: linear-gradient(145deg, #132e43, #091826);
	border: 1px solid var(--rr-border-strong);
	border-radius: var(--rr-radius-lg);
	box-shadow: var(--rr-shadow-card);
}

.rr-modal::backdrop {
	background: rgba(3, 10, 18, 0.78);
}

.rr-modal__close {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 2;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	color: var(--wp--preset--color--foreground);
	background: rgba(7, 20, 31, 0.6);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius-sm);
	cursor: pointer;
}

.rr-modal__close:hover {
	background: var(--wp--preset--color--surface-raised);
	border-color: var(--rr-border-strong);
}

.rr-modal__close svg {
	width: 22px;
	height: 22px;
}

.rr-modal__body > * {
	margin-block: 0;
}

.rr-modal__body > * + * {
	margin-block-start: 16px;
}

.rr-modal__body > p.is-style-rr-kicker:first-child {
	padding-right: 56px;
	font-size: 0.66rem;
}

.rr-modal__body > p.is-style-rr-kicker + * {
	margin-block-start: 8px;
}

.rr-modal__body .rr-modal__title,
.rr-modal__body > h2:first-child {
	padding-right: 56px;
	font-size: clamp(1.65rem, 5vw, 2rem);
	line-height: 1.15;
	letter-spacing: -0.035em;
}

.rr-modal__body > .rr-modal__lead,
.rr-modal__body > .rr-modal__title + p {
	margin-block-start: 18px;
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	line-height: 1.6;
}

.rr-modal__body > .rr-contact-form,
.rr-modal__body > .gform_wrapper,
.rr-modal__body > .rr-form-placeholder,
.rr-modal__body > .gform_confirmation_wrapper {
	margin-block-start: 22px;
}

.rr-form-placeholder {
	padding: 16px 18px;
	color: var(--wp--preset--color--warning);
	background: rgba(255, 189, 112, 0.07);
	border: 1px dashed rgba(255, 189, 112, 0.4);
	border-radius: var(--rr-radius-sm);
	font-size: 0.88rem;
}

.rr-form-placeholder p {
	margin: 6px 0 14px;
}

.rr-form-placeholder.is-public {
	border-style: solid;
}

/* ---------- Inner pages ---------- */

.rr-main--page {
	padding-block: 72px var(--rr-section-y);
}

.rr-page-head {
	margin-bottom: 40px;
}

.rr-page-head > * + * {
	margin-block-start: 12px;
}

.rr-main--page .wp-block-post-featured-image img {
	border-radius: var(--rr-radius-lg);
}

.wp-block-post-template .is-style-rr-card {
	height: 100%;
	gap: 12px;
}

.wp-block-post-template .wp-block-post-title a {
	color: var(--wp--preset--color--foreground);
}

.wp-block-post-template .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

.wp-block-query-pagination {
	margin-top: 48px;
}

/* Pattern wrappers (blocks → sections): no extra spacing of their own. */
.rr-stack > :first-child {
	margin-block-start: 0;
}

.rr-stack > :last-child {
	margin-block-end: 0;
}

.rr-contact-cta {
	text-align: center;
}

.rr-contact-cta .rr-section-heading p:not([class*="is-style"]) {
	max-width: 560px;
	margin-inline: auto;
}

.rr-contact-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 28px;
}

/* 404 */
.rr-404 {
	position: relative;
	text-align: center;
	overflow: hidden;
}

.rr-404-message {
	position: relative;
	max-width: 760px;
	margin-inline: auto;
}

.rr-404 p.rr-404-code {
	margin: 0 0 8px;
	font-size: clamp(6.5rem, 22vw, 13rem);
	font-weight: 900;
	line-height: 0.9;
	letter-spacing: -0.06em;
	color: transparent;
	background: var(--wp--preset--gradient--text);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 18px 50px rgba(33, 214, 177, 0.22));
	user-select: none;
}

.rr-404 .rr-404-title {
	margin-top: 18px;
	font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.rr-404 p.is-style-rr-lead,
.rr-404 p.is-style-rr-eyebrow {
	margin-inline: auto;
}

.rr-404 p.is-style-rr-eyebrow {
	width: fit-content;
}

.rr-404 .wp-block-buttons {
	justify-content: center;
}

.rr-404::before {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: min(760px, 120vw);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border: 1px solid rgba(142, 190, 222, 0.08);
	border-radius: 50%;
	box-shadow: 0 0 0 90px rgba(142, 190, 222, 0.025), 0 0 0 180px rgba(142, 190, 222, 0.015);
	pointer-events: none;
}

.rr-main--page .wp-block-search__input,
.rr-main--page .wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.rr-main--page .wp-block-post-comments-form textarea {
	min-height: 48px;
	padding: 11px 13px;
	color: var(--wp--preset--color--foreground);
	background: rgba(4, 17, 28, 0.6);
	border: 1px solid var(--rr-border);
	border-radius: var(--rr-radius-sm);
	font: inherit;
}

.rr-main--page .wp-block-search__inside-wrapper {
	gap: 8px;
}

/* ---------- Mobile menu (core navigation overlay) ---------- */

.rr-nav .wp-block-navigation__responsive-container-open,
.rr-nav .wp-block-navigation__responsive-container-close {
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--foreground);
	background: rgba(80, 200, 255, 0.06);
	border: 1px solid rgba(130, 177, 207, 0.2);
	border-radius: 14px;
}

.rr-nav .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 13px;
	right: 16px;
	display: flex;
}

.rr-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 88px 20px max(24px, env(safe-area-inset-bottom));
	color: var(--wp--preset--color--foreground);
	background: #07101d !important;
}

.rr-nav .is-menu-open .wp-block-navigation__responsive-close,
.rr-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	position: static !important;
	margin-top: 0 !important;
}

.rr-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 0 !important;
}

.rr-nav .is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 6px !important;
	align-items: stretch !important;
}

.rr-nav .is-menu-open .wp-block-navigation-item {
	width: 100%;
}

.rr-nav .is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	box-sizing: border-box;
	justify-content: flex-start;
	min-height: 56px;
	padding: 0 18px !important;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--wp--preset--color--foreground);
	background: rgba(80, 200, 255, 0.05);
	border: 1px solid rgba(130, 177, 207, 0.12);
	border-radius: 16px;
}

/* backdrop-filter makes the header a containing block for position:fixed,
   which would trap the full-screen menu inside the header bar. */
.rr-header:has(.is-menu-open) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.admin-bar .rr-nav .wp-block-navigation__responsive-container.is-menu-open {
	top: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
	:root {
		--rr-section-y: 82px;
	}

	.wp-block-columns.is-style-rr-app-card {
		flex-wrap: wrap !important;
	}

	.is-style-rr-app-card > .rr-app-copy {
		flex: 1 1 calc(100% - 124px) !important;
	}

	.is-style-rr-app-card > .rr-app-action {
		flex-basis: 100% !important;
		width: auto;
		box-sizing: border-box;
		padding-left: 124px;
	}
}

@media (max-width: 799px) {
	:root {
		--rr-header-height: 72px;
	}

	/* Navigation collapses into a menu button (overlay) below 800px. */
	.rr-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.rr-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.rr-hero-copy,
	.rr-schedule-copy,
	.is-style-rr-app-card {
		text-align: center;
	}

	.is-style-rr-hero {
		min-height: auto;
		padding-top: 58px;
	}

	.rr-hero-copy p.is-style-rr-eyebrow,
	.rr-hero-copy p.is-style-rr-lead,
	.rr-schedule-copy p,
	.is-style-rr-app-card p {
		margin-inline: auto;
	}

	.rr-hero-copy .wp-block-buttons,
	.rr-hero-copy ul.is-style-rr-features,
	.is-style-rr-app-card .wp-block-buttons {
		justify-content: center;
	}

	.rr-hero-player .rr-player {
		width: min(100%, 540px);
		margin-inline: auto;
	}

	.is-style-rr-app-card > .rr-app-mark .wp-block-image {
		margin-inline: auto;
	}

	.is-style-rr-app-card > .rr-app-copy,
	.is-style-rr-app-card > .rr-app-action {
		flex-basis: 100% !important;
		padding-left: 0;
	}

	.rr-footer__inner {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 781px) {
	.wp-block-columns.is-style-rr-app-card > .rr-app-mark {
		flex-basis: 100% !important;
	}
}

@media (max-width: 560px) {
	:root {
		--rr-section-y: 68px;
	}

	.rr-brand .wp-block-site-tagline {
		display: none;
	}

	.rr-header__download .wp-block-button .wp-block-button__link {
		width: 46px;
		min-height: 46px;
		gap: 0;
		padding-inline: 0;
		font-size: 0;
	}

	.is-style-rr-hero h1:not([class*="font-size"]) {
		font-size: clamp(2.65rem, 14vw, 3.65rem);
	}

	.is-style-rr-hero .rr-actions {
		display: grid;
		grid-template-columns: 1fr;
	}

	.is-style-rr-hero .rr-actions .wp-block-button,
	.is-style-rr-hero .rr-actions .wp-block-button__link {
		width: 100%;
	}

	.rr-player {
		padding: 22px;
		border-radius: 30px;
	}

	.rr-player__topline {
		align-items: center;
	}

	.rr-player__badge {
		max-width: 100px;
		text-align: center;
	}

	.rr-player__artwork {
		width: min(78%, 250px);
		margin-top: 30px;
	}

	.rr-player__controls {
		padding-bottom: 54px;
	}

	.rr-player__volume {
		right: auto;
		bottom: 0;
	}

	.rr-schedule__placeholder,
	.rr-schedule__item {
		grid-template-columns: 44px 1fr auto;
		gap: 12px;
	}

	.rr-schedule__ph-time {
		width: 38px;
	}

	.rr-schedule__ph-pill {
		width: 42px;
	}

	.is-style-rr-section {
		padding-block: 60px;
	}

	.wp-block-columns.is-style-rr-app-card {
		padding: 28px 20px;
		border-radius: 24px;
	}

	.rr-modal {
		padding: 22px 18px;
		padding-bottom: max(22px, env(safe-area-inset-bottom));
		border-radius: 24px;
	}

	.rr-modal__close {
		top: 16px;
		right: 14px;
	}
}

@media (max-width: 374px) {
	.rr-brand .wp-block-site-title {
		font-size: 0.77rem;
		letter-spacing: 0.1em;
	}

	.rr-player__topline {
		display: grid;
	}

	.rr-player__badge {
		justify-self: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media (forced-colors: active) {
	p.is-style-rr-eyebrow::before {
		border: 1px solid currentColor;
	}

	.rr-gradient-text {
		color: inherit;
		background: none;
	}
}

/* Phones turned sideways: little height, so no full-screen hero and a slimmer header. */
@media (max-height: 520px) and (orientation: landscape) {
	:root {
		--rr-header-height: 64px;
		--rr-section-y: 56px;
	}

	.rr-brand {
		padding-block: 12px;
	}

	.is-style-rr-hero {
		min-height: auto;
		padding-top: 40px;
	}

	.is-style-rr-hero h1:not([class*="font-size"]) {
		font-size: clamp(2.2rem, 6vw, 3rem);
	}

	.rr-player__artwork {
		width: min(50%, 180px);
		margin-block: 20px 16px;
	}
}
