/* ==========================================================================
   BrooklynFM — основные стили
   Переменные можно переопределить в дочерней теме (:root { ... }).
   ========================================================================== */

:root {
	--bfm-bg: #011a33;
	--bfm-bg-2: #002647;
	--bfm-surface: #0a3158;
	--bfm-surface-2: #123e69;
	--bfm-line: rgba(160, 196, 235, .14);
	--bfm-text: #f2f6fb;
	--bfm-muted: #9fb3ca;
	--bfm-accent: #cf0f74;
	--bfm-accent-ink: #fff;
	--bfm-glow-2: #7a2fd6;

	--bfm-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bfm-display: "Unbounded", "Manrope", system-ui, sans-serif;

	--bfm-radius: 20px;
	--bfm-radius-sm: 12px;
	--bfm-container: 1200px;
	--bfm-gutter: 16px;
	/* Шапка выше, если логотип крупнее обычного. */
	--bfm-header-h: max(68px, calc(44px * var(--bfm-logo-scale, 1) + 16px));
	--bfm-player-h: 72px;
	--bfm-ease: cubic-bezier(.2, .8, .2, 1);
}

@media (min-width: 768px) {
	:root { --bfm-gutter: 28px; --bfm-player-h: 80px; }
}

/* --- База --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bfm-bg);
	color: var(--bfm-text);
	font: 400 17px/1.6 var(--bfm-font);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--bfm-player-h) + env(safe-area-inset-bottom));
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--bfm-accent) 60%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--bfm-accent); }

h1, h2, h3, h4 { font-family: var(--bfm-display); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--bfm-accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 22px; height: 22px; flex: none; }

.muted { color: var(--bfm-muted); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--bfm-accent); color: var(--bfm-accent-ink); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--bfm-container); margin: 0 auto; padding: 0 var(--bfm-gutter); }
.container--narrow { max-width: calc(760px + var(--bfm-gutter) * 2); }
.container--wide { max-width: calc(1000px + var(--bfm-gutter) * 2); }

.section { padding: 28px 0; }
.section--tight { padding-top: 0; }
@media (min-width: 768px) { .section { padding: 44px 0; } }

.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__title { font-size: clamp(1.3rem, 3vw, 1.75rem); margin: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--bfm-muted); font-weight: 600; white-space: nowrap; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s var(--bfm-ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.bfm-empty { color: var(--bfm-muted); padding: 24px 0; }

/* --- Кнопки ------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--bfm-line);
	background: var(--bfm-surface); font-weight: 700; text-decoration: none; cursor: pointer;
	transition: transform .15s var(--bfm-ease), background .2s, border-color .2s;
}
.btn:hover { color: inherit; border-color: rgba(255, 255, 255, .2); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--bfm-accent); border-color: var(--bfm-accent); color: var(--bfm-accent-ink); }
.btn--accent:hover { color: var(--bfm-accent-ink); filter: brightness(1.08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .icon { width: 18px; height: 18px; }

/* Кнопка «Связаться со студией» в шапке: свой цвет и заливка из настроек. */
.hdr-contact {
	--c: var(--bfm-hdr-btn, var(--bfm-accent));
	background: color-mix(in srgb, var(--c) var(--bfm-hdr-fill, 100%), transparent);
	border: 1.5px solid var(--c); color: var(--bfm-text);
}
.hdr-contact .icon { color: var(--c); }
.hdr-contact.is-filled { color: var(--bfm-accent-ink); }
.hdr-contact.is-filled .icon { color: inherit; }
.hdr-contact:hover { background: var(--c); color: var(--bfm-accent-ink); filter: brightness(1.06); }
.hdr-contact:hover .icon { color: inherit; }

.icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	border: 0; background: transparent; cursor: pointer; color: var(--bfm-text);
}
.icon-btn:hover { background: var(--bfm-surface-2); }

.pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: var(--bfm-surface); border: 1px solid var(--bfm-line); font-size: 14px; font-weight: 600;
}

