/* ═══════════════════════════════════════════════════════════
   TVML.PL — Portal publiczny (strona glowna)
   Styl niezalezny od panelu admina: granatowy header/stopka,
   jasne tlo, biale karty, zloto-pomaranczowy akcent.
   Sekcje stylow: tokeny -> reset/typografia -> layout bazowy
   -> komponenty (dodawane w kolejnym kroku) -> responsywnosc.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

/* ─── Tokeny ─── */
:root {
  /* Tlo i powierzchnie */
  --p-bg:           #eef1f5;
  --p-surface:      #ffffff;
  --p-surface-alt:  #f6f8fa;

  /* Granat (header / hero / stopka) */
  --p-navy:         #0a1f44;
  --p-navy-700:     #102a5c;
  --p-navy-600:     #16356f;
  --p-navy-glass:   rgba(10,31,68,0.78);

  /* Akcent */
  --p-accent:       #f5a623;
  --p-accent-600:   #e0911a;
  --p-orange:       #ea580c;
  --p-red:          #e11d2e;

  /* Tekst */
  --p-text:         #16202e;
  --p-text-soft:    #475467;
  --p-text-muted:   #8893a4;
  --p-on-navy:      #eaf0fb;
  --p-on-navy-soft: #9fb2d4;

  /* Linie i cienie */
  --p-border:       #e3e8ef;
  --p-border-soft:  #eef1f5;
  --p-shadow-sm:    0 1px 3px rgba(16,32,60,0.08);
  --p-shadow-md:    0 6px 20px rgba(16,32,60,0.10);
  --p-shadow-lg:    0 16px 44px rgba(16,32,60,0.16);

  /* Kategorie (badge na kafelkach) */
  --p-cat-policja:  #1d4ed8;
  --p-cat-miasto:   #0891b2;
  --p-cat-sport:    #16a34a;
  --p-cat-kultura:  #9333ea;

  /* Wymiary */
  --p-maxw:         1200px;
  --p-radius:       10px;
  --p-radius-lg:    16px;
  --p-gap:          22px;
  --p-ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --p-header-h:     72px;   /* wysokosc naglowka (sticky) — uzywana przez nakladke */

  /* Branding sterowany z panelu (PortalChrome ustawia wartosci runtime). */
  --p-brand-accent: var(--p-accent);
  --p-brand-navy:   var(--p-navy);
}

/* ─── Tryb NOC (dzien/noc) ───
   Portal publiczny przelacza klase .is-night na <body> (PortalChrome:
   automatycznie wg pory dnia lub recznie przyciskiem w naglowku).
   Nadpisujemy wylacznie tokeny kolorow — komponenty korzystaja z nich,
   wiec caly wyglad dostosowuje sie spojnie, bez duplikowania regul. */
body.is-night {
  --p-bg:           #0b1220;
  --p-surface:      #121a2b;
  --p-surface-alt:  #0e1626;

  --p-navy:         #060d1c;
  --p-navy-700:     #0b1730;
  --p-navy-600:     #122242;
  --p-navy-glass:   rgba(4,9,20,0.86);

  --p-text:         #e7edf7;
  --p-text-soft:    #aab6cc;
  --p-text-muted:   #7f8da6;

  --p-border:       #243049;
  --p-border-soft:  #1a2336;
  --p-shadow-sm:    0 1px 3px rgba(0,0,0,0.40);
  --p-shadow-md:    0 6px 20px rgba(0,0,0,0.45);
  --p-shadow-lg:    0 16px 44px rgba(0,0,0,0.55);
}
/* Plynne przejscie miedzy trybami (z poszanowaniem preferencji ruchu). */
body { transition: background-color 0.3s var(--p-ease), color 0.3s var(--p-ease); }
.site-header, .site-footer, .panel, .news-card, .video-card, .hero-card,
.art-overlay-panel, .ad-cat, .ticker {
  transition: background-color 0.3s var(--p-ease), border-color 0.3s var(--p-ease), color 0.3s var(--p-ease);
}
@media (prefers-reduced-motion: reduce) {
  body, .site-header, .site-footer, .panel, .news-card, .video-card,
  .hero-card, .art-overlay-panel, .ad-cat, .ticker { transition: none; }
  .news-card:hover, .video-card:hover,
  .gmina-card:hover, .photo-tile:hover { transform: none; }
}

/* Przelacznik trybu dzien/noc w naglowku portalu. */
.hd-theme {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--p-on-navy);
  transition: background 0.15s var(--p-ease);
}
.hd-theme:hover { background: var(--p-navy-600); }
.hd-theme svg { width: 18px; height: 18px; }
.hd-theme .ico-night { display: none; }
body.is-night .hd-theme .ico-day { display: none; }
body.is-night .hd-theme .ico-night { display: block; }

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Element z atrybutem [hidden] zawsze ukryty — nadpisuje lokalne display:flex
   (np. .article-loading), dzieki czemu stan ladowania znika po wyrenderowaniu
   tresci. Bez tego spinner pozostaje widoczny mimo loading.hidden = true. */
[hidden] { display: none !important; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s var(--p-ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── Typografia ─── */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--p-text); }
.font-serif { font-family: 'Playfair Display', Georgia, serif; }

/* ─── Layout bazowy ─── */
.container {
  width: 100%;
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.portal-main {
  width: 100%;
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 22px 20px 40px;
}

/* Naglowek sekcji (tytul + "zobacz wszystkie") */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 16px;
}
.section-head:first-child { margin-top: 0; }
.section-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 1.05em;
  background: var(--p-accent);
  border-radius: 3px;
}
.section-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--p-text-muted);
}
.section-link:hover { color: var(--p-accent-600); }

/* Pomocnicze */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--p-navy);
  color: var(--p-on-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--p-shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; }
.brand-fallback { display: none; flex-direction: column; line-height: 1; }
.brand-fallback strong { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.brand-dot { color: var(--p-accent); font-weight: 900; }
.brand-fallback small { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-on-navy-soft); margin-top: 3px; }

/* Nawigacja */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--p-on-navy);
  padding: 9px 13px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav-link:hover { background: var(--p-navy-600); color: #fff; }
.nav-link.is-active { color: var(--p-accent); }

/* Narzedzia */
.header-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hd-weather { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--p-on-navy); }
.hd-weather[hidden] { display: none !important; }
.hd-weather svg { width: 20px; height: 20px; color: var(--p-accent); }
/* Ikona ze wspolnego zestawu WeatherIcons (SVG z gradientami lub <img> wlasna).
   Renderowana z width/height:100% — wymaga wymiarowanego kontenera. */
