/*
Theme Name: Pohoda
Theme URI: https://radiopohoda.sk
Author: LonexDigital
Author URI: https://lonexdigital.com
Description: Ľahká téma pre internetové rádio. Živý stream s prehrávačom, ktorý hrá ďalej aj pri prechode medzi stránkami, práve hraná skladba, kontaktný formulár bez pluginu. Bez jQuery, bez slidera, s lokálne uloženými fontami.
Version: 1.0.6
Requires at least: 6.3
Tested up to: 6.6
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: pohoda
*/

/* ---------- Fonty (lokálne, variabilné, len latin + latin-ext) ---------- */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("assets/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Zilla Slab";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Zilla Slab";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/zilla-slab-latin-ext-700-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bebas Neue (SIL OFL 1.1, assets/fonts/OFL-bebas-neue.txt) – len pre tlačidlá v hlavičke,
   rovnaké písmo ako na radiopohoda.com. Podmnožina latinka + slovenské znaky. */
@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
}

/* ---------- Tokeny ---------- */
:root {
	color-scheme: dark;

	/* Tri základné farby sa dajú zmeniť v Prispôsobiť → Farby. Ostatné sa z nich dopočítajú. */
	--bg: #171210;
	--text: #f2e8d5;
	--accent: #e8a917;
	--accent-ink: #1a1206;
	--live: #e0482f;

	/* Statické pozadie webu. Vlastný obrázok: Prispôsobiť → Pozadie webu. */
	--bg-image: url("assets/img/pozadie-1920.webp");
	--bg-dim: 24%;

	--surface: color-mix(in srgb, var(--bg) 90%, var(--text));
	--glass: color-mix(in srgb, var(--bg) 74%, transparent);
	--line: color-mix(in srgb, var(--text) 16%, transparent);
	--muted: color-mix(in srgb, var(--text) 76%, var(--bg));

	--font-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-button: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif-condensed, sans-serif;
	/* Tlačidlá v hlavičke majú farby ako na radiopohoda.com (Rádio Pohoda 1). */
	--hbtn-yellow: #f9ca42;
	--hbtn-dark: #121417;
	--hbtn-red: #fe281c;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.3125rem;
	--step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--step-3: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

	--gutter: clamp(1.25rem, 4vw, 3.5rem);
	--wrap: 72rem;
	--measure: 66ch;
	--player-h: 4.5rem;
	--radius: 0.5rem;
}

/* ---------- Základ ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px));
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Pozadie stojí na mieste, obsah sa posúva cez neho. Pevný pseudo-prvok namiesto
   background-attachment: fixed, ktoré na iOS nefunguje a pri posúvaní zbytočne prekresľuje. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(color-mix(in srgb, var(--bg) var(--bg-dim), transparent), color-mix(in srgb, var(--bg) var(--bg-dim), transparent)),
		var(--bg-image) 38% center / cover no-repeat,
		var(--bg);
}

@media (max-width: 48em) {
	:root {
		--bg-image: url("assets/img/pozadie-1280.webp");
	}
}

/* Pätička drží pri spodku aj na krátkych stránkach. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

main {
	flex: 1 0 auto;
}

body.no-player {
	padding-bottom: 0;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img,
video {
	height: auto;
}

a {
	color: var(--accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 0.14em;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	text-wrap: balance;
}

h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); }
h3,
h4 { font-size: var(--step-1); }

p,
ul,
ol,
blockquote,
figure,
table {
	margin: 0 0 1.25em;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 1rem;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Hlavička: polovica menu, logo v strede, druhá polovica ---------- */
.site-header {
	position: relative;
	z-index: 40;
	background: var(--glass);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Hlavička ostáva pri posúvaní hore (vypína sa v Prispôsobiť → Rozloženie a šírka).
   Po odrolovaní sa zníži a stmavne, aby nezaberala miesto a text pod ňou nepresvital. */
.sticky-header .site-header {
	position: sticky;
	top: 0;
	transition: background-color 0.2s ease;
}

.sticky-header .admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.sticky-header .admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* Lišta WordPressu na telefóne odroluje preč, hlavička sa prilepí úplne hore. */
	.sticky-header .admin-bar .site-header {
		top: 0;
	}
}

.sticky-header .site-nav,
.sticky-header .site-nav .brand img {
	transition: min-height 0.2s ease, height 0.2s ease, padding 0.2s ease;
}

