/* ArrayFM — light, techy, colorful. */
:root {
	--ink: #14121f;
	--ink-2: #4a4760;
	--muted: #7a7790;
	--bg: #faf8ff;
	--surface: #ffffff;
	--line: #e7e3f5;
	--violet: #7c3aed;
	--pink: #f43f5e;
	--amber: #f59e0b;
	--cyan: #06b6d4;
	--lime: #84cc16;
	--grad: linear-gradient(120deg, var(--violet), var(--pink) 55%, var(--amber));
	--grad-cool: linear-gradient(120deg, var(--cyan), var(--violet));
	--r: 18px;
	--r-sm: 10px;
	--shadow: 0 1px 2px rgba(20, 18, 31, .04), 0 12px 32px -12px rgba(124, 58, 237, .18);
	--sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; padding-bottom: 104px;
	font: 17px/1.65 var(--sans); color: var(--ink);
	background:
		radial-gradient(circle at 1px 1px, rgba(124, 58, 237, .09) 1px, transparent 0) 0 0 / 28px 28px,
		var(--bg);
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.afm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.afm-section { padding-block: clamp(40px, 7vw, 88px); }
.afm-mono { font-family: var(--mono); font-size: .8em; letter-spacing: .02em; }
.afm-muted { color: var(--muted); }
.afm-kicker { color: var(--violet); font-weight: 600; margin: 0 0 .6em; }
.afm-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afm-skip { position: absolute; left: -999px; }
.afm-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.afm-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
	border: 0; border-radius: 99px; background: var(--grad); background-size: 150% 100%;
	color: #fff; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(244, 63, 94, .6); transition: background-position .4s, transform .2s;
}
.afm-btn:hover { color: #fff; background-position: 100% 0; transform: translateY(-1px); }
.afm-btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.afm-btn--ghost:hover { color: var(--violet); }
.afm-i { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.afm-header { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 255, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.afm-header__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.afm-logo { font: 700 24px/1 var(--sans); color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.afm-logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afm-logo__b { font-family: var(--mono); color: var(--violet); font-weight: 400; }
.afm-logo:hover { color: var(--ink); }
.afm-nav { margin-left: auto; }
.afm-menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; counter-reset: nav; }
.afm-menu a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 99px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.afm-menu li { counter-increment: nav; }
.afm-menu a:hover, .afm-menu .current-menu-item > a, .afm-menu .current_page_item > a { background: var(--ink); color: #fff; }
.afm-onair { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font: 600 11px/1 var(--mono); color: var(--pink); box-shadow: inset 0 0 0 1.5px currentColor; }
.afm-onair i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: afm-pulse 1.4s infinite; }
.afm-burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--ink); cursor: pointer; }
.afm-burger span, .afm-burger span::before, .afm-burger span::after { display: block; width: 18px; height: 2px; margin: auto; background: #fff; position: relative; transition: .2s; }
.afm-burger span::before, .afm-burger span::after { content: ''; position: absolute; }
.afm-burger span::before { top: -6px; } .afm-burger span::after { top: 6px; }
.afm-burger[aria-expanded="true"] span { background: transparent; }
.afm-burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.afm-burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.afm-burger { display: block; }
	.afm-onair { display: none; }
	.afm-nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; display: none; }
	.afm-nav.is-open { display: block; }
	.afm-menu { flex-direction: column; }
}

/* Page heads + cards */
.afm-pagehead { margin-bottom: 40px; max-width: 820px; }
.afm-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.afm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.afm-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(124, 58, 237, .35); }
.afm-card__art {
	display: grid; place-items: center; aspect-ratio: 16 / 9; color: #fff; font-size: 28px; text-decoration: none;
	background: linear-gradient(135deg, hsl(var(--h, 270) 85% 60%), hsl(calc(var(--h, 270) + 60) 90% 62%));
}
.afm-card__art img { width: 100%; height: 100%; object-fit: cover; }
.afm-card__body { padding: 18px 22px 22px; }
.afm-card__body p { margin: 0 0 8px; }
.afm-card__title { font-size: 1.3rem; margin: 4px 0 8px; }
.afm-card__title a { color: var(--ink); text-decoration: none; }
.afm-card__title a:hover { color: var(--violet); }

/* Pagination */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; font-family: var(--mono); }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--ink); color: #fff; }