.hd-weather .hd-weather-ico { width: 24px; height: 24px; flex-shrink: 0; display: inline-flex; }
.hd-weather svg.hd-weather-ico { width: 24px; height: 24px; }
.hd-social { display: flex; gap: 6px; }
.hd-social .soc, .footer-social .soc {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #fff;
  transition: background 0.15s var(--p-ease), transform 0.15s var(--p-ease);
}
.hd-social .soc svg, .footer-social .soc svg { width: 15px; height: 15px; }
.hd-social .soc:hover, .footer-social .soc:hover { background: var(--p-accent); transform: translateY(-2px); }
.hd-search {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--p-on-navy);
}
.hd-search svg { width: 18px; height: 18px; }
.hd-search:hover { background: var(--p-navy-600); }
.hd-cta {
  background: var(--p-accent);
  color: var(--p-navy);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s var(--p-ease), transform 0.15s var(--p-ease);
}
.hd-cta:hover { background: #ffb938; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.2s var(--p-ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   TICKER (breaking news)
   ═══════════════════════════════════════════════════════════ */
.ticker {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 14px auto 0;
  /* Nadpisujemy poziomy padding z .container — badge ma dotykac lewej
     krawedzi paska, bez bialego prze\u015Bwitu miedzy nim a rogiem. */
  padding: 0;
  background: var(--p-surface);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  overflow: hidden;
}
.ticker-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Czerwien spojna z paleta portalu (--p-red), lekko pog\u0142\u0119biona u do\u0142u
     dla delikatnej glebi — bez jaskrawego odcienia odstajacego od granatu. */
  background: linear-gradient(180deg, var(--p-red), #b81526);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 16px;
  flex-shrink: 0;
}
.ticker-badge svg { width: 16px; height: 16px; }
/* Pulsujaca kropka "live" — nadaje paskowi charakter transmisji na zywo. */
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: live-pulse 1.5s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.75); }
  70%  { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.ticker-track {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  overflow: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.ticker-track::-webkit-scrollbar { display: none; }
/* Animowany pas — zawiera pozycje zduplikowane 2x, dzieki czemu przesuniecie
   o -50% daje plynna, nieskonczona petle bez widocznego skoku. Czas pelnego
   przewiniecia steruje zmienna --ticker-speed (ustawiana z panelu admina;
   mniej sekund = szybszy przesuw). Domyslnie 45s. */
.ticker-marquee {
  display: flex;
  gap: 26px;
  flex-shrink: 0;
  width: max-content;
  animation: ticker-scroll var(--ticker-speed, 45s) linear infinite;
}
.ticker:hover .ticker-marquee { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-marquee { animation: none; }
  .ticker-track { overflow-x: auto; }
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--p-text-soft);
}
.ticker-item img { width: 38px; height: 28px; object-fit: cover; border-radius: 5px; background: var(--p-navy); }
.ticker-item em { color: var(--p-accent-600); font-style: normal; font-weight: 700; margin-right: 5px; }
.ticker-item:hover { color: var(--p-text); }

/* ═══════════════════════════════════════════════════════════
   PLAY BUTTON (wspolny)
   ═══════════════════════════════════════════════════════════ */
.play-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(10,31,68,0.55);
  border: 2px solid rgba(255,255,255,0.85);
  display: grid; place-items: center;
  transition: 0.2s var(--p-ease);
}
.play-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.play-btn:hover { background: var(--p-accent); border-color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.play-lg { width: 74px; height: 74px; }
.play-lg::after { border-left-width: 22px; border-top-width: 13px; border-bottom-width: 13px; }

/* ═══════════════════════════════════════════════════════════
   HERO + SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--p-gap);
  margin-top: 22px;
}

.hero-card {
  position: relative;
  background: var(--p-navy);
  border-radius: var(--p-radius);
  overflow: hidden;
  box-shadow: var(--p-shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
/* Zdjecie wypelnia caly kafel; tekst nakladamy na nie z gradientem (uklad
   typowy dla portali informacyjnych — spojny, bez wrazenia dwoch sekcji). */
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
/* Ciemny gradient od dolu — zapewnia czytelnosc bialego tekstu na zdjeciu. */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,31,68,0) 30%, rgba(10,31,68,0.55) 62%, rgba(7,21,46,0.94) 100%);
}
.hero-flag {
  position: absolute; left: 18px; top: 18px;
  z-index: 2;
  background: var(--p-accent);
  color: var(--p-navy);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
/* Przycisk play wysrodkowany nad zdjeciem (gdy hero to material wideo). */
.hero-card .play-lg { z-index: 2; }
.hero-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 26px 28px 28px;
  color: var(--p-on-navy);
}
.hero-title { font-size: 2rem; line-height: 1.18; color: #fff; margin-bottom: 12px; text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.hero-lead { font-size: 0.96rem; color: rgba(255,255,255,0.88); line-height: 1.55; margin-bottom: 18px; max-width: 58ch; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--p-accent);
  color: var(--p-navy);
  font-weight: 800; font-size: 0.85rem;
  padding: 11px 20px; border-radius: 8px;
  transition: 0.15s var(--p-ease);
}
.hero-cta svg { width: 16px; height: 16px; }
.hero-cta:hover { background: #ffb938; transform: translateY(-1px); }

/* ── HERO SLIDER (10 najnowszych, auto-zmiana, klik w tytul) ── */
.hero-slider { isolation: isolate; }
.hero-track { position: absolute; inset: 0; }
/* Slajdy ulozone w stos; aktywny pojawia sie plynnie (fade). */
.hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--p-ease);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.hero-slide .hero-media { display: block; }
/* Tytul jako link — dziedziczy kolor, podkresla sie przy najechaniu. */
.hero-title a { color: inherit; text-decoration: none; }
.hero-slide:hover .hero-title a,
.hero-title a:hover,
.hero-title a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* Strzalki nawigacji */
.hero-nav {
  position: absolute; top: 42%; transform: translateY(-50%);
  z-index: 4;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7,21,46,0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  opacity: 0; transition: 0.18s var(--p-ease);
  cursor: pointer;
}
.hero-nav svg { width: 20px; height: 20px; }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }
.hero-slider:hover .hero-nav,
.hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: var(--p-accent); color: var(--p-navy); border-color: #fff; }

/* Kropki nawigacji */
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  z-index: 4;
  display: flex; justify-content: center; gap: 8px;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer; padding: 0;
  transition: 0.18s var(--p-ease);
}
.hero-dot:hover { background: rgba(255,255,255,0.8); }
.hero-dot.is-active { background: var(--p-accent); transform: scale(1.25); }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Sidebar */
.hero-side { display: flex; flex-direction: column; gap: var(--p-gap); }
.side-card { background: var(--p-surface); border-radius: var(--p-radius-lg); box-shadow: var(--p-shadow-sm); overflow: hidden; }
.side-head {
  padding: 13px 18px;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--p-text-soft);
  border-bottom: 1px solid var(--p-border);
}
.side-head.dark { background: var(--p-navy); color: var(--p-accent); border-bottom: none; }

