/* =========================================================================
   Radio Paweł MIAZGA — design system "modern gold 80s"
   Ciepła paleta złoto-czarna z subtelnymi sznytami lat 80 (scanline, grain,
   chromowany tekst, bezelowe ramki) — świadomie bez neonowego vaporwave.
   ========================================================================= */

:root {
  --gold: #a87932;
  --gold-light: #c49142;
  --gold-pale: #f2c675;
  --gold-deep: #7a5522;
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --card: #161616;
  --card-border: #262626;
  --text: #ddd;
  --text-muted: #9a9a9a;
  --font-display: 'Bungee', 'Segoe UI', sans-serif;
  --font-script: 'Sriracha', cursive;
  --font-heading: 'Oswald', 'Segoe UI', sans-serif;
  --font-accent: 'Teko', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
}

h1 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  background: linear-gradient(180deg, var(--gold-pale) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.6), 0 10px 25px rgba(168, 121, 50, 0.35);
}

h2 { font-family: var(--font-script); font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 400; color: var(--gold-pale); text-shadow: 2px 2px 0 rgba(0,0,0,0.6); }
h3 { font-family: var(--font-heading); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: 0.3px; color: #fff; }
h4 { font-family: var(--font-accent); font-size: 1.4rem; font-weight: 600; color: var(--gold-pale); text-transform: uppercase; letter-spacing: 2px; }

p { color: var(--text-muted); font-size: 1.02rem; }
a { color: var(--gold-pale); text-decoration: none; }
.muted { color: var(--text-muted); }
strong, b { color: #fff; }

/* Listy z edytowalnych tekstów (format_rich_text() w admin/content.php, składnia
   "/@ "), np. sekcja "Nasz zespół" — bez punktorów przeglądarki, z ikoną FA jako
   wizualnym markerem (ta ikona jest częścią samego tekstu, wpisana przez admina). */
.rich-list { list-style: none; margin: 0 0 1em; padding: 0; color: var(--text-muted); font-size: 1.02rem; }
.rich-list li { margin-bottom: 0.6em; display: flex; align-items: baseline; gap: 8px; }
.rich-list li:last-child { margin-bottom: 0; }
.rich-list i { color: var(--gold); flex-shrink: 0; }

/* Cytat i linia pozioma z edytowalnych tekstów (format_rich_text(), składnia
   "> " i "---") — używane w site_content i treściach aktualności. */
.rich-quote {
  margin: 0 0 1em; padding: 4px 20px; border-left: 3px solid var(--gold);
  color: var(--text-muted); font-style: italic; font-size: 1.02rem;
}
.rich-hr { border: none; border-top: 1px solid var(--card-border); margin: 2em 0; }

img { max-width: 100%; display: block; }

::selection { background: var(--gold); color: #000; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- Preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: var(--bg); transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { text-align: center; }
/* Ta sama poświata co .station-logo-glow na m.radiopawel.eu — animowanie
   box-shadow NA elemencie z border-radius:50% powodowało migotanie okrągłego
   przycięcia do kwadratu (znany błąd Chrome/Android przy przeliczaniu warstwy
   dla zmieniającej się wartości box-shadow). Naprawa: box-shadow ma STAŁĄ
   wartość na osobnej, nic nie przycinającej warstwie ::after, animuje się
   wyłącznie jej opacity — logo samo (.preloader__logo) jest już całkiem statyczne. */
.preloader__logo-glow { position: relative; width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; flex-shrink: 0; }
.preloader__logo-glow::after {
  content: ''; position: absolute; inset: 2px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 20px 4px rgba(168, 121, 50, 0.6);
  animation: preloader-glow-opacity 1.6s ease-in-out infinite;
}
.preloader__logo {
  box-sizing: border-box; position: relative; z-index: 1; display: block;
  width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover;
}
@keyframes preloader-glow-opacity { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.preloader__bar { width: 160px; height: 4px; border-radius: 4px; background: var(--card); overflow: hidden; margin: 0 auto 14px; }
.preloader__bar span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-pale)); border-radius: 4px; animation: preloader-slide 1.1s ease-in-out infinite; }
@keyframes preloader-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }
.preloader__inner p { font-family: var(--font-accent); letter-spacing: 3px; font-size: 0.95rem; color: var(--gold-pale); margin: 0; }

/* ---- Scroll-reveal (własna, minimalna implementacja — patrz initScrollReveal()
   w assets/js/main.js). Zastąpiła bibliotekę AOS, której CSS z CDN nie dawał się
   ani debugować (blokada CORS na introspekcję), ani niezawodnie wyzwolić animacji. ---- */
