/*
Theme Name: Alma Mater
Theme URI: https://www.radioalmamater.bg
Author: Радио Alma Mater
Description: Тема за Радио Alma Mater (88 MHz, София) – плеър на живо, програма, предавания, новини и „Сега звучи“.
Version: 2.0.24
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary – © Радио Alma Mater. Всички права запазени.
License URI: https://www.radioalmamater.bg/
Text Domain: alma
*/

/*
 * © Радио Alma Mater. Всички права запазени.
 * Дизайнът и програмният код на тази тема са собственост на Радио Alma Mater
 * и не могат да се копират, разпространяват или използват без писмено разрешение.
 * Ползването на съдържанието на сайта е уредено в Общите условия (/obshti-usloviya/).
 * Шрифтовете Unbounded и Manrope са под SIL Open Font License; qrcode-generator е под MIT.
 */

/* ---------- Основа ---------- */
:root {
	--ink: #1A0F2E;
	--deep: #2A1650;
	--brand: #663391;
	--muted: #514866;
	--line: #DDD7E8;
	--bg: #F7F5FB;
	--soft: #D9CCF0;
	--lilac: #B794F6;
	--live: #FF6B4A;
	--white: #FFFFFF;
	--radius: 22px;
	--wrap: 1280px;
	--head: "Unbounded", system-ui, sans-serif;
	--body: "Manrope", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: 32px; }
.more { font-weight: 700; color: var(--brand); }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
/* 2.0.9: пулсира само докато радиото свири – безкрайната анимация караше телефона да прерисува 60 пъти в секунда и на пауза (батерия). */
html.is-playing .dot-live { animation: alma-pulse 1.6s infinite; }
@keyframes alma-pulse { 50% { opacity: 0.35; } }
@keyframes alma-eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Бутони */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 14px 22px; border-radius: 999px; min-height: 48px; border: 1.5px solid transparent; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--deep); color: var(--white); }
.btn--outline { border-color: var(--ink); }
.btn--brand { background: var(--brand); color: var(--white); border: 0; }
.btn--brand:hover { color: var(--white); filter: brightness(1.1); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--white); background: var(--c, var(--brand)); }
.chip:hover { color: var(--white); filter: brightness(1.12); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; color: var(--ct, var(--white)); font-size: 12px; font-weight: 700; background: var(--c, var(--brand)); }

/* Икони за пускане/пауза според състоянието на плеъра */
.ico-pause { display: none; }
html.is-playing .ico-play { display: none; }
html.is-playing .ico-pause { display: block; }
html.is-loading .ico-play { opacity: 0.5; }

/* ---------- Хедър ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s ease; }
.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 16px; padding-bottom: 16px; transition: padding 0.25s ease; }
.brand { display: flex; align-items: center; gap: 18px; flex: none; }
.brand__logo { width: 150px; height: 150px; transition: width 0.25s ease, height 0.25s ease; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; transition: font-size 0.25s ease; }
.brand__sub { font-size: 15px; color: var(--muted); font-weight: 600; }
.brand__freq { font-size: 16px; color: var(--brand); font-weight: 700; }
.main-nav { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 2px; }
.main-nav a { display: block; padding: 12px 8px; font-weight: 700; font-size: 16px; border-radius: 10px; white-space: nowrap; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav a[aria-current="page"] { color: var(--brand); background: #F1EAFB; }
.listen-btn { flex: none; margin-left: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: var(--white); border: 0; border-radius: 999px; padding: 14px 24px; min-height: 52px; font-weight: 700; font-size: 17px; }
.listen-btn:hover { filter: brightness(1.1); }
.listen-btn__ico { display: none; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; }
.site-header.is-compact { box-shadow: 0 4px 16px rgba(26, 15, 46, 0.08); }
.site-header.is-compact .site-header__in { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-compact .brand__logo { width: 80px; height: 80px; }
.site-header.is-compact .brand__name { font-size: 24px; }
.site-header.is-compact .brand__sub, .site-header.is-compact .brand__freq { display: none; }

@media (max-width: 1180px) {
	.brand__logo { width: 110px; height: 110px; }
	.brand__name { font-size: 28px; }
	.main-nav a { font-size: 15px; padding: 10px 8px; }
}
@media (max-width: 1220px) {
	.brand__logo { width: 104px; height: 104px; }
	.brand__name { font-size: 22px; }
	.brand__sub { font-size: 13px; }
	.brand__freq { font-size: 13px; }
	.menu-toggle { display: inline-flex; order: 3; flex: none; }
	.listen-btn { order: 2; margin-left: 0; padding: 12px 18px; min-height: 48px; font-size: 15px; }
	.brand { order: 1; flex: 1 1 0; min-width: 0; gap: 12px; }
	.brand__text { min-width: 0; }
	.brand__name, .brand__freq { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.main-nav { order: 4; flex-basis: 100%; display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; flex-wrap: wrap; }
	.main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-header.is-compact .brand__logo { width: 80px; height: 80px; }
	.site-header.is-compact .brand__name { font-size: 18px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 520px) {
	.listen-btn .listen-btn__label, .listen-btn .dot-live { display: none; }
	.listen-btn__ico { display: flex; }
	.listen-btn { padding: 0; width: 48px; justify-content: center; }
	.brand__sub { display: none; }
	.brand__logo { width: 88px; height: 88px; }
	.brand__name { font-size: 20px; }
	.brand__freq { font-size: 12px; }
	.brand { gap: 10px; }
	.site-header__in { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
	.site-header.is-compact .brand__logo { width: 80px; height: 80px; }
	.site-header.is-compact .brand__name { font-size: 17px; }
}

/* ---------- Начало: hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; padding-top: 64px; padding-bottom: 56px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero__title { font-weight: 800; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; white-space: pre-line; }
.hero__lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.chips, .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btns { gap: 12px; }

.onair { flex: 1 1 420px; min-width: 0; background: var(--deep); color: var(--white); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.onair a { color: var(--white); }
.onair__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.onair__badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.12); padding: 8px 12px; border-radius: 999px; }
.onair__time { font-weight: 600; font-size: 14px; color: var(--soft); }
.onair__show { font-size: 32px; }
.onair__hosts { font-size: 16px; color: var(--soft); margin-top: 8px; }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.eq span { flex: 1; border-radius: 4px; transform-origin: bottom; opacity: 0.85; }
html.is-playing .eq span { animation: alma-eq 0.9s ease-in-out infinite; opacity: 1; }
.np { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 12px; }
.np__cover { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--brand); }
.np__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); }
.np__title, .np__artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np__title { font-weight: 700; font-size: 18px; }
.np__artist { font-size: 14px; color: var(--soft); }
.onair__play { display: flex; align-items: center; gap: 20px; }
.bigplay { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 0; background: var(--white); color: var(--deep); display: flex; align-items: center; justify-content: center; }
.onair__state { font-weight: 700; font-size: 16px; }
.onair__next { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 14px; }
.onair__next span:first-child { color: var(--soft); }
.onair__next strong { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); display: inline-block; flex: none; }

/* ---------- Програма ---------- */
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.days button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; }
.days button[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sched[hidden] { display: none; }
.slot { border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.slot:hover { border-color: var(--c); color: var(--ink); }
.slot__time { align-self: flex-start; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 6px 12px; border-radius: 10px; background: var(--c, var(--brand)); color: var(--ct, var(--white)); }
.slot__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.slot__meta { font-size: 14px; opacity: 0.85; }
.slot.is-now { background: var(--c, var(--brand)); color: var(--ct, var(--white)); border-color: transparent; }
.slot.is-now .slot__time { background: var(--white); color: var(--cx, var(--c, var(--brand))); }
.empty { color: var(--muted); padding: 20px 0; }

/* ---------- Песни ---------- */
.tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
@media (max-width: 520px) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .hero { padding-top: 32px; gap: 32px; } .onair { padding: 24px; } .onair__show { font-size: 26px; } .section { padding-top: 48px; padding-bottom: 48px; } .app__art { height: 320px; } }
.track { display: flex; flex-direction: column; gap: 6px; }
.track img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: var(--soft); margin-bottom: 4px; }
.track__time { font-size: 14px; font-weight: 700; color: var(--muted); }
.track__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.track__artist { font-size: 14px; color: var(--muted); }