/* Мигающая точка «в эфире». */
.live-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bfm-accent);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--bfm-accent) 70%, transparent);
	animation: bfm-live 1.8s infinite;
	flex: none;
}
@keyframes bfm-live {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bfm-accent) 70%, transparent); }
	70% { box-shadow: 0 0 0 8px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

/* --- Шапка -------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 40; height: var(--bfm-header-h);
	background: color-mix(in srgb, var(--bfm-bg) 78%, transparent);
	backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
	border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--bfm-line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bfm-text); }
.brand:hover { color: var(--bfm-text); }
.brand__logo { width: calc(44px * var(--bfm-logo-scale, 1)); height: calc(44px * var(--bfm-logo-scale, 1)); object-fit: contain; }
.brand { min-width: 0; flex: 0 1 auto; }
.brand__logo { flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; gap: 2px; }
.brand__name { font-family: var(--bfm-display); font-weight: 800; font-size: calc(18px * var(--bfm-brand-scale, 1)); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tagline { font-size: calc(13px * var(--bfm-tagline-scale, 1)); color: var(--bfm-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { margin-left: auto; }
.nav__list, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav__list { display: flex; gap: 4px; }
.nav__list > li { position: relative; }
.nav a {
	display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	font-weight: 600; font-size: 15px; color: var(--bfm-muted); transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--bfm-text); background: var(--bfm-surface); }

/* Подменю. */
.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px; margin-top: 6px;
	background: var(--bfm-surface); border: 1px solid var(--bfm-line); border-radius: var(--bfm-radius-sm);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s var(--bfm-ease);
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { border-radius: 8px; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--bfm-surface); border-radius: 50%; cursor: pointer; place-items: center; }

@media (max-width: 960px) {
	.site-header__actions { margin-left: auto; }
	.burger { display: grid; }
	.nav {
		position: fixed; inset: var(--bfm-header-h) 0 auto 0; margin: 0;
		background: var(--bfm-bg); border-bottom: 1px solid var(--bfm-line);
		padding: 12px var(--bfm-gutter) 24px; max-height: calc(100dvh - var(--bfm-header-h)); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--bfm-ease);
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav a { font-size: 20px; padding: 14px 16px; border-radius: 14px; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 0 16px; margin: 0; }
	.nav .sub-menu a { font-size: 17px; }
}

/* Меню не помещается в строку: сворачиваем в кнопку, как на телефоне. */
.site-header.is-compact .site-header__actions { margin-left: auto; }
.site-header.is-compact .burger { display: grid; }
.site-header.is-compact .nav {
		position: fixed; inset: var(--bfm-header-h) 0 auto 0; margin: 0;
		background: var(--bfm-bg); border-bottom: 1px solid var(--bfm-line);
		padding: 12px var(--bfm-gutter) 24px; max-height: calc(100dvh - var(--bfm-header-h)); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--bfm-ease);
	}
.site-header.is-compact .nav.is-open { opacity: 1; visibility: visible; transform: none; }
.site-header.is-compact .nav__list { flex-direction: column; gap: 2px; }
.site-header.is-compact .nav a { font-size: 20px; padding: 14px 16px; border-radius: 14px; }
.site-header.is-compact .nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0 0 0 16px; margin: 0; }
.site-header.is-compact .nav .sub-menu a { font-size: 17px; }

@media (max-width: 560px) {
	.site-header__actions .btn span { display: none; }
	.site-header__actions .btn { width: 44px; height: 44px; padding: 0; min-height: 0; }
	.site-header__actions .btn .icon { width: 20px; height: 20px; }
	.brand__name { font-size: calc(16px * var(--bfm-brand-scale, 1)); }
	.brand__tagline { font-size: calc(11px * var(--bfm-tagline-scale, 1)); }
}

/* --- Главный экран ------------------------------------------------------ */

.hero { position: relative; padding: 28px 0 20px; overflow: hidden; isolation: isolate; }
@media (min-width: 900px) { .hero { padding: 56px 0 16px; } }

.hero__glow {
	position: absolute; inset: -30% -10% auto; height: 520px; z-index: -1; pointer-events: none;
	background:
		radial-gradient(40% 60% at 25% 40%, color-mix(in srgb, var(--bfm-accent) 35%, transparent), transparent 70%),
		radial-gradient(35% 55% at 80% 30%, color-mix(in srgb, var(--bfm-glow-2) 30%, transparent), transparent 70%);
	filter: blur(30px); opacity: .7;
}
html[data-state="playing"] .hero__glow { animation: bfm-breathe 6s ease-in-out infinite; }
@keyframes bfm-breathe { 50% { opacity: 1; transform: scale(1.05); } }

.hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; } }

/* Заголовок не шире своей колонки: «BrooklynFM» в Unbounded занимает около 7,4 своего кегля. */
.hero__text { container-type: inline-size; min-width: 0; }
.hero__title { font-size: min(calc(clamp(2.4rem, 8vw, 5.2rem) * var(--bfm-hero-scale, 1)), 100cqi / 7.6); overflow-wrap: break-word; font-weight: 800; letter-spacing: -.035em; margin: 18px 0 14px; line-height: 1; }
.hero__sub { font-size: calc(clamp(1.05rem, 2vw, 1.3rem) * var(--bfm-hero-sub-scale, 1)); color: var(--bfm-muted); max-width: 32ch; margin: 0 0 var(--bfm-hero-gap, 28px); }

.hero__actions { display: flex; align-items: center; gap: 18px; }
/* Вторая кнопка рядом со «Слушать»: контурная, чтобы главной оставалась «Слушать». */
/* Ведущие в эфире стоят над кнопкой связи; без кнопки (записная передача) — на том же месте. */
.hero__live { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.hero__live:not(:has(> :not([hidden]))) { display: none; }
.hosts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.host { --h: var(--bfm-host, 56px); width: calc(var(--h) + 22px); display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.host__ph { width: var(--h); height: var(--h); border-radius: 50%; overflow: hidden; display: grid; place-items: center;
	background: var(--bfm-surface); box-shadow: 0 0 0 2px var(--bfm-accent), 0 0 0 4px var(--bfm-bg);
	font-family: var(--bfm-display); font-weight: 700; font-size: calc(var(--h) * .36); color: var(--bfm-accent); }
/* Фото растянуто на весь кружок абсолютно: в сетке высота 100% не срабатывает, и вертикальное фото вылезало вниз без обрезки и сдвига. */
.host__ph { position: relative; }
.host__ph img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 20%; display: block; }
.host__name { font-size: clamp(12px, calc(var(--h) * .22), 16px); font-weight: 600; line-height: 1.2; max-width: 100%; overflow: hidden; overflow-wrap: anywhere;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero__contact { flex: none; background: transparent; border: 1.5px solid var(--bfm-accent); color: var(--bfm-text); }
.hero__contact .icon { color: var(--bfm-accent); }
.hero__contact:hover { background: var(--bfm-accent); color: var(--bfm-accent-ink); border-color: var(--bfm-accent); }
.hero__contact:hover .icon { color: inherit; }
@media (max-width: 560px) {
	.hero__actions { flex-wrap: wrap; }
	.hero__actions .hero__cta-text { flex: 1 1 0; }
	.hero__live { margin-left: 0; width: 100%; align-items: stretch; }
	.hosts { justify-content: flex-start; }
	.hero__contact { width: 100%; }
}
.hero__cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 0 1 auto; }
.hero__cta-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__cta-text strong { font-size: 19px; }

/* Большая кнопка «Слушать». */
.play-xl {
	position: relative; width: 88px; height: 88px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--bfm-accent); color: var(--bfm-accent-ink); display: grid; place-items: center;
	box-shadow: 0 12px 40px color-mix(in srgb, var(--bfm-accent) 45%, transparent);
	transition: transform .2s var(--bfm-ease);
}
.play-xl:hover { transform: scale(1.05); }
.play-xl:active { transform: scale(.96); }
.play-xl .icon { width: 36px; height: 36px; }
.play-xl:disabled { opacity: .4; cursor: not-allowed; }
.play-xl__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--bfm-accent); opacity: 0; }
html[data-state="playing"] .play-xl__ring { animation: bfm-ring 2s infinite; }
@keyframes bfm-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Карточка «Сейчас звучит». */
.np-card {
	background: var(--bfm-surface); border: 1px solid var(--bfm-line); border-radius: 28px; padding: 14px;
	display: grid; grid-template-columns: min(calc(var(--bfm-np-art, 120px) * .8), 34vw) 1fr; gap: 16px; align-items: center;
}
/* Размер обложки: Настроить → BrooklynFM → Главная. Карточка растёт вместе с ней. */
@media (min-width: 900px) { .np-card { grid-template-columns: min(var(--bfm-np-art, 120px), 50%) 1fr; gap: 6px 18px; padding: 16px; width: 100%; max-width: calc(var(--bfm-np-art, 120px) + 320px); justify-self: end; } }