[data-aos] { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1; transform: none; transition: none; }
}

/* ---- Sznyty 80s: scanlines + poświata ---- */
.scanlines {
  /* Bez mix-blend-mode celowo: na Chrome wymusza to ciągłe przeliczanie blendingu
     całego viewportu przy scrollu (jank), a przy naszym prawie czarnym tle efekt
     zwykłego, taniego w renderowaniu nakładania jest wizualnie nie do odróżnienia. */
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px);
}
.sun-glow {
  position: fixed; top: -20vh; left: 50%; transform: translateX(-50%);
  width: 140vw; height: 60vh; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(168,121,50,0.16) 0%, rgba(168,121,50,0.05) 40%, transparent 70%);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Cele kotwic (np. #posluchaj, #archiwum) — odsunięcie od góry, żeby po
   scrollIntoView() nagłówek sticky nie zasłaniał tego, do czego skaczemy. */
.scroll-anchor-target { scroll-margin-top: 100px; }

/* =========================================================================
   Header / nawigacja
   ========================================================================= */

/* Wstawiany jako pierwsze dziecko <body> (nie fixed) — .site-header jest
   position:sticky, więc po prostu odpycha go w dół w normalnym przepływie,
   bez żonglowania z-index/nakładaniem się z pływającym playerem czy "wróć na górę". */
.mobile-app-banner {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; max-height: 0; overflow: hidden; opacity: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  color: #0a0a0a; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.mobile-app-banner.show { max-height: 70px; padding: 10px 16px; opacity: 1; }
.mobile-app-banner__text { display: flex; align-items: center; gap: 8px; }
.mobile-app-banner__text i { font-size: 1.15rem; flex-shrink: 0; }
.mobile-app-banner__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mobile-app-banner__install {
  background: #0a0a0a; color: var(--gold-pale) !important; padding: 6px 14px; border-radius: 20px;
  font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
.mobile-app-banner__close {
  background: none; border: none; color: #0a0a0a; cursor: pointer; padding: 4px; line-height: 0; font-size: 1rem;
}

.site-header {
  position: sticky; top: 0; z-index: 200;
  /* Tło mocniejsze, blur lżejszy niż na starcie — pełny rozmyty "szron" na
     position:sticky to jeden z głównych powodów jankowania scrolla na Chrome
     (Chrome przelicza backdrop-filter na bieżąco pod nagłówkiem). */
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--gold-deep); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }

.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold); transition: box-shadow 0.3s; box-shadow: 0 0 6px rgba(168,121,50,0.25); }
.brand:hover .brand__logo { box-shadow: 0 0 14px rgba(168,121,50,0.6); }
.brand__text { font-family: var(--font-display); font-size: 1.15rem; color: #fff; letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1.2; }
.brand__text small { font-family: var(--font-body); font-size: 0.62rem; font-weight: 400; letter-spacing: 0.3px; color: var(--text-muted); text-transform: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gold-pale); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
/* Płynne przejście hamburger -> X, gap:5px + height:2px = 7px odstępu między środkami belek. */
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav a {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px;
  color: var(--text); font-size: 0.92rem; font-weight: 600; transition: 0.2s;
}
.primary-nav a:hover, .primary-nav a.active { color: var(--gold-pale); background: rgba(168,121,50,0.12); text-shadow: 0 0 10px rgba(168,121,50,0.5); }
.primary-nav a i { color: var(--gold); }

/* =========================================================================
   Botony
   ========================================================================= */

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px;
  border-radius: 8px; border: 2px solid var(--gold); cursor: pointer; text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn-solid { background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #1a1204; transition: transform 0.15s, box-shadow 0.25s, filter 0.2s; }
.btn-solid:hover { box-shadow: 0 0 25px rgba(168,121,50,0.55); transform: translateY(-2px); filter: brightness(1.15) saturate(1.1); }
.btn-outline { background: transparent; color: var(--gold-pale); }
.btn-outline:hover { background: rgba(168,121,50,0.12); box-shadow: 0 0 20px rgba(168,121,50,0.3); }

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative; z-index: 1; min-height: 92vh; min-height: 92dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px;
  background-image:
    linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.9)),
    repeating-linear-gradient(0deg, rgba(168,121,50,0.05) 0px, transparent 2px, transparent 40px),
    url('../../img/bg.jpg');
  background-size: cover; background-position: center;
}
.hero__grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(168,121,50,0.35) 0, rgba(168,121,50,0.35) 1px, transparent 1px, transparent 60px),
                     repeating-linear-gradient(0deg, rgba(168,121,50,0.35) 0, rgba(168,121,50,0.35) 1px, transparent 1px, transparent 40px);
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  opacity: 0.7;
}
.hero__logo { width: 130px; margin: 0 auto 20px; filter: drop-shadow(0 0 25px rgba(168,121,50,0.5)); }
.hero h1 { margin-bottom: 0.2em; }
.hero h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 0.3em; }
.hero h4 { font-size: 1.3rem; color: #fff; text-transform: none; letter-spacing: 0.5px; margin-bottom: 2em; opacity: 0.85; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__down {
  margin-top: 50px; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(168,121,50,0.12); border: 2px solid var(--gold);
  box-shadow: 0 0 25px rgba(168,121,50,0.35);
  animation: bob 2.4s ease-in-out infinite;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.hero__down:hover { background: rgba(168,121,50,0.25); box-shadow: 0 0 35px rgba(168,121,50,0.55); transform: scale(1.06); }
.hero__down img { width: 26px; opacity: 1; filter: invert(70%) sepia(40%) saturate(500%) hue-rotate(0deg); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* =========================================================================
   Sekcje
   ========================================================================= */

section.section { position: relative; z-index: 1; padding: 90px 0; }
section.section:nth-child(even) { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse .split__media { order: 2; }
.split__eyebrow { display: flex; align-items: center; gap: 10px; }
/* Pudełka ikony i h4 są matematycznie idealnie wyśrodkowane względem siebie
   (potwierdzone pomiarem), ale sam glif Font Awesome siedzi w swoim pudełku
   nieco niżej niż wielkie litery Teko w swoim — stąd wciąż widoczne "za nisko".
   Ręczna korekta wizualna, bo model pudełkowy tego nie złapie. -1.5px było za
   mało (potwierdzone), więc dokręcone do -3px. */
.split__eyebrow i { color: var(--gold); font-size: 1.4rem; line-height: 1; transform: translateY(-3px); }
.split__eyebrow h4 { margin: 0; line-height: 1; }

.framed {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border); box-shadow: var(--shadow-soft);
}
.framed::before, .framed::after {
  content: ''; position: absolute; width: 26px; height: 26px; border: 3px solid var(--gold);
  opacity: 0.9; pointer-events: none; transition: filter 0.3s;
  filter: drop-shadow(0 0 2px rgba(168,121,50,0.5));
}
.framed::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.framed::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.framed img { transition: transform 0.5s ease; }
.framed:hover img { transform: scale(1.05); }
.framed:hover::before, .framed:hover::after { filter: drop-shadow(0 0 6px rgba(168,121,50,0.85)); }

.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 40px; width: fit-content;
}
.divider::before, .divider::after { content: ''; width: 50px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { color: var(--gold); animation: divider-glow 3.2s ease-in-out infinite; }
@keyframes divider-glow {
  0%, 100% { text-shadow: 0 0 4px rgba(168,121,50,0.3); }
  50% { text-shadow: 0 0 12px rgba(168,121,50,0.75); }
}

/* =========================================================================
   Player CTA (sekcja na stronie głównej, zastępuje stary <audio controls>)
   ========================================================================= */

.formats-details { margin-top: 22px; display: flex; justify-content: center; }
.formats-details summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 20px; border: 1px solid var(--card-border);
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600; transition: 0.2s;
}
.formats-details summary::-webkit-details-marker { display: none; }
.formats-details summary .fa-chevron-down { font-size: 0.7rem; transition: transform 0.2s; }
.formats-details[open] summary .fa-chevron-down { transform: rotate(180deg); }
.formats-details summary:hover,
.formats-details[open] summary { color: var(--gold-pale); border-color: var(--gold); background: rgba(168,121,50,0.08); }
.formats-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.formats-list a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--card-border); color: var(--text-muted); font-size: 0.82rem; transition: 0.2s;
}
.formats-list a:hover { color: var(--gold-pale); border-color: var(--gold); background: rgba(168,121,50,0.1); }