/* Pogoda */
.weather-card {
  --wx-card-text: var(--p-on-navy);
  --wx-card-text-soft: var(--p-on-navy-soft);
  --wx-card-title: #ffffff;
  --wx-card-accent: var(--p-accent);
  background: linear-gradient(160deg, #102a5c, #0a1f44);
  color: var(--wx-card-text);
  position: relative;
  overflow: hidden;
}
.weather-card > :not(#weather-effects-canvas) {
  position: relative;
  z-index: 2;
}
.weather-card .side-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--wx-card-text-soft); border-bottom-color: rgba(255,255,255,0.1);
}
.weather-card .side-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weather-src {
  flex-shrink: 0;
  color: var(--wx-card-accent);
  text-transform: none; letter-spacing: 0;
  font-size: 0.68rem; font-weight: 700;
}
.weather-src:hover { color: #ffb938; }
.weather-now { display: flex; align-items: center; gap: 14px; padding: 16px 18px 10px; }
.weather-ico { width: 46px; height: 46px; color: var(--wx-card-accent); }
.weather-ico-main { width: 56px; height: 56px; flex-shrink: 0; color: var(--wx-card-accent); filter: drop-shadow(0 3px 6px rgba(0,0,0,0.16)); }
.weather-temp { font-size: 2.1rem; font-weight: 800; color: var(--wx-card-title); display: block; line-height: 1; }
.weather-desc { font-size: 0.85rem; color: var(--wx-card-text-soft); }
.weather-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0 18px 14px; font-size: 0.78rem; color: var(--wx-card-text-soft); }
.weather-meta b { color: var(--wx-card-title); font-weight: 600; }
.weather-days { display: flex; border-top: 1px solid rgba(255,255,255,0.1); }
.weather-days div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px; font-size: 0.8rem; }
.weather-days div + div { border-left: 1px solid rgba(255,255,255,0.1); }
.weather-days span { display: block; color: var(--wx-card-text-soft); font-size: 0.72rem; }
.weather-days .wd-ico { width: 26px; height: 26px; color: var(--wx-card-accent); }
.weather-days b { color: var(--wx-card-title); font-weight: 700; }

/* ─────────────────────────────────────────────────────────
   ANIMOWANE SCENY POGODY (modul pogody) — CSS-only, lekkie
   (transform/opacity). Zastepuja statyczna ikone obok temperatury.
───────────────────────────────────────────────────────── */
.weather-scene {
  position: relative;
  width: 104px; height: 76px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a5298, #1e3c72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 4px 12px rgba(0,0,0,0.28);
}
.weather-scene > * { position: absolute; }
.weather-scene--custom { display: grid; place-items: center; background: rgba(255,255,255,0.06); }
.weather-scene-img { width: 56px; height: 56px; position: static; }