.sticky-header.is-scrolled .site-header {
	background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.sticky-header.is-scrolled .site-nav {
	min-height: 3.75rem;
	padding-block: 0.3rem;
}

.sticky-header.is-scrolled .site-nav .brand img {
	height: 3rem;
}

.sticky-header {
	scroll-padding-top: 5rem;
}


.site-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(0.75rem, 3vw, 2.5rem);
	min-height: 5.75rem;
	padding-block: 0.6rem;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Pravá strana: polovica menu pri logu, ikony sietí úplne vpravo. */
.site-nav__end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-width: 0;
}

.social--header {
	flex: none;
	gap: 0.4rem;
}

.social--header a {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--text);
}

/* Obe polovice sa tlačia k logu. */
.site-nav__list--left {
	justify-content: flex-end;
}

.site-nav__list--right {
	justify-content: flex-start;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
}

.brand img {
	display: block;
	width: auto;
	height: 4.25rem;
}

.site-nav__list a {
	display: block;
	padding: 0.6rem 0.9rem;
	color: var(--text);
	font-weight: 550;
	text-decoration: none;
	border-radius: var(--radius);
}

.site-nav__list a:hover {
	background: color-mix(in srgb, var(--text) 10%, transparent);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	color: var(--accent);
}

.nav-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle svg {
	display: block;
	margin: auto;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* ---------- Tlačidlá v riadku s menu: Webová aplikácia (vľavo) a LIVE (vpravo) ----------
   Riadok s menu smie byť širší než obsah stránky (najviac 86rem), aby sa tlačidlá zmestili
   vedľa menu a logo ostalo v strede. Keď je strana užšia, tlačidlá a ikony sa zmenšia;
   na úzkej obrazovke sa menu zbalí (pozri blok „Zbalené menu“). */
.site-nav.wrap {
	max-width: max(var(--wrap), 86rem);
}

.site-nav__start {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	container-type: inline-size;
}

.site-nav__start .site-nav__list--left {
	margin-left: auto;
}

.site-nav__end {
	container-type: inline-size;
}

.site-nav__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
}

.hbtn {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 0.95rem;
	min-height: 3.1rem;
	padding: 0.2rem 1.5rem 0;
	font-family: var(--font-button);
	font-size: 1.65rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color 0.15s ease, outline-color 0.15s ease, transform 0.15s ease;
}

.hbtn[hidden] {
	display: none;
}

.hbtn svg {
	flex: none;
	margin-top: -0.2rem; /* písmo Bebas sedí vyššie; ikona ostane na strede textu */
}

.hbtn:active {
	transform: scale(0.97);
}

/* Webová aplikácia: tmavé tlačidlo so žltým okrajom a jemným lemom okolo.
   Odsadenia rátajú s prázdnym okrajom v ikone (viditeľne 23 px od okraja ako na radiopohoda.com). */
.hbtn--app {
	gap: 0.7rem;
	padding-left: 1rem;
	padding-right: 1.35rem;
	font-size: 1.56rem;
	color: #fff;
	background: var(--hbtn-dark);
	border: 2px solid var(--hbtn-yellow);
	outline: 1.5px solid color-mix(in srgb, var(--hbtn-yellow) 16%, transparent);
	outline-offset: 7px;
}

.hbtn--app svg {
	width: 1.35rem;
	height: 1.35rem;
	color: var(--hbtn-yellow);
}

.hbtn--app:hover {
	background: color-mix(in srgb, var(--hbtn-yellow) 12%, var(--hbtn-dark));
	outline-color: color-mix(in srgb, var(--hbtn-yellow) 32%, transparent);
}

/* Bez odkazu ho vidí len správca – prerušovaný okraj. */
.hbtn--app[data-empty] {
	border-style: dashed;
	opacity: 0.75;
}

/* LIVE: plné žlté tlačidlo s tmavým textom a červenou bodkou v rohu. */
.hbtn--live {
	gap: 0.75rem;
	min-height: 3.15rem;
	padding-inline: 1.5rem;
	color: var(--hbtn-dark);
	background: var(--hbtn-yellow);
}

.hbtn--live svg {
	width: 0.9rem;
	height: 0.9rem;
}

.hbtn--live:hover {
	background: color-mix(in srgb, var(--hbtn-yellow) 85%, #fff);
}

.hbtn__pause,
[data-player="playing"] .hbtn--live[aria-pressed="true"] .hbtn__play {
	display: none;
}

[data-player="playing"] .hbtn--live[aria-pressed="true"] .hbtn__pause {
	display: block;
}

.hbtn__dot {
	position: absolute;
	top: -0.35rem;
	right: 0.25rem;
	width: 1.15rem;
	height: 1.15rem;
	background: var(--hbtn-red);
	border: 3px solid var(--hbtn-dark);
	border-radius: 50%;
}

.hbtn__dot[hidden] {
	display: none;
}

.hbtn__dot::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--hbtn-red) 70%, transparent);
	animation: hbtn-pulse 1.6s ease-out infinite;
}