.player-cta {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 40px; text-align: center; box-shadow: var(--shadow-soft);
}
.player-cta__equalizer { display: flex; gap: 4px; justify-content: center; align-items: flex-end; height: 40px; margin: 0 auto 20px; opacity: 0.4; transition: opacity 0.3s; }
.player-cta__equalizer.is-active { opacity: 1; }
.player-cta__equalizer span {
  width: 6px; background: linear-gradient(180deg, var(--gold-pale), var(--gold-deep)); border-radius: 3px;
  animation: eq 1.2s ease-in-out infinite;
  animation-play-state: paused;
  transform: scaleY(0.15);
}
.player-cta__equalizer.is-active span { animation-play-state: running; }
.player-cta__equalizer span:nth-child(1) { height: 40%; animation-delay: 0s; }
.player-cta__equalizer span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.player-cta__equalizer span:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.player-cta__equalizer span:nth-child(4) { height: 100%; animation-delay: 0.45s; }
.player-cta__equalizer span:nth-child(5) { height: 65%; animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* Mini-player podcastów (podcasty.php) — zastępuje gołe <audio controls>. */
.podcast-player { display: flex; align-items: center; gap: 14px; margin-top: 16px; background: rgba(0,0,0,0.25); border: 1px solid var(--card-border); border-radius: 10px; padding: 12px 16px; }
.podcast-player__btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; border: none; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold)); color: #1a1204;
  transition: box-shadow 0.25s, filter 0.2s;
}
.podcast-player__btn:hover { box-shadow: 0 0 14px rgba(168,121,50,0.5); filter: brightness(1.1); }
.podcast-player__btn i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.podcast-player__btn .icon-pause { display: none; }
.podcast-player__btn.is-playing .icon-play { display: none; }
.podcast-player__btn.is-playing .icon-pause { display: block; }
.podcast-player__body { flex: 1; min-width: 0; }
.podcast-player__bar { position: relative; height: 6px; background: #060606; border: 1px solid var(--card-border); border-radius: 3px; cursor: pointer; }
.podcast-player__progress { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-pale)); border-radius: 3px; pointer-events: none; }
.podcast-player__time { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.podcast-player__download {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); color: var(--text-muted); transition: 0.2s;
}
.podcast-player__download:hover { color: var(--gold-pale); border-color: var(--gold); background: rgba(168,121,50,0.12); }