/* Niebo — gradient zalezny od sceny */
.ws-sky { inset: 0; }
.weather-scene--sunny .ws-sky      { background: linear-gradient(#7ec8f5, #c6e9ff); }
.weather-scene--partly .ws-sky     { background: linear-gradient(#6fb6ec, #aeddf7); }
.weather-scene--cloudy .ws-sky     { background: linear-gradient(#8a98ab, #bcc6d4); }
.weather-scene--rain .ws-sky       { background: linear-gradient(#566173, #818b9b); }
.weather-scene--storm .ws-sky      { background: linear-gradient(#363d4c, #565d6b); }
.weather-scene--snow .ws-sky       { background: linear-gradient(#9fb2c6, #d2dde9); }
.weather-scene--fog .ws-sky        { background: linear-gradient(#9aa3ad, #c8ced6); }
.weather-scene--wind .ws-sky       { background: linear-gradient(#7fa9c9, #b4cfe2); }
.weather-scene--night .ws-sky,
.weather-scene--night-cloud .ws-sky { background: linear-gradient(#0e1d45, #20356a); }

/* Slonce (rdzen + obracajace sie promienie) */
.ws-sun { left: 50%; top: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); }
.weather-scene--sunny .ws-sun,
.weather-scene--partly .ws-sun,
.weather-scene--fog .ws-sun { left: auto; right: 12px; top: 12px; transform: none; }
.ws-sun-core {
  position: absolute; inset: 7px; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff7cf, #ffd23f 55%, #ff9b2f);
  box-shadow: 0 0 14px rgba(255,200,70,0.85);
  animation: ws-pulse 3s ease-in-out infinite;
}
.ws-sun-rays {
  position: absolute; inset: -6px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,213,92,0) 0deg 16deg, rgba(255,213,92,0.6) 16deg 20deg);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
          mask: radial-gradient(circle, transparent 54%, #000 56%);
  animation: ws-spin 16s linear infinite;
}

/* Ksiezyc + gwiazdy (sceny nocne) */
.ws-moon {
  right: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fdf6d8, #ece7c4);
  box-shadow: 0 0 14px rgba(240,235,200,0.55), inset -7px -4px 0 -2px rgba(20,40,80,0.25);
}
.ws-stars { inset: 0; }
.ws-stars i {
  width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.85;
  animation: ws-twinkle 2.4s ease-in-out infinite;
}
.ws-stars i:nth-child(1) { left: 14px; top: 16px; animation-delay: 0s; }
.ws-stars i:nth-child(2) { left: 30px; top: 10px; animation-delay: 0.5s; }
.ws-stars i:nth-child(3) { left: 50px; top: 22px; animation-delay: 1s; }
.ws-stars i:nth-child(4) { left: 22px; top: 34px; animation-delay: 1.5s; }
.ws-stars i:nth-child(5) { left: 64px; top: 14px; animation-delay: 0.9s; }

/* Chmury (klby z pseudoelementow), unoszace sie */
.ws-cloud {
  width: 44px; height: 15px; border-radius: 12px; background: #f3f6fb;
  box-shadow: 0 6px 10px rgba(0,0,0,0.14);
}
.ws-cloud::before, .ws-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.ws-cloud::before { width: 20px; height: 20px; left: 6px; top: -9px; }
.ws-cloud::after  { width: 27px; height: 27px; right: 5px; top: -13px; }
.ws-cloud--front { left: 13px; bottom: 16px; animation: ws-float 7s ease-in-out infinite; }
.ws-cloud--back  { left: 34px; top: 14px; transform: scale(0.78); opacity: 0.85; animation: ws-float 9s ease-in-out infinite reverse; }
.ws-cloud--dark  { left: 13px; top: 11px; background: #cfd7e4; }
.weather-scene--storm .ws-cloud--dark { box-shadow: 0 6px 12px rgba(0,0,0,0.3); }

/* Deszcz */
.ws-rain { inset: 0; }
.ws-rain i {
  top: 36px; width: 2px; height: 11px; border-radius: 1px;
  background: linear-gradient(transparent, #b4d8ff);
  animation: ws-rain-fall 0.9s linear infinite;
}
.ws-rain i:nth-child(1) { left: 22px; animation-delay: 0s; }
.ws-rain i:nth-child(2) { left: 32px; animation-delay: 0.2s; }
.ws-rain i:nth-child(3) { left: 42px; animation-delay: 0.45s; }
.ws-rain i:nth-child(4) { left: 52px; animation-delay: 0.15s; }
.ws-rain i:nth-child(5) { left: 27px; animation-delay: 0.6s; }
.ws-rain i:nth-child(6) { left: 47px; animation-delay: 0.35s; }

/* Snieg */
.ws-snow { inset: 0; }
.ws-snow i {
  top: 34px; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 4px rgba(255,255,255,0.8);
  animation: ws-snow-fall 2.6s linear infinite;
}
.ws-snow i:nth-child(1) { left: 22px; animation-delay: 0s; }
.ws-snow i:nth-child(2) { left: 33px; animation-delay: 0.5s; }
.ws-snow i:nth-child(3) { left: 44px; animation-delay: 1s; }
.ws-snow i:nth-child(4) { left: 54px; animation-delay: 1.5s; }
.ws-snow i:nth-child(5) { left: 28px; animation-delay: 0.8s; }
.ws-snow i:nth-child(6) { left: 49px; animation-delay: 1.3s; }

/* Burza — blyskawica */
.ws-bolt {
  left: 46px; top: 26px; width: 15px; height: 24px; background: #ffe66d;
  clip-path: polygon(58% 0, 18% 56%, 48% 56%, 28% 100%, 86% 38%, 54% 38%);
  filter: drop-shadow(0 0 6px rgba(255,230,100,0.9));
  opacity: 0; animation: ws-flash 3.6s ease-in-out infinite;
}

/* Mgla / wiatr — przesuwajace sie pasy */
.ws-fog { inset: 0; }
.ws-fog i {
  left: 8px; right: 8px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.55); animation: ws-fog-move 4s ease-in-out infinite;
}
.ws-fog i:nth-child(1) { bottom: 16px; }
.ws-fog i:nth-child(2) { bottom: 30px; animation-delay: 0.6s; }
.ws-fog i:nth-child(3) { bottom: 44px; animation-delay: 1.2s; opacity: 0.8; }
.weather-scene--wind .ws-fog i { background: rgba(255,255,255,0.4); }

/* Plaza (scena sloneczna): morze, piasek, palma */
.ws-beach { inset: 0; }
.ws-sea {
  left: 0; right: 0; bottom: 0; height: 30px;
  background: linear-gradient(#43b0f6, #1f7fd6);
}
.ws-sea::before {
  content: ""; position: absolute; top: 2px; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.55) 0 6px, transparent 6px 14px);
  animation: ws-wave 3s linear infinite;
}
.ws-sand {
  left: 0; right: 0; bottom: 0; height: 18px;
  background: linear-gradient(#f7e3a1, #eccd79);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}
.ws-palm {
  left: 16px; bottom: 18px; width: 4px; height: 22px;
  background: linear-gradient(#9a6a3a, #7a4f29); border-radius: 2px;
  transform: rotate(-8deg); transform-origin: bottom center;
  animation: ws-palm-sway 4s ease-in-out infinite;
}
.ws-palm::before, .ws-palm::after {
  content: ""; position: absolute; top: -3px; width: 20px; height: 9px;
  background: #2fae60; border-radius: 50% 50% 50% 50% / 100% 100% 0 0;
}
.ws-palm::before { left: -9px; transform: rotate(-32deg); transform-origin: bottom right; }
.ws-palm::after  { right: -9px; transform: rotate(32deg); transform-origin: bottom left; }

@keyframes ws-pulse    { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ws-spin     { to { transform: rotate(360deg); } }
@keyframes ws-twinkle  { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes ws-float    { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes ws-rain-fall{ 0% { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes ws-snow-fall{ 0% { transform: translate(0,-6px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(6px,30px); opacity: 0; } }
@keyframes ws-flash    { 0%,92%,100% { opacity: 0; } 94%,98% { opacity: 1; } 96% { opacity: 0.3; } }
@keyframes ws-fog-move { 0%,100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
@keyframes ws-wave     { to { background-position: 28px 0; } }
@keyframes ws-palm-sway{ 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(-4deg); } }

@media (prefers-reduced-motion: reduce) {
  .ws-sun-core, .ws-sun-rays, .ws-stars i, .ws-cloud, .ws-rain i, .ws-snow i,
  .ws-bolt, .ws-fog i, .ws-sea::before, .ws-palm { animation: none !important; }
  .ws-bolt { opacity: 0.85; }
}

/* Najnowszy material wideo (sidebar) */
.vf-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.vf-media img { width: 100%; height: 100%; object-fit: cover; background: var(--p-navy); }
.vf-time { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.78); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.vf-title { padding: 13px 16px 16px; font-size: 0.95rem; font-weight: 700; line-height: 1.35; }

/* Sonda */
.poll-q { padding: 14px 18px 6px; font-size: 0.9rem; font-weight: 600; color: var(--p-text); }
.poll-form { padding: 6px 18px 18px; }
.poll-opt {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label pct" "bar bar";
  gap: 4px 10px;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.82rem;
}
.poll-opt input { display: none; }
.poll-label { grid-area: label; color: var(--p-text-soft); }
.poll-pct { grid-area: pct; font-weight: 700; color: var(--p-text); font-size: 0.78rem; }
.poll-bar { grid-area: bar; height: 7px; background: var(--p-border-soft); border-radius: 4px; overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--p-accent); border-radius: 4px; transition: width 0.4s var(--p-ease); }
.poll-opt:hover .poll-label { color: var(--p-text); }
.poll-opt.is-checked .poll-bar i { background: var(--p-accent-600); }
.poll-submit {
  width: 100%; margin-top: 10px;
  background: var(--p-navy);
  color: #fff; font-weight: 800; font-size: 0.82rem;
  padding: 11px; border-radius: 8px;
  transition: 0.15s var(--p-ease);
}
.poll-submit:hover { background: var(--p-navy-600); }

/* Sonda — licznik glosow w naglowku + stan po oddaniu glosu */
.poll-total { font-size: 0.72rem; font-weight: 700; color: var(--p-text-muted); }
.poll-card.voted .poll-opt { cursor: default; }
.poll-card.voted .poll-bar i { transition: width 0.5s var(--p-ease); }
.poll-card.voted .poll-label { color: var(--p-text); }
.poll-card.voted .poll-submit { background: var(--p-accent-600); cursor: default; }
.poll-card.voted .poll-submit:hover { background: var(--p-accent-600); }
.poll-opt.is-checked .poll-label { color: var(--p-text); font-weight: 700; }
.poll-opt.is-checked .poll-pct { color: var(--p-accent-600); }

/* Najnowszy material wideo — przycisk play + kursor (klik -> modal) */
.vf-media { cursor: pointer; }
.vf-media .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(10,31,68,0.82); border: 2px solid rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: 0.18s var(--p-ease);
}
.vf-media .play-btn::after {
  content: ""; margin-left: 3px;
  border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.vf-media:hover .play-btn { background: var(--p-accent); transform: translate(-50%, -50%) scale(1.08); }

/* ═══════════════════════════════════════════════════════════
   MODAL ODTWARZACZA WIDEO (YouTube)
   ═══════════════════════════════════════════════════════════ */
body.modal-open { overflow: hidden; }
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.video-modal[hidden] { display: none; }
.vm-backdrop { position: absolute; inset: 0; background: rgba(5,12,28,0.82); backdrop-filter: blur(3px); }
.vm-dialog {
  position: relative; z-index: 1;
  width: min(960px, 100%);
  background: var(--p-navy); border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-lg); overflow: hidden;
  animation: vmIn 0.22s var(--p-ease);
}
@keyframes vmIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.vm-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-title { padding: 14px 18px 18px; color: #fff; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.vm-close {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 1.5rem; line-height: 1; font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  transition: 0.15s var(--p-ease);
}
.vm-close:hover { background: var(--p-red); }

/* ═══════════════════════════════════════════════════════════
   SIATKI KART (Aktualnosci / Wideo)
   ═══════════════════════════════════════════════════════════ */
.block { margin-top: 14px; }
.card-grid { display: grid; gap: var(--p-gap); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Karta newsa */
.news-card, .video-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  overflow: hidden;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.25s var(--p-ease), box-shadow 0.25s var(--p-ease), border-color 0.25s var(--p-ease);
}
.news-card:hover, .video-card:hover { transform: translateY(-5px); box-shadow: var(--p-shadow-md); }
/* Zdjecie zaokraglone tylko u gory — zgodnie z promieniem karty. */
.nc-media, .vc-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--p-radius) var(--p-radius) 0 0; }
.nc-media img, .vc-media img { width: 100%; height: 100%; object-fit: cover; background: var(--p-navy); transition: transform 0.3s var(--p-ease); }
.news-card:hover .nc-media img, .video-card:hover .vc-media img { transform: scale(1.05); }

.cat-badge {
  position: absolute; left: 10px; top: 10px;
  color: #fff; font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px;
}
.cat-policja { background: var(--p-cat-policja); }
.cat-miasto  { background: var(--p-cat-miasto); }
.cat-sport   { background: var(--p-cat-sport); }
.cat-kultura { background: var(--p-cat-kultura); }

.nc-body, .vc-body { padding: 13px 15px 16px; }
.nc-title, .vc-title { font-size: 0.97rem; font-weight: 700; line-height: 1.32; margin-bottom: 10px; }
.nc-title a:hover, .vc-title a:hover { color: var(--p-accent-600); }
.nc-meta, .vc-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.74rem; color: var(--p-text-muted); }
.nc-comments, .vc-views { display: inline-flex; align-items: center; gap: 5px; }
.nc-comments::before { content: "💬"; font-size: 0.85em; }
.vc-views::before { content: "👁"; font-size: 0.85em; }

/* Karta wideo — czas trwania */
.vc-time { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,0.78); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════
   POWIAT — kafelki gmin
   ═══════════════════════════════════════════════════════════ */
.gmina-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.gmina-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  overflow: hidden;
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.25s var(--p-ease), box-shadow 0.25s var(--p-ease);
}
.gmina-card img { width: 100%; height: 100%; object-fit: cover; background: var(--p-navy); transition: transform 0.3s var(--p-ease); }
.gmina-card span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,31,68,0.92));
  color: #fff; font-size: 0.8rem; font-weight: 700;
  text-align: center; padding: 18px 6px 9px;
}
.gmina-card:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }
.gmina-card:hover img { transform: scale(1.08); }

/* ═══════════════════════════════════════════════════════════
   POWIATY — interaktywny modul (powiat.html + strona glowna)
   Kafelki herbow (godla na jasnym tle: contain, bez kadrowania)
   oraz naglowek wybranego powiatu z herbem i opisem.
   ═══════════════════════════════════════════════════════════ */
.county-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* Kafel powiatu: herb na gorze + nazwa pod spodem */
.county-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 14px 16px;
  text-decoration: none;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  transition: transform 0.25s var(--p-ease), box-shadow 0.25s var(--p-ease), border-color 0.25s var(--p-ease);
}
.county-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--p-shadow-md);
  border-color: var(--p-accent);
}

/* Obszar herbu — kwadrat, godlo wpisane bez kadrowania */
.county-tile-media {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
}
.county-tile-crest { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Placeholder z inicjalem (gdy brak herbu) */
.county-tile-fallback {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--p-navy);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
}
.county-tile-name {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  color: var(--p-text);
}

/* ── Naglowek wybranego powiatu (widok wpisow) ── */
.county-header { margin-bottom: 22px; }
.county-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--p-text-soft);
  text-decoration: none;
}
.county-back:hover { color: var(--p-accent-600); }
.county-header-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--p-accent);
}
.county-header-crest { width: 72px; height: 72px; object-fit: contain; flex-shrink: 0; }
.county-header-name { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; color: var(--p-text); }
.county-header-sub { margin-top: 4px; font-size: 0.92rem; color: var(--p-text-muted); }
@media (max-width: 620px) {
  .county-header-main { gap: 12px; }
  .county-header-crest { width: 56px; height: 56px; }
}

/* ═══════════════════════════════════════════════════════════
   PANELE (dolne bloki)
   ═══════════════════════════════════════════════════════════ */
.panel {
  background: var(--p-surface);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  padding: 20px 22px 22px;
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.panel-head h3 { font-size: 1.05rem; font-weight: 800; }
.panel-sub { font-size: 0.78rem; color: var(--p-text-muted); }
.panel-sub.mb { display: block; margin-bottom: 14px; }

/* Dolny blok — siatka 3 kolumny */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--p-gap); }
.rail-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: var(--p-gap); }

/* Ogloszenia drobne */
.ads-cats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0 16px; }
.ad-cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px;
  background: var(--p-surface-alt);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  font-size: 0.74rem; font-weight: 600; color: var(--p-text-soft);
  text-align: center;
  transition: 0.15s var(--p-ease);
}
.ad-cat:hover { border-color: var(--p-accent); color: var(--p-text); transform: translateY(-2px); }
.ad-ico { font-size: 1.4rem; }
.ads-btn, .voice-btn {
  display: block; text-align: center;
  background: var(--p-accent);
  color: var(--p-navy);
  font-weight: 800; font-size: 0.85rem;
  padding: 12px; border-radius: 8px;
  transition: 0.15s var(--p-ease);
}
.ads-btn:hover, .voice-btn:hover { background: #ffb938; }

/* Najpopularniejsze ogloszenia */
.ad-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.ad-list li { border-bottom: 1px solid var(--p-border-soft); padding-bottom: 12px; }
.ad-list li:last-child { border-bottom: none; }
.ad-list strong { font-size: 0.88rem; font-weight: 700; display: block; }
.ad-list a:hover strong { color: var(--p-accent-600); }
.ad-list-meta { font-size: 0.74rem; color: var(--p-text-muted); }

/* Twoj glos */
.voice-text { font-size: 0.86rem; color: var(--p-text-soft); line-height: 1.55; margin: 10px 0; }
.voice-btn { margin-top: 6px; }

/* Media spolecznosciowe */
.social-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  border-radius: var(--p-radius);
  color: #fff; font-weight: 700; font-size: 0.82rem;
  transition: transform 0.15s var(--p-ease);
}
.st svg { width: 20px; height: 20px; }
.st:hover { transform: translateY(-2px); }
.st-fb { background: #1877f2; }
.st-yt { background: #ff0000; }
.st-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.st-tt { background: #010101; }

/* Fotorelacje */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.photo-tile { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--p-border); border-radius: var(--p-radius); overflow: hidden; box-shadow: var(--p-shadow-sm); transition: transform 0.25s var(--p-ease), box-shadow 0.25s var(--p-ease); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; background: var(--p-navy); transition: transform 0.3s var(--p-ease); }
.photo-tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(10,31,68,0.9));
  color: #fff; font-size: 0.74rem; font-weight: 700;
  padding: 16px 10px 8px;
}
.photo-tile:hover { transform: translateY(-3px); box-shadow: var(--p-shadow-md); }
.photo-tile:hover img { transform: scale(1.06); }

/* Najczesciej czytane */
.read-list { display: flex; flex-direction: column; gap: 13px; }
.read-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 11px; }
.read-num {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--p-navy); color: var(--p-accent);
  font-weight: 800; font-size: 0.82rem;
  border-radius: 6px;
}
.read-list a { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.read-list a:hover { color: var(--p-accent-600); }
.read-views { font-size: 0.72rem; color: var(--p-text-muted); white-space: nowrap; }
.read-views::before { content: "👁 "; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer { background: var(--p-navy); color: var(--p-on-navy); margin-top: 44px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding: 40px 20px 34px;
}
.footer-logo strong { font-size: 1.4rem; font-weight: 900; color: #fff; }
.footer-tagline { font-size: 0.78rem; color: var(--p-on-navy-soft); margin: 8px 0 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-social { display: flex; gap: 8px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-accent); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.84rem; color: var(--p-on-navy-soft); padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-apps-sub { font-size: 0.8rem; color: var(--p-on-navy-soft); margin-bottom: 12px; }
.store-badges { display: flex; flex-direction: column; gap: 9px; }
.store-badge {
  display: block; text-align: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px; padding: 9px 12px;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  transition: 0.15s var(--p-ease);
}
.store-badge:hover { background: rgba(255,255,255,0.1); border-color: var(--p-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 0.78rem; color: var(--p-on-navy-soft); }

/* ═══════════════════════════════════════════════════════════
   RESPONSYWNOSC
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--p-gap); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gmina-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 880px) {
  .main-nav, .hd-social, .hd-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-tools { margin-left: 0; gap: 10px; }
  .header-inner { gap: 12px; }
  .nav-toggle { margin-left: auto; }

  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--p-navy-700);
    padding: 8px;
    gap: 2px;
    box-shadow: var(--p-shadow-lg);
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; }

  .bottom-grid, .rail-grid { grid-template-columns: 1fr; }
  .ads-cats { grid-template-columns: 1fr 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PODSTRONY — artykul.html i lista.html (we wlasnej domenie)
   ═══════════════════════════════════════════════════════════ */

/* Sciezka okruszkowa */
.breadcrumb {
  max-width: var(--p-maxw);
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--p-text-muted);
}
.breadcrumb a { color: var(--p-text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--p-accent-600); }
.breadcrumb-sep { color: var(--p-text-muted); }

/* Stan ladowania (spinner) — wspolny dla artykulu i listy */
.article-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 20px;
  color: var(--p-text-soft);
  font-size: 0.95rem;
}
.article-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--p-border);
  border-top-color: var(--p-accent);
  border-radius: 50%;
  animation: article-spin 0.8s linear infinite;
}
@keyframes article-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .article-spinner { animation: none; }
}

/* ── Artykul ── */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 20px 56px;
}
.article-flag {
  display: inline-block;
  background: var(--p-accent);
  color: #2a1a00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 2.1rem;
  line-height: 1.18;
  color: var(--p-text);
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--p-text-muted);
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--p-border);
}
.article-meta-sep { color: var(--p-border); }
.article-figure {
  margin: 0 0 26px;
  border-radius: var(--p-radius-lg);
  overflow: hidden;
  box-shadow: var(--p-shadow-md);
  background: var(--p-navy);
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article-content {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--p-text);
}
.article-content p { margin: 0 0 18px; }
.article-content h2 { font-size: 1.5rem; margin: 30px 0 14px; color: var(--p-text); }
.article-content h3 { font-size: 1.22rem; margin: 24px 0 12px; color: var(--p-text); }
.article-content a { color: var(--p-accent-600); }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--p-radius);
  margin: 8px 0 18px;
}
/* Galeria zdjec doklejana z zalacznikow wpisu (tvml-db.php -> .article-gallery).
   Responsywna siatka miniatur o rownej wysokosci; klik otwiera lightbox. */