.np-card__art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--bfm-surface-2); }
.np-card__art img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.np-card__art .eq { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 899px) { html[data-state] .np-card__art .eq { display: none; } }

.np-card__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 4px 4px; }
.np-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--bfm-accent); font-weight: 700; }
.np-card__title { font-family: var(--bfm-display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.np-card__artist { color: var(--bfm-muted); font-weight: 600; }

/* Отзвучавшие треки. */
.np-recent { grid-column: 1 / -1; border-top: 1px solid var(--bfm-line); padding: 10px 4px 0; margin-top: 6px; }
.np-recent__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.np-recent__list li { color: var(--bfm-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-recent__list li > span { display: inline-block; white-space: nowrap; }
.np-recent__list li.is-long { text-overflow: clip; }
.np-recent__list li.is-long > span { animation: bfm-marquee var(--dur, 10s) ease-in-out infinite; }
@keyframes bfm-marquee {
	0%, 15% { transform: translateX(0); }
	50%, 65% { transform: translateX(var(--shift, 0)); }
	100% { transform: translateX(0); }
}
.np-recent__list li.is-long:hover > span { animation-play-state: paused; }
.np-recent .np-card__label { color: var(--bfm-muted); }

/* Эквалайзер. */
.eq { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 100%; background: var(--bfm-accent); border-radius: 2px; transform-origin: bottom; animation: bfm-eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; }
.eq i:nth-child(5) { animation-delay: -.45s; }
.eq--lg { height: 28px; gap: 4px; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); box-sizing: content-box; }
.eq--lg i { width: 4px; }
html[data-state="playing"] .eq { display: flex; }
@keyframes bfm-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* --- Быстрые действия --------------------------------------------------- */

.quick { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quick { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

.quick__card {
	display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
	padding: 18px; border-radius: var(--bfm-radius); background: var(--bfm-surface); border: 1px solid var(--bfm-line);
	text-decoration: none; transition: transform .2s var(--bfm-ease), border-color .2s;
}
.quick__card:hover { color: inherit; transform: translateY(-2px); border-color: color-mix(in srgb, var(--bfm-accent) 50%, transparent); }
.quick__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--bfm-accent) 16%, transparent); color: var(--bfm-accent); }
.quick__card strong { font-size: 17px; }
.quick__card .muted { font-size: 15px; }

/* --- Сегодня в эфире ---------------------------------------------------- */

.today { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 calc(var(--bfm-gutter) * -1); padding-left: var(--bfm-gutter); padding-right: var(--bfm-gutter); scrollbar-width: none; }
.today::-webkit-scrollbar { display: none; }
.today__item {
	position: relative; flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px;
	padding: 16px; border-radius: var(--bfm-radius); background: var(--bfm-surface); border: 1px solid var(--bfm-line); text-decoration: none;
}
.today__item:hover { color: inherit; border-color: rgba(255, 255, 255, .2); }
.today__time { font-family: var(--bfm-display); font-weight: 700; font-size: 22px; }
.today__title { font-weight: 700; }
.today__host { font-size: 14px; }
.today__item.is-past { opacity: .45; }
.today__item.is-live, .schedule__item.is-live { border-color: var(--bfm-accent); background: color-mix(in srgb, var(--bfm-accent) 12%, var(--bfm-surface)); }

.schedule__live {
	display: none; position: absolute; top: 14px; right: 14px; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--bfm-accent);
}
.schedule__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: bfm-live 1.8s infinite; }
.is-live .schedule__live { display: inline-flex; }

/* --- Расписание (шорткод) ----------------------------------------------- */

.schedule__tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.schedule__tab {
	border: 1px solid var(--bfm-line); background: var(--bfm-surface); border-radius: 12px; padding: 10px 0; cursor: pointer; font-weight: 700; color: var(--bfm-muted);
}
.schedule__tab[aria-selected="true"] { background: var(--bfm-accent); border-color: var(--bfm-accent); color: var(--bfm-accent-ink); }
.schedule__tab-full { display: none; }
@media (min-width: 900px) { .schedule__tab-short { display: none; } .schedule__tab-full { display: inline; } }