/* =========================================================================
   Ściana wpłacających
   ========================================================================= */

.donators-wrapper { max-height: 450px; width: 100%; max-width: 600px; margin: 0 auto; overflow-y: auto; padding: 10px; }
.donator-card {
  background: linear-gradient(145deg, rgba(40,40,40,0.8), rgba(20,20,20,0.9));
  border-left: 4px solid var(--gold); border-radius: 6px; padding: 15px 20px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.donator-card:hover { transform: translateX(5px); box-shadow: 0 6px 12px rgba(0,0,0,0.4), 0 0 14px rgba(168,121,50,0.2); border-left-color: var(--gold-pale); }
.donator-info { display: flex; flex-direction: column; text-align: left; }
.donator-nick { font-weight: bold; color: #fff; margin-bottom: 4px; }
.donator-date { font-size: 0.85rem; color: var(--text-muted); }
.donator-amount { font-family: var(--font-accent); font-weight: 600; font-size: 2.1rem; color: var(--gold); text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.total-amount-frame {
  display: inline-block; margin: 10px auto 0; padding: 18px 46px; border-radius: 16px;
  border: 2px solid var(--gold); background: linear-gradient(145deg, rgba(168,121,50,0.1), rgba(0,0,0,0.35));
  animation: total-amount-glow 3s ease-in-out infinite;
}
@keyframes total-amount-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(168,121,50,0.25), inset 0 0 18px rgba(168,121,50,0.06); }
  50% { box-shadow: 0 0 34px rgba(168,121,50,0.55), inset 0 0 28px rgba(168,121,50,0.14); }
}
.total-amount { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  position: relative; z-index: 1; background: var(--bg-alt); padding: 64px 0 30px;
  border-top: 1px solid var(--card-border);
}
.site-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,121,50,0.7), transparent);
}
.site-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer__col--brand .muted { max-width: 32ch; }
.site-footer__col h4 { margin-bottom: 18px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.site-footer__links a { color: var(--text-muted); display: flex; align-items: center; gap: 10px; transition: color 0.2s, transform 0.2s; width: fit-content; }
.site-footer__links a i { color: var(--gold-deep); transition: color 0.2s, filter 0.2s; }
.site-footer__links a:hover { color: var(--gold-pale); transform: translateX(4px); }
.site-footer__links a:hover i { color: var(--gold-pale); filter: drop-shadow(0 0 5px rgba(168,121,50,0.6)); }
.site-footer__bottom { border-top: 1px solid var(--card-border); padding-top: 22px; text-align: center; }
.site-footer__bottom p { margin: 4px 0; }
.site-footer__bottom .fa-radio { color: var(--gold); text-shadow: 0 0 8px rgba(168,121,50,0.5); }

.back-to-top {
  /* Lewy dolny róg celowo — prawy zajmuje pływający player (right:20px/bottom:20px,
     z-index:500), więc ten przycisk siedział pod nim całkowicie niewidoczny. */
  position: fixed; left: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--gold-deep); color: var(--gold-pale); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: 0.25s; z-index: 250;
}
.back-to-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }

/* =========================================================================
   Pływający player (VU + RDS now-playing)
   ========================================================================= */

.radio-player { position: fixed; right: 20px; bottom: 20px; z-index: 500; font-family: var(--font-body); }

.radio-player__bubble {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold)); border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 rgba(168,121,50,0.6);
  color: #1a1204; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.radio-player__bubble-pulse {
  position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold);
  opacity: 0; animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring { 0% { opacity: 0.6; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.4); } }

.radio-player__panel {
  position: absolute; right: 0; bottom: 74px; width: 320px; max-width: calc(100vw - 40px);
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 18px; opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(0.97); transition: 0.25s ease;
}
.radio-player.open .radio-player__panel { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.radio-player.open .radio-player__bubble { box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 6px rgba(168,121,50,0.18); }

.radio-player__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.radio-player__art { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid var(--card-border); flex-shrink: 0; }
.radio-player__head-text { flex: 1; min-width: 0; }
.radio-player__station { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--gold-pale); display: flex; align-items: center; gap: 6px; }
.radio-player__station em { font-style: normal; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4c4c; box-shadow: 0 0 8px #ff4c4c; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
/* Fade+zjazd w dół siedzi na WRAPie, nie na samym tekście — nie koliduje wtedy
   z animacją marquee tekstu w środku (ta może scrollować dalej niezależnie), więc
   nie ma tu żadnego "zatrzymaj animację i płynnie przejmij transition na tej samej
   właściwości tego samego elementu" — to dawało niepewny efekt (pauza przed
   zniknięciem, wjazd po skosie) zależnie od przeglądarki/timingu. */
.radio-player__now-wrap { overflow: hidden; margin-top: 2px; transition: opacity 0.25s, transform 0.25s; }
.radio-player__now-wrap.text-fade-out { opacity: 0; transform: translateY(4px); }
.radio-player__now { display: inline-block; font-size: 0.88rem; color: #fff; white-space: nowrap; }
.radio-player__now--muted { font-size: 0.74rem; color: var(--text-muted); font-weight: 400; }
/* Ticker: aktywowany z JS tylko gdy tekst nie mieści się w panelu, żeby cały komunikat RDS był widoczny. */
.radio-player__now-wrap.marquee .radio-player__now {
  animation: rpm-marquee-bounce ease-in-out infinite;
  animation-duration: var(--marquee-duration, 10s);
}
.radio-player__now-wrap.marquee:hover .radio-player__now { animation-play-state: paused; }
@keyframes rpm-marquee-bounce {
  0%, 8% { transform: translateX(0); }
  46%, 54% { transform: translateX(var(--marquee-distance, -50px)); }
  92%, 100% { transform: translateX(0); }
}
.radio-player__close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 4px; }

.radio-player__vu { margin-bottom: 14px; }
.vu-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.vu-label { font-size: 0.7rem; color: var(--text-muted); width: 12px; }
.radio-player__vu canvas { flex: 1; background: #060606; border-radius: 4px; border: 1px solid var(--card-border); }
.vu-scale { display: flex; justify-content: space-between; padding: 2px 4px 0 20px; }
.vu-scale span { font-size: 0.6rem; color: var(--text-muted); }

.radio-player__controls { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.radio-player__play {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold)); border: none; cursor: pointer; color: #1a1204;
}
/* Wrapper (nie <i>) niesie centrowanie — fa-spin animuje transform ikony w środku,
   więc nie "walczy" o tę samą właściwość CSS z translate(-50%,-50%) i się nie rozjeżdża. */
.radio-player__play .radio-player__play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Stan play/pauza/buforowanie wspólny dla playera pływającego i przycisku CTA na stronie
   głównej (klasa .radio-play-trigger) — assets/js/player.js steruje tymi klasami na obu naraz. */
.radio-play-trigger .icon-play { display: inline-block; }
.radio-play-trigger .icon-pause,
.radio-play-trigger .icon-buffering,
.radio-play-trigger .cta-label-pause { display: none; }
.radio-play-trigger.is-playing .icon-play,
.radio-play-trigger.is-playing .cta-label-play { display: none; }
.radio-play-trigger.is-playing .icon-pause,
.radio-play-trigger.is-playing .cta-label-pause { display: inline-block; }
.radio-play-trigger.buffering .icon-play,
.radio-play-trigger.buffering .icon-pause,
.radio-play-trigger.buffering .cta-label-play { display: none; }
.radio-play-trigger.buffering .icon-buffering { display: inline-block; }
/* "Odtwórz radio" / "Wstrzymaj radio" mają różną długość — bez stałej szerokości
   przycisk (i sąsiedni "Aplikacja mobilna" w tym samym wyśrodkowanym rzędzie)
   podskakiwał w bok przy każdej zmianie stanu. */
#cta-play-btn { min-width: 230px; justify-content: center; }

.radio-player__volume { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Szerokość na sztywno — różne glify (fa-volume-high/low/xmark) mają różną
   szerokość własną, więc bez tego suwak obok podskakiwał przy zmianie ikony. */
.radio-player__stop {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: var(--text-muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: 0.2s;
}
.radio-player__stop:hover { color: var(--gold-pale); border-color: var(--gold); background: rgba(168,121,50,0.1); }
.radio-player__stop:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

.radio-player__mute {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    width: 22px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
}
.radio-player__mute:hover { color: var(--gold-pale); filter: drop-shadow(0 0 5px rgba(168,121,50,0.6)); }
#player-volume { flex: 1; accent-color: var(--gold); min-width: 0; }

.radio-player__more { position: relative; }
.radio-player__more-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; }
.radio-player__more-btn:hover { color: var(--gold-pale); filter: drop-shadow(0 0 5px rgba(168,121,50,0.6)); }
.radio-player__more-menu {
  position: absolute; right: 0; bottom: 100%; margin-bottom: 8px; background: var(--bg-alt);
  border: 1px solid var(--card-border); border-radius: 8px; padding: 6px; display: flex; flex-direction: column;
  min-width: 180px; opacity: 0; pointer-events: none; transform: translateY(6px); transition: 0.2s;
}
.radio-player__more-menu.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.radio-player__more-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 0.85rem; color: var(--text); }
.radio-player__more-menu a:hover { background: rgba(168,121,50,0.15); color: var(--gold-pale); }

/* =========================================================================
   Responsywność
   ========================================================================= */

/* =========================================================================
   Drzewo muzyki (muzyka.php) — akordeon artysta > album > utwór
   ========================================================================= */

.music-wrapper { text-align: left; margin: 0 auto; max-width: 900px; }
.cat-section { margin-bottom: 50px; }
.cat-title { font-family: var(--font-accent); font-weight: 600; font-size: 2.1rem; color: #fff; border-bottom: 2px solid var(--gold); margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.cat-desc { color: var(--text-muted); margin-bottom: 25px; }

details.artist-details {
  background: linear-gradient(145deg, rgba(30,30,30,0.8), rgba(15,15,15,0.95));
  border: 1px solid rgba(168, 121, 50, 0.2); border-radius: 8px; margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: all 0.3s ease;
}
details.artist-details[open] { border-color: var(--gold); box-shadow: 0 6px 15px rgba(168, 121, 50, 0.15); }
.artist-summary {
  padding: 16px 20px; font-weight: 600; font-size: 1.15rem; color: #fff; cursor: pointer;
  display: flex; align-items: center; transition: background 0.3s; border-radius: 8px; list-style: none;
}
.artist-summary::-webkit-details-marker { display: none; }
.artist-summary:hover { background: rgba(168, 121, 50, 0.1); }
.artist-summary i.icon-user { color: var(--gold); width: 35px; }
.artist-summary::after {
  content: '\f107'; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto;
  transition: transform 0.3s; color: #666; font-size: 18px;
}
details[open] > .artist-summary::after { transform: rotate(180deg); color: var(--gold); }

.album-container { padding: 5px 20px 20px 20px; }
details.album-details { background: rgba(0,0,0,0.4); border-left: 3px solid var(--gold); border-radius: 4px; margin-top: 10px; }
.album-summary {
  padding: 12px 15px; font-weight: 600; color: #fff !important; text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; list-style: none;
}
.album-summary::-webkit-details-marker { display: none; }
.album-summary:hover { background: rgba(255,255,255,0.05); }
.album-summary span i { color: var(--gold) !important; margin-right: 10px; }
.btn-link { font-size: 0.8rem; background: var(--gold); color: #1a1204 !important; padding: 4px 10px; border-radius: 4px; font-weight: bold; }
.btn-link:hover { background: var(--gold-pale); }

.song-list { padding: 10px 15px 15px 40px; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,0.05); }
.song-item { display: flex; align-items: center; padding: 8px 10px; border-bottom: 1px dashed rgba(255,255,255,0.05); transition: 0.2s; }
.song-item:last-child { border-bottom: none; }
.song-item:hover { background: rgba(168, 121, 50, 0.1); padding-left: 15px; border-radius: 4px; }
.song-item i { font-size: 12px; color: var(--gold); margin-right: 15px; opacity: 0.8; }
.song-item a { color: #ccc; width: 100%; }
.song-item a:hover { color: #fff; }

details[open] summary ~ * { animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeSlideIn { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } }

/* =========================================================================
   Aktualności (aktualnosci.php / artykul.php / karuzela na index.php)
   ========================================================================= */

.pill-gold {
  display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; background: rgba(168,121,50,0.15); color: var(--gold-pale);
  border: 1px solid rgba(168,121,50,0.3); margin-right: 10px;
}

.news-filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px;
}
.news-filters input[type="text"], .news-filters select, .news-filters input[type="date"] {
  background: var(--bg); border: 1px solid var(--card-border); border-radius: 8px; color: var(--text);
  padding: 10px 14px; font-family: inherit; font-size: 0.9rem;
}
.news-filters__date { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.news-filters .btn { padding: 10px 20px; font-size: 0.85rem; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.news-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; transition: 0.25s; color: var(--text);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.4), 0 0 20px rgba(168,121,50,0.15); border-color: var(--gold-deep); }
.news-card__image { aspect-ratio: 16/9; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card__image img { transform: scale(1.05); }
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__date { font-size: 0.8rem; color: var(--text-muted); }
.news-card__body h3 { margin: 4px 0 0; }
.news-card__body p { font-size: 0.92rem; margin: 0; flex: 1; }
.news-card__more { margin-top: auto; padding-top: 8px; color: var(--gold-pale); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.news-pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.news-pagination a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-pale); font-weight: 600; }
.news-pagination a:hover { text-shadow: 0 0 10px rgba(168,121,50,0.5); }

.news-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.news-back:hover { color: var(--gold-pale); }

/* Kategoria/data/godzina artykułu — osobne elementy flex zamiast jednego
   ciągu tekstu z pojedynczymi spacjami (stąd wcześniej "brak odstępu" na PC),
   każdy może się samodzielnie zawinąć na nową linię na wąskim ekranie zamiast
   łamać się w środku ikony/tekstu (stąd "dziwny" wygląd na telefonie). */
.news-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.news-article__meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.news-article__meta-item i { color: var(--gold); }

/* Tytuł artykułu — celowo NIE globalny h1 (Bungee, wielki gradient — zaprojektowany
   pod krótkie tytuły typu "Radio Paweł MIAZGA", słabo czytelny dla dłuższego,
   zdaniowego nagłówka konkretnego wpisu). Oswald (jak h3) + pełny kolor zamiast
   gradientu = dużo lepsza czytelność przy zachowaniu spójności z resztą systemu fontów. */
.news-article__title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.25;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  margin-top: 10px;
}
/* width:fit-content — kontener kurczy się do rzeczywistej szerokości obrazka
   (patrz niżej: obrazek już nie jest rozciągany na width:100%), więc ramka
   .framed przylega do zdjęcia zamiast zostawiać puste boki przy wąskich/pionowych
   zdjęciach. max-width:100% pilnuje, żeby nie wystawał poza kolumnę artykułu. */
.news-article__image { margin: 20px auto; width: fit-content; max-width: 100%; }
/* BEZ object-fit:cover — na szerokim ekranie PC (gdzie kontener jest szerszy,
   więc przy width:100% naturalna wysokość zdjęcia częściej przekraczała
   max-height) cover realnie KROIŁ zdjęcie; na telefonie (węższy kontener)
   przycięcie rzadziej się uruchamiało, stąd "na telefonie OK, na PC nie".
   max-width+max-height BEZ wymuszania width/height=100% skalują proporcjonalnie,
   bez kadrowania, identycznie na każdej szerokości ekranu. */
.news-article__image img { display: block; max-width: 100%; max-height: 420px; border-radius: var(--radius); }
.news-article__body { margin-top: 20px; }
.news-article__body img { display: block; max-width: 100%; max-height: 600px; border-radius: var(--radius); margin: 10px 0; }

.news-songs { margin-top: 36px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; }
.news-songs h4 { margin-top: 0; }
.news-song-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.05); }
.news-song-row:last-child { border-bottom: none; }
.news-song-row i.fa-play { color: var(--gold); font-size: 0.8rem; }
.news-song-row span { flex: 1; color: var(--text-muted); }
.news-song-row span a { color: var(--gold-pale); }