.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 10px 0 24px;
}
.article-gallery-item {
  margin: 0;
  border-radius: var(--p-radius);
  overflow: hidden;
  background: var(--p-navy);
  box-shadow: var(--p-shadow-sm);
}
.article-gallery-item img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content li { margin-bottom: 7px; }
.article-content blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 4px solid var(--p-accent);
  background: var(--p-surface-alt);
  color: var(--p-text-soft);
  font-style: italic;
  border-radius: 0 var(--p-radius) var(--p-radius) 0;
}
.article-content iframe {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--p-radius);
  margin: 8px 0 18px;
}
.article-actions {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--p-border);
}

/* ── Podstrona tresciowa (CMS lekki: strona.html) ──
   Czytelny, dopasowany uklad oparty na stylach artykulu, lecz osadzony
   w karcie z tlem powierzchni dla lepszej czytelnosci dluzszych tekstow
   (regulamin, polityka prywatnosci, kontakt itd.). */
.static-page {
  max-width: 880px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
  margin: 14px auto 56px;
  padding: clamp(24px, 4vw, 48px);
}
.static-page .article-title {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--p-accent);
}
.static-page .article-meta {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 24px;
}
.static-page .article-content {
  max-width: 70ch;
}
.static-page .article-content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 34px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--p-border);
}
.static-page .article-content h3 { font-size: 1.22rem; margin: 26px 0 12px; }
.static-page .article-content h4 { font-size: 1.08rem; margin: 22px 0 10px; color: var(--p-text-soft); }
.static-page .article-content ul,
.static-page .article-content ol { margin: 0 0 20px 24px; }
.static-page .article-content li { margin-bottom: 9px; line-height: 1.7; }
.static-page .article-content a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.static-page .article-content a:hover { color: var(--p-accent); }
.static-page .article-content hr {
  border: none;
  border-top: 1px solid var(--p-border);
  margin: 28px 0;
}