.schedule__day { display: flex; flex-direction: column; gap: 8px; }
.schedule__item {
	position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center;
	padding: 16px; border-radius: var(--bfm-radius-sm); background: var(--bfm-surface); border: 1px solid var(--bfm-line); text-decoration: none;
}
.schedule__item:hover { color: inherit; border-color: rgba(255, 255, 255, .2); }
.schedule__time { font-family: var(--bfm-display); font-weight: 700; font-size: 15px; color: var(--bfm-muted); }
.schedule__info { display: flex; flex-direction: column; min-width: 0; padding-right: 70px; }
.schedule__title { font-weight: 700; font-size: 17px; }
.schedule__host { font-size: 14px; color: var(--bfm-muted); }
.schedule__item .schedule__live { top: 50%; transform: translateY(-50%); }
@media (max-width: 480px) { .schedule__item { grid-template-columns: 1fr; gap: 2px; } }

/* --- Карточки записей --------------------------------------------------- */

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.card { border-radius: var(--bfm-radius); background: var(--bfm-surface); border: 1px solid var(--bfm-line); overflow: hidden; transition: transform .25s var(--bfm-ease), border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .16); }
.card__link { display: block; text-decoration: none; height: 100%; }
.card__link:hover { color: inherit; }
.card__media { aspect-ratio: 16 / 10; background: var(--bfm-surface-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bfm-ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder {
	width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--bfm-display); font-size: 64px; font-weight: 800;
	color: color-mix(in srgb, var(--bfm-accent) 70%, transparent);
	background: radial-gradient(60% 80% at 30% 30%, color-mix(in srgb, var(--bfm-accent) 20%, transparent), transparent), var(--bfm-surface-2);
}
.card__body { padding: 18px 20px 22px; }
.card__title { font-size: 1.1rem; margin: 6px 0 8px; }
.card__excerpt { margin: 0; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.meta { font-size: 14px; color: var(--bfm-muted); font-weight: 600; }
.meta a { text-decoration: none; }

/* --- Страницы и записи -------------------------------------------------- */

.page-head { padding: 36px 0 24px; }
@media (min-width: 768px) { .page-head { padding: 64px 0 32px; } }
.page-head__title { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 0; }
.page-head__desc { margin-top: 12px; }
.page-head--center { text-align: center; padding: 80px 0; }
.huge { display: block; font-family: var(--bfm-display); font-weight: 800; font-size: clamp(5rem, 20vw, 10rem); line-height: 1; color: var(--bfm-accent); }

.entry__cover { margin-bottom: 32px; }
.entry__cover img { width: 100%; border-radius: var(--bfm-radius); }

.entry-content { font-size: 18px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.entry-content img, .entry-content figure { border-radius: var(--bfm-radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 14px; color: var(--bfm-muted); margin-top: 8px; }
.entry-content blockquote {
	margin-left: 0; padding: 18px 22px; border-left: 3px solid var(--bfm-accent);
	background: var(--bfm-surface); border-radius: 0 var(--bfm-radius-sm) var(--bfm-radius-sm) 0; font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content a { color: var(--bfm-accent); }
.entry-content hr { border: 0; border-top: 1px solid var(--bfm-line); margin: 2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--bfm-line); padding: 10px; text-align: left; }
.entry-content iframe { max-width: 100%; border-radius: var(--bfm-radius-sm); }
.entry-content .wp-block-button__link { background: var(--bfm-accent); color: var(--bfm-accent-ink); border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
.entry-content .alignwide { margin-left: min(-120px, calc((760px - 100vw) / 2 + var(--bfm-gutter))); margin-right: min(-120px, calc((760px - 100vw) / 2 + var(--bfm-gutter))); }
@media (max-width: 1000px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

.entry__foot { padding-top: 16px; padding-bottom: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tags a { padding: 6px 12px; border-radius: 999px; background: var(--bfm-surface); border: 1px solid var(--bfm-line); text-decoration: none; font-size: 14px; }
.post-nav { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--bfm-line); padding-top: 20px; }
.post-nav a { text-decoration: none; font-weight: 700; }
.post-nav__next { text-align: right; grid-column: 2; }

.show__head { display: flex; gap: 22px; align-items: center; }
.show__img img { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; }
.show__host { color: var(--bfm-muted); margin: 10px 0 0; font-weight: 600; }
@media (max-width: 560px) { .show__head { flex-direction: column; align-items: flex-start; } }

/* Пагинация. */
.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; background: var(--bfm-surface); border: 1px solid var(--bfm-line); text-decoration: none; font-weight: 700; }
.page-numbers.current { background: var(--bfm-accent); border-color: var(--bfm-accent); color: var(--bfm-accent-ink); }

/* Поиск. */
.search-form { display: flex; gap: 8px; margin-top: 20px; max-width: 520px; }
.search-form__input {
	flex: 1; min-width: 0; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--bfm-line);
	background: var(--bfm-surface); color: var(--bfm-text); font: inherit;
}

/* Комментарии и формы. */
.comments { padding: 32px 0; border-top: 1px solid var(--bfm-line); }
.comments__list { list-style: none; padding: 0; }
.comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--bfm-line); }
.comments__list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea {
	width: 100%; padding: 12px 16px; border-radius: var(--bfm-radius-sm); border: 1px solid var(--bfm-line);
	background: var(--bfm-surface); color: var(--bfm-text); font: inherit;
}
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }

/* --- Афиши и анонсы ------------------------------------------------------ */

.section--events { padding-top: 8px; }
.events {
	display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	margin: 0 calc(var(--bfm-gutter) * -1); padding: 2px var(--bfm-gutter) 8px; scroll-padding-inline: var(--bfm-gutter); scrollbar-width: none;
}
.events::-webkit-scrollbar { display: none; }
.event { flex: 0 0 220px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--bfm-text); }
@media (min-width: 900px) { .event { flex-basis: 240px; } }
a.event:hover { color: var(--bfm-text); }
.event__poster {
	position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--bfm-radius); overflow: hidden;
	background: var(--bfm-surface); border: 1px solid var(--bfm-line);
}
.event__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bfm-ease); }
a.event:hover .event__poster img { transform: scale(1.04); }
a.event:hover .event__poster { border-color: color-mix(in srgb, var(--bfm-accent) 60%, transparent); }
.event__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bfm-accent);
	background: radial-gradient(60% 60% at 30% 30%, color-mix(in srgb, var(--bfm-accent) 22%, transparent), transparent), var(--bfm-surface-2); }