@keyframes hbtn-pulse {
	to {
		box-shadow: 0 0 0 0.6rem transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbtn__dot::after {
		animation: none;
	}
}

.sticky-header.is-scrolled .hbtn {
	min-height: 2.6rem;
	font-size: 1.45rem;
}

/* Strana hlavičky je úzka: menšie medzery, ikony a tlačidlá. */
@container (max-width: 30rem) {
	.site-nav__list a {
		padding-inline: 0.6rem;
	}

	.site-nav__actions {
		gap: 0.5rem;
	}

	.social--header {
		gap: 0.3rem;
	}

	.social--header a {
		width: 2.25rem;
		height: 2.25rem;
	}

	.hbtn {
		gap: 0.7rem;
		min-height: 2.75rem;
		padding-inline: 1.15rem;
		font-size: 1.4rem;
	}
}

/* Ešte užšia: z tlačidla Webová aplikácia ostane len ikona (text ostáva pre čítačky). */
@container (max-width: 26rem) {
	.hbtn--app {
		width: 2.9rem;
		padding: 0;
	}

	.hbtn--app svg {
		margin: 0;
	}

	.hbtn--app .hbtn__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Zbalené menu (mobil a tablet): logo vľavo, tlačidlá a ikony vpravo, položky po rozbalení
   pod sebou v pôvodnom poradí. Hranica je 71.99em (1152 px), lebo užšie by sa menu s tlačidlami
   do jedného riadka nezmestilo. */
@media (max-width: 71.99em) {
	.site-nav {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0;
		min-height: 4.75rem;
	}

	/* Obal pravej strany sa na mobile „rozpustí“, aby sa ikony dali dať do riadka s logom
	   a položky menu do rozbaľovacej časti. */
	.site-nav__start,
	.site-nav__end,
	.site-nav__actions {
		display: contents;
	}

	.site-nav.wrap {
		max-width: var(--wrap);
	}

	.site-nav .brand {
		order: 1;
		margin-right: auto;
	}

	.hbtn--app {
		order: 2;
		margin-right: 0.6rem;
	}

	.social--header {
		order: 3;
		margin-right: 0.6rem;
	}

	.hbtn--live {
		order: 4;
		margin-right: 0.6rem;
	}

	.site-nav .brand img {
		height: 3.25rem;
	}

	.nav-toggle {
		display: block;
		order: 5;
	}

	.site-nav__list {
		display: none;
		flex: 0 0 100%;
		flex-direction: column;
		gap: 0;
	}

	.site-nav__list--left {
		order: 6;
		padding-top: 0.5rem;
	}

	.site-nav__list--right {
		order: 7;
		padding-bottom: 0.5rem;
	}

	.site-nav.is-open .site-nav__list {
		display: flex;
	}

	.site-nav__list a {
		padding: 0.85rem 0.25rem;
		font-size: var(--step-1);
	}
}

/* Telefón: LIVE menšie, Webová aplikácia sa presunie do rozbaleného menu (na celú šírku). */
@media (max-width: 39.99em) {
	.hbtn {
		gap: 0.6rem;
		min-height: 2.5rem;
		padding-inline: 1rem;
		font-size: 1.3rem;
	}

	.hbtn--app {
		display: none;
		order: 8;
		justify-content: center;
		width: 100%;
		margin: 0.25rem 0 1rem;
	}

	.site-nav.is-open .hbtn--app:not([hidden]) {
		display: inline-flex;
	}

	/* Názov webu namiesto loga musí ustúpiť tlačidlám, aby ostal jeden riadok. */
	.site-nav .brand {
		min-width: 0;
		font-size: clamp(1rem, 4.2vw, 1.5rem);
	}

	.social--header {
		gap: 0.3rem;
		margin-right: 0.45rem;
	}

	.social--header a {
		width: 2.25rem;
		height: 2.25rem;
	}

	.hbtn--live {
		margin-right: 0.45rem;
	}
}

/* Veľmi úzky telefón (do 384 px): z LIVE ostane ikona s bodkou, nápis len pre čítačky. */
@media (max-width: 23.99em) {
	.hbtn--live {
		width: 2.6rem;
		padding: 0;
	}

	.hbtn--live svg {
		margin: 0;
	}

	.hbtn--live .hbtn__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ---------- Úvod: prehrávač ---------- */
.stage {
	position: relative;
	padding-block: clamp(1.5rem, 4vw, 3.5rem);
	isolation: isolate;
}

.stage__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: start;
}

/* S bannerom sa prehrávač zúži a banner stojí vedľa neho, zvislo vycentrovaný na výšku prehrávača.
   Prehrávač je vždy aspoň taký vysoký ako banner. Na telefóne je banner pod prehrávačom. */
@media (min-width: 48em) {
	.stage__grid.has-aside {
		grid-template-columns: minmax(0, 1fr) 300px;
		align-items: stretch;
	}

	.has-aside .console {
		display: grid;
		align-content: center;
	}

	/* Banner je zvislo v strede výšky prehrávača. */
	.has-aside .slot--side {
		position: relative;
		align-content: center;
	}

	/* Popis „Reklama“ visí pod bannerom mimo toku, aby sa na stred zarovnával samotný obrázok. */
	.has-aside .slot--side .slot__note {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0.35rem 0 0;
		text-align: center;
	}

	.has-aside .slot--side .slot__edit {
		position: absolute;
		bottom: 100%;
		left: 50%;
		margin-bottom: 0.35rem;
		white-space: nowrap;
		transform: translateX(-50%);
	}
}

.console {
	/* Vnútro konzoly sa riadi jej vlastnou šírkou, nie šírkou okna: široká je vtedy,
	   keď je stránka široká alebo keď vedľa nej nie je banner. */
	container: console / inline-size;
	min-width: 0;
	padding: clamp(1.25rem, 3.5vw, 2.75rem);
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: 1.25rem;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.console__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
}

/* Široká konzola: vľavo to, čo hrá, vpravo výber streamu. */
@container console (min-width: 58rem) {
	.console__inner.has-stations {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		grid-template-areas:
			"live live"
			"now stations"
			"foot foot";
		align-items: center;
	}

	.has-stations > .live { grid-area: live; }
	.has-stations > .stations { grid-area: stations; }
	.has-stations > .console__now { grid-area: now; }
	.has-stations > .console__foot { grid-area: foot; }

	/* Predpona .console__inner dáva týmto pravidlám prednosť pred základnými, ktoré sú v súbore nižšie. */
	.console__inner .sun-play {
		width: clamp(9rem, 16cqi, 13rem);
	}

	.console__inner .hero__title {
		font-size: clamp(2.5rem, 4.6cqi, 5rem);
	}

	.console__inner .hero__title.is-long {
		font-size: clamp(1.75rem, 2.9cqi, 3.25rem);
	}

	.console__inner .viz {
		height: 4rem;
	}
}

.live {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-weight: 650;
}

.live__dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--live);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 70%, transparent);
}

