/*
Theme Name: Sensorial
Theme URI: https://sensorialradio.net/
Author: Sensorial Radio
Description: A bold, broadcast-style theme for Sensorial Radio. Full-width live video, today's lineup, featured sessions, residents and a sticky live player bar. Reads Sonik's shows, schedule, podcasts and members when they exist, with a manual lineup fallback in the Customizer.
Version: 1.3.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sensorial
Tags: dark, one-column, custom-logo, custom-menu, custom-colors, featured-images
*/

/* ---------- Tokens ---------- */
:root {
	--s-black: #000;
	--s-ink: #1c1c1c;
	--s-ink-2: #2a2a2a;
	--s-line-dark: #3a3a3a;
	--s-paper: #e6e6e6;
	--s-card: #f5f5f5;
	--s-text: #1c1c1c;
	--s-muted: #8b8b8b;
	--s-accent: #ff4d2e;
	--s-accent-ink: #fff;
	--s-display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
	--s-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--s-header-h: 52px;
	--s-bar-h: 56px;
	--s-dock-h: var(--s-bar-h);
	--s-dock-w: calc(var(--s-bar-h) * 16 / 9);
	--s-admin: 0px;
	--s-safe-b: env(safe-area-inset-bottom, 0px);
	--s-safe-l: env(safe-area-inset-left, 0px);
	--s-safe-r: env(safe-area-inset-right, 0px);
	--s-gutter: clamp(16px, 3vw, 40px);
	--s-max: 1440px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	padding-top: var(--s-header-h);
	background: var(--s-paper);
	color: var(--s-text);
	font-family: var(--s-mono);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
body.admin-bar { --s-admin: 32px; }
@media (max-width: 782px) { body.admin-bar { --s-admin: 46px; } }
body.admin-bar .site-header { top: var(--s-admin); }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--s-accent); }
:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--s-accent); color: var(--s-accent-ink); padding: 8px 12px;
}

/* Leftover font settings from the previous theme (Kirki/Sonik print body, heading and menu
   fonts on every page). These stronger rules keep this theme's own type everywhere. */
html body { font-family: var(--s-mono); font-size: 15px; font-weight: 400; }
html body :is(h1, h2, h3, h4, h5, h6) { font-family: inherit; letter-spacing: normal; }
html body nav a {
	font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit;
}

.wrap { max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }

/* Typographic primitives */
.display {
	font-family: var(--s-display);
	font-weight: 400;
	text-transform: uppercase;
	line-height: .9;
	letter-spacing: -0.01em;
	margin: 0;
}
.display--xl { font-size: clamp(56px, 11vw, 168px); }
.display--lg { font-size: clamp(44px, 7.5vw, 112px); }
.display--md { font-size: clamp(32px, 4.5vw, 64px); }
.mono-label {
	font-family: var(--s-mono);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	line-height: 1.4;
}
.muted { color: var(--s-muted); }
.text-link {
	font-size: 12px; text-transform: uppercase; text-decoration: underline;
	text-underline-offset: 3px; font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	height: var(--s-header-h);
	background: var(--s-black); color: #fff;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	padding: 0 var(--s-gutter);
}
.site-header, .player-bar { transition: left .2s ease; }
.site-header__left { display: flex; align-items: center; gap: 18px; }
.site-header__right { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.site-brand {
	font-family: var(--s-mono); font-weight: 700; font-size: 13px; letter-spacing: .04em;
	text-transform: uppercase; text-decoration: none; color: #fff; white-space: nowrap;
}
.site-brand img { max-height: 30px; width: auto; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; color: #fff; }
.icon-btn:hover { color: var(--s-accent); }
.icon-btn svg { width: 20px; height: 20px; }
.header-nav { display: none; }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.header-nav a { font-size: 12px; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; }
.header-nav .current-menu-item > a { color: var(--s-accent); }
@media (min-width: 1440px) {
	.header-nav { display: block; }
}
.live-pill {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.live-dot {
	width: 8px; height: 8px; border-radius: 50%; background: var(--s-accent);
	box-shadow: 0 0 0 0 var(--s-accent); animation: s-pulse 1.8s infinite;
}
@keyframes s-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-accent) 60%, transparent); }
	70% { box-shadow: 0 0 0 8px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Full-screen menu + search */
.overlay {
	position: fixed; inset: 0; z-index: 200; background: var(--s-black); color: #fff;
	display: none; flex-direction: column; overflow-y: auto;
}
.overlay.is-open { display: flex; }
.overlay__top {
	height: var(--s-header-h); flex: none; display: flex; align-items: center;
	justify-content: space-between; padding: 0 var(--s-gutter);
}
.overlay__body { padding: 24px var(--s-gutter) 48px; flex: 1; }
.overlay-menu ul { list-style: none; margin: 0; padding: 0; }
.overlay-menu li { border-bottom: 1px solid var(--s-line-dark); }
.overlay-menu a {
	display: block; padding: 10px 0; text-decoration: none;
	font-family: var(--s-display); text-transform: uppercase;
	font-size: clamp(40px, 8vw, 88px); line-height: 1;
}
.overlay-menu .sub-menu a { font-size: clamp(22px, 3.5vw, 36px); padding-left: 1em; }
.overlay-menu .sub-menu li:last-child { border-bottom: 0; }
.search-form { display: flex; border-bottom: 2px solid #fff; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; background: transparent; border: 0; color: inherit;
	font-family: var(--s-display); text-transform: uppercase; font-size: clamp(32px, 6vw, 72px);
	padding: 8px 0; outline: none;
}
.search-form button { font-size: 12px; text-transform: uppercase; padding: 0 0 0 16px; }
body.has-overlay { overflow: hidden; }

/* ---------- Live video ---------- */
.live {
	background: var(--s-black); color: #fff; position: relative;
}
.live__frame {
	position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--s-header-h) - var(--s-bar-h));
	max-height: calc(100svh - var(--s-header-h) - var(--s-bar-h) - var(--s-safe-b));
	margin: 0 auto; background: #000;
}
/* The live stage: the actual video + posters. Laid over .live__frame on the homepage,
   docked as a small window in the player bar once scrolled past (and on other pages). */