/* Prose */
.afm-article { max-width: 860px; }
.afm-prose > * + * { margin-top: 1.1em; }
.afm-prose img, .afm-prose figure { border-radius: var(--r); }
.afm-prose blockquote { margin-inline: 0; padding: 16px 24px; border-left: 4px solid; border-image: var(--grad) 1; background: var(--surface); font-size: 1.15em; }
.afm-prose code { font-family: var(--mono); font-size: .88em; background: #f1edff; padding: 2px 6px; border-radius: 6px; }
.afm-prose pre { background: var(--ink); color: #e9e5ff; padding: 18px; border-radius: var(--r-sm); overflow: auto; }
.afm-prose pre code { background: none; padding: 0; }

.afm-404 { text-align: center; }
.afm-404 h1 { font-size: clamp(3rem, 12vw, 8rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.afm-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 40px; }
.afm-footer__in { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.afm-footer p { margin: 8px 0 0; }
.afm-footer__menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.afm-footer__menu a { color: var(--ink-2); text-decoration: none; }

/* Player */
.afm-player {
	position: fixed; left: 50%; bottom: 14px; z-index: 50; transform: translateX(-50%);
	width: min(860px, calc(100vw - 20px)); display: flex; align-items: center; gap: 14px;
	padding: 10px 16px 10px 10px; border-radius: 20px; color: #fff;
	background: rgba(20, 18, 31, .92); backdrop-filter: blur(14px);
	box-shadow: 0 16px 40px -10px rgba(20, 18, 31, .5), inset 0 0 0 1px rgba(255, 255, 255, .08);
	font-size: 14px; line-height: 1.35;
}
.afm-player__disc {
	flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	background: repeating-radial-gradient(circle, #1e1b2e 0 2px, #2a2640 2px 4px); position: relative;
	font: 700 10px var(--mono); animation: afm-spin 3s linear infinite paused;
}
.afm-player__disc span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); }
.afm-player.is-playing .afm-player__disc { animation-play-state: running; }
.afm-player__meta { flex: 1; min-width: 0; }
.afm-player__top { display: flex; align-items: center; gap: 8px; color: #c4b5fd; font-size: 11px; }
.afm-live { padding: 2px 7px; border-radius: 99px; background: var(--pink); color: #fff; font-weight: 600; font-size: 10px; letter-spacing: .08em; }
.afm-player.is-playing .afm-live { animation: afm-pulse 1.4s infinite; }
.afm-player__title { margin-top: 3px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afm-eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.afm-eq i { width: 4px; height: 5px; border-radius: 2px; background: linear-gradient(var(--amber), var(--pink), var(--violet)); }
.afm-player.is-playing .afm-eq i { animation: afm-eq .8s ease-in-out infinite alternate; }
.afm-eq i:nth-child(2) { animation-delay: -.3s !important; } .afm-eq i:nth-child(3) { animation-delay: -.6s !important; }
.afm-eq i:nth-child(4) { animation-delay: -.15s !important; } .afm-eq i:nth-child(5) { animation-delay: -.45s !important; }
.afm-eq i:nth-child(6) { animation-delay: -.7s !important; }
.afm-player__time { flex: none; width: 48px; text-align: right; color: #a5b4fc; font-variant-numeric: tabular-nums; }
.afm-player__play {
	flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center;
	background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 6px 18px -4px rgba(244, 63, 94, .7);
}
.afm-player__play .afm-i { width: 22px; height: 22px; }
.afm-player__play .is-pause, .afm-player.is-playing .afm-player__play .is-play { display: none; }
.afm-player.is-playing .afm-player__play .is-pause { display: block; }
.afm-player.is-loading .afm-player__play { animation: afm-pulse .8s infinite; }
.afm-player__vol { display: flex; align-items: center; gap: 6px; color: #a5b4fc; flex: none; }
.afm-player__vol input { width: 84px; accent-color: var(--pink); }
@media (max-width: 640px) {
	.afm-player__vol, .afm-eq, .afm-player__time { display: none; }
}

@keyframes afm-eq { from { height: 4px; } to { height: 26px; } }
@keyframes afm-pulse { 50% { opacity: .35; } }
@keyframes afm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Phase 2: front page, slider, ticker, schedule ---------- */
.afm-section--tight { padding-block: clamp(24px, 4vw, 48px); }
.afm-lead { font-size: 1.2rem; color: var(--ink-2); }
.afm-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.afm-sechead h2 { margin: 0; }
.afm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.afm-btn--light { background: #fff; color: var(--ink); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }
.afm-btn--light:hover { color: var(--violet); }
.afm-i.is-flip { transform: scaleX(-1); }
.afm-art { display: block; width: 100%; height: 100%; }
.afm-card__art { overflow: hidden; }
.afm-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* Slider */
.afm-slider { position: relative; }
.afm-slider__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.afm-slider__track::-webkit-scrollbar { display: none; }
.afm-slider__track > * { scroll-snap-align: start; flex: none; }
.afm-slider__ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.afm-slider__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.afm-slider__btn:hover { background: var(--ink); color: #fff; }
.afm-slider__dots { display: flex; gap: 8px; }
.afm-slider__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.afm-slider__dots button[aria-current="true"] { width: 28px; background: var(--grad); }

/* Hero */
.afm-hero { padding-top: 28px; }
.afm-slide {
	width: 100%; min-height: clamp(380px, 52vw, 520px); border-radius: 28px; color: #fff; position: relative; overflow: hidden;
	display: flex; align-items: center; padding: clamp(28px, 6vw, 72px);
	background:
		radial-gradient(circle at 85% 20%, hsl(calc(var(--h) + 60) 95% 60% / .9), transparent 45%),
		radial-gradient(circle at 10% 90%, hsl(calc(var(--h) - 40) 90% 55% / .8), transparent 50%),
		linear-gradient(135deg, hsl(var(--h) 80% 45%), hsl(calc(var(--h) + 30) 85% 35%));
}
.afm-slide::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .14) 1px, transparent 0) 0 0 / 22px 22px; pointer-events: none; }
.afm-slide__body { position: relative; z-index: 1; max-width: 620px; }
.afm-slide__kicker { display: inline-block; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 0 0 16px; }
.afm-slide__title { font-size: clamp(2.2rem, 5.5vw, 4.4rem); margin-bottom: .3em; }
.afm-slide p { font-size: 1.12rem; opacity: .92; }
.afm-slide__viz { position: absolute; right: 5%; bottom: 0; display: flex; align-items: flex-end; gap: 8px; height: 60%; opacity: .35; }
.afm-slide__viz i { width: 12px; border-radius: 6px 6px 0 0; background: #fff; height: 30%; animation: afm-viz 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -.15s); }
@keyframes afm-viz { from { height: 15%; } to { height: 95%; } }
@media (max-width: 700px) { .afm-slide__viz { right: -40px; opacity: .2; } }

/* Ticker */
.afm-ticker { margin-top: 28px; background: var(--ink); color: #fff; overflow: hidden; transform: rotate(-1deg); border-block: 3px solid; border-image: var(--grad) 1; }
.afm-ticker__track { display: flex; width: max-content; animation: afm-marquee 38s linear infinite; }
.afm-ticker span { padding: 14px 28px; font: 500 15px/1 var(--mono); white-space: nowrap; }
.afm-ticker b { color: var(--amber); }
@keyframes afm-marquee { to { transform: translateX(-50%); } }

/* On air now */
.afm-onair-now { display: grid; gap: 24px; grid-template-columns: 2fr 1fr; align-items: stretch; }
.afm-live-card { display: grid; grid-template-columns: 260px 1fr; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.afm-live-card__art { min-height: 220px; }
.afm-live-card__art svg { height: 100%; }
.afm-live-card__body { padding: 24px 28px; }
.afm-live-card__body h2 { margin-bottom: .3em; }
.afm-live-card__body p { margin: 0 0 10px; }
.afm-dj-line { display: flex; align-items: center; gap: 10px; }
.afm-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; color: #fff; font: 700 14px var(--mono); background: linear-gradient(135deg, hsl(var(--h) 85% 58%), hsl(calc(var(--h) + 70) 90% 60%)); }
.afm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.afm-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.afm-stats b { font-size: 2.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afm-stats span { color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) {
	.afm-onair-now { grid-template-columns: 1fr; }
	.afm-live-card { grid-template-columns: 1fr; }
	.afm-live-card__art { min-height: 0; aspect-ratio: 16 / 7; }
	.afm-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 520px) { .afm-stats { grid-template-columns: 1fr 1fr; } }

/* DJs */
.afm-djs { background: linear-gradient(180deg, transparent, #f1ecff 20%, #f1ecff 80%, transparent); }
.afm-slider--cards .afm-slider__track { padding: 6px 2px 10px; }
.afm-dj { width: min(280px, 78vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.afm-dj .afm-avatar { width: 72px; height: 72px; font-size: 22px; margin-bottom: 16px; }
.afm-dj h3 { margin: 0; font-size: 1.25rem; }
.afm-dj__handle { color: var(--violet); margin: 2px 0 10px; }
.afm-dj p:last-child { margin: 0; color: var(--ink-2); }

/* CTA */
.afm-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.afm-cta::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .55; }
.afm-cta > * { position: relative; }
.afm-cta h2 { margin: 0 0 .3em; }
.afm-cta p { margin: 0; opacity: .85; }
.afm-cta .afm-kicker { color: var(--amber); }

/* Tabs + lineup */
.afm-tabs__list { display: flex; gap: 6px; overflow-x: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; scrollbar-width: none; }
.afm-tabs__list button { flex: 1 0 auto; padding: 10px 16px; border: 0; border-radius: 12px; background: none; font: 600 15px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.afm-tabs__list button .afm-mono { color: var(--muted); font-weight: 400; }
.afm-tabs__list button em { font: normal 10px var(--mono); color: var(--pink); vertical-align: super; }
.afm-tabs__list button[aria-selected="true"] { background: var(--ink); color: #fff; }
.afm-tabs__list button[aria-selected="true"] .afm-mono { color: #c4b5fd; }
.afm-tabs__panel { margin-top: 20px; animation: afm-fade .3s; }
@keyframes afm-fade { from { opacity: 0; transform: translateY(6px); } }
.afm-lineup { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.afm-lineup__row { display: grid; grid-template-columns: 150px 1fr 190px 120px; gap: 16px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.afm-lineup__row.is-live { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.afm-lineup__time { color: var(--violet); font-weight: 600; }
.afm-lineup__show { display: flex; flex-direction: column; }
.afm-lineup__show .afm-muted { font-size: .92rem; }
.afm-lineup__dj { display: flex; align-items: center; gap: 8px; }
.afm-lineup__dj .afm-avatar { width: 30px; height: 30px; font-size: 11px; }
.afm-tag { justify-self: end; padding: 4px 10px; border-radius: 99px; background: #f1edff; color: var(--violet); }
.is-live .afm-tag { background: var(--pink); color: #fff; }
@media (max-width: 800px) {
	.afm-lineup__row { grid-template-columns: 1fr auto; }
	.afm-lineup__time { grid-column: 1 / -1; }
	.afm-lineup__dj { grid-row: 3; }
}
.afm-lineup__show a { color: var(--ink); text-decoration: none; }
.afm-lineup__show a:hover { color: var(--violet); }

/* ---------- Phase 3: shows, DJs, posts, form ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.afm-kicker a { color: inherit; text-decoration: none; }
.afm-onair-now h2 a { color: var(--ink); text-decoration: none; }
.afm-onair-now h2 a:hover { color: var(--violet); }

/* Filter chips (buttons or links) */
.afm-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.afm-filter > * { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13px var(--mono); text-decoration: none; cursor: pointer; }
.afm-filter > :hover { border-color: var(--violet); color: var(--violet); }
.afm-filter [aria-pressed="true"], .afm-filter [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.afm-card[hidden] { display: none; }
.afm-dj-line--sm { margin-top: 12px !important; }
.afm-dj-line--sm .afm-avatar { width: 28px; height: 28px; font-size: 10px; }

/* Search */
.afm-search { display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 24px 0; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); }
.afm-search:focus-within { border-color: var(--violet); }
.afm-search__prompt { color: var(--pink); font-weight: 600; }
.afm-search input { flex: 1; min-width: 0; border: 0; background: none; font: 16px var(--sans); color: var(--ink); outline: 0; }
.afm-search .afm-btn { padding: 10px 18px; }

/* Show hero */
.afm-showhero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(32px, 5vw, 64px); }
.afm-showhero__art { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(124, 58, 237, .6); transform: rotate(-2deg); }
.afm-showhero__art svg { height: 100%; }
.afm-hostlink { text-decoration: none; color: var(--ink); display: inline-flex; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.afm-hostlink:hover { color: var(--ink); border-color: var(--violet); }
@media (max-width: 800px) { .afm-showhero { grid-template-columns: 1fr; } .afm-showhero__art { transform: none; } }

/* Two-column layout with sticky sidebar */
.afm-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.afm-layout--post { padding-bottom: 32px; }
.afm-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.afm-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.afm-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.afm-slots li { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.afm-slots a { color: var(--ink); text-decoration: none; }
.afm-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.afm-toc li { counter-increment: toc; }
.afm-toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; line-height: 1.35; text-decoration: none; }
.afm-toc a:hover { background: #f1edff; }
.afm-toc a.is-active { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .afm-layout { grid-template-columns: 1fr; } .afm-side { position: static; } }
.afm-prose h2 { margin-top: 1.8em; scroll-margin-top: 90px; }
.afm-prose h3 { margin-top: 1.4em; }
.afm-prose ul, .afm-prose ol { padding-left: 1.3em; }
.afm-prose li::marker { color: var(--pink); }
.afm-prose figure { margin-inline: 0; }

/* Post head */
.afm-posthead { max-width: 960px; padding-bottom: 32px; }
.afm-posthead h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.afm-posthead__art { margin-top: 28px; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 8; }
.afm-posthead__art svg, .afm-posthead__art img { width: 100%; height: 100%; object-fit: cover; }
.afm-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.afm-tags a { padding: 4px 10px; border-radius: 99px; background: #f1edff; text-decoration: none; }
.afm-tags a::before { content: '#'; }
.afm-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.afm-postnav a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.afm-postnav a:hover { border-color: var(--violet); }
.afm-postnav .is-next { grid-column: 2; text-align: right; }

/* Episodes */
.afm-episode { width: min(260px, 70vw); }
.afm-episode svg { border-radius: 14px; aspect-ratio: 16 / 9; height: auto; }
.afm-episode p { margin: 10px 0 2px; }
.afm-episode h3 { font-size: 1.05rem; margin: 0; }

/* DJs */
.afm-grid--djs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.afm-grid--djs .afm-dj { width: auto; }
.afm-dj--link { color: var(--ink); text-decoration: none; transition: transform .25s, border-color .25s; }
.afm-dj--link:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--violet); }
.afm-dj h2 { margin: 0; font-size: 1.3rem; }
.afm-djhero { display: flex; align-items: center; gap: 32px; margin-bottom: 48px; }
.afm-djhero .afm-avatar { width: clamp(110px, 16vw, 180px); height: clamp(110px, 16vw, 180px); font-size: clamp(34px, 5vw, 56px); box-shadow: 0 24px 50px -20px rgba(124, 58, 237, .6); }
.afm-djhero h1 { margin-bottom: .2em; }
@media (max-width: 640px) { .afm-djhero { flex-direction: column; align-items: flex-start; } }

/* Request form */
.afm-contact-intro { max-width: 760px; margin-bottom: 40px; }
.afm-request { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.afm-form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.afm-form h2 { margin: 0; }
.afm-form .afm-kicker { margin: 0; }
.afm-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.afm-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.afm-form input, .afm-form select, .afm-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font: 16px var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.afm-form input:focus, .afm-form select:focus, .afm-form textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.afm-form .afm-btn { justify-self: start; }
.afm-hp { position: absolute; left: -9999px; }
.afm-notice { padding: 12px 16px; border-radius: 12px; font-weight: 500; }
.afm-notice.is-ok { background: #ecfccb; color: #3f6212; }
.afm-notice.is-err { background: #ffe4e6; color: #9f1239; }
.afm-wall { padding: 28px; border-radius: 24px; background: var(--ink); color: #fff; }
.afm-wall .afm-kicker { color: var(--amber); margin: 0 0 4px; }
.afm-wall ol { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.afm-wall li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; gap: 2px; }
.afm-wall .afm-muted { color: #a5a2bd; }
@media (max-width: 860px) { .afm-request, .afm-form__row { grid-template-columns: 1fr; } }

/* ---------- Phase 3b: feature demos, motion, dropdown, shop ---------- */

/* Motion: scroll reveal (only once JS is running) */
.afm-js [data-reveal] { opacity: 0; translate: 0 34px; scale: .96; transition: opacity .6s ease, translate .8s cubic-bezier(.2, .8, .2, 1.25), scale .8s cubic-bezier(.2, .8, .2, 1.25), transform .25s, box-shadow .25s, border-color .25s; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s, 0s; }
.afm-js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }
.afm-card:hover, .afm-feat:hover, .afm-station:hover { transition-delay: 0s; }

/* Floating decorative shapes */
.afm-pagehead, .afm-feathero, .afm-shop { position: relative; }
.afm-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.afm-deco i { position: absolute; display: block; animation: afm-float 9s ease-in-out infinite; }
.afm-deco i:nth-child(1) { width: 90px; height: 90px; right: 8%; top: 12%; border-radius: 50%; background: var(--grad); opacity: .85; }
.afm-deco i:nth-child(2) { width: 54px; height: 54px; right: 24%; top: 58%; border-radius: 14px; background: var(--cyan); transform: rotate(18deg); animation-delay: -3s; animation-duration: 11s; }
.afm-deco i:nth-child(3) { right: 4%; top: 64%; width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid var(--amber); animation-delay: -6s; }
.afm-deco i:nth-child(4) { right: 17%; top: 6%; font: 700 64px/1 var(--mono); color: var(--violet); opacity: .25; animation-duration: 13s; }
.afm-deco i:nth-child(4)::before { content: '[ ]'; }
@keyframes afm-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(12deg); } }
.afm-pagehead > :not(.afm-deco), .afm-feathero__in, .afm-shop > :not(.afm-deco) { position: relative; z-index: 1; }
@media (max-width: 700px) { .afm-deco i { transform: scale(.6); opacity: .5 !important; } .afm-deco i:nth-child(1) { right: -20px; } }

/* Gradient text shimmer */
.afm-grad-text { background-size: 200% 100%; animation: afm-shimmer 6s linear infinite; }
@keyframes afm-shimmer { to { background-position: 200% 0; } }

/* Dropdown menu */
.afm-menu li { position: relative; }
.afm-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 8px); left: 50%; z-index: 60; width: 540px; transform: translate(-50%, 8px); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(20, 18, 31, .35); opacity: 0; visibility: hidden; transition: .2s; counter-reset: sub; }
.afm-menu .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.afm-menu li:hover > .sub-menu, .afm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.afm-menu .sub-menu li { counter-increment: sub; }
.afm-menu .sub-menu a { border-radius: 10px; font-size: 14px; padding: 8px 10px; white-space: normal; }
.afm-menu .sub-menu a:hover, .afm-menu .sub-menu .current-menu-item > a { background: #f1edff; color: var(--violet); }
.afm-menu .menu-item-has-children > a::after { content: ' ▾'; font-size: 11px; }
.afm-menu .current-menu-ancestor > a { background: var(--ink); color: #fff; }
.afm-cartlink { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 99px; background: #f1edff; text-decoration: none; color: var(--ink); }
@media (min-width: 861px) and (max-width: 1180px) { .afm-onair { display: none; } .afm-menu a { padding: 8px 9px; } }
@media (max-width: 860px) {
	.afm-cartlink { margin-left: auto; }
	.afm-burger { margin-left: 8px; }
	.afm-nav { max-height: calc(100vh - 68px); overflow-y: auto; }
	.afm-menu .sub-menu { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 4px 0 8px 12px; background: none; grid-template-columns: 1fr 1fr; }
}

/* Badges, pills, status lines */
.afm-badge { display: inline-block; vertical-align: middle; padding: 3px 9px; border-radius: 99px; font: 600 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.afm-badge.is-free { background: #ecfccb; color: #3f6212; }
.afm-badge.is-pro { background: var(--grad); color: #fff; }
h1 .afm-badge { font-size: 14px; transform: translateY(-.4em) rotate(-4deg); }
.afm-status { display: flex; gap: 8px; align-items: baseline; padding: 12px 16px; border-radius: 12px; font-size: .95rem; }
.afm-status.is-on { background: #ecfccb; color: #3f6212; }
.afm-status.is-off { background: #fff7ed; color: #9a3412; }
.afm-pill { padding: 3px 10px; border-radius: 99px; font-size: 12px; text-align: center; }
.afm-pill.is-ajax { background: #ecfccb; color: #3f6212; }
.afm-pill.is-reload { background: #ffe4e6; color: #9f1239; }
.afm-pill.is-browser { background: #e0f2fe; color: #075985; }
.afm-note { font-size: .8rem; }
.afm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.afm-btn--sm { padding: 8px 14px; font-size: 13px; }

/* Feature hero */
.afm-feathero { padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); background: linear-gradient(180deg, #f1ecff, transparent); overflow: hidden; }
.afm-feathero h1 { max-width: 900px; }
.afm-feathero__icon { font-size: clamp(48px, 7vw, 72px); line-height: 1; margin-bottom: 12px; display: inline-block; animation: afm-bob 3s ease-in-out infinite; }
@keyframes afm-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
.afm-feathero .afm-lead { max-width: 720px; }
.afm-legend { font-size: .95rem; color: var(--ink-2); }
.afm-try { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; max-width: 980px; }
.afm-try li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 500; }
.afm-try .afm-mono { color: var(--pink); }
.afm-prose--wide { max-width: none; }
.afm-prose--wide > p, .afm-prose--wide > h2, .afm-prose--wide > h3, .afm-prose--wide > ul, .afm-prose--wide > ol, .afm-prose--wide > blockquote { max-width: 780px; }
.afm-demo { margin: 32px 0; display: grid; gap: 16px; }
.afm-postnav--feat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .afm-postnav, .afm-postnav--feat { grid-template-columns: 1fr; } .afm-postnav .is-next { grid-column: auto; } }

/* Hub grid */
.afm-featgroup { margin: 48px 0 18px; font-size: 1.3rem; font-family: var(--mono); color: var(--violet); }
.afm-featgroup::before { content: '// '; color: var(--muted); }
.afm-featgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.afm-feat { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s; }
.afm-feat:hover { color: var(--ink); transform: translateY(-5px) rotate(-.6deg); border-color: var(--violet); box-shadow: 0 22px 44px -18px rgba(124, 58, 237, .4); }
.afm-feat__icon { font-size: 34px; line-height: 1; transition: transform .3s; }
.afm-feat:hover .afm-feat__icon { transform: scale(1.2) rotate(-10deg); }
.afm-feat .afm-badge { position: absolute; top: 18px; right: 18px; }
.afm-feat b { font-size: 1.15rem; }
.afm-feat span:last-child { color: var(--ink-2); font-size: .95rem; }

/* Console (nav log + head inspector) */
.afm-console { border-radius: 18px; overflow: hidden; background: #0f0d1a; color: #e9e5ff; box-shadow: 0 30px 60px -30px rgba(20, 18, 31, .6); }
.afm-console__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #1b1830; }
.afm-console__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); }
.afm-console__bar i:nth-child(2) { background: var(--amber); } .afm-console__bar i:nth-child(3) { background: var(--lime); }
.afm-console__bar span { margin-left: 10px; color: #8b87a8; }
.afm-console__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #262240; }
.afm-console__stats div { padding: 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid #262240; }
.afm-console__stats b { font-size: 2rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afm-console__stats span { font-size: 12px; color: #8b87a8; font-family: var(--mono); }
.afm-console__log { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 6px; min-height: 120px; font-size: 13px; }
.afm-console__log li { animation: afm-fade .3s; }
.afm-console__log .ok { color: var(--lime); }
.afm-console__log b { color: #fff; font-weight: 500; }
.afm-console__log em { color: var(--amber); font-style: normal; }
@media (max-width: 640px) { .afm-console__stats { grid-template-columns: 1fr 1fr; } }
.afm-headtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.afm-headtable th, .afm-headtable td { padding: 10px 16px; border-bottom: 1px solid #262240; text-align: left; vertical-align: top; word-break: break-word; }
.afm-headtable th { color: #c4b5fd; width: 130px; font-weight: 500; }
.afm-headtable .st { width: 100px; color: #8b87a8; white-space: nowrap; }
.afm-headtable .st.ok { color: var(--lime); }

/* Stations */
.afm-stations { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.afm-station { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border: 0; border-radius: 20px; cursor: pointer; text-align: left; color: #fff; font: inherit; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 85% 55%), hsl(calc(var(--h) + 50) 90% 58%)); transition: transform .25s, box-shadow .25s; }
.afm-station:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 18px 36px -16px hsl(var(--h) 80% 40%); }
.afm-station b { font-size: 1.2rem; }
.afm-station .afm-mono { opacity: .85; }
.afm-station.is-active { outline: 4px solid var(--ink); outline-offset: 3px; }
.afm-station__eq { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-bottom: 8px; }
.afm-station__eq i { width: 5px; height: 6px; border-radius: 3px; background: #fff; }
.afm-station.is-active .afm-station__eq i { animation: afm-eq .7s ease-in-out infinite alternate; }
.afm-station.is-active .afm-station__eq i:nth-child(2) { animation-delay: -.3s; }
.afm-station.is-active .afm-station__eq i:nth-child(3) { animation-delay: -.5s; }

/* Persistent TV box */
.afm-tv { position: fixed; right: 16px; bottom: 100px; z-index: 55; width: min(300px, 60vw); border-radius: 16px; overflow: hidden; background: var(--ink); box-shadow: 0 20px 40px -12px rgba(20, 18, 31, .5); animation: afm-pop .5s cubic-bezier(.2, .8, .2, 1.3); }
.afm-tv video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.afm-tv__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #fff; font-size: 12px; }
.afm-tv__bar button { margin-left: auto; border: 0; background: none; color: #fff; cursor: pointer; font-size: 14px; }
@keyframes afm-pop { from { opacity: 0; transform: scale(.8) translateY(20px); } }
.afm-callout { padding: 18px 22px; border-radius: 16px; background: #fff7ed; border: 2px dashed var(--amber); }

/* Exclude-elements widget */
.afm-listeners { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 2px solid var(--line); font-size: 1.05rem; }
.afm-listeners b { font-size: 1.6rem; color: var(--violet); }
.afm-listeners__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.afm-listeners.is-on { border-color: var(--lime); }
.afm-listeners.is-on .afm-listeners__dot { background: var(--lime); animation: afm-pulse 1s infinite; }

/* Transition rooms */
.afm-room { padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fff; text-align: center; background: radial-gradient(circle at 80% 20%, hsl(calc(var(--h) + 40) 95% 62%), transparent 50%), linear-gradient(135deg, hsl(var(--h) 80% 50%), hsl(calc(var(--h) + 30) 85% 40%)); animation: afm-pop .5s; }
.afm-room h3 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 4px 0 20px; }
.afm-room__doors { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Prefetch cards */
.afm-prefetch__card { display: block; color: var(--ink); text-decoration: none; }
.afm-prefetch__card .afm-card__body { display: flex; flex-direction: column; gap: 6px; }
.afm-prefetch__state { color: var(--muted); }
.afm-prefetch__card.is-prefetched { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(132, 204, 22, .3); }
.afm-prefetch__card.is-prefetched .afm-prefetch__state { color: #3f6212; }

/* Link table */
.afm-linktable { display: grid; gap: 8px; }
.afm-linktable__row { display: grid; grid-template-columns: 220px 90px 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.afm-linktable__row a { font-weight: 600; }
@media (max-width: 700px) { .afm-linktable__row { grid-template-columns: 1fr auto; } .afm-linktable__row .afm-muted { grid-column: 1 / -1; } }
.afm-reloadcheck { padding: 24px; border-radius: 20px; border: 2px solid var(--line); }
.afm-reloadcheck b { font-size: 1.5rem; }
.afm-reloadcheck.is-full { background: #ffe4e6; border-color: var(--pink); }
.afm-reloadcheck.is-ajax { background: #ecfccb; border-color: var(--lime); }

/* Forms pair, widgets */
.afm-formpair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.afm-form--mini h3 { margin: 0; }
@media (max-width: 800px) { .afm-formpair { grid-template-columns: 1fr; } }
.afm-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.afm-clock { font-size: 2.4rem; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.afm-acc { border-bottom: 1px solid var(--line); padding: 8px 0; }
.afm-acc summary { cursor: pointer; font-weight: 600; list-style: none; }
.afm-acc summary::before { content: '+ '; font-family: var(--mono); color: var(--pink); }
.afm-acc[open] summary::before { content: '− '; }
.afm-acc p { margin: 6px 0 0; animation: afm-fade .3s; }
.afm-lineup__row--simple { grid-template-columns: 60px 1fr; }
.afm-filter--left { margin-top: -8px; align-items: center; }

/* Gallery + lightbox + embed */
.afm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); grid-auto-flow: dense; gap: 12px; }
.afm-gallery__item { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: none; transition: transform .3s; }
.afm-gallery__item.is-wide { grid-column: span 2; aspect-ratio: auto; }
.afm-gallery__item svg { height: 100%; }
.afm-gallery__item:hover { transform: scale(1.03) rotate(-1deg); }
.afm-lightbox { padding: 0; border: 0; border-radius: 24px; width: min(900px, 92vw); background: var(--ink); color: #fff; overflow: hidden; }
.afm-lightbox::backdrop { background: rgba(20, 18, 31, .8); backdrop-filter: blur(6px); }
.afm-lightbox[open] { animation: afm-pop .35s; }
.afm-lightbox p { margin: 0; padding: 12px 18px; }
.afm-lightbox__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; }
.afm-embed { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; margin-top: 24px; background: var(--ink); }
.afm-embed iframe { width: 100%; height: 100%; border: 0; }

/* Reload keys */
.afm-keys { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.afm-keys kbd { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-bottom-width: 5px; font: 600 1.4rem var(--mono); animation: afm-press 2.4s ease-in-out infinite; }
.afm-keys kbd:nth-of-type(2) { animation-delay: .2s; } .afm-keys kbd:nth-of-type(3) { animation-delay: .4s; }
@keyframes afm-press { 0%, 80%, 100% { transform: none; border-bottom-width: 5px; } 88% { transform: translateY(3px); border-bottom-width: 2px; } }

/* Comments */
.afm-comments { margin-top: 56px; max-width: 860px; }
.afm-comment-list, .afm-comment-list .children { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.afm-comment-list .children { margin: 14px 0 0 32px; }
.afm-comment-list .comment-body { padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.afm-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.afm-comment-list .comment-author img { border-radius: 50%; }
.afm-comment-list .says { display: none; }
.afm-comment-list .comment-metadata { font: 12px var(--mono); margin: 4px 0 8px; }
.afm-comment-list .comment-metadata a { color: var(--muted); text-decoration: none; }
.afm-comment-list .reply a { font: 600 13px var(--mono); text-decoration: none; }
.afm-comment-form { margin-top: 24px; }
.afm-comment-form p { margin: 0; }
.afm-comment-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.afm-comment-form input[type="text"], .afm-comment-form input[type="email"], .afm-comment-form input[type="url"], .afm-comment-form textarea { width: 100%; }
.afm-comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.afm-comment-form .comment-form-cookies-consent input { width: auto; }
.afm-comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-reply-title small { margin-left: 8px; font-size: 13px; }

/* WooCommerce */
.afm-shop .woocommerce-products-header__title, .afm-shop .product_title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.afm-shop .woocommerce-breadcrumb { font: 12px var(--mono); color: var(--muted); margin-bottom: 16px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px; margin: 0 !important; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 0 18px !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; text-align: left; }
.woocommerce ul.products li.product:hover { transform: translateY(-5px) rotate(-.5deg); }
.woocommerce ul.products li.product a img { margin: 0 0 12px !important; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 18px !important; margin-right: 18px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 1.1rem var(--sans) !important; color: var(--ink); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--violet) !important; font: 600 1rem var(--mono) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt { border-radius: 99px !important; background: var(--grad) !important; color: #fff !important; font: 600 14px var(--sans) !important; padding: 11px 20px !important; }
.woocommerce span.onsale { background: var(--pink) !important; border-radius: 99px !important; min-height: 0 !important; line-height: 1 !important; padding: 8px 12px !important; }
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce .quantity .qty { padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--violet) !important; background: var(--surface) !important; border-radius: 12px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--violet) !important; }
.afm-woo-page .afm-article { max-width: var(--wrap); }
.woocommerce table.shop_table { border-radius: 16px !important; background: var(--surface); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.afm-feathero + .afm-section, .afm-feathero + .afm-wrap.afm-section { padding-top: 24px; }
.woocommerce .price ins, .woocommerce .price del { text-decoration-thickness: 1px; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce ul.products li.product .onsale { top: 12px !important; right: 12px !important; left: auto !important; margin: 0 !important; }
.woocommerce .woocommerce-ordering select { padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font: 14px var(--sans); }

/* ---------- Motion pack ---------- */

/* Page enter: every AjaxPress navigation loads a fresh document, so this plays on each page. */
.afm-main { animation: afm-enter .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes afm-enter { from { opacity: 0; transform: translateY(18px); } }

/* Split-word headline reveal */
.afm-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.afm-split .w > span { display: inline-block; transform: translateY(105%) rotate(8deg); animation: afm-word .8s cubic-bezier(.2, .8, .2, 1.1) forwards; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes afm-word { to { transform: none; } }

/* Scroll progress bar */
.afm-progress { position: fixed; top: 0; left: 0; z-index: 70; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); pointer-events: none; }

/* Blinking caret on kickers */
.afm-kicker::after { content: '▍'; margin-left: 4px; color: var(--pink); animation: afm-blink 1s steps(1) infinite; }
.afm-cta .afm-kicker::after, .afm-wall .afm-kicker::after { color: var(--amber); }
@keyframes afm-blink { 50% { opacity: 0; } }

/* Flowing squiggle under section headings */
.afm-sechead h2, .afm-pagehead h1, .afm-featgroup { position: relative; }
.afm-sechead h2::after, .afm-pagehead h1::after {
	content: ''; display: block; width: 120px; height: 10px; margin-top: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' fill='none' stroke='%23f43f5e' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 50% / 40px 10px;
	animation: afm-squiggle 1.2s linear infinite;
}
@keyframes afm-squiggle { to { background-position: 40px 50%; } }

/* Logo: brackets breathe, spread on hover */
.afm-logo__b { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1.5); animation: afm-breathe 3s ease-in-out infinite; }
.afm-logo__b:last-child { animation-delay: -1.5s; }
.afm-logo:hover .afm-logo__b:first-child { transform: translateX(-6px) rotate(-8deg); }
.afm-logo:hover .afm-logo__b:last-child { transform: translateX(6px) rotate(8deg); }
@keyframes afm-breathe { 50% { opacity: .5; } }

/* Nav hover: gradient underline slides in */
.afm-menu > li > a { position: relative; }
.afm-menu > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s; }
.afm-menu > li > a:hover::after { transform: scaleX(1); }
.afm-menu > li.current-menu-item > a::after, .afm-menu > li.current-menu-ancestor > a::after { display: none; }

/* Buttons: shine sweep + springy press */
.afm-btn { position: relative; overflow: hidden; transition: background-position .4s, transform .25s cubic-bezier(.2, .8, .2, 1.6), box-shadow .25s; }
.afm-btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s; }
.afm-btn:hover::after { left: 130%; }
.afm-btn:active { transform: scale(.94) !important; }
.afm-btn .afm-i { transition: transform .25s; }
.afm-btn:hover .afm-i:not(.is-flip) { transform: translateX(4px); }

/* Tilt targets get a smooth return */
.afm-tilt { transform-style: preserve-3d; will-change: transform; }
.afm-tilt.is-tilting { transition: transform .08s linear, box-shadow .25s, border-color .25s !important; }

/* Floating music notes in heroes */
.afm-notes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.afm-notes span { position: absolute; bottom: -40px; font-size: var(--s, 22px); color: var(--c, #fff); opacity: 0; animation: afm-note var(--d, 9s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes afm-note { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .7; } 90% { opacity: .5; } 100% { transform: translate(var(--x, 30px), -520px) rotate(25deg); opacity: 0; } }
.afm-slide > .afm-notes { z-index: 0; }

/* Morphing blobs behind hero slides and feature heroes */
.afm-slide::before { content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -10%; top: -30%; background: hsl(calc(var(--h) + 80) 95% 65% / .45); filter: blur(40px); animation: afm-morph 12s ease-in-out infinite; }
.afm-feathero::before { content: ''; position: absolute; width: 520px; height: 520px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(244, 63, 94, .18), transparent 60%); animation: afm-morph 14s ease-in-out infinite; pointer-events: none; }
@keyframes afm-morph {
	0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: translate(0, 0) rotate(0); }
	33% { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; transform: translate(-30px, 20px) rotate(40deg); }
	66% { border-radius: 30% 70% 70% 30% / 53% 30% 70% 47%; transform: translate(20px, -10px) rotate(-30deg); }
}

/* Deco shapes react to the mouse (JS sets --mx / --my) */
.afm-deco { transform: translate(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -14px)); transition: transform .4s ease-out; }

/* Avatars: spinning gradient ring */
.afm-avatar { position: relative; }
.afm-dj .afm-avatar::after, .afm-djhero .afm-avatar::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed hsl(var(--h) 80% 60%); animation: afm-spin 12s linear infinite; }

/* Badges wiggle on hover */
.afm-feat:hover .afm-badge, h1 .afm-badge:hover { animation: afm-wiggle .5s; }
@keyframes afm-wiggle { 25% { transform: rotate(-10deg) scale(1.1); } 75% { transform: rotate(8deg) scale(1.1); } }

/* Card art: bars dance on hover */
.afm-art rect[rx="5"] { transform-box: fill-box; transform-origin: 50% 100%; }
.afm-card:hover .afm-art rect[rx="5"], .afm-episode:hover .afm-art rect[rx="5"], .afm-gallery__item:hover .afm-art rect[rx="5"] { animation: afm-bar .6s ease-in-out infinite alternate; }
.afm-art rect[rx="5"]:nth-of-type(3n) { animation-delay: -.2s !important; }
.afm-art rect[rx="5"]:nth-of-type(3n+1) { animation-delay: -.4s !important; }
@keyframes afm-bar { to { transform: scaleY(.35); } }

/* Player: glowing color-cycling halo while playing */
.afm-player.is-playing { animation: afm-halo 6s linear infinite; }
@keyframes afm-halo {
	0%, 100% { box-shadow: 0 16px 40px -10px rgba(20, 18, 31, .5), 0 0 0 1px rgba(124, 58, 237, .6), 0 0 28px -4px rgba(124, 58, 237, .7); }
	33% { box-shadow: 0 16px 40px -10px rgba(20, 18, 31, .5), 0 0 0 1px rgba(244, 63, 94, .6), 0 0 28px -4px rgba(244, 63, 94, .7); }
	66% { box-shadow: 0 16px 40px -10px rgba(20, 18, 31, .5), 0 0 0 1px rgba(245, 158, 11, .6), 0 0 28px -4px rgba(245, 158, 11, .7); }
}
.afm-player__play { transition: transform .25s cubic-bezier(.2, .8, .2, 1.6); }
.afm-player__play:hover { transform: scale(1.1) rotate(-8deg); }

/* Footer: animated waves + ticker */
.afm-waves { display: block; width: 100%; height: 70px; margin-bottom: -2px; }
.afm-waves use { animation: afm-wave 12s cubic-bezier(.55, .5, .45, .5) infinite; }
.afm-waves use:nth-child(1) { animation-delay: -2s; animation-duration: 7s; }
.afm-waves use:nth-child(2) { animation-delay: -3s; animation-duration: 10s; }
.afm-waves use:nth-child(3) { animation-delay: -4s; animation-duration: 13s; }
@keyframes afm-wave { 0% { transform: translate3d(-90px, 0, 0); } 100% { transform: translate3d(85px, 0, 0); } }
.afm-ticker--footer { margin: 0; transform: none; border-top: 0; }
.afm-ticker--footer .afm-ticker__track { animation-duration: 55s; }
.afm-ticker__track:hover { animation-play-state: paused; }

/* Stats and try-steps pop */
.afm-stats div { transition: transform .3s cubic-bezier(.2, .8, .2, 1.6); }
.afm-stats div:hover { transform: translateY(-4px) rotate(-2deg); }
.afm-try { counter-reset: step; }
.afm-try li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; }
.afm-try li::before { content: '▶'; flex: none; font-size: 10px !important; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; font: 700 13px var(--sans); animation: afm-bob 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .3s); }

/* Dark footer under the waves */
.afm-footer { background: var(--ink); color: #fff; border-top: 0; padding-top: 0; }
.afm-footer__in { padding-top: 40px; }
.afm-footer .afm-logo { color: #fff; }
.afm-footer .afm-muted { color: #8b87a8; }
.afm-footer__menu a { color: #d6d3e8; transition: color .2s; }
.afm-footer__menu a:hover { color: var(--amber); }
.afm-ticker--footer { border-bottom: 1px solid #262240; }
@media (max-width: 860px) { .afm-burger { order: 5; } .afm-cartlink { order: 4; } }

/* Player waiting for the first interaction (autoplay refused) */
.afm-player.is-waiting .afm-player__play { animation: afm-ping 1.6s cubic-bezier(.2, .8, .2, 1) infinite; }
.afm-player.is-waiting .afm-player__title { color: var(--amber); }
@keyframes afm-ping { 0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); } 100% { box-shadow: 0 0 0 18px rgba(244, 63, 94, 0); } }

/* Lead capture: inline band + popup */
.afm-leadform { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; align-items: start; }
.afm-leadform input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); font: 16px var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.afm-leadform input:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.afm-leadform .afm-btn { padding-block: 14px; white-space: nowrap; }
.afm-leadform.is-busy .afm-btn { opacity: .7; cursor: progress; }
.afm-leadform.is-done .afm-leadform__f, .afm-leadform.is-done .afm-btn { display: none; }
.afm-leadform__msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; color: var(--muted); }
.afm-leadform__msg.is-ok { color: #3f6212; font-size: 1rem; font-weight: 600; animation: afm-fade .3s; }
.afm-leadform__msg.is-err { color: #be123c; }

.afm-leadband { margin-block: clamp(32px, 6vw, 72px) 0; }
.afm-leadband__in { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px; border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.afm-leadband__in::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -150px; border-radius: 50%; background: var(--grad-cool); filter: blur(60px); opacity: .25; pointer-events: none; animation: afm-float 9s ease-in-out infinite; }
.afm-leadband__in > * { position: relative; z-index: 1; }
.afm-leadband h2 { margin: 0 0 .25em; }
.afm-leadband p { margin: 0; }
.afm-leadband .afm-kicker { margin-bottom: .5em; }

.afm-lead { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.afm-lead[hidden] { display: none; }
.afm-lead__scrim { position: absolute; inset: 0; background: rgba(20, 18, 31, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.afm-lead__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(24px, 5vw, 40px); border-radius: 28px; background: var(--surface); box-shadow: 0 40px 80px -24px rgba(20, 18, 31, .5); opacity: 0; transform: translateY(24px) scale(.94); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1.25); }
.afm-lead__box::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad); background-size: 200% 100%; animation: afm-shimmer 3s linear infinite; }
.afm-lead.is-open .afm-lead__scrim { opacity: 1; }
.afm-lead.is-open .afm-lead__box { opacity: 1; transform: none; }
.afm-lead__box:focus { outline: 0; }
.afm-lead__box h2 { margin: 0 0 .3em; }
.afm-lead__box > p.afm-muted { margin: 0 0 20px; }
.afm-lead__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-2); font: 24px/1 var(--sans); cursor: pointer; transition: background .2s, transform .2s; }
.afm-lead__x:hover { background: var(--line); transform: rotate(90deg); }
.afm-lead__art { display: flex; gap: 8px; margin-bottom: 14px; font-size: 26px; }
.afm-lead__art span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--grad); animation: afm-bob 2.4s ease-in-out infinite; }
.afm-lead__art span:nth-child(2) { background: var(--grad-cool); animation-delay: .2s; }
.afm-lead__art span:nth-child(3) { background: linear-gradient(120deg, var(--amber), var(--lime)); animation-delay: .4s; }
.afm-lead .afm-leadform { grid-template-columns: 1fr; }
.afm-lead .afm-leadform .afm-btn { justify-content: center; }

@media (max-width: 860px) {
	.afm-leadband__in { grid-template-columns: 1fr; }
	.afm-leadform { grid-template-columns: 1fr 1fr; }
	.afm-leadform .afm-btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 480px) { .afm-leadform { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
	.afm-lead__box, .afm-lead__scrim { transition: none; }
	.afm-lead__art span, .afm-lead__box::before, .afm-leadband__in::after { animation: none; }
}