[data-player="playing"] .live__dot {
	animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
	to {
		box-shadow: 0 0 0 0.7rem transparent;
	}
}

/* Výber streamu: dve veľké tlačidlá s tým, čo na ktorom práve hrá */
.stations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: 0.75rem;
}

.station {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
	padding: 0.9rem 1.1rem;
	background: transparent;
	border: 2px solid var(--line);
	border-radius: 0.9rem;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.station:hover {
	border-color: color-mix(in srgb, var(--text) 45%, transparent);
}

.station[aria-pressed="true"] {
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	border-color: var(--accent);
}

.station__name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-size: var(--step-1);
	line-height: 1.2;
}

.station__name::before {
	content: "";
	flex: none;
	width: 0.85rem;
	height: 0.85rem;
	border: 2px solid var(--muted);
	border-radius: 50%;
}

.station[aria-pressed="true"] .station__name::before {
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: inset 0 0 0 2px var(--bg);
}

.station__song {
	overflow: hidden;
	color: var(--muted);
	font-size: var(--step--1);
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Slnko = tlačidlo prehrávania */
.console__now {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 3vw, 2.25rem);
}

.console__text {
	min-width: 0;
}

.sun-play {
	position: relative;
	flex: none;
	width: clamp(6rem, 15vw, 10rem);
	aspect-ratio: 1;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.sun-play:hover {
	transform: scale(1.04);
}

.sun-play:active {
	transform: scale(0.98);
}

.sun-play::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(to bottom, var(--accent) 10%, var(--live) 82%);
	-webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 56%), repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 10px);
	mask-image: linear-gradient(to bottom, #000 56%, transparent 56%), repeating-linear-gradient(to bottom, #000 0 5px, transparent 5px 10px);
}

[data-player="playing"] .sun-play::before {
	animation: stripes 0.9s linear infinite;
}

@keyframes stripes {
	to {
		-webkit-mask-position: 0 0, 0 10px;
		mask-position: 0 0, 0 10px;
	}
}

.sun-play .play-icon {
	position: absolute;
	inset: 27%;
	display: grid;
	place-items: center;
	background: var(--bg);
	color: var(--accent);
	border-radius: 50%;
}

