/*
 * BizRadio listener site — glass over the station's own colours.
 *
 * The station supplies --p / --s (brand gradient), --on (text on the gradient) and --dim (how
 * much its background picture is washed out). Everything else is derived here, once for the
 * dark theme and once for the light one.
 */
:root {
	color-scheme: dark;
	--bg: #0b0714;
	--bg: color-mix(in oklab, var(--s) 13%, #06050b);
	--ink: #fff8fa;
	--ink2: rgba(243, 233, 242, .78);
	--ink3: rgba(233, 221, 234, .55);
	--glass: rgba(255, 255, 255, .085);
	--glass2: rgba(255, 255, 255, .14);
	--stroke: rgba(255, 255, 255, .17);
	--shine: rgba(255, 255, 255, .26);
	--field: rgba(0, 0, 0, .22);
	--accent: var(--p);
	--accent: color-mix(in oklab, var(--p) 76%, white);
	--shadow: 0 18px 50px rgba(0, 0, 0, .38);
	--blob: .5;
	--live: #ff3b5c;
	--ok: #34d399;
	--r: 26px;
}

@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		color-scheme: light;
		--bg: #fff6f3;
		--bg: color-mix(in oklab, var(--p) 7%, #fffaf8);
		--ink: #1a1024;
		--ink2: rgba(42, 30, 56, .74);
		--ink3: rgba(58, 46, 74, .55);
		--glass: rgba(255, 255, 255, .56);
		--glass2: rgba(255, 255, 255, .8);
		--stroke: rgba(255, 255, 255, .8);
		--shine: rgba(255, 255, 255, .95);
		--field: rgba(255, 255, 255, .6);
		--accent: var(--p);
		--accent: color-mix(in oklab, var(--p) 68%, black);
		--shadow: 0 18px 44px rgba(60, 30, 70, .14);
		--blob: .62;
		--live: #e11d48;
		--ok: #059669;
	}
}

:root[data-theme="light"] {
	color-scheme: light;
	--bg: #fff6f3;
	--bg: color-mix(in oklab, var(--p) 7%, #fffaf8);
	--ink: #1a1024;
	--ink2: rgba(42, 30, 56, .74);
	--ink3: rgba(58, 46, 74, .55);
	--glass: rgba(255, 255, 255, .56);
	--glass2: rgba(255, 255, 255, .8);
	--stroke: rgba(255, 255, 255, .8);
	--shine: rgba(255, 255, 255, .95);
	--field: rgba(255, 255, 255, .6);
	--accent: var(--p);
	--accent: color-mix(in oklab, var(--p) 68%, black);
	--shadow: 0 18px 44px rgba(60, 30, 70, .14);
	--blob: .62;
	--live: #e11d48;
	--ok: #059669;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body.bz {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.55 Vazirmatn, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left));
}

h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }

.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ backdrop */
.bz-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bz-picture { position: absolute; inset: -4%; background-size: cover; background-position: center; }
.bz-wash { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .12)); }
.bz-has-picture .bz-wash { background: var(--bg); opacity: var(--dim); }

.bz-blob {
	position: absolute; width: 78vmax; height: 78vmax; border-radius: 50%;
	opacity: var(--blob); filter: blur(10px); will-change: transform;
	animation: bz-drift 38s ease-in-out infinite alternate;
}
.bz-has-picture .bz-blob { opacity: calc(var(--blob) * .42); }
.b1 { background: radial-gradient(circle, var(--p) 0, transparent 62%); top: -34vmax; inset-inline-start: -30vmax; }
.b2 { background: radial-gradient(circle, var(--s) 0, transparent 62%); top: 18vmax; inset-inline-end: -40vmax; animation-duration: 46s; animation-delay: -12s; }
.b3 { background: radial-gradient(circle, var(--t3) 0, transparent 62%); bottom: -46vmax; inset-inline-start: 4vmax; animation-duration: 54s; animation-delay: -25s; opacity: calc(var(--blob) * .7); }
@keyframes bz-drift { to { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); } }