/* Stan bledu / pusta lista — wspolny */
.article-error {
  max-width: 560px;
  margin: 40px auto;
  padding: 48px 26px;
  text-align: center;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-sm);
}
.article-error-ico { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.article-error h2 { font-size: 1.4rem; color: var(--p-text); margin-bottom: 8px; }
.article-error p { color: var(--p-text-soft); margin-bottom: 22px; }

/* ── Lista (przycisk "Pokaz wiecej") ── */
.list-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.list-more-wrap .hero-cta { cursor: pointer; border: none; }

/* ═══════════════════════════════════════════════════════════
   ART OVERLAY — artykul w nakladce (AJAX, panel wjezdzajacy z LEWEJ)
   Panel osadzony PONIZEJ naglowka (sticky) i nie zaslania stopki:
   tlo (backdrop) zaczyna sie pod naglowkiem, a panel ma ograniczona
   wysokosc do widoku, wiec naglowek pozostaje klikalny. Na mobile
   przechodzi w tryb pelnoekranowy (pod naglowkiem) dla czytelnosci.
   ═══════════════════════════════════════════════════════════ */
.art-overlay {
  position: fixed;
  top: var(--p-header-h); left: 0; right: 0; bottom: 0;
  z-index: 90;            /* ponizej naglowka (.site-header ma z-index:100) */
}
.art-overlay[hidden] { display: none; }
.art-overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(5,12,28,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s var(--p-ease);
}
.art-overlay.is-open .art-overlay-backdrop { opacity: 1; }
.art-overlay-panel {
  position: absolute; top: 0; left: 0; bottom: 0;   /* DRAWER Z LEWEJ */
  width: min(880px, 92%);
  background: var(--p-bg);
  box-shadow: var(--p-shadow-lg);
  transform: translateX(-100%);
  transition: transform 0.28s var(--p-ease);
  display: flex; flex-direction: column;
}
.art-overlay.is-open .art-overlay-panel { transform: translateX(0); }
.art-overlay-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 26px 40px;
  overscroll-behavior: contain;
}
.art-overlay-close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--p-surface);
  color: var(--p-text-soft);
  box-shadow: var(--p-shadow-sm);
  display: grid; place-items: center;
  transition: 0.15s var(--p-ease);
}
.art-overlay-close svg { width: 18px; height: 18px; }
.art-overlay-close:hover { background: var(--p-accent); color: var(--p-navy); transform: rotate(90deg); }
/* W nakladce artykul nie potrzebuje wlasnego marginesu/cienia — panel go daje. */
.art-overlay .article { margin: 0; padding: 0; box-shadow: none; background: none; max-width: none; }
.art-overlay .breadcrumb { margin: 0 0 18px; padding-right: 48px; }
@media (prefers-reduced-motion: reduce) {
  .art-overlay-backdrop,
  .art-overlay-panel { transition: none; }
  .art-overlay-close:hover { transform: none; }
}
/* Tablet/telefon — panel zajmuje calą szerokosc pod naglowkiem. */
@media (max-width: 720px) {
  .art-overlay-panel { width: 100%; }
  .art-overlay-scroll { padding: 16px 18px 32px; }
}