.sun-play .play-icon svg {
	width: 46%;
	height: 46%;
}

.hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 1.1rem + 2.9vw, 3.5rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.hero__title.is-long {
	font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
	line-height: 1.1;
}

.hero__artist {
	margin: 0.6rem 0 0;
	color: var(--muted);
	font-size: var(--step-1);
}

.hero__artist:empty {
	display: none;
}

/* Pásik pod prehrávačom: pohyblivé stĺpce + hlasitosť */
.console__foot {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.viz {
	display: flex;
	flex: 1;
	align-items: flex-end;
	gap: 3px;
	height: 3rem;
	min-width: 0;
	overflow: hidden;
}

.viz i {
	flex: 1;
	min-width: 3px;
	height: 100%;
	background: linear-gradient(to top, var(--live), var(--accent));
	border-radius: 2px;
	transform: scaleY(0.08);
	transform-origin: bottom;
	transition: transform 0.4s ease;
}

[data-player="playing"] .viz i {
	animation: eq var(--d, 0.9s) ease-in-out var(--l, 0s) infinite alternate;
}

.vol {
	display: flex;
	flex: none;
	align-items: center;
	gap: 0.4rem;
}

.vol input[type="range"] {
	width: clamp(5rem, 16vw, 9rem);
	accent-color: var(--accent);
}

@media (max-width: 34.99em) {
	.console__now {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Bannery ----------
   Triedy sa zámerne nevolajú „ad…“: blokovače reklamy skrývajú prvky s takými názvami
   (napr. .ad__item a .ad__label sú v zozname EasyList) a banner by potom nebolo vidieť. */
.slot {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	min-width: 0;
}

.slot--wide {
	padding-block: clamp(1rem, 3vw, 2rem);
}

.slot--side {
	width: 100%;
	max-width: 300px;
	justify-self: center;
}

.slot__note {
	margin: 0 0 -0.35rem;
	color: var(--muted);
	font-size: 0.75rem;
}

.slot__item {
	max-width: 100%;
}

.slot__item > *,
.slot__item figure {
	margin: 0;
}

.slot img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: var(--radius);
}

.slot iframe,
.slot ins {
	max-width: 100%;
}

.slot__edit {
	padding: 0.2rem 0.6rem;
	background: var(--bg);
	border: 1px dashed var(--accent);
	border-radius: 99rem;
	font-size: 0.75rem;
	text-decoration: none;
}

/* Obrázok nahraný do širokého miesta nikdy nie je vyšší než 22rem, aj keby bol na výšku. */
.slot--wide img {
	width: auto !important;
	max-height: 22rem;
}

.slot--empty {
	padding: 1.25rem;
	border: 2px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: var(--step--1);
	text-align: center;
}

.slot--empty.slot--wide {
	margin-block: 1rem;
}

.slot--empty.slot--side {
	min-height: 250px;
	align-content: center;
}

.slot--empty p {
	margin: 0;
}

/* ---------- Najnovšie články ---------- */
.latest {
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.latest {
	container: latest / inline-size;
}

.latest__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.5rem;
}

.latest__head h2 {
	margin: 0;
}

.latest__head a {
	font-weight: 650;
}

.latest__grid {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
}

/* Dva stĺpce od okraja po okraj stránky (rovnako ako prehrávač nad nimi).
   Vľavo najnovší článok: náhľad je široký ako stĺpec, ale najviac 20rem vysoký, takže blok
   nerastie do výšky ani na veľmi širokej stránke.
   Vpravo staršie pod sebou: zoznam je presne taký vysoký ako najnovší článok, riadky si výšku
   delia rovným dielom a náhľad vypĺňa celý riadok. Prvý náhľad tak začína v jednej rovine
   s náhľadom najnovšieho a posledný končí s jeho textom. */
@media (min-width: 56em) {
	.latest__grid {
		grid-template-columns: min(36rem, 42%) minmax(0, 1fr);
		gap: clamp(1.5rem, 3vw, 2.5rem);
		align-items: stretch;
	}

	.latest__grid--single {
		grid-template-columns: minmax(0, 34rem);
	}

	.latest .latest__rest {
		display: grid;
		grid-auto-rows: minmax(0, 1fr);
		gap: 1rem;
		align-content: stretch;
	}

	.latest .latest__rest .story {
		align-items: stretch;
		gap: 1.25rem;
		min-height: 5.5rem;
		padding: 0;
		border: 0;
	}

	.latest .latest__rest .story__media {
		position: relative;
		flex: none;
		width: clamp(8rem, 30%, 15rem);
		aspect-ratio: auto;
	}

	/* Obrázok nesmie riadok roztiahnuť; výšku určuje najnovší článok. */
	.latest .latest__rest .story__media img {
		position: absolute;
		inset: 0;
	}

	.latest .latest__rest .story__body {
		align-self: center;
		min-width: 0;
	}

	/* Jediný starší článok sa nenaťahuje na celú výšku najnovšieho. */
	.latest .latest__rest .story:only-child {
		align-self: start;
		min-height: 9rem;
	}
}

.latest__rest {
	display: grid;
	align-content: start;
}

.story h3 {
	margin: 0 0 0.3em;
}

.story h3 a {
	color: var(--text);
	text-decoration: none;
}

.story h3 a:hover {
	color: var(--accent);
}

.story .post-meta {
	margin: 0;
}

.story__media {
	display: block;
	overflow: hidden;
	background: color-mix(in srgb, var(--bg) 80%, transparent);
	border-radius: var(--radius);
}

.story__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--thumb-fit, cover);
	transition: transform 0.3s ease;
}