/* ---- Karuzela na index.php ---- */
.news-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 20px;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
/* Dodawane przez JS (initNewsCarousel()) tylko gdy kartki mieszczą się bez
   przewijania — patrz komentarz przy syncCentering() w main.js. */
.news-carousel.is-fitted { justify-content: center; }
.news-carousel::-webkit-scrollbar { height: 6px; }
.news-carousel::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 10px; }
/* scroll-snap-stop:always wymusza zatrzymanie na KAŻDEJ kartce z osobna —
   bez tego szybkie/mocne przesunięcie na telefonie (momentum scroll) potrafiło
   "przelecieć" przez kilka kart naraz i wylądować gdzie popadnie, zanim
   przeglądarka w ogóle rozważy przyczepienie się do najbliższego punktu snap. */
.news-carousel .news-card { flex: 0 0 280px; scroll-snap-align: start; scroll-snap-stop: always; }
.news-carousel-nav { display: flex; justify-content: center; gap: 14px; margin-top: 4px; }
.news-carousel-nav button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 1px solid var(--card-border);
  color: var(--text-muted); cursor: pointer; transition: 0.2s;
}
.news-carousel-nav button:hover { color: var(--gold-pale); border-color: var(--gold); }

/* =========================================================================
   Podcasty (podcasty.php)
   ========================================================================= */