/* ------------------------------------------------------------------ glass */
.glass {
	position: relative;
	background: linear-gradient(180deg, var(--glass2), var(--glass) 34%), var(--glass);
	border: 1px solid var(--stroke);
	border-radius: var(--r);
	box-shadow: var(--shadow), inset 0 1px 0 var(--shine);
	-webkit-backdrop-filter: blur(22px) saturate(165%);
	backdrop-filter: blur(22px) saturate(165%);
}

/* ------------------------------------------------------------------ header */
/* The studio strip and the header stay at the top; the page scrolls under their frosted band,
   which reaches the window's edges by undoing the body's padding. */
.bz-head {
	position: sticky; top: 0; z-index: 14;
	margin: calc(-1 * max(14px, env(safe-area-inset-top))) calc(-1 * max(14px, env(safe-area-inset-right))) 16px calc(-1 * max(14px, env(safe-area-inset-left)));
	padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
	background: var(--glass);
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	-webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%);
	border-bottom: 1px solid var(--stroke);
}
.bz-head .bz-ticker { margin-bottom: 10px; }
.bz-head .bz-top { margin-bottom: 0; }
.bz-embed .bz-head { padding-top: 10px; padding-bottom: 0; border-bottom: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; position: static; }
.bz-top {
	max-width: 1120px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.bz-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bz-brand h1 { font-size: clamp(1.25rem, 4.6vw, 1.7rem); font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-brand p { color: var(--ink2); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-brand > div { min-width: 0; }
.bz-logo { width: 52px; height: 52px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .22)); }
.bz-logo.big { width: 96px; height: 96px; }
.bz-logo-fallback { display: grid; place-items: center; border-radius: 17px; background: linear-gradient(135deg, var(--p), var(--s)); color: var(--on); filter: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.bz-logo-fallback .i { width: 24px; height: 24px; }
.bz-tools { display: flex; align-items: center; gap: 8px; flex: none; }

.bz-round, .bz-chip, .bz-pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	background: var(--glass); border: 1px solid var(--stroke); color: var(--ink);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	transition: transform .16s ease, background .2s ease;
}
.bz-round { width: 42px; height: 42px; border-radius: 50%; }
.bz-chip { height: 42px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.bz-pill { height: 34px; padding: 0 12px; border-radius: 999px; font-size: .82rem; color: var(--ink2); }
/* Language switch: both codes, the one in use lit (the page's lang attribute decides). */
.bz-lang-codes { display: inline-flex; align-items: center; gap: 6px; direction: ltr; font-size: .8rem; letter-spacing: .04em; }
.bz-lang-codes b { font-weight: 700; opacity: .42; padding: 3px 7px; border-radius: 999px; }
.bz-lang-codes i { width: 1px; height: 14px; background: var(--stroke); }
html[lang="en"] .bz-lang-codes [data-l="en"], html[lang="fa"] .bz-lang-codes [data-l="fa"] { opacity: 1; color: var(--on); background: linear-gradient(135deg, var(--p), var(--s)); }
.bz-pill { white-space: nowrap; }
.bz-pill b { font-weight: 600; }
.bz-round:active, .bz-chip:active, .bz-btn:active, .bz-play:active, .bz-opt:active { transform: scale(.95); }
@media (hover: hover) { .bz-round:hover, .bz-chip:hover { background: var(--glass2); } }

/* ------------------------------------------------------------------ layout */
.bz-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.bz-feed { display: grid; gap: 16px; align-content: start; min-width: 0; }
.bz-feed > div:empty { display: none; }
.bz-feed > div { display: grid; gap: 16px; }

@media (min-width: 940px) {
	.bz-grid { grid-template-columns: minmax(360px, 430px) 1fr; gap: 22px; align-items: start; }
}
/* The left column: the advertising pictures (when the station has any), then the player. */
.bz-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 940px) { .bz-side { gap: 22px; } }

/* ------------------------------------------------------------------ ad banners */
.bz-banners { aspect-ratio: 16 / 9; overflow: hidden; }
.bz-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.bz-slide.on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.bz-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bz-slide-title { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 26px; font-weight: 700; font-size: .95rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .62)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-ad-tag { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
.bz-dots { position: absolute; inset-inline: 0; bottom: 4px; display: flex; justify-content: center; }
/* The button is the finger-sized target; the dot is drawn inside it. */
.bz-dots button { width: 22px; height: 22px; display: grid; place-items: center; }
.bz-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); transition: width .3s ease, background .3s ease; }
.bz-dots button.on::before { width: 18px; background: #fff; }

/* ------------------------------------------------------------------ player */
/* Compact: picture, what is on, and the play button in one row; progress, the smaller
   controls and "up next" each on a slim row under it. Everything the tall card had is here. */
.bz-player { padding: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; text-align: start; }
.bz-player > .bz-progress, .bz-player > .bz-more, .bz-player > .bz-next { grid-column: 1 / -1; }
.bz-art-wrap { position: relative; width: 112px; aspect-ratio: 1; }
.bz-art {
	width: 100%; height: 100%; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
	background: linear-gradient(135deg, var(--p), var(--s)); color: var(--on);
	background-size: cover; background-position: center;
	box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
	transition: box-shadow .6s ease, transform .6s ease;
}
.bz-art .i { width: 34%; height: 34%; opacity: .9; }
.bz-art.has-art .i { display: none; }
.bz-playing .bz-art { box-shadow: 0 10px 22px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .14), 0 0 30px color-mix(in srgb, var(--p) 55%, transparent); transform: scale(1.012); }