.story:hover .story__media img {
	transform: scale(1.03);
}

.story--lead .story__media {
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 20rem;
	margin-bottom: 0.85rem;
}

.story--lead h3 {
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
}

.latest__rest .story h3 {
	font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3rem);
	line-height: 1.25;
}

/* Úryvok pri starších článkoch sa ukáže až na širokej stránke, kde je naň miesto. */
.story__excerpt {
	display: none;
}

@container latest (min-width: 76rem) {
	.latest .story__excerpt {
		display: -webkit-box;
		max-width: 60ch;
		margin: 0.4rem 0 0;
		overflow: hidden;
		color: var(--muted);
		font-size: var(--step--1);
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

.story--lead p:last-child {
	margin: 0.6rem 0 0;
	color: var(--muted);
	font-size: var(--step--1);
}

.latest__rest .story {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding-block: 1rem;
	border-bottom: 1px solid var(--line);
}

.latest__rest .story:first-child {
	padding-top: 0;
}

.latest__rest .story:last-child {
	border-bottom: 0;
}

.latest__rest .story__media {
	flex: none;
	width: clamp(5.5rem, 22vw, 7.5rem);
	aspect-ratio: 4 / 3;
}

/* Ikony prehrávania: spoločné pre hero aj lištu */
.play-icon .i-pause,
.play-icon .i-spin,
[data-player="playing"] .play-icon .i-play,
[data-player="loading"] .play-icon .i-play {
	display: none;
}

[data-player="playing"] .play-icon .i-pause,
[data-player="loading"] .play-icon .i-spin {
	display: block;
}

.play-icon .i-spin {
	animation: spin 0.9s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(1turn);
	}
}

/* ---------- Podstránky ---------- */
.page-head {
	padding-block: clamp(2.5rem, 7vw, 5rem) 0;
}

.page-head h1 {
	margin: 0;
}

.swoosh {
	display: block;
	width: 9rem;
	height: auto;
	margin-top: 0.75rem;
	color: var(--accent);
}

.content {
	padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 6rem);
}

.content > *,
.entry > * {
	max-width: var(--measure);
}

.content > .alignwide,
.entry > .alignwide {
	max-width: 100%;
}

.content > .alignfull,
.entry > .alignfull {
	max-width: none;
	margin-inline: calc(var(--gutter) * -1);
}

.entry h2,
.entry h3,
.entry h4 {
	margin-top: 1.6em;
}

.entry > :first-child {
	margin-top: 0;
}

.entry img {
	border-radius: var(--radius);
}

.entry blockquote {
	padding-left: 1.25rem;
	border-left: 3px solid var(--accent);
	font-size: var(--step-1);
}

.entry table {
	width: 100%;
	border-collapse: collapse;
}

.entry th,
.entry td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.wp-caption,
figcaption {
	color: var(--muted);
	font-size: var(--step--1);
}

.wp-caption {
	max-width: 100%;
}

/* Tlačidlá: vlastné aj blokové */
.btn,
.wp-block-button__link,
.entry input[type="submit"] {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 700;
	text-decoration: none;
	border: 0;
	border-radius: 99rem;
	cursor: pointer;
}

.btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* Zoznam článkov */
.post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-list > li {
	max-width: var(--measure);
	padding-block: 1.75rem;
	border-bottom: 1px solid var(--line);
}

.post-list h2 {
	margin-bottom: 0.3em;
}

.post-list h2 a {
	color: var(--text);
	text-decoration: none;
}

.post-list h2 a:hover {
	color: var(--accent);
}

.post-meta {
	color: var(--muted);
	font-size: var(--step--1);
}