.event__placeholder .icon { width: 48px; height: 48px; }
.event__when {
	position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
	background: var(--bfm-accent); color: var(--bfm-accent-ink); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.event__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.event__sub { font-size: 14px; line-height: 1.35; }

.strip-nav { display: flex; gap: 6px; }
.strip-nav__btn { border: 1px solid var(--bfm-line); }
.strip-nav__btn:disabled { opacity: .35; cursor: default; }
.strip-nav__btn[data-strip-prev] .icon { transform: rotate(180deg); }
@media (max-width: 640px) { .strip-nav { display: none; } }

/* --- Рекламные баннеры --------------------------------------------------- */

.ad-slot { padding: 12px 0 28px; }
.ad-slot--ads-footer { padding: 36px 0 0; }
.ad-slot__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px; }
.ad-slot__item { flex: 1 1 280px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-slot__item:only-child { flex-basis: auto; }
.ad-slot__item img { display: block; max-width: 100%; height: auto; border-radius: var(--bfm-radius-sm); }
.ad-slot__item a { display: block; transition: transform .2s var(--bfm-ease), opacity .2s; }
.ad-slot__item a:hover { transform: translateY(-2px); opacity: .95; }
.ad-slot__item figure { margin: 0; }
.ad-slot__item iframe, .ad-slot__item ins { max-width: 100%; }
.ad-slot__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--bfm-muted); }

/* --- Подвал ------------------------------------------------------------- */