.bz-badge {
	position: absolute; top: 6px; inset-inline-start: 6px; max-width: calc(100% - 12px); padding: 2px 7px; border-radius: 999px;
	font-size: .62rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: rgba(0, 0, 0, .4);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.bz-badge.live { background: var(--live); }
.bz-badge.live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 5px; border-radius: 50%; background: #fff; animation: bz-pulse 1.3s ease-in-out infinite; }
@keyframes bz-pulse { 50% { opacity: .25; } }

.bz-eq { position: absolute; bottom: 6px; inset-inline-end: 6px; display: flex; align-items: flex-end; gap: 2px; height: 20px; padding: 5px 7px; border-radius: 999px; background: rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bz-eq i { width: 3px; border-radius: 2px; background: #fff; animation: bz-eq 1s ease-in-out infinite; height: 40%; }
.bz-eq i:nth-child(2) { animation-delay: -.35s; } .bz-eq i:nth-child(3) { animation-delay: -.7s; } .bz-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes bz-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.bz-now { min-width: 0; display: grid; gap: 1px; }
.bz-channel { font-size: .74rem; font-weight: 600; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-channel:empty { display: none; }
.bz-now h2 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bz-artist { color: var(--ink2); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-artist:empty { display: none; }

.bz-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; font-size: .74rem; color: var(--ink3); font-variant-numeric: tabular-nums; direction: ltr; }
.bz-progress span { grid-column: 1 / -1; grid-row: 1; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 16%, transparent); overflow: hidden; }
.bz-progress i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--p), var(--s)); transition: width 1s linear; }
.bz-progress time:first-of-type { grid-column: 1; grid-row: 2; }
.bz-progress time:last-of-type { grid-column: 3; grid-row: 2; }

/* Volume, the channels and the listener count share one row that wraps when it must. */
.bz-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
.bz-volume { display: flex; align-items: center; gap: 8px; color: var(--ink2); min-width: 0; }
.bz-volume input { width: 92px; min-width: 0; flex: 0 1 92px; accent-color: var(--p); }
@media (hover: none) { .bz-volume { display: none; } } /* phones use their own keys, and the bar below */
.bz-more .bz-chips { flex: 1 1 auto; justify-content: flex-start; min-width: 0; }
.bz-more .bz-pill { margin-inline-start: auto; height: 30px; font-size: .78rem; }

.bz-play {
	position: relative; width: 60px; height: 60px; border-radius: 50%; color: var(--on);
	background: linear-gradient(135deg, var(--p), var(--s)); display: grid; place-items: center;
	box-shadow: 0 10px 22px color-mix(in srgb, var(--p) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .4);
	transition: transform .16s ease;
}
.bz-play .i { width: 26px; height: 26px; }
.bz-spin { position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); animation: bz-spin .9s linear infinite; }
@keyframes bz-spin { to { transform: rotate(360deg); } }