/* ---------- Предавания ---------- */
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.show-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.show-card:hover { color: var(--ink); border-color: var(--c); transform: translateY(-2px); transition: transform 0.15s ease; }
.show-card__tile { position: relative; height: 130px; /* 2.0.8: беше 170px */ padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ct, var(--white)); background: var(--c, var(--brand)); overflow: hidden; }
.show-card__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; mix-blend-mode: luminosity; }
.show-card__tile > span { position: relative; }
.show-card__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.show-card__name { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.15; }
.show-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.show-card__when { font-weight: 700; font-size: 14px; }
.show-card__who { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Новини ---------- */
.news { display: flex; flex-wrap: wrap; gap: 32px; }
.news__lead { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
.news__lead .thumb { height: 320px; }
.news__lead h3 { font-size: 24px; line-height: 1.2; }
.news__lead p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.news__list { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.news-row { display: flex; flex-direction: column; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.news-row:first-child { padding-top: 0; }
.news-row__meta, .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.news-row__title { font-weight: 700; font-size: 18px; line-height: 1.35; }
.thumb { width: 100%; border-radius: var(--radius); object-fit: cover; background: var(--c, #E9E4F1); }
.thumb--empty { display: flex; align-items: center; justify-content: center; }
.thumb--empty img { width: 96px; height: 96px; opacity: 0.9; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.card .thumb { height: 200px; }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- Приложение ---------- */
.app { background: #EFE8FA; border-top: 1px solid var(--line); }
.app__in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.app__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.app__icon { display: flex; align-items: center; gap: 16px; }
.app__icon img { width: 72px; height: 72px; border-radius: 18px; }
.app__tagline { margin-top: -6px; font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--brand); }
.app__title { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.app__lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; font-weight: 600; font-size: 16px; }
.features li { display: flex; align-items: center; gap: 10px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); border-radius: 14px; padding: 10px 20px 10px 16px; min-height: 56px; }
.store:hover { color: var(--white); background: var(--deep); }
.store small { display: block; font-size: 12px; color: var(--soft); line-height: 1.1; }
.store strong { display: block; font-size: 18px; line-height: 1.15; }
.store.is-soon { opacity: 0.75; }
.app__art { flex: 1 1 380px; min-width: 0; height: 400px; border-radius: 28px; background: var(--brand); overflow: hidden; position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 48px; }
.app__art .blob { position: absolute; border-radius: 50%; opacity: 0.9; }
.app__phone { position: relative; width: 210px; flex: none; border-radius: 32px; background: var(--ink); padding: 8px; box-shadow: 0 20px 40px rgba(26, 15, 46, 0.35); }
.app__phone img { border-radius: 25px; width: 100%; }

/* ---------- Лента „епизоди“ ---------- */
.band { background: var(--deep); color: var(--white); }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band__text { display: flex; flex-direction: column; gap: 14px; flex: 1 1 420px; }
.band h2 { font-size: 30px; }
.band p { font-size: 16px; color: var(--soft); }
.stripes { display: flex; gap: 6px; }
.stripes span { width: 28px; height: 6px; border-radius: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { color: var(--white); font-weight: 700; padding: 14px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.socials a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ---------- Футър ---------- */
.site-footer { background: var(--ink); color: var(--soft); }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--white); }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 40px; font-size: 14px; line-height: 1.6; padding-top: 56px; padding-bottom: 32px; }
.site-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.site-footer__col:first-child { flex-basis: 280px; gap: 10px; }
.site-footer__col strong { color: var(--white); }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__logo { width: 80px; height: 80px; flex: none; }
.site-footer__brand { display: flex; align-items: flex-start; gap: 18px; }
.site-footer__logolink { flex: none; line-height: 0; }
.site-footer__brandtext { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 90px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, 0.38); }
.site-footer__mark { display: inline-flex; flex: none; line-height: 0; color: var(--white); opacity: 0.22; transition: opacity 0.3s; }
.site-footer__mark:hover { opacity: 0.7; }
@media (max-width: 1220px) { .site-footer__logo { width: 80px; height: 80px; } }

/* ---------- Плеър долу ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.player__in { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.player__cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--brand); }
.player__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.player__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #FF8A70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__now { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { font-size: 14px; color: var(--soft); flex: none; }
.player__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; }
.player__vol { width: 96px; accent-color: var(--lilac); }
.player__err { font-size: 14px; color: #FFB4A3; }
@media (max-width: 640px) { .player__time, .player__vol { display: none; } }
body { padding-bottom: 72px; }

/* ---------- Вътрешни страници ---------- */
.page-head { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); }
.page-head p { font-size: 18px; color: var(--muted); max-width: 720px; }
.show-hero { background: var(--c, var(--brand)); color: var(--ct, var(--white)); }
.show-hero__in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.show-hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.show-hero__text h1 { font-size: clamp(34px, 4.6vw, 58px); }
.show-hero__when { display: flex; flex-wrap: wrap; gap: 8px; }
.show-hero__when span { background: rgba(255, 255, 255, 0.16); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.show-hero__img { flex: 0 1 420px; border-radius: var(--radius); overflow: hidden; }
.show-hero a { color: var(--ct, var(--white)); }
.layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.layout__main { flex: 999 1 560px; min-width: 0; }
.layout__side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font-size: 20px; }
.prose { font-size: 18px; line-height: 1.7; max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }

.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img, .prose figure { border-radius: 14px; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--lilac); font-style: italic; color: var(--muted); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.article-head { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.article-head h1 { font-size: clamp(30px, 4vw, 48px); }
.article-cover { margin-top: 32px; border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); background: var(--ink); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: 14px; }
.filters a.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; font: inherit; }
.notfound { text-align: center; padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.notfound h1 { font-size: clamp(36px, 6vw, 72px); }
.alignwide { max-width: 1100px; }
.alignfull { width: 100%; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); }

/* ---------- „За нас“ и „Екип“ (блокове в страниците) ----------
 * В класическа тема WordPress слага блока „Група“ в допълнителен
 * .wp-block-group__inner-container – затова правилата важат и за него. */
.prose:has(.team-grid), .prose:has(.about-grid) { max-width: none; }
.prose:has(.team-grid) > p, .prose:has(.about-grid) > p, .prose:has(.about-grid) > h2 { max-width: 760px; }
.prose .lead { font-size: 20px; color: var(--muted); }
.about-grid, .team-grid { margin: 32px 0 48px; }
.about-grid:not(:has(> .wp-block-group__inner-container)), .about-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.team-grid:not(:has(> .wp-block-group__inner-container)), .team-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.prose .about-grid *, .prose .team-grid * { margin-top: 0; }
.about-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 6px solid var(--c, var(--brand)); }
.about-card:nth-child(6n+1) { --c: #663391; } .about-card:nth-child(6n+2) { --c: #D1460B; } .about-card:nth-child(6n+3) { --c: #00806F; }
.about-card:nth-child(6n+4) { --c: #C4126F; } .about-card:nth-child(6n+5) { --c: #1F5FC4; } .about-card:nth-child(6n+6) { --c: #028228; }
.about-card h3 { font-size: 20px; margin: 0 0 10px; }
.about-card p { font-size: 16px; line-height: 1.6; margin: 0; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: 6px solid var(--c, var(--brand)); }
.team-card:nth-child(6n+1) { --c: #663391; } .team-card:nth-child(6n+2) { --c: #D1460B; } .team-card:nth-child(6n+3) { --c: #00806F; }
.team-card:nth-child(6n+4) { --c: #C4126F; } .team-card:nth-child(6n+5) { --c: #1F5FC4; } .team-card:nth-child(6n+6) { --c: #028228; }
.team-card figure, .team-card .wp-block-image { margin: 0; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 !important; }
.team-card h3 { font-size: 20px; margin: 0; padding: 20px 22px 4px; }
.team-card .team-role { color: var(--brand); font-weight: 700; font-size: 14px; margin: 0; padding: 0 22px 10px; }
.team-card p:not(.team-role) { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; padding: 0 22px 22px; }

/* ---------- Събития ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.event-card { display: flex; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); min-height: 120px; }
.event-card:hover { color: var(--ink); border-color: var(--c); }
.event-card__date { flex: none; width: 96px; background: var(--c, var(--brand)); color: var(--ct, var(--white)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.event-card__date strong { font-family: var(--head); font-size: 36px; line-height: 1; }
.event-card__date span { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.event-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-card__meta { font-size: 14px; font-weight: 700; color: var(--cx, var(--c, var(--brand))); }
.event-card__title { font-weight: 700; font-size: 18px; line-height: 1.3; }
.event-card__place { font-size: 14px; color: var(--muted); }
.events--past .event-card { opacity: 0.7; }
.events--past .event-card__date { background: var(--muted); }
@media (max-width: 520px) { .events { grid-template-columns: minmax(0, 1fr); } .event-card__date { width: 76px; } .event-card__date strong { font-size: 28px; } }

/* ---------- Телефон: по-малки заглавия ---------- */
@media (max-width: 820px) {
	.hero__title { font-size: 44px; }
	.app__title { font-size: 34px; }
}
@media (max-width: 520px) {
	.hero__title { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; }
	.app__title { font-size: 28px; }
	.app__tagline { font-size: 18px; }
}
@media (max-width: 520px) { .hero__lead { font-size: 16px; } }
@media (max-width: 400px) {
	.brand__logo { width: 72px; height: 72px; }
	.brand__name { font-size: 17px; }
	.brand__freq { font-size: 11px; }
	.site-header__in { gap: 8px; }
	.listen-btn, .menu-toggle { width: 44px; min-height: 44px; height: 44px; }
	.site-header.is-compact .brand__logo { width: 64px; height: 64px; }
	.site-header.is-compact .brand__name { font-size: 16px; }
}

/* Линкове към секция (/#prilozhenie, /#programa, #kontakt): да не се скрива под залепения хедър. */
html { scroll-padding-top: 110px; }
@media (max-width: 1220px) { html { scroll-padding-top: 90px; } }

/* „За нас“ и „Екип“: при посочване картата леко се повдига и рамката става в нейния цвят – като картите на предаванията. */
.about-card, .team-card { transition: transform 0.15s ease, border-color 0.15s ease; }
.about-card:hover, .team-card:hover { border-color: var(--c, var(--brand)); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .about-card:hover, .team-card:hover { transform: none; } }

/* ---------- „Стани част от Alma Mater“ ---------- */
.join-strip { background: var(--brand); color: var(--white); padding: 26px 0; }
.join-strip__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.join-strip__bars { display: flex; gap: 6px; flex: none; }
.join-strip__bars span { width: 8px; height: 40px; border-radius: 8px; }
.join-strip__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.join-strip__text h2 { font-size: 22px; line-height: 1.2; margin: 0; }
.join-strip__text p { margin: 0; font-size: 16px; color: #F1EAFB; }
.join-btn--ghost { border-color: rgba(255,255,255,0.5); color: var(--white); flex: none; }
.join-btn--ghost:hover { color: var(--white); border-color: var(--white); }
.prose .team-grid--join { margin-top: 28px; }
.prose .team-card--join, .prose .team-card--join * { text-decoration: none; }
.team-card--join { display: flex; flex-direction: column; border: 2px dashed #B9A8CF !important; color: var(--ink); text-decoration: none; }
.team-card--join:hover { color: var(--ink); border-color: var(--brand) !important; }
.team-card--join__pic { aspect-ratio: 1; background: #EFE7FA; display: flex; align-items: center; justify-content: center; }
.team-card--join__pic > span { width: 120px; height: 120px; border-radius: 50%; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; }
.team-card--join__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.prose .team-card--join__title { color: var(--ink); }
.team-card--join__title { font-family: var(--head); font-weight: 700; font-size: 20px; }
.team-card--join__text { font-size: 16px; line-height: 1.55; color: var(--muted); }
.team-card--join__go { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; font-size: 16px; }
.join-h2 { font-size: 28px; margin: 0 0 20px; }
.join-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 48px; }
.join-role { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--c, var(--brand)); border-radius: var(--radius); padding: 24px; transition: transform 0.15s ease, border-color 0.15s ease; }
.join-role:hover { border-color: var(--c, var(--brand)); transform: translateY(-2px); }
.join-role h3 { font-size: 20px; margin: 0 0 10px; }
.join-role p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.join-role--idea { border: 1px dashed #B9A8CF; }
.join-role--idea:hover { border-color: var(--brand); }
.join-steps { background: var(--deep); color: var(--white); border-radius: 28px; padding: 40px 44px; }
.join-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.join-steps li { display: flex; flex-direction: column; gap: 8px; }
.join-steps__n { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--white); }
.join-steps strong { font-size: 18px; }
.join-steps li > span:last-child { font-size: 16px; line-height: 1.55; color: #E3D8F1; }
.join-form { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; padding: 56px 0 80px; }
.join-form__intro { flex: 0 1 340px; }
.join-form__intro p { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
.join-form__box { flex: 1 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.join-form__box label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
.join-form__box input[type=text], .join-form__box input[type=email], .join-form__box textarea { font: inherit; font-weight: 500; font-size: 16px; border: 1.5px solid #D8CCE6; border-radius: 12px; padding: 12px 14px; background: var(--white); color: var(--ink); }
.join-form__box input:focus, .join-form__box textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.join-form__box textarea { resize: vertical; }
.join-form__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.join-form__box fieldset { border: 0; margin: 0; padding: 0; }
.join-form__box legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 10px; }
.join-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.join-form__box .join-chip { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D8CCE6; cursor: pointer; }
.join-chip input { accent-color: var(--c); width: 18px; height: 18px; }
.join-chip:has(input:checked) { background: var(--c); border-color: var(--c); color: var(--white); }
.join-chip:has(input:checked) input { accent-color: var(--white); }
.join-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.join-form__err { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-weight: 700; }
.join-form__done h3 { font-size: 24px; margin: 0; }
.join-form__done p { margin: 0; font-size: 18px; color: var(--muted); }
.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
	.join-steps { padding: 28px 22px; border-radius: 22px; }
	.join-form__box { padding: 20px; }
	.join-strip__bars { display: none; }
	.join-strip__text h2 { font-size: 19px; }
}

/* ---------- „Инсталирай Alma Mater“ (подкана на телефона) ---------- */
.install { position: fixed; left: 12px; right: 12px; bottom: 92px; z-index: 70; display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 10px 30px rgba(26, 15, 46, 0.28); animation: install-in 0.3s ease; }
.install img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.install__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.install__text strong { font-size: 14px; color: var(--ink); }
.install__go { flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: var(--white); font: inherit; font-weight: 700; font-size: 14px; }
.install__x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; }
@keyframes install-in { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .install { animation: none; } }
.install-link { display: none; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 18px; min-height: 48px; border: 1.5px dashed var(--brand); border-radius: 999px; background: transparent; color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.can-install .install-link { display: inline-flex; }

/* ---------- Мобилно приложение: табове и „На началния екран“ ---------- */
.app .wrap > .app__in { width: 100%; }
.app__in[hidden], .app-home[hidden] { display: none; }
.app__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.app__headline { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
.app-tabs { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.app-tab { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.app-tab:hover { background: #F3EDFB; }
.app-tab.is-on { background: var(--brand); color: var(--white); }
.app-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.app--tabs .app__title { font-size: clamp(28px, 3vw, 36px); }

.app-home { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.app-home__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.app-home__title { font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }
.app-home__btn { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--brand); color: var(--white); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.app-home__btn:hover { background: var(--deep); }
.app-home__note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.app-home__kicker { font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.app-steps { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.app-steps li { display: flex; gap: 14px; align-items: flex-start; }
.app-steps__n { width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.app-steps__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.app-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 700; }
.app-chip--blue { color: #0A63D6; }
.app-chip svg { flex: none; }
.app-chip__two { display: flex; flex-direction: column; line-height: 1.3; }
.app-chip__two small { font-size: 14px; font-weight: 600; color: var(--muted); }
.app-home__qr { align-self: flex-start; display: flex; align-items: center; gap: 16px; margin-top: 4px; padding: 12px 22px 12px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.app-home__qrcode { width: 96px; height: 96px; flex: none; border-radius: 8px; overflow: hidden; background: var(--white); }
.app-home__qrcode svg { display: block; width: 100%; height: 100%; }
.app-home__qrcode path { fill: #2A1650; }
.app-home__qrtext { display: flex; flex-direction: column; gap: 4px; max-width: 230px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.app-home__qrtext strong { font-size: 16px; color: var(--ink); }

/* Телефонът с началния екран. */
/* Същият размер като снимката на Alma Plus (440×840), за да сменя само екранчето, а телефонът да не мърда. */
.home-screen { aspect-ratio: 440 / 840; border-radius: 25px; background: #3B2A63; padding: 30px 14px 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.home-screen__time { text-align: center; color: #fff; font-family: var(--head); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.home-screen__grid, .home-screen__dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 8px; justify-items: center; }
.home-screen__grid i { width: 34px; height: 34px; border-radius: 10px; }
.home-screen__app { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; color: #fff; font-weight: 700; font-size: 12px; }
.home-screen__app > span { padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08); }
.home-screen__app img { display: block; width: 58px; height: 58px; border-radius: 15px; }
.home-screen__dock { margin-top: auto; gap: 10px; padding: 10px 6px; border-radius: 22px; background: rgba(255, 255, 255, 0.12); }
.home-screen__dock i { width: 30px; height: 30px; border-radius: 9px; }
.home-screen__tag { position: absolute; right: 36px; top: 250px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--white); color: var(--ink); border-radius: 14px; font-weight: 700; font-size: 14px; box-shadow: 0 10px 24px rgba(26, 15, 46, 0.25); }
.home-screen__tag svg { color: var(--brand); width: 18px; height: 18px; }

/* Какво се вижда според устройството (класовете ги слага малък скрипт в <head>). */
.app-home__android, .app-home__ios, .app-home__done { display: none; }
.pwa-phone .app-home__android, .pwa-ios .app-home__ios { display: block; }
.pwa-phone .app-home__qr, .pwa-ios .app-home__qr { display: none; }
.pwa-standalone .app-home__android, .pwa-standalone .app-home__ios, .pwa-standalone .app-home__qr { display: none; }
.pwa-standalone .app-home__done { display: block; font-weight: 700; color: var(--brand); }

@media (max-width: 720px) {
	.app-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
	.app-tab { padding: 0 10px; font-size: 14px; }
	.app-home { gap: 32px; }
	.app-home__btn { width: 100%; }
	.app-home__title { font-size: 26px; }
}
@media (max-width: 520px) {
	.home-screen__tag { right: 16px; top: 200px; font-size: 13px; padding: 8px 12px; }
}
/* Табовете: на широк екран двата панела са в една клетка, така височината е на по-високия и нищо не подскача. */
@media (min-width: 1000px) {
	.app__panels { display: grid; }
	.app__panels > .app-home, .app__panels > .app__in { grid-area: 1 / 1; }
	.app__panels > [hidden] { display: flex !important; visibility: hidden; } /* иначе общото [hidden] го маха изцяло */
}
/* По-тесен екран: картинката с телефона е най-отгоре в двата таба, за да не мърда при превключване. */
@media (max-width: 999px) {
	.app--tabs .app__art { order: -1; }
}
.app-home__note--safe { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.app-home__note--safe svg { flex: none; margin-top: 2px; color: #19C2A8; }

/* ---------- Цветове долу: тъмнолилава карта с телефона (като плейъра горе), бял блок, светла лента „Стани част“ ---------- */
.app__art { background: var(--deep); }
.app__phone { background: #120A22; box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 20px 40px rgba(10, 5, 20, 0.45); }
.home-screen { background: #4A3478; }
.join-strip { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.join-strip__text p { color: var(--muted); }
.join-strip .join-btn--ghost { border-color: var(--brand); color: var(--brand); }
.join-strip .join-btn--ghost:hover { background: var(--brand); color: var(--white); }
.app { background: var(--bg); border-top: 1px solid var(--line); } /* като „Току-що звучаха“ */
.join-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 0; }

/* Табовете: иконки и значка „Скоро“ (изчезва, щом има връзка към магазин). */
.app-tab { display: inline-flex; align-items: center; gap: 8px; }
.app-tab__ico { flex: none; }
.app-tab__app { width: 24px; height: 24px; border-radius: 6px; flex: none; }
.app-tab__soon { padding: 2px 8px; border-radius: 999px; background: #F7B500; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }
.app-tab.is-on .app-tab__app { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
@media (max-width: 720px) { .app-tab { justify-content: center; gap: 6px; white-space: nowrap; padding: 0 6px; font-size: 13px; } .app-tab__app { width: 22px; height: 22px; } .app-tab__soon { font-size: 10px; padding: 1px 6px; } }
@media (max-width: 380px) { .app-tab { gap: 4px; padding: 0 4px; font-size: 12px; } .app-tab__app { width: 20px; height: 20px; } }

.app-home__plus button { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.app-home__plus img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.app-home__plus button:hover { text-decoration: underline; }
.app-home__soon { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; font-size: 14px; }
.app-home__soon a { color: inherit; text-decoration: underline; }
/* Табовете като два отделни бутона: да е ясно, че са две различни неща. */
.app .app-tabs { background: transparent; border: 0; padding: 0; gap: 12px; }
.app .app-tab { border: 1.5px solid var(--ink); background: transparent; color: var(--ink); min-height: 48px; padding: 0 22px; } /* като „Всички предавания“ горе */
.app .app-tab.is-on { background: var(--brand); border-color: var(--brand); color: var(--white); }
.app .app-tab:not(.is-on):hover { background: rgba(26, 15, 46, 0.06); }
@media (max-width: 720px) { .app .app-tabs { gap: 10px; } .app .app-tab { padding: 0 8px; } }

/* ---------- „Каква беше тази песен?“ (/pesni/) ---------- */
.songs-page { padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.songs-find { position: relative; overflow: hidden; background: var(--deep); color: var(--white); border-radius: 28px; padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; }
.songs-find .eyebrow { color: var(--soft); }
.songs-find h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; max-width: 760px; }
.songs-find__lead { font-size: 18px; color: #E3D8F1; max-width: 640px; }
.songs-find__bars { position: absolute; right: 44px; top: 40px; display: flex; gap: 6px; align-items: flex-end; height: 56px; }
.songs-find__bars span { width: 10px; border-radius: 3px; }
.songs-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 10px; }
.songs-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--soft); }
.songs-form input, .songs-form select { min-height: 52px; border-radius: 14px; border: 0; padding: 0 14px; font: inherit; font-weight: 600; font-size: 16px; color: var(--ink); background: var(--white); width: 100%; box-sizing: border-box; }
.songs-form button { min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--white); color: var(--deep); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.songs-form button:hover { background: #F3EDFB; }
.songs-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--soft); }
.songs-quick a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.4); color: var(--white); }
.songs-quick a:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.songs-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.songs-results, .songs-side { display: flex; flex-direction: column; gap: 18px; }
.songs-results h2 { font-size: 24px; }
.songs-side h2 { font-size: 20px; }
.songs-empty { color: var(--muted); font-size: 18px; }
.song-best { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; gap: 22px; align-items: center; }
.song-best img { width: 150px; height: 150px; flex: none; border-radius: 16px; object-fit: cover; background: var(--soft); }
.song-best__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.song-best__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); }
.song-best__time { padding: 4px 10px; border-radius: 999px; background: var(--brand); color: var(--white); font-weight: 700; font-size: 14px; }
.song-best h3 { font-size: 28px; line-height: 1.15; }
.song-best__artist { font-size: 18px; font-weight: 600; color: var(--muted); }
.song-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.song-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 14px; }
.song-links a:hover { border-color: var(--brand); color: var(--brand); }
.songs-sub { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-top: 6px; }
.song-list, .song-top { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.song-list li { display: flex; gap: 16px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #EEEAF4; }
.song-list li:last-child, .song-top li:last-child a { border-bottom: 0; }
.song-list li.is-best { background: #F3EDFB; }
.song-list--days .song-list__time { min-width: 112px; }
@media (max-width: 600px) { .song-list--days li { flex-wrap: wrap; } .song-list--days .song-list__time { min-width: 0; width: 100%; font-size: 14px; } }
.song-list__time { min-width: 52px; flex: none; font-weight: 700; font-size: 14px; color: var(--muted); }
.song-list img, .song-top img { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; background: var(--soft); }
.song-list__name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.song-list__name strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-list__name span { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-list__go { font-weight: 700; font-size: 14px; color: var(--brand); flex: none; }
.songs-pager { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; }
.songs-pager a { color: var(--brand); }
.songs-pager a:only-child { margin-right: auto; }
.song-top { padding: 6px 0; }
.song-top a { display: flex; gap: 14px; align-items: center; padding: 10px 18px; color: var(--ink); }
.song-top a:hover { background: var(--bg); color: var(--ink); }
.song-top img { width: 40px; height: 40px; border-radius: 9px; }
.song-top__n { width: 22px; flex: none; font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--brand); }
.songs-help { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.songs-help p { font-size: 14px; color: var(--muted); }
.songs-help a { font-weight: 700; font-size: 14px; color: var(--brand); }
@media (max-width: 900px) {
	.songs-grid { grid-template-columns: minmax(0, 1fr); }
	.songs-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.songs-form__q, .songs-form button { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.songs-page { padding-top: 20px; gap: 28px; }
	.songs-find { padding: 24px 20px; border-radius: 24px; }
	.songs-find__bars { display: none; }
	.songs-find__lead { font-size: 16px; }
	.songs-quick { flex-wrap: nowrap; overflow-x: auto; }
	.songs-quick a { flex: none; }
	.song-best { gap: 14px; padding: 14px; align-items: flex-start; }
	.song-best img { width: 96px; height: 96px; border-radius: 14px; }
	.song-links { margin-top: 4px; }
	.song-links a { min-height: 40px; padding: 0 12px; font-size: 14px; }
	.song-best h3 { font-size: 22px; }
	.song-list li { gap: 12px; padding: 10px 14px; }
	.song-list__go { display: none; }
}

/* iPhone: полето за час да не излиза от мястото си */
.songs-form label { min-width: 0; }
.songs-form input[type="time"], .songs-form select { -webkit-appearance: none; appearance: none; min-width: 0; display: block; text-align: left; }
.songs-form input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.songs-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231A0F2E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
/* iPhone: часът в полето – вертикално в средата */
.songs-form input[type="time"] { height: 52px; line-height: 52px; padding-top: 0; padding-bottom: 0; }
.songs-form input[type="time"]::-webkit-date-and-time-value { margin: 0; line-height: 52px; }
.songs-form input[type="time"]::-webkit-datetime-edit { padding: 0; line-height: 52px; }
/* Началният екран в телефона: модерен Android – светъл тапет, иконки, „днес“ отгоре, док с тонови иконки. */
.home-screen { background: linear-gradient(165deg, #4A3478 0%, #7B4FB8 45%, #C77DBB 85%, #F2B5A0 120%); padding: 10px 12px 10px; gap: 12px; }
.home-screen__status { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 9px; padding: 0 4px; }
.home-screen__status b { font-weight: 700; }
.home-screen__status span { width: 26px; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }
.home-screen__date { color: #fff; font-family: var(--head); font-weight: 500; font-size: 13px; line-height: 1.2; padding: 4px 4px 2px; }
.home-screen__time { display: none; }
.home-screen__grid { gap: 12px 8px; }
.home-screen__grid i, .home-screen__dock i { display: flex; align-items: center; justify-content: center; }
.home-screen__grid i { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 2px 6px rgba(26, 15, 46, 0.18); }
.home-screen__grid svg { width: 18px; height: 18px; }
.home-screen__app { margin-top: 6px; }
.home-screen__dock { background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(4px); border-radius: 20px; padding: 8px 6px; }
.home-screen__dock i { width: 30px; height: 30px; border-radius: 50%; }
.home-screen__dock svg { width: 16px; height: 16px; }
.home-screen { gap: 10px; }
.home-screen__app { margin-top: 2px; gap: 4px; }
.home-screen__app img { width: 52px; height: 52px; border-radius: 14px; }
.home-screen__plus { width: 34px; height: 34px; border-radius: 11px; background: #663391; box-shadow: 0 2px 6px rgba(26, 15, 46, 0.18); }
.home-screen__dock { margin-top: 2px; }
.app__phone .home-screen__plus { border-radius: 11px; width: 34px; }
.home-screen__tag { top: 206px; }
@media (max-width: 520px) { .home-screen__tag { top: 206px; } }

/* ---------- Скала на заглавията (1.9.8) ----------
   Компютър: голямо заглавие 72 · секции 40 · „Сега в ефир“, лентата 32 · подзаглавия 28 · карти 24.
   Телефон (до 640px): голямо заглавие 36 · секции 28 · подзаглавия 24 · карти 22.
   Текст (Manrope): 12 · 14 · 16 · 18. Хедърът не е пипан. */
.section-head h2, .app__headline, .app__title { font-size: 40px; }
.app--tabs .app__title, .app-home__title { font-size: 28px; }
.band h2 { font-size: 32px; }
@media (max-width: 640px) {
	.section-head h2, .app__headline, .app__title { font-size: 28px; }
	.app--tabs .app__title, .app-home__title { font-size: 24px; }
	.band h2 { font-size: 26px; }
	.show-card__name, .news__lead h3 { font-size: 22px; }
}

.shows__all { margin-top: 28px; text-align: center; }

/* ---------- Търсене в новините (2.0.1, от 40 новини нагоре) ---------- */
.news-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.news-bar .filters { margin-bottom: 0; }
.news-search { position: relative; display: flex; align-items: center; flex: 0 1 340px; margin-left: auto; color: var(--muted); }
.news-search svg { position: absolute; left: 16px; pointer-events: none; }
.news-search input[type="search"] { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px 0 44px; font: 500 15px/1 var(--body); background: var(--white); color: var(--ink); }
.news-search input[type="search"]:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
@media (max-width: 640px) {
	.news-bar { flex-direction: column-reverse; align-items: stretch; }
	.news-search { flex-basis: auto; margin-left: 0; }
}

/* ---------- „Сподели този момент“ (2.0.1) ---------- */
.song-share { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: var(--white); font: 700 14px var(--body); white-space: nowrap; cursor: pointer; }
.song-share:hover { background: var(--deep); }
.song-list__share { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: var(--white); color: var(--muted); cursor: pointer; }
.song-list__share:hover { border-color: var(--brand); color: var(--brand); }
.song-share:focus-visible, .song-list__share:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.alma-toast { position: fixed; left: 50%; bottom: 104px; z-index: 1000; max-width: calc(100% - 32px); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 18px; background: var(--ink); color: var(--white); font: 600 15px var(--body); text-align: center; box-shadow: 0 10px 30px rgba(26, 15, 46, 0.3); transition: opacity 0.2s, transform 0.2s; }
.alma-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .song-share__long { display: none; } }

/* ---------- Таймер за заспиване в плеъра (2.0.1) ---------- */
.player__timer { position: relative; flex: none; }
.player__sleep { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: transparent; color: var(--white); font: 700 14px var(--body); font-variant-numeric: tabular-nums; cursor: pointer; }
.player__sleep:hover, .player__sleep[aria-expanded="true"] { border-color: rgba(255, 255, 255, 0.5); }
.player__sleep:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.player__sleep-left:empty { display: none; }
.has-sleep .player__sleep { background: rgba(255, 255, 255, 0.12); border-color: var(--lilac); color: var(--lilac); padding: 0 14px 0 12px; }
.player__sleep-menu { position: absolute; right: 0; bottom: calc(100% + 14px); width: 210px; padding: 8px; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 16px 40px rgba(10, 5, 20, 0.35); display: flex; flex-direction: column; gap: 2px; }
.player__sleep-menu[hidden] { display: none; }
.player__sleep-menu p { margin: 4px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.player__sleep-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 600 15px var(--body); text-align: left; cursor: pointer; }
.player__sleep-menu button:hover { background: var(--bg); }
.player__sleep-menu button.is-active { color: var(--brand); font-weight: 800; }
.player__sleep-menu button.is-active::after { content: "✓"; }
.player__sleep-menu .player__sleep-off { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--muted); font-size: 14px; }

/* ===================== 2.0.10: визия ===================== */
/* Жълто и лайм: тъмен текст върху цвета (--ct) и по-тъмен тон за текст на бял фон (--cx). */
[style*="--c:#F7B500"] { --ct: #1A0F2E; --cx: #7A5A00; }
[style*="--c:#84CC16"] { --ct: #1A0F2E; --cx: #3F6212; }
.show-hero[style*="--c:#F7B500"] .show-hero__when span, .show-hero[style*="--c:#84CC16"] .show-hero__when span { background: rgba(26, 15, 46, 0.1); }
/* Тъмно лилавото върху тъмната карта „Сега в ефир“: светъл кант на точката. */
.onair .swatch { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55); }

/* Рубриките под голямото заглавие: бели с цветна точка (цветът остава за картите). */
.hero .chip { background: var(--white); color: var(--ink); border: 1px solid var(--line); gap: 8px; }
.hero .chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); flex: none; }
.hero .chip:hover { color: var(--ink); border-color: var(--c, var(--brand)); filter: none; }

/* Бутоните: главното действие е лилаво, второстепенните – с тъмна рамка. */
.btn--dark { background: var(--brand); }
.btn--dark:hover { background: #55287A; }
.days button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); }
.join-strip .join-btn--ghost { border-color: var(--ink); color: var(--ink); }
.join-strip .join-btn--ghost:hover { background: var(--ink); color: var(--white); }

/* Телефон: „Сега в ефир“ веднага след заглавието, рубриките и бутоните – след нея. */
@media (max-width: 700px) {
	.hero__text { display: contents; }
	.hero > *, .hero__text > * { flex: 0 0 100%; max-width: 100%; }
	.hero .onair { order: 2; }
	.hero .chips-wrap { order: 3; }
	.hero .btns { order: 4; }
	.hero { gap: 20px; }

	/* 2.0.11: рубриките в един ред, който се плъзга; стрелка › вдясно и еднократно „побутване“. */
	.chips-wrap { position: relative; }
	.hero .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 2px 24px 4px; scroll-behavior: smooth; -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent 94%); mask-image: linear-gradient(90deg, #000 75%, transparent 94%); }
	.hero .chips::-webkit-scrollbar { display: none; }
	.hero .chips.is-end { -webkit-mask-image: none; mask-image: none; }
	.hero .chip { flex: none; min-height: 40px; padding: 8px 14px; white-space: nowrap; }
	/* 2.0.13: рисувана стрелка (точно в центъра), кръгът – подравнен по ръба на съдържанието и по реда с рубриките. */
	.chips-next { position: absolute; right: 0; top: 2px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); box-shadow: 0 4px 12px rgba(26, 15, 46, 0.15); display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; }
	.chips-next svg { display: block; flex: none; }
	.chips-next[hidden] { display: none; }
	.hero .chips.is-nudge { animation: chips-nudge 1.1s ease-in-out 0.6s 1; }
	@keyframes chips-nudge { 30% { transform: translateX(-44px); } 60% { transform: translateX(0); } }

	/* Двата бутона един до друг, еднакво широки. */
	.hero .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.hero .btns .btn { justify-content: center; padding: 12px 8px; min-height: 48px; font-size: 14px; white-space: nowrap; }
}
.chips-next { display: none; }
@media (max-width: 700px) { .chips-next:not([hidden]) { display: flex; } }
@media (prefers-reduced-motion: reduce) { .hero .chips.is-nudge { animation: none; } }

/* Екип: биографията до 5 реда, „Още ↓“ я отваря (player.js). */
.team-card.is-clamped p:not(.team-role) { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 6px; }
.team-more { display: inline-block; margin: 0 22px 22px; padding: 0; border: 0; background: none; font: 700 14px var(--body); color: var(--brand); cursor: pointer; }
.team-more:hover { text-decoration: underline; }

/* 2.0.14: заглавието в „Сега в ефир“ на телефон – 22 px и балансирани редове („По радиото с / Генчо Генчев“). */
@media (max-width: 520px) {
	.onair__show { font-size: 22px; text-wrap: balance; }
}