.pagination {
	margin-top: 2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers {
	padding: 0.4rem 0.85rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
}

.pagination .current {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

/* ---------- Kontakt ---------- */
.contact {
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
}

@media (min-width: 56em) {
	.contact {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	}
}

.form {
	display: grid;
	gap: 1.1rem;
	max-width: 34rem;
}

.form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-weight: 400;
}

.form textarea {
	min-height: 9rem;
	resize: vertical;
}

.form input:focus-visible,
.form textarea:focus-visible {
	outline-offset: 0;
	border-color: var(--accent);
}

.form__trap {
	position: absolute;
	left: -200vw;
}

.form__status {
	margin: 0;
	min-height: 1.6em;
	font-weight: 600;
}

.form__status.is-error {
	color: color-mix(in srgb, var(--live) 70%, var(--text));
}

.form__status.is-ok {
	color: var(--accent);
}

.form .btn {
	justify-self: start;
}

/* ---------- Logá partnerov ---------- */
.logos[hidden] {
	display: none;
}

.logos {
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.logos__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1.25rem;
	margin-bottom: 1.25rem;
}

.logos__head h2 {
	margin: 0 auto 0 0;
	font-size: var(--step-1);
}

.logos__pause {
	font-size: var(--step--1);
}

.logos__pause[hidden] {
	display: none;
}

/* „Okno“ slideshow: skript mu nastaví šírku presne na počet viditeľných log a vycentruje ho.
   Čo je za okrajom, nie je vidno (overflow: hidden) – tam čakajú ďalšie logá a ich kópie. */
.logos {
	--logo-w: 11rem;
	--logo-h: 5.5rem;
}

.logos__view {
	max-width: 100%;
	margin-inline: auto;
	overflow: hidden;
}

/* Bez skriptu sa pás dá aspoň posúvať ručne (len vodorovne, bez zvislého posuvníka). */
.logos__view:not(.is-ready) {
	overflow-x: auto;
	overflow-y: hidden;
}

.logos__track {
	display: flex;
	gap: 1rem;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logos__track.is-sliding {
	transition: transform 0.6s ease;
}

.logos__item {
	flex: none;
}

.logos__item > * {
	display: block;
	width: var(--logo-w);
	height: var(--logo-h);
	padding: 0.5rem 1rem;
	border-radius: var(--radius);
}

.logos--tiles .logos__item > * {
	background: #fff;
}

/* Logo vyplní vnútro podložky a celé sa do nej zmestí – na šírku aj na výšku, bez orezania. */
.logos__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 34.99em) {
	.logos {
		--logo-w: 9.5rem;
		--logo-h: 5rem;
	}
}

/* ---------- Pätička ---------- */
.site-footer {
	background: var(--glass);
	border-top: 1px solid var(--line);
	padding-block: 2.5rem;
	color: var(--muted);
	font-size: var(--step--1);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--text);
}

.site-footer .brand img {
	height: 2.5rem;
}

.social {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--line);
	border-radius: 50%;
}

.social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}