.bz-hint { font-size: .78rem; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-hint[hidden] { display: none; }
.bz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bz-chips .bz-chip { height: 32px; padding: 0 12px; font-size: .78rem; }
.bz-chips .bz-chip.on { background: linear-gradient(135deg, var(--p), var(--s)); color: var(--on); border-color: transparent; }
.bz-next { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; border-radius: 14px; background: var(--field); font-size: .84rem; min-width: 0; }
.bz-next[hidden] { display: none; }
.bz-next small { color: var(--accent); font-weight: 600; flex: none; }
.bz-next b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ cards */
.bz-card { padding: 18px; display: grid; gap: 14px; }
.bz-card > header { display: flex; align-items: center; gap: 12px; }
.bz-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.bz-card header p, .bz-sub { color: var(--ink2); font-size: .88rem; }
.bz-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--p), var(--s)); color: var(--on); }
.bz-accent { color: var(--accent); font-weight: 600; }
.bz-row { display: flex; flex-wrap: wrap; gap: 10px; }

.bz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
	border-radius: 999px; font-weight: 600; color: var(--on); background: linear-gradient(90deg, var(--p), var(--s));
	box-shadow: 0 10px 22px color-mix(in srgb, var(--p) 32%, transparent); transition: transform .16s ease, opacity .2s;
}
.bz-btn.ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--stroke); box-shadow: none; }
.bz-btn[disabled] { opacity: .55; pointer-events: none; }

.bz-input {
	width: 100%; padding: 12px 15px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--field);
	color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.bz-input { border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.bz-input::placeholder { color: var(--ink3); }
.bz-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 26%, transparent); }
.bz-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
form { display: grid; gap: 10px; }
form .bz-btn { justify-self: start; }

.bz-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--field); }
.bz-seg button { height: 36px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink2); transition: background .2s, color .2s; }
.bz-seg button.on { background: var(--glass2); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

.bz-list { list-style: none; margin: 0; padding: 0; display: grid; }
.bz-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); min-width: 0; }
.bz-list li:first-child { border-top: 0; padding-top: 0; }
.bz-list li > div { min-width: 0; flex: 1; }
.bz-list b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-list small { color: var(--ink2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-list time { color: var(--ink3); font-size: .8rem; flex: none; font-variant-numeric: tabular-nums; }
.bz-thumb { width: 44px; height: 44px; border-radius: 12px; flex: none; background: linear-gradient(135deg, var(--p), var(--s)) center / cover; }

/* ------------------------------------------------------------------ poll */
.bz-poll { padding: 0; overflow: hidden; border-color: transparent; }
.bz-poll::before {
	/* a gradient hairline: the one card on the page that asks for something */
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: linear-gradient(135deg, var(--p), var(--s));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.bz-poll-in { padding: 18px; display: grid; gap: 14px; }
.bz-poll-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bz-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--on); background: linear-gradient(90deg, var(--p), var(--s)); }
.bz-tag.quiet { background: var(--field); color: var(--ink2); font-weight: 600; }
.bz-poll h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.bz-prize { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: color-mix(in srgb, var(--p) 15%, var(--field)); font-size: .92rem; }
.bz-prize .i { color: var(--accent); }
.bz-prize b { font-weight: 700; }

.bz-opts { display: grid; gap: 9px; }
.bz-opt {
	position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	width: 100%; min-height: 50px; padding: 11px 16px; border-radius: 16px; text-align: start; font-weight: 600;
	background: var(--field); border: 1px solid var(--stroke); transition: transform .16s ease, border-color .2s;
}
.bz-opt > * { position: relative; }
.bz-opt .bz-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--p) 26%, transparent); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .bz-opt .bz-fill { inset: 0 0 0 auto; }
.bz-opt em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--ink2); font-weight: 700; flex: none; }
.bz-opt.mine { border-color: var(--accent); }
.bz-opt.mine .bz-fill { background: linear-gradient(90deg, color-mix(in srgb, var(--p) 55%, transparent), color-mix(in srgb, var(--s) 45%, transparent)); }
.bz-opt .i { color: var(--accent); margin-inline-end: 6px; vertical-align: -0.2em; }
.bz-opt[disabled] { cursor: default; }
@media (hover: hover) { button.bz-opt:not([disabled]):hover { border-color: var(--accent); } }