.live-stage {
	position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 5;
	background: #000; overflow: hidden; visibility: hidden;
}
.live-stage.is-ready, .live-stage.is-docked { visibility: visible; }
.live-stage iframe, .live-stage video {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain;
}
.live__player { position: absolute; inset: 0; }
.live__offline { position: absolute; inset: 0; background: #000; overflow: hidden; }
.live__poster {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity 1s ease;
}
.live__poster.is-shown { opacity: 1; }
.live__listen { position: absolute; left: var(--s-gutter); bottom: 20px; display: inline-flex; z-index: 1; }
/* Live: show the player. Anything else (checking / offline): show the posters. */
.live-stage[data-state="live"] .live__offline { display: none; }
.live-stage:not([data-state="live"]) .live__player { visibility: hidden; }
.live-stage__expand { display: none; }

/* Docked small window */
.live-stage.is-docked {
	position: fixed; z-index: 120;
	width: var(--s-dock-w); height: var(--s-dock-h);
	top: auto; bottom: 0; left: 0;
	border-right: 1px solid var(--s-line-dark);
}
.live-stage.is-docked .live__listen { display: none; }
.live-stage.is-docked .live-stage__expand { display: block; position: absolute; inset: 0; z-index: 2; }
.live-stage.is-docked .live-stage__expand:focus-visible { outline-offset: -3px; }
/* Phone: small window at the left of the bottom player bar. */
body.is-docked.has-live-stage .player-bar { left: var(--s-dock-w); }
/* Computer: player bar moves up under the menu; the window spans menu + bar on the left. */
@media (min-width: 900px) {
	:root { --s-dock-h: calc(var(--s-header-h) + var(--s-bar-h)); --s-dock-w: calc(var(--s-dock-h) * 16 / 9); }
	.live-stage.is-docked { top: var(--s-admin); bottom: auto; }
	body.is-docked.has-live-stage .site-header { left: var(--s-dock-w); }
	body.is-docked.has-live-stage .player-bar {
		top: calc(var(--s-admin) + var(--s-header-h)); bottom: auto;
		border-top: 0; border-bottom: 1px solid var(--s-line-dark);
	}
	body.dock-always.has-live-stage { padding-top: calc(var(--s-header-h) + var(--s-bar-h)); }
	body.dock-always.has-live-stage .site-footer { padding-bottom: 32px; }
	/* Narrower header next to the small window: name on the left, links in the middle. */
	body.is-docked.has-live-stage .site-header { display: flex; gap: 24px; }
	body.is-docked.has-live-stage .site-brand { order: -1; }
	body.is-docked.has-live-stage .site-header__left { flex: 1; min-width: 0; justify-content: center; }
	body.is-docked.has-live-stage .site-header__right { flex: none; }
}
.live__now { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.live-badge {
	display: inline-block; padding: 3px 8px; font-weight: 700; font-size: 11px;
	background: #444; color: #fff;
}
.live[data-state="live"] .live-badge { background: var(--s-accent); color: var(--s-accent-ink); }
/* Ticker swaps to the offline message while the stream is off. */
.ticker .ticker__track--offline { display: none; }
body[data-stream="offline"] .ticker__track--live,
body[data-stream="checking"] .ticker__track--live { display: none; }
body[data-stream="offline"] .ticker__track--offline,
body[data-stream="checking"] .ticker__track--offline,
.ticker--offline-only .ticker__track--offline { display: inline-flex; }
body[data-stream="live"] .ticker--offline-only { display: none; }
body[data-stream="live"] .live-pill .live-dot { background: var(--s-accent); }
body[data-stream="offline"] .live-pill .live-dot { background: #666; animation: none; }
.live__meta {
	display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
	padding: 12px var(--s-gutter); border-top: 1px solid var(--s-line-dark);
}

/* ---------- Ticker ---------- */
.ticker {
	background: var(--s-accent); color: var(--s-accent-ink); overflow: hidden; white-space: nowrap;
	font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .03em;
}
.ticker__track { display: inline-flex; gap: 48px; padding: 9px 0; animation: s-ticker 40s linear infinite; }
.ticker__track span::after { content: "•"; margin-left: 48px; }
@keyframes s-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--dark { background: var(--s-ink); color: #fff; }
.section--black { background: var(--s-black); color: #fff; }
.section--paper { background: var(--s-paper); color: var(--s-text); }
.section__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px);
}
.section__intro { max-width: 46ch; font-size: 13px; margin: 14px 0 0; }

/* ---------- Lineup ---------- */
.lineup__date { display: block; }
.lineup__list { list-style: none; margin: 0; padding: 0; }
.lineup__item {
	display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; gap: 6px 24px;
	align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--s-line-dark);
	font-size: 12px; text-transform: uppercase;
}
.lineup__item:first-child { border-top: 1px solid var(--s-line-dark); }
.lineup__time { color: #cfcfcf; white-space: nowrap; }
.lineup__show a { text-decoration: none; }
.lineup__genres { display: block; color: var(--s-muted); margin-top: 2px; }
.lineup__badge {
	visibility: hidden; display: inline-flex; align-items: center; gap: 6px;
	background: var(--s-accent); color: var(--s-accent-ink); padding: 3px 8px; font-weight: 700; font-size: 11px;
}
.lineup__item.is-now .lineup__badge { visibility: visible; }
.lineup__item.is-now .lineup__show { color: var(--s-accent); }
.lineup__item.is-past { opacity: .45; }
.lineup__empty { font-size: 13px; color: #cfcfcf; }
.lineup__foot { margin-top: 24px; }
@media (max-width: 640px) {
	.lineup__item { grid-template-columns: 1fr auto; }
	.lineup__time { grid-column: 1 / -1; }
}

/* Week schedule tabs */
.section--week { padding-top: 8px; }
.week-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.week-tabs button {
	font-size: 12px; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--s-line-dark);
	color: #fff;
}
.week-tabs button[aria-selected="true"] { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-accent-ink); }
.week-panel[hidden] { display: none; }

/* ---------- Cards ---------- */
.cards {
	display: grid; gap: clamp(14px, 2vw, 24px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
/* Automatic: at most three per row on big screens. */
@media (min-width: 1100px) {
	.cards:not([class*="cards--cols-"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* "Cards per row" setting (phones always one). */
.cards--cols-1 { grid-template-columns: 1fr; max-width: 960px; }
@media (min-width: 700px) {
	.cards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cards--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.cards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
	.cards--cols-2, .cards--cols-3 { grid-template-columns: 1fr; }
}
.card {
	background: var(--s-card); color: var(--s-text); padding: 10px;
	display: flex; flex-direction: column; gap: 10px;
}
.card__meta {
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 92px;
	font-size: 12px; text-transform: uppercase; padding: 2px 2px 0;
}
.card__title { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.4; }
.card__title a { text-decoration: none; }
.card__sub, .card__tags { color: var(--s-muted); }
.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.btn {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 10px; font-size: 12px; text-transform: uppercase; text-decoration: none; font-weight: 700;
	background: #d9d9d9; color: var(--s-text); border: 0;
}
.btn:hover { color: var(--s-text); background: #cdcdcd; }
.btn--accent { background: var(--s-accent); color: var(--s-accent-ink); }
.btn--accent:hover { color: var(--s-accent-ink); background: color-mix(in srgb, var(--s-accent) 85%, #000); }
.btn--outline { background: transparent; color: inherit; border: 1px solid currentColor; justify-content: center; padding: 12px 22px; }
.btn--outline:hover { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-accent-ink); }
.btn svg { width: 12px; height: 12px; flex: none; }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--s-ink-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder {
	width: 100%; height: 100%; display: grid; place-items: center; color: #555;
	font-family: var(--s-display); font-size: 40px; text-transform: uppercase;
}

/* ---------- Residents ---------- */
.residents { list-style: none; margin: 0; padding: 0; max-width: 1100px; }
.residents li { border-bottom: 1px solid var(--s-line-dark); }
.residents li:first-child { border-top: 1px solid var(--s-line-dark); }
.residents a {
	display: flex; align-items: center; gap: 14px; padding: 18px 0; text-decoration: none;
	font-size: clamp(16px, 1.2vw + 10px, 20px); line-height: 1.3; text-transform: uppercase; font-weight: 400;
}
.residents a::after { content: "→"; margin-left: auto; padding-left: 12px; opacity: 0; transition: opacity .2s; }
.residents a:hover::after, .residents a:focus-visible::after { opacity: 1; }
.res-tag {
	flex: none; font-size: 13px; font-weight: 700; line-height: 1; padding: 5px 7px;
	background: var(--s-accent); color: var(--s-accent-ink);
}

/* ---------- About ---------- */
.about { text-align: center; }
.about__text { max-width: 62ch; margin: 28px auto 0; font-size: 14px; }
.about__text p { margin: 0 0 1em; }
.about__cta { display: inline-flex; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--s-black); color: #fff; padding: clamp(48px, 6vw, 80px) 0 calc(32px + var(--s-bar-h) + var(--s-safe-b)); }
.site-footer__grid {
	display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	font-size: 12px; text-transform: uppercase;
}
.site-footer h2 { font-size: 12px; margin: 0 0 12px; color: var(--s-muted); font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer__mark {
	margin-top: clamp(40px, 6vw, 72px); font-family: var(--s-display); text-transform: uppercase;
	font-size: clamp(56px, 13vw, 200px); line-height: .85; letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px;
	font-size: 11px; text-transform: uppercase; color: var(--s-muted);
}

/* ---------- Player bar ---------- */
.player-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: var(--s-bar-h);
	background: var(--s-black); color: #fff; border-top: 1px solid var(--s-line-dark);
	display: grid; grid-template-columns: auto auto 1fr auto; align-items: stretch;
}
.player-bar__btn {
	width: var(--s-bar-h); display: grid; place-items: center; border-right: 1px solid var(--s-line-dark);
}
.player-bar__btn svg { width: 18px; height: 18px; }
.player-bar__btn--play { background: var(--s-accent); color: var(--s-accent-ink); border-right: 0; }
.player-bar__btn--play:hover { color: var(--s-accent-ink); filter: brightness(1.08); }
.player-bar__now {
	min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px;
	font-size: 12px; text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.player-bar__now strong { flex: none; }
.player-bar__title { overflow: hidden; text-overflow: ellipsis; }
.player-bar__status { display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 11px; text-transform: uppercase; }
.player-bar .icon-pause, .player-bar.is-playing .icon-play { display: none; }
.player-bar.is-playing .icon-pause { display: block; }
.player-bar .icon-muted, .player-bar.is-muted .icon-volume { display: none; }
.player-bar.is-muted .icon-muted { display: block; }
@media (max-width: 560px) { .player-bar__status { display: none; } .player-bar { grid-template-columns: auto auto 1fr; } }

/* ---------- Generic pages ---------- */
.page-hero { background: var(--s-ink); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-hero__kicker { margin-bottom: 14px; }
.page-hero__meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.single-media { background: var(--s-black); }
.single-media img { width: 100%; max-height: 78vh; object-fit: cover; }
.single-media iframe, .single-media audio { width: 100%; }
.single-media .embed-16x9 { position: relative; aspect-ratio: 16 / 9; }
.single-media .embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.single-media audio { padding: 16px var(--s-gutter); }

.entry { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(36px, 5vw, 64px); }
.entry-content { max-width: 760px; font-size: 15px; }
.entry-content.is-wide { max-width: none; }
.entry-content h2, .entry-content h3 {
	font-family: var(--s-display); font-weight: 400; text-transform: uppercase; line-height: 1;
	margin: 1.6em 0 .5em;
}
.entry-content h2 { font-size: clamp(30px, 4vw, 48px); }
.entry-content h3 { font-size: clamp(24px, 3vw, 34px); }
.entry-content a { color: var(--s-accent); }
.entry-content img { height: auto; }
.entry-content blockquote { margin: 1.5em 0; padding-left: 18px; border-left: 3px solid var(--s-accent); }
.entry-content input, .entry-content textarea, .entry-content select {
	font: inherit; font-size: 16px; padding: 10px; border: 1px solid #bbb; background: #fff; max-width: 100%;
}
.entry-content input[type="submit"], .entry-content button[type="submit"] {
	background: var(--s-accent); color: var(--s-accent-ink); border: 0; padding: 12px 20px; text-transform: uppercase; cursor: pointer;
}
.alignwide { max-width: 1100px; }
.alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 12px; color: var(--s-muted); }

.pagination { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; text-transform: uppercase; }
.pagination .page-numbers { padding: 8px 12px; background: #d9d9d9; text-decoration: none; }
.pagination .current { background: var(--s-accent); color: var(--s-accent-ink); }

.empty-state { font-size: 13px; }

/* ---------- Device tuning (1.2.0) ---------- */
/* Long single words in big titles wrap instead of running off narrow screens. */
.display, .entry-content h2, .entry-content h3 { overflow-wrap: break-word; }

/* iPhone home bar and notch: keep the player bar and small window clear of them. */
.player-bar { height: calc(var(--s-bar-h) + var(--s-safe-b)); padding-bottom: var(--s-safe-b); }
.live-stage.is-docked { bottom: var(--s-safe-b); }
.site-header, .overlay__top { padding-left: max(var(--s-gutter), var(--s-safe-l)); padding-right: max(var(--s-gutter), var(--s-safe-r)); }
@media (min-width: 900px) {
	/* Bar sits at the top here, so no bottom inset. */
	body.is-docked.has-live-stage .player-bar { height: var(--s-bar-h); padding-bottom: 0; }
}

/* Small phones: keep the header and player bar uncluttered. */
@media (max-width: 479px) {
	.site-header .live-pill { display: none; }
	.player-bar__now strong { display: none; }
	.player-bar__now { padding: 0 12px; }
}

/* Touch screens: comfortable finger-sized targets (about 44px). */
@media (pointer: coarse) {
	.icon-btn { width: 44px; height: 44px; }
	.btn { min-height: 44px; }
	.week-tabs button { min-height: 44px; padding-top: 0; padding-bottom: 0; }
	.live-pill { padding: 12px 4px; }
	.site-brand { display: inline-block; padding: 12px 0; }
	.header-nav ul { gap: 10px; }
	.header-nav a { display: inline-block; padding: 14px 6px; min-width: 44px; text-align: center; }
	.text-link { display: inline-block; padding: 10px 0; }
	.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
}

/* WordPress admin bar (logged-in only): on small phones it scrolls away, so pin it. */
@media (max-width: 600px) {
	body.admin-bar #wpadminbar { position: fixed; }
}

/* Audio embeds (SoundCloud, Mixcloud) and the fallback Listen button (1.2.2). */
.single-media .embed-audio { max-width: 1100px; margin: 0 auto; padding: 16px var(--s-gutter); }
.single-media .embed-audio iframe { width: 100%; border: 0; display: block; }
.single-media .media-link { padding-top: 24px; padding-bottom: 24px; }
.single-media .media-link .btn { display: inline-flex; }

/* "Open in SoundCloud app" link under SoundCloud players (1.2.3). */
.embed-audio__app {
	display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 16px;
	background: var(--s-accent); color: var(--s-accent-ink); text-decoration: none;
	font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.embed-audio__app:hover { color: var(--s-accent-ink); filter: brightness(1.08); }

/* Player band under the post title and info, above the image (1.2.4). */
.single-player { background: var(--s-ink); color: #fff; padding: 0 0 clamp(28px, 4vw, 48px); }
.single-player .embed-audio { max-width: none; margin: 0; padding: 0; }
.single-player .embed-audio iframe { width: 100%; border: 0; display: block; }
.single-player .media-link { padding: 0; }
/* Sensorial Player plugin, large version in the band. */
.single-player .sp { margin: 0; --sp-art: 200px; padding: 18px; gap: 22px; }
.single-player .sp__wave { height: 110px; }
.single-player .sp__title { font-size: clamp(24px, 3vw, 42px); }
.single-player .sp__play { width: 64px; height: 64px; }
@media (max-width: 600px) {
	.single-player .sp { --sp-art: 64px; padding: 12px; gap: 12px; }
	.single-player .sp__wave { height: 76px; }
	.single-player .sp__title { font-size: 20px; }
	.single-player .sp__play { width: 48px; height: 48px; }
}
.single-player .embed-audio__app { margin-top: 12px; }

/* ---------- Live video controls: tap for sound + full screen (1.3.0) ---------- */
.live__ctrl { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.live__ctrl button {
	position: absolute; pointer-events: auto; display: grid; place-items: center;
	color: #fff; background: rgba(0, 0, 0, .55); border: 0; cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.live__ctrl button:hover { background: rgba(0, 0, 0, .75); }
.live__sound, .live__fs { right: 12px; width: 44px; height: 44px; }
.live__sound { bottom: 64px; }
.live__sound svg { width: 22px; height: 22px; }
.live__sound .icon-volume, .live-stage.is-unmuted .live__sound .icon-muted { display: none; }
.live-stage.is-unmuted .live__sound .icon-volume { display: block; }
.live__fs { bottom: 12px; }
.live__fs svg { width: 22px; height: 22px; }
.live__fs .icon-collapse, .live-stage.is-fs .live__fs .icon-expand { display: none; }
.live-stage.is-fs .live__fs .icon-collapse { display: block; }
/* Only while live, on the big player or in full screen; sound button only while muted. */
.live-stage:not([data-state="live"]) .live__ctrl,
.live-stage.is-docked:not(.is-fs) .live__ctrl { display: none; }

/* Real full screen (computers, Android, iPad). */
.live-stage:fullscreen { background: #000; }
.live-stage:-webkit-full-screen { background: #000; width: 100%; height: 100%; }
.live-stage.is-fs .live-stage__expand { display: none; }
.live-stage.is-fs video, .live-stage.is-fs iframe { object-fit: contain; }

/* iPhone: fill the screen, and turn the picture sideways while the phone is upright. */
html.has-pseudo-fs, html.has-pseudo-fs body { overflow: hidden; }
.live-stage.is-pseudo-fs {
	position: fixed !important; top: 0 !important; left: 0 !important; right: auto !important; bottom: auto !important;
	width: 100vw !important; height: 100vh !important; height: 100dvh !important;
	z-index: 1000 !important; visibility: visible; background: #000; border: 0;
}
@media (orientation: portrait) {
	.live-stage.is-pseudo-fs {
		width: 100vh !important; width: 100dvh !important;
		height: 100vw !important;
		transform-origin: top left;
		transform: rotate(90deg) translateY(-100%);
	}
}


/* 1.3.6 — page loading in place (radio keeps playing): thin progress line under the top edge. */
html.is-loading::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 100000;
	background: var(--s-accent);
	transform-origin: 0 50%;
	animation: s-loading 1.1s ease-in-out infinite;
	pointer-events: none;
}
@keyframes s-loading {
	0% { transform: scaleX(0); opacity: 1; }
	70% { transform: scaleX(.85); opacity: 1; }
	100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { html.is-loading::before { animation: none; transform: none; opacity: .8; } }