/* ---------- Prehrávač (lišta dole, na každej stránke) ---------- */
.player {
	position: fixed;
	inset: auto 0 0;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 1rem;
	height: calc(var(--player-h) + env(safe-area-inset-bottom, 0px));
	padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.player__btn {
	flex: none;
	width: 3rem;
	height: 3rem;
	padding: 0;
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.player__btn.play-icon {
	display: grid;
	place-items: center;
}

.player__meta {
	display: grid;
	min-width: 0;
	flex: 1;
	line-height: 1.3;
}

.player__station {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--muted);
	font-size: var(--step--1);
	font-weight: 600;
}

.player__station .live__dot {
	width: 0.5rem;
	height: 0.5rem;
}

.player__track {
	overflow: hidden;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

[data-player="error"] .player__track {
	color: color-mix(in srgb, var(--live) 70%, var(--text));
}

.eq {
	display: none;
	align-items: flex-end;
	gap: 3px;
	height: 1.4rem;
}

.eq i {
	width: 3px;
	height: 100%;
	background: var(--accent);
	border-radius: 2px;
	transform-origin: bottom;
	animation: eq 1s ease-in-out infinite alternate;
}

.eq i:nth-child(2) { animation-duration: 0.7s; }
.eq i:nth-child(3) { animation-duration: 1.25s; }
.eq i:nth-child(4) { animation-duration: 0.85s; }

[data-player="playing"] .eq {
	display: flex;
}

@keyframes eq {
	from { transform: scaleY(0.2); }
	to { transform: scaleY(1); }
}

.player__switch {
	display: flex;
	flex: none;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 99rem;
}

.player__switch button {
	max-width: 6rem;
	padding: 0.35rem 0.8rem;
	overflow: hidden;
	background: transparent;
	border: 0;
	border-radius: 99rem;
	font-size: var(--step--1);
	font-weight: 650;
	white-space: nowrap;
	text-overflow: ellipsis;
	cursor: pointer;
}

.player__switch button[aria-pressed="true"] {
	background: var(--text);
	color: var(--bg);
}

@media (min-width: 40em) {
	.player__switch button {
		max-width: 11rem;
	}
}

/* Na mobile sú názvy streamov pod sebou, aby sa zmestili celé. */
@media (max-width: 39.99em) {
	.player {
		gap: 0.75rem;
	}

	.player__switch {
		flex-direction: column;
		padding: 2px;
		border-radius: 0.7rem;
	}

	.player__switch button {
		max-width: 8.5rem;
		padding: 0.12rem 0.6rem;
		border-radius: 0.5rem;
		font-size: 0.75rem;
		line-height: 1.45;
	}

	.player .eq {
		display: none;
	}
}

.player__select {
	flex: none;
	max-width: min(11rem, 38vw);
	padding: 0.5rem 0.7rem;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: var(--step--1);
	font-weight: 650;
	text-overflow: ellipsis;
	cursor: pointer;
}

.player__vol {
	display: none;
	align-items: center;
	gap: 0.5rem;
}

.player__mute {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.player__mute .i-muted,
.player__mute[aria-pressed="true"] .i-vol {
	display: none;
}

.player__mute[aria-pressed="true"] .i-muted {
	display: block;
}

.player__vol input[type="range"] {
	width: 7rem;
	accent-color: var(--accent);
}

@media (min-width: 40em) {
	.player__vol {
		display: flex;
	}
}

.player__setup {
	margin: 0;
	font-size: var(--step--1);
}

/* ---------- Späť hore ---------- */
.to-top {
	position: fixed;
	right: var(--gutter);
	bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px) + 1rem + var(--to-top-lift, 0px));
	z-index: 45;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.4);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.75rem);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.to-top:hover {
	transform: translateY(-2px);
}

.no-player .to-top {
	bottom: calc(1rem + var(--to-top-lift, 0px));
}

.linklike {
	padding: 0;
	background: none;
	border: 0;
	color: var(--text);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.site-footer__legal {
	display: grid;
	gap: 0.4rem;
	justify-items: center;
	text-align: center;
}

/* „Powered by Lonex Digital“ – drobný tlmený riadok pod odkazmi. */
.site-footer__powered {
	margin-top: 0.15rem;
	color: color-mix(in srgb, var(--text) 62%, transparent);
	font-size: 0.85rem;
}

.site-footer__powered[hidden] {
	display: none;
}

/* „Lonex Digital“ zlatou (farba značky; zmena tu: --lonex-gold). */
.site-footer__powered {
	--lonex-gold: #d4af37;
}

.site-footer__powered a {
	color: var(--lonex-gold);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid color-mix(in srgb, var(--lonex-gold) 55%, transparent);
}

.site-footer__powered a:hover {
	color: color-mix(in srgb, var(--lonex-gold) 75%, #fff);
	border-bottom-color: currentColor;
}

/* Odkazy sú pod textom o autorských právach, nie vedľa neho. */
.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	justify-content: center;
}

.site-footer__links[hidden],
.site-footer__extra[hidden] {
	display: none;
}

/* Odkazy pluginov presunuté spod pätičky (pozri app.js). Ich vlastné pozadie, okraje a farby
   sa zrušia, aby vyzerali ako ostatné odkazy v pätičke. */
.site-footer__extra,
.site-footer__extra .is-adopted,
.site-footer__extra .is-adopted :is(div, p, nav, section, ul, ol, li, span) {
	display: inline !important;
	width: auto !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	text-align: inherit !important;
	list-style: none !important;
}

.site-footer .site-footer__extra button {
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	color: var(--text) !important;
	font: inherit !important;
	text-decoration: underline !important;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.site-footer .site-footer__extra a {
	color: var(--text) !important;
	font-size: inherit !important;
	text-decoration: underline !important;
}

.entry code {
	font-size: 0.95em;
	overflow-wrap: anywhere;
}

/* ---------- Prechod medzi stránkami bez prerušenia hudby ---------- */
@view-transition {
	navigation: none;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.18s;
}

.player {
	view-transition-name: player;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.play-icon .i-spin {
		animation: spin 2s linear infinite !important;
	}
}

@media (max-width: 47.99em) {
	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__legal {
		justify-items: start;
		text-align: left;
	}

	.site-footer__links {
		justify-content: flex-start;
	}
}