.bz-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--ink3); }
.bz-draw { display: grid; gap: 10px; padding: 14px; border-radius: 20px; background: var(--field); }
.bz-draw h4 { margin: 0; font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.bz-draw h4 .i { color: var(--accent); }
.bz-draw p { font-size: .86rem; color: var(--ink2); }
.bz-check { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--ink2); }
.bz-check input { margin-top: .25em; width: 18px; height: 18px; accent-color: var(--p); flex: none; }
.bz-done { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--ok) 16%, transparent); font-weight: 600; }
.bz-done .i { color: var(--ok); }
.bz-rules { font-size: .82rem; color: var(--ink3); }
.bz-rules summary { cursor: pointer; }
.bz-rules p { margin-top: 6px; white-space: pre-line; }
.bz-winner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--p) 26%, transparent), color-mix(in srgb, var(--s) 22%, transparent)); }
.bz-winner .i { width: 30px; height: 30px; color: var(--accent); }
.bz-winner small { display: block; color: var(--ink2); }
.bz-winner b { font-size: 1.08rem; direction: ltr; unicode-bidi: plaintext; }
.bz-err { color: var(--live); font-size: .86rem; font-weight: 600; }

/* ------------------------------------------------------------------ studio strip (top) */
/* Two lines: the announcement's title, and under it its text moving through. */
.bz-ticker { max-width: 1120px; margin: 0 auto 14px; min-height: 54px; padding: 6px; padding-inline-end: 14px; border-radius: 22px; display: flex; align-items: center; gap: 11px; overflow: hidden; }
.bz-ticker[hidden] { display: none; }
.bz-ticker-tag { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--on); background: linear-gradient(135deg, var(--p), var(--s)); }
.bz-ticker-body { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
.bz-ticker-title { font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
a.bz-ticker-title[href]:hover { text-decoration: underline; }
.bz-ticker-view { min-width: 0; overflow: hidden; font-size: .84rem; color: var(--ink2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.bz-ticker-view[hidden] { display: none; }
.bz-ticker-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; }
.bz-ticker-track.run { animation: bz-ticker var(--dur, 30s) linear infinite; }
html[dir="rtl"] .bz-ticker-track.run { animation-name: bz-ticker-rtl; }
/* It waits while the pointer rests on it, or while a finger holds it (site.js) — never after
   a tap: on a touch screen :hover and :focus stay on after one, and the text stood still for good. */
@media (hover: hover) { .bz-ticker:hover .bz-ticker-track.run { animation-play-state: paused; } }
.bz-ticker-track.run.hold { animation-play-state: paused; }
@keyframes bz-ticker { to { transform: translateX(-50%); } }
@keyframes bz-ticker-rtl { to { transform: translateX(50%); } }
.bz-tick { display: inline-flex; align-items: center; }
.bz-tick::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-inline: 22px; }

/* ------------------------------------------------------------------ player bar (bottom) */
body.bz { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.bz-dock {
	position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: max(10px, env(safe-area-inset-bottom));
	width: min(1120px, calc(100% - 20px)); height: 64px; padding: 0 10px; border-radius: 999px;
	display: flex; align-items: center; gap: 10px;
}
.bz-dock-play { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; color: var(--on); background: linear-gradient(135deg, var(--p), var(--s)); display: grid; place-items: center; box-shadow: 0 8px 18px color-mix(in srgb, var(--p) 40%, transparent); transition: transform .16s ease; }
.bz-dock-play:active { transform: scale(.94); }
.bz-dock-play .i { width: 22px; height: 22px; }
.bz-dock-play .bz-spin { inset: -4px; border-width: 2px; }
.bz-dock-art { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--on); background: linear-gradient(135deg, var(--p), var(--s)) center / cover; }
.bz-dock-art.has-art .i { display: none; }
.bz-dock-now { flex: 1; min-width: 0; display: grid; line-height: 1.3; text-align: start; }
.bz-dock-now b { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-dock-now small { color: var(--ink2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-dock-channel { flex: none; max-width: 168px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--field); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 600; }
.bz-dock-channel[hidden] { display: none; }
.bz-dock-channel option { color: #1a1024; background: #fff; }
.bz-dock-vol { position: relative; flex: none; display: flex; align-items: center; gap: 8px; }
.bz-dock-vol input { width: 104px; accent-color: var(--p); }
.bz-dock-vol.muted .bz-round { opacity: .45; }
@media (max-width: 640px) {
	.bz-dock { gap: 8px; padding: 0 8px; }
	.bz-dock-art { display: none; }
	.bz-dock-channel { max-width: 104px; padding: 0 8px; }
	/* The slider opens above the bar when the speaker is tapped. */
	.bz-dock-vol input { display: none; position: absolute; bottom: 58px; inset-inline-end: -4px; width: 168px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
	.bz-dock-vol.open input { display: block; }
}
.bz-embed .bz-dock { display: none; }
body.bz.bz-embed { padding-bottom: 10px; }

/* ------------------------------------------------------------------ app stores, social */
.bz-store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px; border-radius: 16px; color: #fff; background: #111; border: 1px solid rgba(255, 255, 255, .22); transition: transform .16s ease; }
.bz-store:active { transform: scale(.96); }
.bz-store .i { width: 26px; height: 26px; }
.bz-store span { display: grid; line-height: 1.15; text-align: start; }
.bz-store small { font-size: .68rem; opacity: .8; }
.bz-store b { font-size: 1.02rem; font-weight: 700; }
.bz-social { gap: 9px; }
.bz-soc { width: 44px; height: 44px; }
.bz-soc .i { width: 21px; height: 21px; }
@media (hover: hover) { .bz-soc:hover { background: linear-gradient(135deg, var(--p), var(--s)); color: var(--on); border-color: transparent; } }

/* ------------------------------------------------------------------ misc */
.bz-foot { max-width: 1120px; margin: 22px auto 0; text-align: center; font-size: .8rem; color: var(--ink3); }

.bz-toast {
	position: fixed; z-index: 20; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px);
	max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; text-align: center;
	background: var(--glass2); border: 1px solid var(--stroke); box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
	opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.bz-toast.show { opacity: 1; transform: translate(-50%, 0); }

.bz-break { min-height: 86vh; display: grid; place-items: center; }
.bz-break-card { max-width: 440px; padding: 34px 26px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.bz-break-card h1 { font-size: 1.7rem; }
.bz-break-card p:last-child { color: var(--ink2); }

.bz-embed .bz-top, .bz-embed .bz-foot { display: none; }
.bz-embed { padding: 10px; }

@media (max-width: 430px) {
	.bz-chip span { display: none; }
	.bz-chip { width: 42px; padding: 0; }
	.bz-chip.bz-lang { width: auto; padding: 0 8px; }
	.bz-chip.bz-lang .i { display: none; }
	.bz-chip .bz-lang-codes { display: inline-flex; gap: 3px; }
	.bz-chips .bz-chip, .bz-row .bz-chip { width: auto; padding: 0 14px; }
	/* Less of a small screen spent on what stays put. */
	.bz-head { padding-bottom: 8px; }
	.bz-head .bz-ticker { min-height: 48px; padding: 4px; padding-inline-end: 12px; margin-bottom: 8px; }
	.bz-ticker-tag { width: 38px; height: 38px; }
	.bz-head .bz-brand p { display: none; }
	.bz-head .bz-logo { width: 42px; height: 42px; }
	.bz-card, .bz-poll-in { padding: 15px; }
	.bz-player { padding: 12px; gap: 10px 12px; }
	.bz-art-wrap { width: 88px; }
	.bz-art { border-radius: 17px; }
	.bz-now h2 { font-size: 1.02rem; }
	.bz-play { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	.bz-blob, .bz-eq i, .bz-badge.live::before { animation: none; }
	.bz-slide, .bz-slide.on { transition: none; }
	/* The studio strip keeps moving — moving is what it is for — but site.js halves its speed. */
	.bz-opt .bz-fill, .bz-progress i { transition: none; }
}