.site-footer { margin-top: 48px; border-top: 1px solid var(--bfm-line); background: var(--bfm-bg-2); }
.site-footer__grid { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer__wide { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 32px; border-top: 1px solid var(--bfm-line); }
.site-footer__wide .widget-title { font-size: 1rem; margin: 0 0 12px; }
.site-footer__wide + .site-footer__wide { border-top: 0; padding-top: 0; }

/* Партнёры в подвале. */
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.partners__list a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px;
	background: var(--bfm-surface); border: 1px solid var(--bfm-line); color: var(--bfm-text); font-weight: 600; font-size: 15px;
	text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, transform .2s;
}
.partners__list a::after { content: "→"; flex: none; color: var(--bfm-accent); font-weight: 700; transition: transform .2s; }
.partners__list a:hover { color: var(--bfm-text); border-color: var(--bfm-accent); transform: translateY(-2px); }
.partners__list a:hover::after { transform: translateX(3px); }
@media (max-width: 560px) { .partners__list { grid-template-columns: 1fr 1fr; } .partners__list a { font-size: 14px; padding: 9px 12px; } }
.site-footer__brand p { max-width: 36ch; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--bfm-line); font-size: 14px; }

.footer-menu { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.footer-menu a { text-decoration: none; color: var(--bfm-muted); font-weight: 600; }
.footer-menu a:hover { color: var(--bfm-text); }

.widget-title { font-size: 1rem; }

.social { display: flex; gap: 8px; margin-top: 16px; }
.social__link { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bfm-surface); border: 1px solid var(--bfm-line); color: var(--bfm-muted); }
.social__link:hover { color: var(--bfm-text); border-color: rgba(255, 255, 255, .2); }
.social__link .icon { width: 20px; height: 20px; }

.apps { display: flex; flex-wrap: wrap; gap: 10px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 14px; background: var(--bfm-text); color: var(--bfm-bg); text-decoration: none; font-weight: 700; line-height: 1.1; }
.app-badge:hover { color: var(--bfm-bg); opacity: .9; }
.app-badge small { display: block; font-size: 11px; font-weight: 600; opacity: .7; }
.app-badge .icon { width: 24px; height: 24px; }

/* --- Окно связи --------------------------------------------------------- */

.contact {
	width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 48px); padding: 22px; border: 1px solid var(--bfm-line);
	border-radius: 26px; background: var(--bfm-surface); color: var(--bfm-text); overflow-y: auto;
}
.contact::backdrop { background: rgba(5, 6, 9, .7); backdrop-filter: blur(6px); }
.contact[open] { animation: bfm-pop .28s var(--bfm-ease); }
@keyframes bfm-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

@media (max-width: 560px) {
	.contact { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 26px 26px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
	.contact[open] { animation-name: bfm-sheet; }
	@keyframes bfm-sheet { from { transform: translateY(100%); } }
}

.contact__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact__head .live-dot { margin-bottom: 10px; }
.contact__title { font-size: 1.4rem; margin: 0 0 4px; }
.contact__head p { margin: 0; font-size: 15px; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact__item {
	display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bfm-surface-2);
	text-decoration: none; transition: background .2s;
}
.contact__item:hover { color: inherit; background: color-mix(in srgb, var(--bfm-accent) 14%, var(--bfm-surface-2)); }
.contact__item > .icon { margin-left: auto; color: var(--bfm-muted); width: 18px; height: 18px; }
.contact__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--bfm-accent) 16%, transparent); color: var(--bfm-accent); flex: none; }
.contact__text { display: flex; flex-direction: column; min-width: 0; }
.contact__text .muted { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Плеер -------------------------------------------------------------- */

.player {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	height: calc(var(--bfm-player-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	background: color-mix(in srgb, var(--bfm-bg-2) 86%, transparent);
	backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
	border-top: 1px solid var(--bfm-line);
}
.player::before {
	content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--bfm-accent);
	transition: width .6s var(--bfm-ease);
}
html[data-state="loading"] .player::before { width: 60%; animation: bfm-load 1.2s ease-in-out infinite; }
html[data-state="playing"] .player::before { width: 100%; opacity: .7; }
@keyframes bfm-load { 0% { left: 0; width: 0; } 50% { left: 20%; width: 60%; } 100% { left: 100%; width: 0; } }

.player__inner { height: var(--bfm-player-h); display: flex; align-items: center; gap: 14px; }

.player__btn {
	position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--bfm-accent); color: var(--bfm-accent-ink); display: grid; place-items: center;
	transition: transform .15s var(--bfm-ease);
}
.player__btn:active { transform: scale(.94); }
.player__btn:disabled { opacity: .4; cursor: not-allowed; }
.player__btn .icon { width: 24px; height: 24px; }

.player__ico { display: grid; place-items: center; grid-area: 1 / 1; }
.player__ico--pause { display: none; }
html[data-state="playing"] .player__ico--play { display: none; }
html[data-state="playing"] .player__ico--pause { display: grid; }
html[data-state="loading"] .player__ico { visibility: hidden; }

.player__spinner { grid-area: 1 / 1; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: currentColor; display: none; animation: bfm-spin .8s linear infinite; }
html[data-state="loading"] .player__spinner { display: block; }
@keyframes bfm-spin { to { transform: rotate(360deg); } }

.player__art { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--bfm-surface-2); flex: none; }