@media (max-width: 620px) {
  .article-title { font-size: 1.6rem; }
  .article-content { font-size: 1rem; }
}

@media (max-width: 620px) {
  html { font-size: 15px; }
  .hero-side { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .gmina-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-card { min-height: 360px; }
  .hero-body { padding: 20px 18px 22px; }
  .hero-title { font-size: 1.5rem; }
  .hero-lead { font-size: 0.9rem; margin-bottom: 14px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
  .social-tiles { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .gmina-grid { grid-template-columns: repeat(2, 1fr); }
  .ads-cats { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX GALERII — popup ze zdjeciami artykulu (przewijanie + zamkniecie)
   Wspolny dla nakladki (portal-overlay) oraz strony artykul.html.
   Pelnoekranowy, responsywny, z obsluga klawiatury i gestow dotyku.
   ═══════════════════════════════════════════════════════════ */
/* Obrazy klikalne w tresci/figurze artykulu — kursor + delikatny hover. */
.article-content img,
.article-figure img.is-zoomable,
.ov-image.is-zoomable {
  cursor: zoom-in;
}
.pl-lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3,8,18,0.92);
  opacity: 0;
  transition: opacity 0.22s var(--p-ease);
}
.pl-lightbox[hidden] { display: none; }
.pl-lightbox.is-open { opacity: 1; }
.pl-lb-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 16px 96px;
}
.pl-lb-img {
  max-width: min(96vw, 1400px);
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.6);
  user-select: none;
  -webkit-user-drag: none;
}
/* Tymczasowy znak wodny na powiekszonym zdjeciu (tekst z panelu admina).
   Pozycjonowany w obszarze sceny; rog/srodek wg klasy modyfikatora. */
.pl-lb-watermark {
  position: absolute;
  z-index: 2;
  max-width: 80%;
  color: #fff;
  font-size: clamp(0.8rem, 1.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl-lb-watermark[hidden] { display: none; }
.pl-lb-watermark--top-left     { top: 80px;  left: 28px; }
.pl-lb-watermark--top-right    { top: 80px;  right: 28px; }
.pl-lb-watermark--bottom-left  { bottom: 96px; left: 28px; }
.pl-lb-watermark--bottom-right { bottom: 96px; right: 28px; }
.pl-lb-watermark--center {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: clamp(1rem, 3vw, 2rem); max-width: 90%;
  white-space: normal; text-align: center;
}
.pl-lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background 0.15s var(--p-ease), transform 0.15s var(--p-ease);
}
.pl-lb-btn:hover { background: var(--p-accent); color: var(--p-navy); }
.pl-lb-btn svg { width: 26px; height: 26px; }
.pl-lb-btn[disabled] { opacity: 0.28; pointer-events: none; }
.pl-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.pl-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.pl-lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.pl-lb-next:hover { transform: translateY(-50%) scale(1.06); }
.pl-lb-close {
  top: 16px; right: 16px;
  width: 46px; height: 46px;
}
.pl-lb-close:hover { transform: rotate(90deg); }
.pl-lb-counter {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.45);
  padding: 6px 14px; border-radius: 999px;
}
.pl-lb-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #eaf0fb; font-size: 0.85rem; text-align: center;
  pointer-events: none;
}
.pl-lb-caption:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pl-lightbox { transition: none; }
  .pl-lb-close:hover, .pl-lb-prev:hover, .pl-lb-next:hover { transform: none; }
  .pl-lb-prev, .pl-lb-next { /* zachowaj wycentrowanie pionowe */ }
  .pl-lb-prev:hover { transform: translateY(-50%); }
  .pl-lb-next:hover { transform: translateY(-50%); }
}
@media (max-width: 620px) {
  .pl-lb-stage { padding: 56px 8px 84px; }
  .pl-lb-btn { width: 44px; height: 44px; }
  .pl-lb-btn svg { width: 22px; height: 22px; }
  .pl-lb-prev { left: 8px; }
  .pl-lb-next { right: 8px; }
}

/* ════════════════════════════════════════════════════════════
   STRONA POGODY (pogoda.html) — dedykowana podstrona w stylu
   serwisow pogodowych. Korzysta z tokenow motywu (dzien/noc).
   ════════════════════════════════════════════════════════════ */