.podcast-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.podcast-card__meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }
.podcast-card__meta i { color: var(--gold); margin-right: 6px; }
.podcast-card audio { width: 100%; margin-top: 12px; }

/* ---- Baner "Nadchodzący odcinek" (admin/podcasts.php, klucze site_content
   z prefiksem "upcoming_") — pełny na podcasty.php, mały teaser na index.php. ---- */
.upcoming-banner {
  max-width: 700px; margin: 0 auto; padding: 28px 32px; text-align: center;
  border-radius: var(--radius); border: 2px solid var(--gold);
  background: linear-gradient(145deg, rgba(168,121,50,0.12), rgba(0,0,0,0.35));
  box-shadow: 0 0 24px rgba(168,121,50,0.2);
}
.upcoming-banner__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold-pale); font-family: var(--font-accent); text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px;
}
.upcoming-banner h3 { margin: 4px 0 14px; }
.upcoming-banner__meta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; color: var(--text-muted); font-size: 0.92rem; }
.upcoming-banner__meta i { color: var(--gold); margin-right: 6px; }
.upcoming-banner__desc { color: var(--text-muted); margin: 14px 0 0; }

.upcoming-teaser {
  display: flex; align-items: center; gap: 16px; max-width: 620px; margin: 0 auto;
  padding: 16px 22px; border-radius: var(--radius); border: 1px solid var(--gold-deep);
  background: var(--card); transition: border-color 0.2s, box-shadow 0.2s;
}
.upcoming-teaser:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(168,121,50,0.25); }
.upcoming-teaser__icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.upcoming-teaser__body { flex: 1; min-width: 0; }
.upcoming-teaser__title { color: #fff; font-weight: 600; }
.upcoming-teaser__meta { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }
.upcoming-teaser > .fa-arrow-right { color: var(--gold-pale); flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; top: 70px; left: 0; right: 0; background: rgba(10,10,10,0.97);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease; border-bottom: 1px solid var(--card-border);
  }
  .primary-nav.open { max-height: 400px; }
  .primary-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 2px; }
  .primary-nav a { padding: 14px 10px; }

  .split, .split.reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }

  .site-footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .radio-player { right: 14px; bottom: 14px; }
  .radio-player__panel { width: calc(100vw - 28px); right: -6px; }

  /* Mniej odstępów w hero, żeby na Androidzie (pasek adresu zabiera kawałek
     realnie widocznego ekranu mimo min-height:92dvh) przycisk zjazdu w dół
     zawsze mieścił się w tym, co faktycznie widać, a nie "pod ekranem". */
  .hero { padding: 100px 20px 40px; }
  .hero__logo { width: 90px; margin-bottom: 10px; }
  .hero__cta { margin-bottom: 10px; }
  .hero__down { margin-top: 24px; width: 54px; height: 54px; }

  /* Telefony mają sprzętowe klawisze głośności — suwak w pływającym playerze
     jest tu zbędny (zostaje tylko na m.radiopawel.eu, osobnej appce mobilnej). */
  .radio-player__volume { display: none; }

  /* Karuzela aktualności: na telefonie kartki przyciągają się do ŚRODKA ekranu
     (nie do lewej krawędzi) — scroll-padding-inline daje pierwszej/ostatniej
     kartce "miejsce" żeby też mogła dojechać do środka, inaczej utknęłaby
     przy brzegu kontenera i nigdy by się nie wyśrodkowała. */
  .news-carousel { scroll-padding-inline: calc(50% - 125px); }
  .news-carousel .news-card { flex-basis: 250px; scroll-snap-align: center; }
}