.player__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.player__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--bfm-accent); }
.player__badge .live-dot { width: 6px; height: 6px; }
html:not([data-state="playing"]) .player__badge .live-dot { animation: none; }
html[data-state="error"] .player__badge { color: #f5b041; }
.player__title, .player__artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__title { font-weight: 700; font-size: 15px; }
.player__artist { font-size: 14px; }

.player__volume { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .player__volume { display: flex; } }
.player__ico--mute { display: none; }
.player.is-muted .player__ico--vol { display: none; }
.player.is-muted .player__ico--mute { display: block; }
.player__volume input[type="range"] { width: 110px; accent-color: var(--bfm-accent); }

@media (max-width: 400px) {
	.player__art { display: none; }
}

/* Архив в плеере. */
.player__arc-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; flex: none;
	border-radius: 999px; border: 1px solid var(--bfm-line); background: var(--bfm-surface); cursor: pointer; font-weight: 700; font-size: 14px;
}
.player__arc-btn:hover { border-color: rgba(255, 255, 255, .2); }
.player__arc-btn .icon { width: 20px; height: 20px; }
@media (max-width: 560px) {
	.player__arc-btn { width: 44px; padding: 0; justify-content: center; }
	.player__arc-label { display: none; }
}

.player[data-mode="archive"] .player__badge { color: var(--bfm-text); }
.player[data-mode="archive"] .player__badge .live-dot { display: none; }
.player[data-mode="archive"] .player__artist { font-variant-numeric: tabular-nums; }
.player[data-mode="archive"] .player__arc-btn { border-color: var(--bfm-accent); color: var(--bfm-accent); }
.player[data-mode="archive"]::before { display: none; }

/* Полоса перемотки по верхнему краю плеера. */
.player__seek {
	-webkit-appearance: none; appearance: none; position: absolute; left: 0; right: 0; top: -9px; z-index: 2;
	width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer;
	--pct: 0%;
}
.player__seek::-webkit-slider-runnable-track {
	height: 4px; background: linear-gradient(to right, var(--bfm-accent) var(--pct), rgba(255, 255, 255, .14) var(--pct));
}
.player__seek::-moz-range-track { height: 4px; background: rgba(255, 255, 255, .14); }
.player__seek::-moz-range-progress { height: 4px; background: var(--bfm-accent); }
.player__seek::-webkit-slider-thumb {
	-webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; border: 0;
	background: var(--bfm-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bfm-accent) 25%, transparent);
}
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; border: 0; background: var(--bfm-accent); }

.archive__item { width: 100%; border: 0; cursor: pointer; text-align: left; color: var(--bfm-text); font: inherit; }
.archive__item .contact__icon .live-dot { width: 10px; height: 10px; }
.archive__now { display: none; margin-left: auto; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--bfm-accent); }
.archive__item.is-current { background: color-mix(in srgb, var(--bfm-accent) 14%, var(--bfm-surface-2)); }
.archive__item.is-current .archive__now { display: inline; }

/* Кнопка чата (плагин «BrooklynFM — чат со студией»). */
.player__chat-btn { background: var(--bfm-accent); border-color: var(--bfm-accent); color: var(--bfm-accent-ink); }
.player__chat-btn:hover { border-color: var(--bfm-accent); filter: brightness(1.08); }
.contact__list li:has(> [hidden]) { display: none; }

/* Плавное появление контента после перехода. */
.site-main.is-loading { opacity: .4; transition: opacity .15s; }
.site-main.is-entering { animation: bfm-enter .35s var(--bfm-ease); }
@keyframes bfm-enter { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	/* Длинные строки «Отзвучали» прокручиваются всегда, иначе их не прочитать. */
	.np-recent__list li.is-long > span { animation-duration: var(--dur, 10s) !important; animation-iteration-count: infinite !important; }
}