/* HERO: biezace warunki na granatowym tle marki */
.wx-hero {
  --wx-card-text: var(--p-on-navy);
  --wx-card-text-soft: var(--p-on-navy-soft);
  --wx-card-title: #ffffff;
  --wx-card-accent: var(--p-accent);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
  background: linear-gradient(160deg, var(--p-navy-700), var(--p-navy));
  color: var(--wx-card-text);
  border-radius: var(--p-radius-lg);
  box-shadow: var(--p-shadow-md);
  padding: 28px 30px;
  margin-bottom: var(--p-gap);
  position: relative;
  overflow: hidden;
}
#weather-effects-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.wx-hero > :not(#weather-effects-canvas) {
  position: relative;
  z-index: 2;
}
.wx-hero-main { display: flex; align-items: center; gap: 20px; }
.wx-big-ico { width: 84px; height: 84px; color: var(--wx-card-accent); flex-shrink: 0; }
.wx-hero-now { display: flex; flex-direction: column; gap: 2px; }
.wx-hero-temp { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--wx-card-title); }
.wx-hero-desc { font-size: 1.05rem; font-weight: 600; color: var(--wx-card-text); }
.wx-hero-feels { font-size: 0.85rem; color: var(--wx-card-text-soft); }
.wx-hero-side { text-align: right; }
.wx-hero-loc { font-size: 1.25rem; font-weight: 800; color: var(--wx-card-title); margin-bottom: 4px; }
.wx-hero-src { font-size: 0.8rem; color: var(--wx-card-text-soft); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.wx-hero-src a { color: var(--wx-card-accent); font-weight: 700; }
.wx-hero-src a:hover { color: #ffb938; }
.wx-hero-updated { font-size: 0.74rem; color: var(--wx-card-text-soft); margin-top: 6px; }

/* KAFLE: szczegolowe pomiary */
.wx-tiles {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.wx-tile {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.15s var(--p-ease), box-shadow 0.15s var(--p-ease);
}
.wx-tile:hover { transform: translateY(-2px); box-shadow: var(--p-shadow-md); }
.wx-tile-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--p-text-muted); }
.wx-tile-value { font-size: 1.55rem; font-weight: 800; color: var(--p-text); line-height: 1.1; }
.wx-tile-hint { font-size: 0.74rem; color: var(--p-text-soft); }
.wx-empty { color: var(--p-text-soft); font-size: 0.9rem; padding: 8px 2px; }

/* PROGNOZA GODZINOWA: poziomy pasek z przewijaniem */
.wx-hourly {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.wx-h {
  flex: 0 0 auto; min-width: 72px;
  scroll-snap-align: start;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.wx-h-time { font-size: 0.76rem; font-weight: 700; color: var(--p-text-soft); }
.wx-h-ico { width: 30px; height: 30px; color: var(--p-accent); }
.wx-h-temp { font-size: 1.05rem; font-weight: 800; color: var(--p-text); }
.wx-h-pop { font-size: 0.7rem; font-weight: 700; color: #2f80ed; min-height: 1em; }
.wx-h-pop--none { color: transparent; }

/* PROGNOZA WIELODNIOWA: siatka kart dni */
.wx-daily {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.wx-d {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: transform 0.15s var(--p-ease), box-shadow 0.15s var(--p-ease);
}
.wx-d:hover { transform: translateY(-2px); box-shadow: var(--p-shadow-md); }
.wx-d-head { display: flex; flex-direction: column; gap: 1px; }
.wx-d-day { font-size: 0.95rem; font-weight: 800; color: var(--p-text); }
.wx-d-date { font-size: 0.72rem; color: var(--p-text-muted); }
.wx-d-ico { width: 40px; height: 40px; color: var(--p-accent); }
.wx-d-temps { display: flex; align-items: baseline; gap: 8px; }
.wx-d-temps strong { font-size: 1.3rem; font-weight: 800; color: var(--p-text); }
.wx-d-temps span { font-size: 0.95rem; color: var(--p-text-muted); }
.wx-d-desc { font-size: 0.78rem; color: var(--p-text-soft); min-height: 2.2em; }
.wx-d-extra { display: flex; flex-direction: column; gap: 2px; font-size: 0.72rem; color: var(--p-text-soft); }

/* SLONCE: wschod / zachod */
.wx-sun { display: flex; flex-wrap: wrap; gap: 14px; }
.wx-sun-item {
  flex: 1 1 200px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-sm);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.wx-sun-ico { font-size: 1.8rem; line-height: 1; }
.wx-sun-label { flex: 1; font-size: 0.85rem; color: var(--p-text-soft); }
.wx-sun-item strong { font-size: 1.4rem; font-weight: 800; color: var(--p-text); }

/* RWD */
@media (max-width: 640px) {
  .wx-hero { padding: 22px; }
  .wx-hero-side { text-align: left; }
  .wx-hero-src { justify-content: flex-start; }
  .wx-hero-temp { font-size: 2.8rem; }
  .wx-big-ico { width: 68px; height: 68px; }
}

/* ════════════════════════════════════════════════════════════
   OCHRONA ZDJEC — utrudnienie pobierania zdjec bez znaku wodnego.
   Blokuje zaznaczanie i natywne przeciaganie obrazow (drag&drop /
   przeciagniecie do paska adresu). Dziala razem z blokada menu
   kontekstowego i watermarkiem w JS (portal-chrome.js). To celowe,
   standardowe utrudnienie po stronie przegladarki.
   ════════════════════════════════════════════════════════════ */
.article-content img,
.article-figure img,
.article-gallery img,
.ov-figure img,
.hero-slide img,
.pl-lb-img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;   /* iOS: brak menu "Zapisz obraz" po dotyku */
}

/* ════════════════════════════════════════════════════════════
   DYNAMICZNE TŁA POGODOWE (Sky Gradients)
   Gradienty dopasowane do stanów stacji pogodowej (dzień / noc)
   ════════════════════════════════════════════════════════════ */
.weather-card.color-sky-day-0, .wx-hero.color-sky-day-0 { background: linear-gradient(160deg, #374151, #1f2937) !important; }
.weather-card.color-sky-day-1, .wx-hero.color-sky-day-1 { background: linear-gradient(160deg, #3b82f6, #1d4ed8) !important; }
.weather-card.color-sky-day-2, .wx-hero.color-sky-day-2 { background: linear-gradient(160deg, #60a5fa, #2563eb) !important; }
.weather-card.color-sky-day-3, .wx-hero.color-sky-day-3 { background: linear-gradient(160deg, #94a3b8, #475569) !important; }
.weather-card.color-sky-day-4, .wx-hero.color-sky-day-4 { background: linear-gradient(160deg, #64748b, #334155) !important; }
.weather-card.color-sky-day-5, .wx-hero.color-sky-day-5 { 
  background: linear-gradient(160deg, #8ca6c2, #b5c7d8) !important; 
  --wx-card-text: #1b2e46 !important;
  --wx-card-text-soft: #45576d !important;
  --wx-card-title: #0e1b2b !important;
  --wx-card-accent: #0253b3 !important;
}
.weather-card.color-sky-day-6, .wx-hero.color-sky-day-6 { 
  background: linear-gradient(160deg, #6c8096, #92a4b8) !important; 
  --wx-card-text: #f0f4f8 !important;
  --wx-card-text-soft: #cbd7e3 !important;
  --wx-card-title: #ffffff !important;
  --wx-card-accent: #ffb938 !important;
}
.weather-card.color-sky-day-7, .wx-hero.color-sky-day-7 { background: linear-gradient(160deg, #4b5a6c, #6c7e92) !important; }

.weather-card.color-sky-night-0, .wx-hero.color-sky-night-0 { background: linear-gradient(160deg, #1f2937, #111827) !important; }
.weather-card.color-sky-night-1, .wx-hero.color-sky-night-1 { background: linear-gradient(160deg, #0f172a, #020617) !important; }
.weather-card.color-sky-night-2, .wx-hero.color-sky-night-2 { background: linear-gradient(160deg, #1e1b4b, #090514) !important; }
.weather-card.color-sky-night-3, .wx-hero.color-sky-night-3 { background: linear-gradient(160deg, #312e81, #0c0a0f) !important; }
.weather-card.color-sky-night-4, .wx-hero.color-sky-night-4 { background: linear-gradient(160deg, #1e293b, #0f172a) !important; }
.weather-card.color-sky-night-5, .wx-hero.color-sky-night-5 { background: linear-gradient(160deg, #111827, #030712) !important; }
.weather-card.color-sky-night-6, .wx-hero.color-sky-night-6 { background: linear-gradient(160deg, #0b0f19, #020408) !important; }
.weather-card.color-sky-night-7, .wx-hero.color-sky-night-7 { background: linear-gradient(160deg, #05070a, #000000) !important; }








