/*
Theme Name: GlobalMetalInfo Premium
Theme URI: https://globalmetalinfo.eu
Author: GlobalMetalInfo
Description: Premium metal magazine theme. Typografia klasy Kerrang!/Rolling Stone, layout magazynowy, wbudowany page builder z kafelkami, blokami reklamowymi i social mediami. Efekt WOW przy wejściu.
Version: 2.0.2
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: gmi
*/

/* ============================================================
   DESIGN TOKENS — system wizualny
   Paleta: Obsydian + Krew + Złoto + Dym
   Typografia: Bebas Neue (display) + Libre Baskerville (body) + JetBrains Mono (utility)
   Sygnatura: Ukośna czerwona szrama ("riff") przecinająca sekcje
   ============================================================ */
:root {
  /* Paleta — tryb ciemny jest teraz domyślny (Obsydian + Krew + Złoto) */
  --ink:        #0a0a0a;   /* tło strony */
  --ink-1:      #141414;   /* panel (karty bez zdjęcia, boxy reklamowe) */
  --ink-2:      #1a1a1a;   /* nieco głębszy panel */
  --ink-3:      #262626;   /* linie / obramowania */
  --smoke:      #333333;   /* delikatne obramowania */
  --ash:        #8c8c8c;   /* tekst drugorzędny (meta, daty) */
  --mist:       #b8b8b4;   /* tekst średni (leady, opisy) */
  --bone:       #ececec;   /* podstawowy tekst / body copy */
  --dark:       #f5f5f5;   /* nagłówki na ciemnym tle */
  --paper:      #141414;
  --blood:      #e01029;
  --blood-dark: #a90d20;
  --blood-glow: rgba(224,16,41,0.28);
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-glow:  rgba(201,168,76,0.22);
  --white:      #ffffff;

  /* Category colors */
  --cat-news:       #e01029;
  --cat-reviews:    #7b4fa6;
  --cat-interviews: #1a63c9;
  --cat-reports:    #1a7a4a;

  /* Typografia */
  --font-display: 'Barlow Condensed', 'Oswald', 'Arial Narrow', sans-serif;
  --font-serif:   'Georgia', 'Libre Baskerville', serif;
  --font-sans:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.68rem;
  --text-sm:   0.82rem;
  --text-base: 1rem;
  --text-lg:   1.15rem;
  --text-xl:   1.35rem;
  --text-2xl:  1.7rem;
  --text-3xl:  2.4rem;
  --text-4xl:  3.5rem;
  --text-5xl:  5rem;
  --text-hero: clamp(3.5rem, 8vw, 7rem);

  /* Spacing */
  --space-xs:  6px;
  --space-sm:  12px;
  --space-md:  20px;
  --space-lg:  32px;
  --space-xl:  48px;
  --space-2xl: 72px;
  --space-3xl: 96px;

  /* Layout */
  --max-w:        1400px;
  --sidebar-w:    320px;
  --header-h:     72px;

  /* Effects */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --trans-fast: 0.15s ease;
  --trans-med:  0.28s cubic-bezier(0.25,0.46,0.45,0.94);
  --trans-slow: 0.5s cubic-bezier(0.25,0.46,0.45,0.94);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.45);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 36px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 32px rgba(224,16,41,0.20);

  /* Powierzchnie "szklane" — header, pasek udostępniania oraz widgety
     Radio/YouTube/Magazyn (glassmorphism). Wydzielone do zmiennych, żeby
     jasny motyw (html.gmi-light niżej) mógł je nadpisać w jednym miejscu. */
  --header-bg:      rgba(10,10,10,0.94);
  --sharebar-bg:    rgba(10,10,10,0.9);
  --glass-bg:       linear-gradient(135deg, rgba(38,38,38,0.85), rgba(20,20,20,0.65));
  --glass-border:   rgba(201,168,76,0.28);
  --glass-shadow:   0 3px 10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  --glass-hover-bg: rgba(255,255,255,0.07);
  --glass-cover-bg: rgba(255,255,255,0.08);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Domyślne wyskalowanie całej strony do ok. 90% (jak Ctrl+- raz w Chrome).
     `zoom` to własność nie-standardowa, ale obsługiwana przez Chrome/Edge/Safari
     (i nowsze Firefoksy) — celowo używana zamiast transform:scale, bo skaluje
     też layout/viewport, a nie tylko wygląd, więc nic się nie "obcina". */
  zoom: 0.9;
}
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   SKIP LINK / ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  background: var(--blood); color: var(--white);
  padding: 8px 16px; font-size: var(--text-sm); border-radius: 0 0 4px 0;
  transition: top var(--trans-fast);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }
::selection { background: rgba(200,16,46,.35); color: var(--white); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink-1); }
::-webkit-scrollbar-thumb { background: var(--blood-dark); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--blood); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--dark);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }
p { margin-bottom: 1.3em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; color: var(--dark); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
html {
  /* overflow-x:hidden na <html>/<body> to znany bug w Safari: jeśli html lub body
     ma jakikolwiek overflow różny od "visible", WSZYSTKIE elementy position:sticky
     na stronie przestają się przyklejać (m.in. sticky header i pasek ikon w
     artykułach). "clip" daje ten sam efekt (brak poziomego scrolla), ale nie
     tworzy scrollowalnego kontenera, więc sticky działa normalnie.
     Fallback "hidden" zostaje dla starszych przeglądarek bez wsparcia dla "clip". */
  overflow-x: hidden;
  overflow-x: clip;
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) { .container { padding: 0 var(--space-md); } }

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

/* The signature RIFF — diagonal red slash divider */
.riff {
  position: relative;
  display: inline-block;
  padding-left: 18px;
}
.riff::before {
  content: '';
  position: absolute;
  left: 0; top: -2px;
  width: 4px;
  height: calc(100% + 4px);
  background: var(--blood);
  transform: skewX(-12deg);
  box-shadow: 0 0 12px var(--blood-glow);
}

/* Section label — eyebrow text style */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--blood);
}

/* Category badge */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px 2px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}
.badge--news       { background: var(--cat-news);       color: #fff; }
.badge--reviews    { background: var(--cat-reviews);    color: #fff; }
.badge--interviews { background: var(--cat-interviews); color: #fff; }
.badge--reports    { background: var(--cat-reports);    color: #fff; }
.badge--default    { background: var(--ink-3);          color: var(--mist); border: 1px solid var(--smoke); }

/* Rating stars */
.rating {
  display: flex;
  gap: 2px;
  align-items: center;
}
.rating-star { color: var(--gold); font-size: 0.85rem; }
.rating-score {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--gold);
  margin-left: 6px;
  letter-spacing: 0.05em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--trans-med);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--trans-fast);
}
.btn:hover::after { opacity: 1; }

.btn--primary {
  background: var(--blood);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(200,16,46,0.3);
}
.btn--primary:hover {
  background: #e0152f;
  box-shadow: 0 6px 24px rgba(200,16,46,0.5);
  transform: translateY(-1px);
}
.btn--gold {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--smoke);
}
.btn--ghost:hover {
  border-color: var(--blood);
  color: var(--blood);
}
.btn--sm { padding: 8px 16px; font-size: var(--text-xs); }
.btn--lg { padding: 16px 36px; font-size: var(--text-base); }

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--ink-3);
  transition: box-shadow var(--trans-med);
}
#site-header.scrolled {
  box-shadow: 0 4px 24px rgba(20,18,14,0.08), 0 1px 0 var(--blood);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
}

/* Logo */
.site-logo-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--dark);
  flex-shrink: 0;
}
.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--dark);
}
.logo-wordmark .logo-metal { color: var(--blood); }
.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  color: var(--ash);
  text-transform: uppercase;
  padding-left: 1px;
}

/* Custom logo (Wygląd → GMI Panel motywu → Logo strony / Dostosuj → Logo).
   WordPress renderuje je przez the_custom_logo() jako:
   <a class="custom-logo-link"><img class="custom-logo"></a>
   Bez jawnych reguł rozmiaru wgrany obrazek renderuje się w swoim natywnym
   rozmiarze px, "rozsadza" header o stałej wysokości i zasłania/przesuwa
   menu oraz pasek udostępniania pod spodem — to właśnie to naprawia. */
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 240px;
  height: 100%;
  padding: 12px 0;
}
.custom-logo-link img.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@media (max-width: 640px) {
  .custom-logo-link { max-width: 200px; }
  /* Bazowa reguła powyżej ma width:auto; height:auto — to tylko GÓRNY
     limit (nigdy nie powiększa obrazka ponad jego natywny rozmiar w
     px). Jeśli wgrane logo ma niewielką natywną wysokość, na wąskim
     mobilnym ekranie wygląda mikroskopijnie. Wymuszamy realne
     wypełnienie dostępnej wysokości nagłówka (height: 100% zamiast
     auto), więc mały plik faktycznie skaluje się W GÓRĘ do tego, ile
     miejsca daje pasek nagłówka — proporcje zachowane przez width:auto. */
  .custom-logo-link img.custom-logo { width: auto; height: 100%; }
  /* Logo tekstowe (gdy w Dostosuj → Logo strony nic nie wgrano) —
     na mobile było identycznej wielkości co na desktopie, czyli
     proporcjonalnie drobne na małym ekranie. */
  .logo-wordmark { font-size: 1.9rem; }
  .logo-tagline { font-size: 0.62rem; }
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; justify-content: center; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-list > li > a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 4px 16px;
  position: relative;
  transition: color var(--trans-fast);
  display: block;
}
.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%; right: 50%;
  height: 2px;
  background: var(--blood);
  transition: left var(--trans-med), right var(--trans-med);
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-cat > a {
  color: var(--dark);
}
.nav-list > li > a:hover::after,
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current-cat > a::after {
  left: 16px; right: 16px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.header-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--ash);
  border: 1px solid var(--ink-3);
  transition: all var(--trans-fast);
}
.header-btn:hover { color: var(--dark); border-color: var(--smoke); }
.header-btn svg { width: 17px; height: 17px; }

/* Player shortcut — distinguishing green icon, sits with search/hamburger/
   dark-mode toggle in .header-actions (same treatment on desktop & mobile). */
.header-btn--player {
  color: #1db954;
  border-color: rgba(29,185,84,.4);
}
.header-btn--player:hover {
  color: #1ed760;
  border-color: #1db954;
  background: rgba(29,185,84,.1);
}

.header-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  background: var(--blood);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
  border: 1px solid transparent;
}
.header-cta:hover {
  background: transparent;
  border-color: var(--blood);
  color: var(--blood) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  color: var(--ash);
}
.nav-hamburger span {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  transition: all var(--trans-med);
}

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .nav-hamburger { display: flex; }
  .primary-nav.open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ink-3);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    z-index: 899;
  }
  .primary-nav.open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    width: 100%;
  }
  .primary-nav.open .nav-list > li { width: 100%; }
  .primary-nav.open .nav-list > li > a {
    font-size: var(--text-xl);
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-3);
  }
  .primary-nav.open .nav-list > li:last-child > a { border-bottom: none; }
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
#search-overlay {
  --ink-3: #2a2a2a;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(4,4,4,0.97);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--trans-med);
}
#search-overlay.open { opacity: 1; pointer-events: all; }

.search-overlay-inner { width: min(700px, 90vw); }

.search-overlay-close {
  position: fixed; top: 28px; right: 32px;
  font-size: 1.5rem; color: var(--ash);
  transition: color var(--trans-fast);
}
.search-overlay-close:hover { color: var(--white); }

.search-overlay-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  color: var(--ash);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.search-form-big {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--blood);
  padding-bottom: var(--space-md);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.search-form-big input {
  flex: 1;
  background: none; border: none; outline: none;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}
.search-form-big input::placeholder { color: var(--ink-3); }

#live-results { margin-top: var(--space-md); }
.live-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-3);
  align-items: center;
  transition: opacity var(--trans-fast);
}
.live-result-item:hover { opacity: 0.7; }
.live-result-item img {
  width: 56px; height: 34px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.live-result-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--white);
  text-transform: uppercase;
}
.live-result-meta {
  font-size: var(--text-xs);
  color: var(--ash);
  margin-top: 2px;
}

/* ============================================================
   HERO — Efekt WOW
   Fullscreen cinematic split — pełny viewport przy wejściu
   ============================================================ */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-section {
  height: calc(100vh - var(--header-h));
  min-height: 600px;
  max-height: 900px;
  display: grid;
  grid-template-columns: 62fr 38fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  background: var(--ink-2);
  position: relative;
}

/* Reveal animation on load */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: 10;
  animation: heroReveal 1.2s cubic-bezier(0.77,0,0.18,1) 0.2s forwards;
}
@keyframes heroReveal { to { transform: translateX(100%); } }

.hero-main {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-secondary { position: relative; overflow: hidden; cursor: pointer; }

.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: saturate(0.85);
}
.hero-main:hover .hero-img,
.hero-secondary:hover .hero-img { transform: scale(1.04); }

/* Gradient overlays — dramatic */
.hero-main .hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,8,0.05) 0%, transparent 40%),
    linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.3) 40%, transparent 70%);
}
.hero-secondary .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.2) 50%, transparent 80%);
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.hero-main .hero-content { padding: var(--space-xl); }
.hero-secondary .hero-content { padding: var(--space-lg) var(--space-md); }

.hero-main-title {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: var(--space-sm) 0 var(--space-md);
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}
.hero-main-title a { color: var(--white); }
.hero-main-title a:hover { color: var(--bone); }

.hero-excerpt {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: rgba(212,208,200,0.75);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--ash);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.hero-main-meta .dot { width: 3px; height: 3px; background: var(--smoke); border-radius: 50%; }

.hero-sec-title {
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--white);
  line-height: 1.05;
  margin: 8px 0 6px;
}
.hero-sec-title a { color: var(--white); }
.hero-sec-title a:hover { color: var(--bone); }
.hero-sec-meta { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ash); letter-spacing: 0.1em; }

/* No-image placeholder */
.hero-no-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink-1) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-no-img span { font-size: 5rem; opacity: 0.06; font-family: var(--font-display); letter-spacing: -0.05em; }

@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-rows: 60vh 1fr 1fr;
    height: auto;
    max-height: none;
  }
  .hero-main { grid-row: 1; }
}

/* ============================================================
   SECTION HEADERS — the "riff" signature
   ============================================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}
/* Etykieta kategorii w nawiasach kwadratowych, kolorowana wg kategorii — jak na zero.pl */
.section-name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--section-color, var(--blood));
  letter-spacing: 0;
  line-height: 1;
}
.section-name::before { content: '['; margin-right: 2px; opacity: 0.55; }
.section-name::after  { content: ']'; margin-left: 2px; opacity: 0.55; }
.section-all {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--blood);
  transition: all var(--trans-fast);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
}
.section-all::after { content: '→'; }
.section-all:hover { background: var(--blood-dark); }

/* ============================================================
   LAYOUT GRIDS
   ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-md); }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 700px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Main content + sidebar */
.layout-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-2xl) 0;
}
.layout-main > * { min-width: 0; }
@media (max-width: 1024px) {
  .layout-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ============================================================
   POST CARD — Magazine style
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  group: true;
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink-2);
  border-radius: var(--radius-lg);
}
/* Delikatna winieta na miniaturkach — ten sam efekt co na zdjęciu
   głównym wpisu (.single-featured::after), tylko na ::before, żeby
   nie kolidować z ::after używanym do wyświetlania oceny (.card--review). */
.card__img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.24), inset 0 0 10px rgba(0,0,0,0.18);
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.14) 100%);
}
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow), filter var(--trans-slow);
  filter: saturate(0.9);
}
.card:hover .card__img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans-med);
}
.card:hover .card__img-overlay { opacity: 1; }

.card__no-img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-3);
}
.card__no-img-icon { font-size: 2.5rem; opacity: 0.1; }

.card__body { padding: var(--space-md) 0 0; flex: 1; display: flex; flex-direction: column; }

.card__cats { margin-bottom: 6px; }
.card--horiz .card__cats { margin-bottom: 4px; }

.card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}
.card__avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.card__date {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--ash);
}
.card__author {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ash);
}
.card__sep { color: var(--ash); font-size: 0.6rem; }

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  flex: 1;
}
.card__title a { color: var(--dark); transition: color var(--trans-fast); }
.card__title a:hover { color: var(--blood); }

.card__excerpt {
  display: none;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--ash);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card size modifiers */
.card--sm .card__title { font-size: var(--text-lg); }
.card--sm .card__excerpt { display: none; }
.card--lg .card__title { font-size: var(--text-4xl); }
.card--lg .card__excerpt { -webkit-line-clamp: 4; }
.card--featured .card__title { font-size: var(--text-3xl); }

/* Featured card — horizontal */
.card--horiz {
  flex-direction: row;
  gap: var(--space-md);
  align-items: flex-start;
}
.card--horiz .card__img-wrap {
  width: 140px; flex-shrink: 0;
  aspect-ratio: 4/3;
}
.card--horiz .card__body { padding: 0; }
.card--horiz .card__title { font-size: var(--text-lg); }

/* Review card — has score */
.card--review .card__img-wrap::after {
  content: attr(data-score);
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201,168,76,0.6);
  line-height: 1;
}

/* ============================================================
   LIST ITEM — compact sidebar style
   ============================================================ */
.list-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--ink-2);
  align-items: start;
}
.list-item:last-child { border-bottom: none; }

.list-item__thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  flex-shrink: 0;
}
.list-item__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--trans-med);
}
.list-item:hover .list-item__thumb img { transform: scale(1.08); }

.list-item__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.list-item__title a { color: inherit; }
.list-item__title a:hover { color: var(--blood); }
.list-item__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ash); margin-top: 4px; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-wrap { max-width: 860px; }

.single-header-top { padding-top: var(--space-lg); }
@media (max-width: 640px) {
  .single-header-top { padding-top: var(--space-md); }
}

.single-header { margin-bottom: var(--space-md); }

.single-cats {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.single-title {
  font-size: clamp(1.25rem, 2.5vw, 2.5rem);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-deck {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--bone);
  line-height: 1.55;
  max-width: 700px;
  margin-bottom: var(--space-lg);
  font-style: italic;
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--ink-3);
  border-bottom: 1px solid var(--ink-3);
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .single-meta-bar { gap: var(--space-md) var(--space-lg); row-gap: 10px; padding: 10px 0; }
  .single-meta-label { font-size: 0.52rem; }
  .single-meta-value { font-size: 0.8rem; }
}
@media (max-width: 420px) {
  .single-meta-bar { gap: 6px 16px; padding: 9px 0; }
  .single-meta-label { font-size: 0.48rem; letter-spacing: 0.14em; }
  .single-meta-value { font-size: 0.74rem; }
}
.single-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.single-meta-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}
.single-meta-value {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--mist);
  font-weight: 600;
}

.single-featured {
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  line-height: 0;
  box-shadow: 0 14px 34px rgba(17,17,17,0.14);
}
.single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
/* Delikatna winieta — przyciemnione, zaokrąglone naroża i krawędzie,
   żeby zdjęcie wyglądało bardziej "magazynowo", bez przesłaniania treści */
.single-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.28), inset 0 0 14px rgba(0,0,0,0.22);
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.16) 100%);
}
.single-featured figcaption {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ash);
  background: var(--ink-1);
  line-height: 1.5;
}

/* Post body typography */
.entry-content {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.82;
  color: var(--bone);
  /* Defensive: unbreakable runs of text (common with &nbsp;-joined words
     pasted from Word/Google Docs or preserved by the importer) must never
     be allowed to blow out the article column on mobile. */
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
}
.entry-content img,
.entry-content video,
.entry-content table,
.entry-content pre,
.entry-content iframe {
  max-width: 100%;
}
/* YouTube's (and most other providers') iframe markup carries fixed HTML
   width/height attributes (e.g. width="500" height="281"). max-width:100%
   only ever SHRINKS an iframe that's wider than its container — it never
   grows one that's narrower, so on any container wider than that fixed
   attribute value, the extra space to the right shows the entry-content's
   own (lighter) background through: the "white bar" on mobile embeds.
   Forcing width:100% makes the iframe always fill its container in both
   directions; aspect-ratio keeps it at the correct 16:9 proportions since
   the HTML height attribute would otherwise stay fixed while width changes,
   squishing/stretching the video. This applies unconditionally to every
   iframe in article content, wrapped by .gmi-responsive-embed or not. */
.entry-content iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow-x: hidden;
  /* html{zoom:.9} (see RESET, near the top of this file) shrinks the
     iframe's own BOX on the page, but Chromium/Safari never propagate
     `zoom` into an <iframe>'s content — the YouTube player inside keeps
     laying itself out at its native 1x size. Result: the outer box is
     ~90% of "natural" size while the player painted inside it stays
     100%, so it overflows/misaligns and leaves a white gap at the
     bottom/right of the video. Applying the reciprocal zoom here
     (1/0.9) cancels the ambient zoom just for this element, so it
     renders at true 1:1 scale and matches its own box again. */
  zoom: calc(1 / 0.9);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--dark);
  margin-top: 2.5em;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--ink-3);
}
.entry-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--dark);
  margin-top: 2em;
}
.entry-content h4 {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark);
  margin-top: 1.8em;
}
.entry-content a { color: var(--blood); border-bottom: 1px solid rgba(200,16,46,0.3); transition: all var(--trans-fast); }
.entry-content a:hover { color: #e01235; border-bottom-color: var(--blood); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { padding-left: 1.2em; position: relative; margin-bottom: 0.4em; }
.entry-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--blood); font-weight: 700; }
.entry-content ol li { margin-bottom: 0.4em; }
.entry-content blockquote {
  border-left: 4px solid var(--blood);
  margin: 2.5em 0;
  padding: var(--space-lg) var(--space-xl);
  background: var(--ink-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-xl);
  color: var(--dark);
  font-style: italic;
  position: relative;
}
.entry-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px; left: 16px;
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--blood);
  opacity: 0.15;
  line-height: 1;
}
.entry-content blockquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ash);
  font-style: normal;
  margin-top: var(--space-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.entry-content img { border-radius: var(--radius-md); margin: 1.5em auto; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ash); text-align: center; margin-top: var(--space-sm); }
.entry-content hr { border: none; margin: 3em 0; height: 1px; background: linear-gradient(to right, var(--blood), var(--ink)); }

/* Responsive video embeds — see inc/responsive-embeds.php.
   Wraps any auto-embedded or pasted <iframe> in a 16:9 box so the
   provider's original fixed width/height never breaks the layout on
   smaller screens (previously caused squished controls + white bars). */
.entry-content .gmi-responsive-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  margin: 1.5em 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-1);
}
.entry-content .gmi-responsive-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
}
.entry-content pre {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-left: 3px solid var(--blood);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--bone);
}
/* Drop cap */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 5.5em;
  float: left;
  line-height: 0.75;
  margin: 0 10px -4px 0;
  color: var(--blood);
  text-shadow: 0 0 30px rgba(200,16,46,0.4);
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--ink-3);
}
.post-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  color: var(--ash);
  transition: all var(--trans-fast);
}
.post-tag:hover { border-color: var(--blood); color: var(--blood); }

/* Share bar — slim, subtle, sticky under header */
.share-bar-wrap {
  background: var(--sharebar-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--ink-3);
  position: sticky;
  top: var(--header-h);
  z-index: 100;
}
.share-bar-wrap .container {
  padding-top: 8px;
  padding-bottom: 8px;
}
@media (max-width: 1024px) {
  /* Poniżej 1024px pasek to jeden zawijający się rząd (flex-wrap),
     żeby ikony share, tłumacz i radio/YouTube układały się zwarcie
     obok siebie zamiast na osobnych, wyśrodkowanych liniach. */
  .share-bar-wrap .container {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
.share-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
}
.share-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  flex-shrink: 0;
}
.share-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ash);
  transition: all var(--trans-fast);
  flex-shrink: 0;
}
.share-btn:hover {
  border-color: var(--ink-3);
  background: var(--ink-1);
  transform: translateY(-1px);
}
.share-btn--fb:hover  { color: #1877f2; border-color: rgba(24,119,242,0.3); }
.share-btn--tw:hover  { color: var(--dark); border-color: var(--ink-3); }
.share-btn--wa:hover  { color: #25d366; border-color: rgba(37,211,102,0.3); }
.share-btn--copy:hover,
.share-btn--print:hover { color: var(--blood); border-color: rgba(179,26,26,0.25); }
.share-btn.is-copied { color: #1b9e5a; border-color: rgba(27,158,90,0.3); background: rgba(27,158,90,0.08); }

/* Grupa środkowa: [Buy A Coffee][Translate Page] — złączone w jeden "kapsułowy"
   przycisk, wyśrodkowane w obrębie kolumny artykułu (nie wychodzi poza margines) */
.share-bar__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .share-bar__center { position: static; transform: none; margin-left: 0; }
}
/* JS owija #gmi-translate-share w <span class="gmi-translate-wrap gmi-translate-wrap--right">,
   które domyślnie ma margin-left:auto — tutaj zerujemy to, żeby przycisk zostawał
   zrośnięty z "Buy A Coffee" i tworzył jedną spójną "pigułkę". */
.share-bar__center .gmi-translate-wrap { margin-left: 0; }
.share-bar__center .gmi-translate-wrap .share-btn--translate { height: 100%; }

.share-btn--coffee {
  width: auto;
  border-radius: 999px 0 0 999px;
  padding: 0 14px 0 12px;
  gap: 6px;
  background: #FFDD00;
  color: #402907;
  border: 1px solid #e0c400;
  border-right-color: rgba(64,41,7,0.15);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.share-btn--coffee:hover { background: #ffe94d; color: #402907; }
@media (max-width: 480px) {
  .share-btn--coffee span:last-child { display: none; }
  .share-btn--coffee { padding: 0 10px; }
}

@media (max-width: 640px) {
  .share-label { display: none; }
}

/* ============================================================
   PIGUŁKA RADIO + YOUTUBE W PASKU "SHARE"
   Zajmuje miejsce dawnej samodzielnej ikony druku (teraz przeniesionej
   do grupy .share-icons obok "kopiuj link"). Zbudowana jak pigułka
   Buy A Coffee / Translate: dwie połówki w jednym kapsułowym przycisku —
   lewa to mini-odtwarzacz Radia (z rozwijalną playlistą), prawa to
   przycisk YouTube, który rozwija listę promowanych filmów z podglądem.
   Treść (linki YT) edytowalna w GMI Panel motywu → "Górny pasek".
   ============================================================ */
.gmi-header-media {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.gmi-header-media__pill {
  display: flex;
  align-items: stretch;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  box-shadow: var(--glass-shadow);
}
.gmi-header-media__divider {
  width: 1px;
  flex-shrink: 0;
  background: rgba(201,168,76,0.35);
  margin: 5px 0;
}

/* -- Połówka Radio: reużywa strukturę .gmi-radio (ten sam JS), tylko
      chrome (tło/obramowanie) jest tu wyzerowany, bo pigułka już go ma. */
.gmi-header-media .gmi-radio {
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 999px 0 0 999px;
}
.gmi-header-media .gmi-radio__bar { height: 30px; padding: 0 8px 0 13px; gap: 6px; }
.gmi-header-media .gmi-radio__label { font-size: 0.66rem; }
.gmi-header-media .gmi-radio__track { max-width: 108px; font-size: 0.66rem; color: var(--dark); }
.gmi-header-media .gmi-radio__btn { color: var(--ash); width: 22px; height: 22px; }
.gmi-header-media .gmi-radio__btn:hover { color: var(--dark); }
.gmi-header-media .gmi-radio__btn--play { width: 20px; height: 20px; }
.gmi-header-media .gmi-radio__btn--play svg { width: 12px; height: 12px; }
.gmi-header-media .gmi-radio__btn--list { width: 18px; height: 18px; }
/* Playlista Radia jako dropdown zawieszony pod pigułką (zamiast pchać jej wysokość) */
.gmi-header-media .gmi-radio__list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 260px;
  max-width: 82vw;
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,0.97), rgba(250,248,242,0.93));
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 12px 30px rgba(20,17,11,0.18);
}

/* -- Połówka YouTube: przycisk-wyzwalacz, sam nie odtwarza nic —
      po kliknięciu pokazuje panel .gmi-header-media__dropdown poniżej. */
.gmi-header-media__btn--video {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 13px 0 12px;
  background: none;
  border: none;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
  transition: background var(--trans-fast);
}
.gmi-header-media__btn--video:hover,
.gmi-header-media__btn--video[aria-expanded="true"] { background: rgba(201,168,76,0.14); }
.gmi-header-media__btn--video svg.gmi-header-media__yticon { color: #e02020; flex-shrink: 0; width: 14px; height: 14px; }
.gmi-header-media__btn--video svg.gmi-header-media__chevron { width: 9px; height: 9px; flex-shrink: 0; transition: transform var(--trans-fast); }
.gmi-header-media__btn--video[aria-expanded="true"] svg.gmi-header-media__chevron { transform: rotate(180deg); }

/* -- Panel rozwijany z listą promowanych filmów + podglądem jednego (reużywa .gmi-video) */
.gmi-header-media__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: 88vw;
  z-index: 200;
}
.gmi-header-media__dropdown[hidden] { display: none; }

@media (max-width: 1024px) {
  .share-bar {
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 8px;
    padding: 0;
  }
  .share-bar__center { margin-left: 0; }
  .gmi-header-media { margin-left: 0; }
}
@media (max-width: 640px) {
  .share-label { display: none; }
  .share-icons { gap: 2px; }
  .share-btn { width: 28px; height: 28px; }
}
@media (max-width: 480px) {
  .share-icons { gap: 0; }
  .share-btn { width: 26px; height: 26px; }
  .gmi-header-media__pill .gmi-radio__track { max-width: 70px; }
  /* Ukryj tekstowe etykiety "Radio" / "YouTube" — zostają same ikony
     (aria-label na przyciskach zapewnia dostępność), żeby cała pigułka
     zmieściła się w jednej linii razem z ikonami share i tłumaczem. */
  .gmi-header-media .gmi-radio__label { display: none; }
  .gmi-header-media .gmi-radio__bar { padding: 0 6px 0 10px; gap: 4px; }
  .gmi-header-media__btn--video span { display: none; }
  .gmi-header-media__btn--video { padding: 0 10px; }
}
@media (max-width: 360px) {
  .share-btn { width: 24px; height: 24px; }
  .share-btn--coffee { padding: 0 8px; }
  .gmi-header-media__pill .gmi-radio__track { max-width: 48px; }
}

/* ============================================================
   SIDEBAR
   ------------------------------------------------------------
   Świadomie BEZ position:sticky — panel boczny przewija się razem
   z artykułem, zamiast "przyklejać się" w pewnym momencie scrolla.
   ============================================================ */

.widget { margin-bottom: var(--space-xl); }
.widget-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--blood);
  position: relative;
  padding-left: 14px;
}
.widget-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blood);
  transform: skewX(-10deg);
}

/* ============================================================
   SIDEBAR — WERSJA KOMPAKTOWA
   Panel boczny przewija się normalnie razem z artykułem (bez
   position: sticky — patrz sekcja wyżej) i ma z założenia
   pomieścić sporo widżetów naraz (promowany film, social, radio,
   magazyn PDF, plakaty) — dlatego odstępy są tu wyraźnie mniejsze
   niż domyślne .widget reszty motywu.

   Nagłówki widżetów w panelu bocznym są celowo bardzo małe i subtelne
   (ten sam "eyebrow label" co .share-label / .single-meta-label —
   mono, uppercase, szeroki tracking, przygaszony kolor) — mają tylko
   podpisać moduł, a nie z nim konkurować wizualnie.
   ============================================================ */
.sidebar .widget { margin-bottom: 16px; }
.sidebar .widget-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: 0.85;
  margin-bottom: 7px;
  padding-bottom: 0;
  padding-left: 0;
  border-bottom: none;
}
.sidebar .widget-title::before { display: none; }
.sidebar .widget-search,
.sidebar .widget-social-icons,
.sidebar .widget_gmi_youtube_player,
.sidebar .widget_gmi_magazine_cover,
.sidebar .widget_gmi_poster_carousel { margin-bottom: 12px; }

/* Na widoku pojedynczego wpisu nie powtarzamy wyszukiwarki w panelu
   bocznym — jest już dostępna globalnie w nagłówku strony (ikona lupy
   obok menu), więc drugie pole szukania tylko zajmowałoby miejsce. */
body.single-post .sidebar .widget_search,
body.single-post .sidebar .widget-search { display: none; }

/* ============================================================
   AD BLOCK
   ============================================================ */
.ad-block {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.ad-block__label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
  padding: 5px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-3);
}
.ad-block__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: var(--space-md);
}
.ad-block--leaderboard .ad-block__content { min-height: 90px; }
.ad-block--rectangle .ad-block__content { min-height: 250px; }
.ad-block--skin {
  background: linear-gradient(135deg, var(--ink-1) 0%, rgba(200,16,46,0.05) 100%);
  border-color: rgba(200,16,46,0.15);
}

/* ============================================================
   SOCIAL MEDIA BLOCK
   ============================================================ */
.social-block {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.social-block__header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--ink-3);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.social-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--dark);
  text-transform: uppercase;
}
.social-block__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink-3);
}
.social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--space-lg) var(--space-md);
  background: var(--ink-1);
  transition: all var(--trans-fast);
}
.social-btn:hover { background: var(--ink-2); }
.social-btn__icon { font-size: 1.4rem; }
.social-btn__name {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.social-btn__count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--dark);
  line-height: 1;
}
.social-btn--fb:hover .social-btn__icon { color: #1877f2; }
.social-btn--ig:hover .social-btn__icon { color: #e4405f; }
.social-btn--yt:hover .social-btn__icon { color: #ff0000; }
.social-btn--sp:hover .social-btn__icon { color: #1db954; }

/* ============================================================
   SOCIAL ICONS — zaokrąglone kwadraty glassmorphism, bez tła/nagłówka,
   jedna zwarta linia tuż pod wyszukiwarką.
   ============================================================ */
.gmi-glass-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
}
.gmi-glass-btn {
  position: relative;
  flex: 1 1 0;
  max-width: 54px;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.4);
  box-shadow: 0 3px 8px rgba(20,17,11,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  transition: all var(--trans-fast);
}
/* specular highlight — górny-lewy błysk jak na szkle */
.gmi-glass-btn::after {
  content: '';
  position: absolute; top: 4px; left: 6px;
  width: 13px; height: 6px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  filter: blur(2.5px);
  transform: rotate(-20deg);
  pointer-events: none;
}
/* metaliczny "sheen" — przesuwający się błysk światła po najechaniu (animacja zachowana) */
.gmi-glass-btn::before {
  content: '';
  position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
  z-index: 1;
}
.gmi-glass-btn:hover::before { left: 130%; }
.gmi-glass-btn:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(201,168,76,0.85);
  box-shadow: 0 8px 16px rgba(20,17,11,0.18), 0 0 14px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.85);
}
.gmi-glass-icon {
  position: relative; z-index: 1;
  width: 21px; height: 21px; display: flex;
  transition: transform var(--trans-fast);
}
.gmi-glass-icon svg { width: 100%; height: 100%; }
.gmi-glass-btn:hover .gmi-glass-icon { transform: scale(1.1); }
/* Etykieta ukryta wizualnie (dostępność), żeby nie zajmować miejsca — jedna zwarta linia ikon */
.gmi-glass-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
/* Delikatny tint tła + pełny kolor marki na ikonie */
.gmi-glass-btn--facebook  { background: linear-gradient(135deg, rgba(77,148,255,0.16), rgba(77,148,255,0.03)); }
.gmi-glass-btn--x         { background: linear-gradient(135deg, rgba(30,30,30,0.10), rgba(30,30,30,0.02)); }
.gmi-glass-btn--tiktok    { background: linear-gradient(135deg, rgba(255,45,111,0.16), rgba(255,45,111,0.03)); }
.gmi-glass-btn--instagram { background: linear-gradient(135deg, rgba(214,42,134,0.16), rgba(214,42,134,0.03)); }
.gmi-glass-btn--youtube   { background: linear-gradient(135deg, rgba(255,59,59,0.16), rgba(255,59,59,0.03)); }
.gmi-glass-btn--facebook  .gmi-glass-icon { color: #2f6fe0; }
.gmi-glass-btn--x         .gmi-glass-icon { color: #1a1a1a; }
.gmi-glass-btn--tiktok    .gmi-glass-icon { color: #e0165a; }
.gmi-glass-btn--instagram .gmi-glass-icon { color: #c21f78; }
.gmi-glass-btn--youtube   .gmi-glass-icon { color: #e02020; }

/* Wyszukiwarka + ikony social jako jeden zwarty blok.
   Nagłówek widżetu (np. "Search"/"Szukaj" ustawiony w Wygląd → Widżety)
   jest tu celowo ukryty — sama wyszukiwarka pełni rolę etykiety. */
.widget-search { margin-bottom: 14px; }
.widget-search .widget-title,
.widget_search .widget-title,
.widget_search > h3 { display: none; }
.widget_search .search-form { width: 100%; }
.widget-social-icons,
.widget_gmi_social_glass { margin-bottom: var(--space-xl); }

/* ============================================================
   WIDGET: RADIO — cienki pasek audio-only (bez wideo, bez miniatur)
   Wyrazisty, ciemny odtwarzacz w klimacie Spotify (czerń + zieleń) —
   ma się wyróżniać w panelu bocznym, a nie wtapiać. Ożywa jeszcze
   bardziej w trakcie odtwarzania: zielona poświata na obwódce + mini
   equalizer animujący się obok tytułu. Playlista (jeśli >1 utwór)
   rozwija się pod paskiem, same tytuły, bez miniatur.
   ============================================================ */
.gmi-radio {
  --sp-green:      #1DB954;
  --sp-green-light:#169c46;
  position: relative;
  border-radius: 13px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  transition: border-color var(--trans-med), box-shadow var(--trans-med);
}
.gmi-radio.is-playing {
  border-color: rgba(29,185,84,0.55);
  box-shadow: 0 0 0 1px rgba(29,185,84,0.18), 0 0 16px rgba(29,185,84,0.25), inset 0 1px 0 rgba(255,255,255,0.7);
}
.gmi-radio__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 9px;
}

/* Mini equalizer — animuje się tylko podczas odtwarzania */
.gmi-radio__eq {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 13px;
  height: 13px;
}
.gmi-radio__eq span {
  width: 2.5px;
  height: 25%;
  background: var(--sp-green-light);
  border-radius: 1px;
  animation: gmi-radio-eq 0.9s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.4;
}
.is-playing .gmi-radio__eq span { animation-play-state: running; opacity: 1; }
.gmi-radio__eq span:nth-child(1) { animation-duration: 0.8s;  animation-delay: 0s; }
.gmi-radio__eq span:nth-child(2) { animation-duration: 1.05s; animation-delay: 0.15s; }
.gmi-radio__eq span:nth-child(3) { animation-duration: 0.7s;  animation-delay: 0.3s; }
@keyframes gmi-radio-eq {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

.gmi-radio__label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark);
}
.gmi-radio__track {
  flex: 1;
  min-width: 0;
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--trans-med);
}
.is-playing .gmi-radio__track { color: var(--dark); }

/* Marquee: only kicks in when JS detects the text is wider than its box */
.gmi-radio__track.is-scrolling { text-overflow: clip; }
.gmi-radio__track.is-scrolling .gmi-radio__track-text {
  display: inline-block;
  padding-left: 100%;
  animation-name: gmi-radio-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes gmi-radio-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Radio pill in the top "Share" bar: show only the static "Radio" name
   while idle; once actually playing, swap it for the scrolling artist/title
   so the pill never shows two labels at once. */
.gmi-header-media .gmi-radio__track { display: none; }
.gmi-header-media .gmi-radio.is-playing .gmi-radio__track { display: block; }
.gmi-header-media .gmi-radio.is-playing .gmi-radio__label { display: none; }

/* Transport: prev / play-pause / next / rozwiń playlistę —
   przyciski pomocnicze bez obwódki (jak w Spotify), tylko duży
   środkowy Play jest wypełnionym zielonym kółkiem. */
.gmi-radio__btn {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--ash);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.gmi-radio__btn svg { width: 13px; height: 13px; }
.gmi-radio__btn:hover { color: var(--dark); transform: scale(1.08); background: var(--glass-hover-bg); }
.gmi-radio__btn:active { transform: scale(0.94); }
.gmi-radio__btn--play {
  width: 34px; height: 34px;
  background: var(--sp-green);
  color: #0a0a0a;
  box-shadow: 0 2px 10px rgba(29,185,84,0.45);
}
.gmi-radio__btn--play svg { width: 15px; height: 15px; }
.gmi-radio__btn--play:hover { background: var(--sp-green-light); color: #0a0a0a; box-shadow: 0 2px 14px rgba(29,185,84,0.7); transform: scale(1.06); }
.gmi-radio__btn--list { width: 20px; height: 20px; }
.gmi-radio__btn--list svg { width: 11px; height: 11px; transition: transform var(--trans-fast); }
.gmi-radio__btn--list.is-open svg { transform: rotate(180deg); }

/* Playlista — same tytuły, bez miniatur, rozwijana pod paskiem */
.gmi-radio__list {
  list-style: none;
  margin: 0;
  padding: 4px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(20,17,11,0.08);
}
.gmi-radio__list[hidden] { display: none; }
.gmi-radio__item {
  display: block;
  width: 100%;
  padding: 5px 7px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all var(--trans-fast);
}
.gmi-radio__item:hover { background: var(--glass-hover-bg); color: var(--dark); }
.gmi-radio__item.is-active { background: rgba(29,185,84,0.14); color: var(--sp-green-light); font-weight: 700; }

/* Ukryty iframe YouTube — gra tylko dźwięk, okno wideo nigdy nie jest widoczne.
   Stylizowany jest trwały wrapper (nie sam element playera, który YouTube

   IFrame API podmienia na <iframe> i przy tym gubi klasy/atrybuty). */
.gmi-radio__player-wrap {
  position: absolute;
  width: 2px; height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: 0;
}

/* ------------------------------------------------------------
   RADIO — wersja "pełna" (widget), rozbudowana o okładkę utworu,
   pasek postępu z przewijaniem, głośność i link do zespołu.
   ------------------------------------------------------------ */
.gmi-radio--full { padding-bottom: 4px; }

.gmi-radio__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 6px;
}
.gmi-radio__cover {
  position: relative;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--glass-cover-bg);
  box-shadow: 0 2px 6px rgba(20,17,11,0.18);
}
.gmi-radio__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmi-radio__eq--cover {
  position: absolute;
  right: 5px; bottom: 5px;
  width: 15px; height: 15px;
  padding: 2px;
  background: rgba(10,10,10,0.55);
  border-radius: 3px;
  gap: 2px;
}
.gmi-radio__eq--cover span { background: var(--sp-green-light); }

.gmi-radio__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gmi-radio--full .gmi-radio__track {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
}
.gmi-radio__band-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--sp-green-light);
  text-decoration: none;
  border: 1px solid rgba(29,185,84,0.4);
  border-radius: 20px;
  padding: 2px 9px 2px 7px;
  transition: all var(--trans-fast);
  max-width: 100%;
}
.gmi-radio__band-link svg { width: 11px; height: 11px; flex-shrink: 0; }
.gmi-radio__band-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmi-radio__band-link:hover { background: rgba(29,185,84,0.14); border-color: var(--sp-green-light); }
.gmi-radio__band-link[hidden] { display: none; }

.gmi-radio__progress {
  height: 5px;
  margin: 2px 10px 0;
  border-radius: 4px;
  background: var(--glass-cover-bg);
  cursor: pointer;
  overflow: hidden;
}
.gmi-radio__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--sp-green);
  border-radius: 4px;
  transition: width 0.4s linear;
}
.gmi-radio__time {
  display: flex;
  justify-content: space-between;
  margin: 2px 10px 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--ash);
}

.gmi-radio--full .gmi-radio__bar { height: 46px; padding: 4px 10px 8px; }
.gmi-radio__volume {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--ash);
}
.gmi-radio__volume svg { width: 14px; height: 14px; }
.gmi-radio__volume input[type="range"] {
  width: 56px;
  accent-color: var(--sp-green);
  cursor: pointer;
}

.gmi-radio__item { display: flex; align-items: center; gap: 8px; }
.gmi-radio__item img[data-item-thumb] { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.gmi-radio__item-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.gmi-radio__item-text [data-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmi-radio__item-band {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--sp-green-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------
   VIDEO — pasek "teraz gra" z przewijanym tytułem + link do zespołu.
   ------------------------------------------------------------ */
.gmi-video__nowplaying {
  padding: 9px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.gmi-video__title {
  position: relative;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.gmi-video__title-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
}
.gmi-video__title.is-scrolling { text-overflow: clip; }
.gmi-video__title.is-scrolling .gmi-video__title-text {
  display: inline-block;
  padding-left: 100%;
  animation-name: gmi-radio-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.gmi-video__band-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 20px;
  padding: 2px 9px 2px 7px;
  transition: all var(--trans-fast);
  max-width: 100%;
}
.gmi-video__band-link svg { width: 11px; height: 11px; flex-shrink: 0; }
.gmi-video__band-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmi-video__band-link:hover { background: rgba(201,168,76,0.14); border-color: var(--gold); }
.gmi-video__band-link[hidden] { display: none; }

.gmi-video--full .gmi-video__list { max-height: 220px; }
.gmi-video__item-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.gmi-video__item-text [data-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmi-video__item-band {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--gold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gmi-video__item span:not(.gmi-video__item-text) { display: block; }

/* ============================================================
   WIDGET: WIDEO YOUTUBE — podgląd (prawdziwy odtwarzacz wideo)
   + kompaktowa lista miniatur pod spodem. Osobny widget od Radia.
   ============================================================ */
.gmi-video {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  box-shadow: var(--glass-shadow);
}
/* iOS/WebKit rendering bug: `backdrop-filter` on an element that has
   both `border-radius` AND `overflow:hidden`, nested inside an ancestor
   with a non-standard `zoom` (see html{zoom:.9} in RESET at the top of
   this file), can paint as a flat, OPAQUE WHITE box instead of actually
   blurring — this is exactly the white rounded-corner box covering the
   video seen on real phones (never reproducible in desktop Chrome or
   DevTools device emulation, since those use a different rendering
   engine and don't have this bug). It's not a transparency problem —
   --glass-bg already carries enough opacity (65-85%) on its own — it's
   specifically the blur filter failing to composite correctly under
   zoom. Fix: drop backdrop-filter below the mobile breakpoint; the
   widget still looks like glass thanks to --glass-bg's own opacity,
   it just isn't blurred underneath. */
@media (max-width: 768px) {
  .gmi-video {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.gmi-video__frame {
  position: relative;
  width: 100%;
  height: 0;
  /* Zamiast aspect-ratio: 16/9 — ten sam, dużo lepiej przetestowany trik co
     w .entry-content .gmi-responsive-embed (czyste 100%-szerokości pole z
     padding-top w %, bez nowszej właściwości aspect-ratio). Na telefonach
     (zwłaszcza WebKit/iOS) aspect-ratio w połączeniu z niestandardowym
     html{zoom:.9} potrafiło dawać niepełne wypełnienie ramki (biały pas z
     prawej I z dołu) — padding-top liczy wysokość z czystej matematyki %
     szerokości, więc nie ma tego problemu. */
  padding-top: 56.25%;
  background: #000;
}
.gmi-video__frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
  /* html{zoom:.9} (patrz RESET na początku pliku) skaluje samo PUDEŁKO
     iframe'a na stronie, ale WebKit/iOS nigdy nie przenosi `zoom` do
     ZAWARTOŚCI <iframe> — odtwarzacz YouTube w środku i tak układa się
     w swojej natywnej skali 1x. W efekcie zewnętrzne pudełko ma ~90%
     "naturalnego" rozmiaru, a wyrenderowany w środku odtwarzacz zostaje
     przy 100%, więc wystaje/rozjeżdża się i zostawia biały pas z prawej
     i od dołu wideo — dokładnie to widać na telefonach w tym widgecie.
     To jest ten sam mechanizm, który już wcześniej naprawiono w ten sam
     sposób dla .entry-content iframe (patrz wyżej) — reciprocal zoom
     (1/0.9) znosi ambient zoom tylko dla tego elementu, więc renderuje
     się w prawdziwej skali 1:1 i znów pasuje do własnego pudełka. */
  zoom: calc(1 / 0.9);
}
.gmi-video__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 148px;
  overflow-y: auto;
}

/* ============================================================
   WYRÓŻNIONY FILM (widget gmi_featured_video)
   ------------------------------------------------------------
   Zwykły blok w normalnym przepływie panelu bocznego — celowo BEZ
   position:sticky/fixed, więc przewija się razem z resztą sidebaru
   (patrz sekcja "SIDEBAR" wyżej). Ukryty na wąskich ekranach: JS
   (assets/js/featured-video.js) w ogóle nie tworzy <iframe> poniżej
   tego samego progu, więc na telefonach nie ma nawet zbędnego
   zapytania do YouTube, nie tylko ukrytego wizualnie boksu.
   ============================================================ */
.gmi-fv { margin-bottom: 12px; }
.gmi-fv__frame {
  position: relative;
  width: 100%;
  height: 0;
  /* Same padding-top technique as .gmi-video__frame above, for the same
     reason (aspect-ratio + zoom mobile inconsistency). */
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--ink-3);
}
.gmi-fv__frame iframe {
  position: absolute; inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  /* Ten sam wzorzec co .gmi-video__frame iframe i .entry-content iframe —
     kompensacja ambient html{zoom:.9}, patrz komentarz przy
     .gmi-video__frame iframe wyżej. */
  zoom: calc(1 / 0.9);
}
@media (max-width: 768px) {
  .gmi-fv { display: none !important; }
}
.gmi-video__item {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 3px;
  background: rgba(20,17,11,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: left;
  transition: all var(--trans-fast);
}
.gmi-video__item:hover { border-color: var(--gold); background: rgba(201,168,76,0.12); }
.gmi-video__item.is-active { border-color: var(--gold); background: rgba(201,168,76,0.18); }
.gmi-video__item img { width: 46px; height: 27px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.gmi-video__item span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--mist); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmi-video__item.is-active span { color: var(--blood-dark); font-weight: 700; }
.gmi-video__list::-webkit-scrollbar { width: 5px; }
.gmi-video__list::-webkit-scrollbar-track { background: transparent; }
.gmi-video__list::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 3px; }

/* ============================================================
   WIDGET: PLAKATY — karuzela obrazków, automatyczna zmiana co 5s,
   z przyciskiem pauzy/wznowienia animacji.
   ============================================================ */
.gmi-poster {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.35);
  background: #0a0906;
  aspect-ratio: 210 / 297;
}
.gmi-poster__track { position: relative; width: 100%; height: 100%; }
.gmi-poster__slide {
  position: absolute; inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.gmi-poster__slide.is-active { opacity: 1; z-index: 1; }
.gmi-poster__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmi-poster__toggle {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(15,14,10,0.65);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--trans-fast);
}
.gmi-poster__toggle:hover { border-color: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.gmi-poster__toggle svg { width: 11px; height: 11px; }
.gmi-poster__dots {
  position: absolute; bottom: 7px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 4px;
}
.gmi-poster__dot {
  width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.gmi-poster__dot.is-active { background: var(--gold-light); box-shadow: 0 0 4px var(--gold-glow); width: 14px; border-radius: 3px; }

/* Ramka bloków reklamowych i "Kod HTML" w panelu bocznym — spójna ze stylem ikon */
.sidebar .ad-block {
  background: linear-gradient(135deg, #0f0e0a 0%, #201b12 55%, #14110b 100%);
  border: 1px solid rgba(201,168,76,0.32);
}
.sidebar .ad-block__label {
  background: rgba(201,168,76,0.14);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  color: var(--gold-light);
}
.sidebar .ad-block__content { background: rgba(255,255,255,0.03); }

/* ============================================================
   WIDGET: OKŁADKA MAGAZYNU (A4) + Buy Me a Coffee
   Układ poziomy (mała okładka + tekst obok) zamiast pełnej pionowej
   okładki A4 — dzięki temu widget zajmuje mniej więcej połowę
   wysokości poprzedniej, pionowej wersji.
   ============================================================ */
.gmi-mag-widget {
  position: relative;
  padding: 9px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  box-shadow: var(--glass-shadow);
}
.gmi-mag-widget::before {
  content: '';
  position: absolute; inset: -40% -40% auto auto;
  width: 65%; height: 65%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}
.gmi-mag-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.gmi-mag-cover {
  flex-shrink: 0;
  display: block;
  width: 68px;
  aspect-ratio: 210 / 297;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.5);
  box-shadow: 0 6px 14px rgba(20,17,11,0.18);
  background: var(--ink-2);
}
.gmi-mag-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmi-mag-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gmi-mag-issue {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  overflow-wrap: break-word;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #241c07;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.gmi-mag-note {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--mist);
  /* Pełny opis zawsze widoczny w całości — bez obcinania wielokropkiem.
     Widget rośnie w pionie, żeby dłuższy tekst zawsze się zmieścił. */
  overflow-wrap: break-word;
  word-break: break-word;
}
.gmi-mag-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 24px;
  background: #FFDD00;
  color: #402907;
  border: 1px solid #e0c400;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--trans-fast);
  margin-top: auto;
}
.gmi-mag-cta:hover { background: #ffe94d; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,221,0,0.25); }
.gmi-mag-cta svg { flex-shrink: 0; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin: var(--space-2xl) 0;
  flex-wrap: wrap;
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 var(--space-sm);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--ash);
  transition: all var(--trans-fast);
}
.page-numbers:hover { border-color: var(--blood); color: var(--blood); }
.page-numbers.current { background: var(--blood); border-color: var(--blood); color: var(--white); }
.page-numbers.prev, .page-numbers.next { padding: 0 var(--space-md); }

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header {
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--ink-3);
  margin-bottom: var(--space-xl);
}
.archive-super {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive-super::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--blood); }
.archive-title {
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--dark);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.archive-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ash);
  letter-spacing: 0.1em;
  margin-top: var(--space-md);
}
.archive-desc {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--mist);
  line-height: 1.6;
  max-width: 600px;
  margin-top: var(--space-sm);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  /* Stopka pozostaje ciemna (jak na zero.pl), niezależnie od jasnej reszty strony */
  --ink-1: #131313;
  --ink-2: #1c1c1c;
  --ink-3: #2a2a2a;
  --smoke: #9a968c;
  --ash:   #8a8a8a;
  --mist:  #b7b3aa;
  background: #0a0a0a;
  border-top: 1px solid #1c1c1c;
  margin-top: var(--space-3xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--ink-2);
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand {}
.footer-logo-wrap {
  margin-bottom: var(--space-lg);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}
.footer-wordmark .f-metal { color: var(--blood); }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 3px;
}
.footer-desc {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--smoke);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.footer-social-row {
  display: flex;
  gap: var(--space-sm);
}
.footer-soc-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ash);
  font-size: 0.9rem;
  transition: all var(--trans-fast);
}
.footer-soc-btn svg { width: 14px; height: 14px; }
.footer-soc-btn:hover { border-color: var(--blood); color: var(--blood); }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--ink-3);
}
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--smoke);
  transition: color var(--trans-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a::before { content: '—'; color: var(--blood); font-size: 0.7rem; }
.footer-links a:hover { color: var(--blood); }

.footer-bottom {
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--smoke);
  letter-spacing: 0.06em;
}
.footer-bottom-nav {
  display: flex;
  gap: var(--space-lg);
}
.footer-bottom-nav a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color var(--trans-fast);
}
.footer-bottom-nav a:hover { color: var(--blood); }

/* -- Kolumna 1: to samo logo co w headerze (obrazek, jeśli ustawiony
   w Dostosuj → Logo strony; w przeciwnym razie tekstowy wordmark). */
.footer-custom-logo { margin-bottom: var(--space-md); }
.footer-custom-logo .custom-logo-link {
  height: auto;
  max-width: 220px;
  padding: 0;
}
.footer-custom-logo .custom-logo-link img.custom-logo { max-height: 64px; }
.footer-logo-link { display: block; text-decoration: none; }

/* -- Kolumna 2: to samo menu co w headerze, w stylu listy stopki */
.footer-menu-col .footer-links { display: block; }

/* -- Kolumna 4: social + Buy Me A Coffee */
.footer-social-col { display: flex; flex-direction: column; }
.footer-bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-lg);
  padding: 9px 16px;
  width: fit-content;
  background: #ffdd00;
  color: #402907;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}
.footer-bmc-btn:hover { background: #ffe94d; transform: translateY(-1px); }
.footer-bmc-btn svg { flex-shrink: 0; }

/* ============================================================
   PAGE BUILDER SECTIONS
   ============================================================ */
.pb-section {
  padding: var(--space-2xl) 0;
  position: relative;
}
.pb-section + .pb-section {
  border-top: 1px solid var(--ink-2);
}

/* Breaking news bar */
.pb-breaking {
  background: var(--blood);
  padding: var(--space-md) 0;
}
.pb-breaking-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.pb-breaking-label {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--white);
  flex-shrink: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.pb-breaking-title {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--white);
  font-size: var(--text-base);
}

/* Featured band spotlight */
.pb-spotlight {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
@media (max-width: 768px) { .pb-spotlight { grid-template-columns: 1fr; } }
.pb-spotlight__img {
  position: relative;
  overflow: hidden;
}
.pb-spotlight__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}
.pb-spotlight__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--ink-1) 100%);
}
.pb-spotlight__content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pb-spotlight__super { margin-bottom: var(--space-md); }
.pb-spotlight__title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--dark);
  line-height: 0.9;
  margin-bottom: var(--space-lg);
}
.pb-spotlight__text {
  font-family: var(--font-serif);
  color: var(--mist);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

/* ============================================================
   404
   ============================================================ */
.not-found-wrap {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}
.not-found-num {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  color: var(--ink-2);
  line-height: 1;
  margin-bottom: 0;
  text-shadow: none;
}
.not-found-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--dark);
  margin-bottom: var(--space-md);
}
.not-found-sub {
  font-family: var(--font-serif);
  color: var(--ash);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

/* ============================================================
   FORMS
   ============================================================ */
.gmi-input, .gmi-textarea, .gmi-select {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--trans-fast);
  -webkit-appearance: none;
}
.gmi-input:focus, .gmi-textarea:focus, .gmi-select:focus {
  border-color: var(--blood);
  box-shadow: 0 0 0 2px var(--blood-glow);
}
.gmi-input::placeholder, .gmi-textarea::placeholder { color: var(--smoke); }
input[type=text], input[type=email], input[type=search], input[type=url], textarea, select {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 11px 14px;
  width: 100%;
  outline: none;
  transition: border-color var(--trans-fast);
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blood);
}
input::placeholder, textarea::placeholder { color: var(--smoke); }
input[type="submit"], button[type="submit"] {
  background: var(--blood);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--trans-fast);
}
input[type="submit"]:hover { background: #e0152f; }

/* ============================================================
   COMMENTS
   ============================================================ */
#comments { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: 1px solid var(--ink-3); }
.comments-title { font-size: var(--text-3xl); margin-bottom: var(--space-xl); color: var(--dark); }
.comment-list { display: flex; flex-direction: column; gap: var(--space-md); }
.comment {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.comment-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.comment-avatar { border-radius: 50%; }
.comment-name { font-weight: 700; color: var(--dark); font-size: var(--text-sm); }
.comment-date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ash); margin-top: 2px; }
.comment-text { font-family: var(--font-serif); font-size: var(--text-sm); color: var(--mist); line-height: 1.7; }
#respond { margin-top: var(--space-xl); }
.comment-reply-title { font-size: var(--text-2xl); margin-bottom: var(--space-lg); color: var(--dark); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: var(--space-lg); right: var(--space-lg);
  z-index: 500;
  width: 42px; height: 42px;
  background: var(--blood);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(200,16,46,0.4);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: all var(--trans-med);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: #e0152f; transform: translateY(-2px); }
#back-to-top svg { width: 18px; height: 18px; }

/* ============================================================
   TRANSLATE WIDGET — tłumaczenie strony "w miejscu"
   ============================================================ */
.gmi-translate-wrap {
  position: relative;
  display: inline-flex;
}
.gmi-translate-wrap--right { margin-left: auto; }

.gmi-translate-panel {
  position: absolute;
  left: 0;
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: var(--space-sm) 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all var(--trans-fast);
  z-index: 502;
}
.gmi-translate-wrap--up .gmi-translate-panel { bottom: calc(100% + 10px); }
.gmi-translate-wrap:not(.gmi-translate-wrap--up) .gmi-translate-panel { top: calc(100% + 10px); }
.gmi-translate-wrap--right .gmi-translate-panel { left: auto; right: 0; }
.gmi-translate-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gmi-translate-panel__title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ash);
  padding: 2px var(--space-md) var(--space-sm);
  margin: 0;
  border-bottom: 1px solid var(--ink-3);
  margin-bottom: 4px;
}
.gmi-translate-panel__list { list-style: none; margin: 0; padding: 0; }
.gmi-translate-lang {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px var(--space-md);
  background: none;
  border: none;
  font-size: 0.84rem;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
}
.gmi-translate-lang:hover { background: var(--ink-1); color: var(--blood); }
.gmi-translate-lang.is-active { color: var(--blood); font-weight: 700; }
.gmi-translate-lang.is-original { border-bottom: 1px solid var(--ink-3); margin-bottom: 4px; padding-bottom: 9px; }

/* Przycisk "Translate Page" — złączony z "Buy A Coffee" w jedną pigułkę na środku paska */
.share-btn--translate {
  width: auto;
  height: 30px;
  padding: 0 13px;
  border-radius: 0 999px 999px 0;
  background: var(--blood);
  color: #fff;
  border: 1px solid var(--blood);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: .02em;
  gap: 6px;
}
.share-btn--translate svg { flex-shrink: 0; }
.share-btn--translate:hover { background: var(--blood-dark); border-color: var(--blood-dark); color: #fff; }
.share-btn--translate.is-translated { background: var(--dark); border-color: var(--dark); }
.share-btn--translate.is-busy { opacity: 0.65; cursor: progress; }

@media (max-width: 480px) {
  .share-btn--translate span { display: none; }
  .share-btn--translate { padding: 0 10px; }
}

/* Ukryj domyślny pasek i wygląd wstrzykiwany przez Google Website Translator,
   żeby zachowanie było jak najbliższe rozszerzeniu przeglądarki (bez banera) */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none !important; }
.goog-te-gadget { height: 0; overflow: hidden; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ============================================================
   SEARCH FORM (inline / sidebar) — kompaktowa, w stylu "glass"
   ============================================================ */
.search-form {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 10px;
  padding: 0 7px 0 16px;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 6px rgba(17,17,17,0.05);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
}
.search-form:hover { border-color: rgba(201,168,76,0.6); background: var(--ink-2); }
.search-form:focus-within { border-color: rgba(201,168,76,0.8); background: var(--ink-2); box-shadow: 0 0 0 4px var(--gold-glow), 0 2px 6px rgba(17,17,17,0.06); }
.search-form__icon { flex-shrink: 0; color: var(--ash); opacity: 0.85; }
.search-form input[type="search"] {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: none;
  border: none;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  -webkit-appearance: none;
}
.search-form input[type="search"]::placeholder { color: var(--ash); }
.search-form input[type="search"]:focus { outline: none; }
.search-form button[type="submit"] {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #241c07;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.search-form button[type="submit"]:hover { background: var(--gold-light); transform: scale(1.08); box-shadow: 0 0 12px var(--gold-glow); }
.search-form button[type="submit"]:active { transform: scale(0.96); }

/* Wersja kompaktowa — panel boczny: niższa, mniejsza czcionka/ikony,
   subtelniejszy blask przy focus, żeby nie dominowała nad resztą widżetów. */
.sidebar .search-form {
  height: 36px;
  padding: 0 6px 0 13px;
  gap: 8px;
}
.sidebar .search-form__icon { width: 13px; height: 13px; }
.sidebar .search-form input[type="search"] { font-size: 0.78rem; }
.sidebar .search-form button[type="submit"] { width: 26px; height: 26px; }
.sidebar .search-form button[type="submit"] svg { width: 11px; height: 11px; }
.sidebar .search-form:focus-within { box-shadow: 0 0 0 3px var(--gold-glow), 0 3px 10px rgba(20,17,11,0.12); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--ink-3);
  border-top-color: var(--blood);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #site-footer, .sidebar, .share-bar-wrap, #comments, .related-posts { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  .entry-content a { color: black; text-decoration: underline; }
  .single-title { font-size: 28pt; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-section::before { animation: none; opacity: 0; }
}

/* ============================================================
   GALLERY PAGE — template-gallery.php
   ============================================================ */
.gmi-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.gmi-gallery-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex: 1 1 280px;
  max-width: 420px;
  transition: border-color var(--trans-fast);
}
.gmi-gallery-search:focus-within { border-color: var(--blood); }
.gmi-gallery-search svg { width: 16px; height: 16px; color: var(--ash); flex-shrink: 0; }
.gmi-gallery-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--bone);
}
.gmi-gallery-search input::placeholder { color: var(--ash); }

.gmi-gallery-sort {
  display: flex;
  gap: 6px;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  padding: 4px;
}
.gmi-gallery-sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--trans-fast);
}
.gmi-gallery-sort-btn svg { width: 13px; height: 13px; }
.gmi-gallery-sort-btn:hover { color: var(--dark); }
.gmi-gallery-sort-btn.is-active { background: var(--blood); color: var(--white); }

.gmi-gallery-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-xl); }
.gmi-gallery-item {
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-md);
  background: var(--ink-1);
  transition: all var(--trans-fast);
}
.gmi-gallery-item:hover { border-color: var(--blood); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.gmi-gallery-item a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.gmi-gallery-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  color: var(--ash);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.gmi-gallery-icon img { width: 100%; height: 100%; object-fit: cover; }
.gmi-gallery-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--dark);
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.gmi-gallery-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--ash);
  text-transform: none;
}
.gmi-gallery-ext { color: var(--ash); flex-shrink: 0; transition: color var(--trans-fast); }
.gmi-gallery-item:hover .gmi-gallery-ext { color: var(--blood); }
.gmi-gallery-empty, .gmi-gallery-noalbums {
  text-align: center;
  padding: var(--space-2xl) 0;
  color: var(--ash);
  font-family: var(--font-serif);
}
.gmi-gallery-noalbums .btn { margin-top: var(--space-md); display: inline-flex; }

@media (max-width: 640px) {
  .gmi-gallery-controls { flex-direction: column; align-items: stretch; }
  .gmi-gallery-search { max-width: none; }
  .gmi-gallery-title { font-size: 0.95rem; }
}

/* ============================================================
   CONTACT PAGE — template-contact.php
   ============================================================ */
.gmi-contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  align-items: start;
}
.gmi-contact-intro p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--mist);
  margin-bottom: var(--space-lg);
}
.gmi-contact-link { color: var(--blood); border-bottom: 1px solid var(--blood-glow); transition: border-color var(--trans-fast); }
.gmi-contact-link:hover { border-color: var(--blood); }

.gmi-contact-cards { display: flex; flex-direction: column; gap: var(--space-md); }
.gmi-contact-card {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.gmi-contact-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--blood);
}
.gmi-contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blood-glow);
  color: var(--blood);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-sm);
}
.gmi-contact-card h2 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 8px;
}
.gmi-contact-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--dark);
  line-height: 1.4;
  font-style: normal;
}
a.gmi-contact-value:hover { color: var(--blood); }

@media (max-width: 860px) {
  .gmi-contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AD BANNERS — image-based (gmi_block_ad with img/link)
   ============================================================ */
.gmi-ad-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gmi-ad-link { display: block; width: 100%; height: 100%; }
.ad-block--rectangle .gmi-ad-img,
.ad-block--rectangle .gmi-ad-link { max-height: 250px; }

/* ============================================================
   POPUP AD
   ============================================================ */
.gmi-popup { position: fixed; inset: 0; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity var(--trans-med); }
.gmi-popup.is-open { opacity: 1; pointer-events: auto; }
.gmi-popup__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.72); }
.gmi-popup__box {
  position: absolute;
  background: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
  max-width: 90vw;
}
.gmi-popup__box img { display: block; max-width: 100%; max-height: 80vh; }
.gmi-popup__close {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.65); color: #fff; border: none;
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.gmi-popup__close:hover { background: var(--blood); }

.gmi-popup--center .gmi-popup__box { top: 50%; left: 50%; transform: translate(-50%,-50%); }
.gmi-popup--bottom-right .gmi-popup__backdrop,
.gmi-popup--bottom-left .gmi-popup__backdrop { background: transparent; pointer-events: none; }
.gmi-popup--bottom-right .gmi-popup__box { bottom: 20px; right: 20px; max-width: 320px; }
.gmi-popup--bottom-left .gmi-popup__box { bottom: 20px; left: 20px; max-width: 320px; }
.gmi-popup--top-bar .gmi-popup__backdrop { display: none; }
.gmi-popup--top-bar .gmi-popup__box { top: 0; left: 0; right: 0; max-width: none; border-radius: 0; }
.gmi-popup--top-bar .gmi-popup__box img { width: 100%; max-height: 140px; object-fit: cover; }
@media (max-width: 600px) {
  .gmi-popup--bottom-right .gmi-popup__box,
  .gmi-popup--bottom-left .gmi-popup__box { left: 10px; right: 10px; max-width: none; }
}

/* ============================================================
   GALLERY — original list layout, bulkier/heavier links (English)
   ============================================================ */
.gmi-gallery-page { padding-bottom: var(--space-2xl); }
.gmi-gallery-header { border-bottom: 1px solid var(--ink-3); }

/* Więcej "mięcha" niż w bazowej wersji — grubszy border, większy padding,
   większa ikona, mocniejszy tytuł, wyraźniejszy hover. */
.gmi-gallery-item {
  border: 2px solid var(--ink-3);
  border-radius: var(--radius-lg, var(--radius-md));
  background: var(--ink-1);
}
.gmi-gallery-item:hover {
  border-color: var(--blood);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.gmi-gallery-item a {
  gap: 22px;
  padding: 22px 28px;
}
.gmi-gallery-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
}
.gmi-gallery-icon svg { width: 26px; height: 26px; }
.gmi-gallery-title {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.gmi-gallery-year { font-size: var(--text-sm); }
.gmi-gallery-ext svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .gmi-gallery-item a { padding: 16px 18px; gap: 14px; }
  .gmi-gallery-icon { width: 48px; height: 48px; }
  .gmi-gallery-title { font-size: 1.15rem; }
}

/* ============================================================
   MAGAZINE PDF PAGE
   ============================================================ */
.gmi-magazine-page { padding-bottom: var(--space-2xl); }

.gmi-mag-current {
  display: grid; grid-template-columns: 340px 1fr; gap: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-2xl); border-bottom: 1px solid var(--ink-3); margin-bottom: var(--space-2xl);
}
.gmi-mag-current__cover { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; background: var(--ink-2); }
.gmi-mag-current__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmi-mag-current__nocover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ash); font-family: var(--font-mono); font-size: var(--text-xs); }
.gmi-mag-current__badge {
  position: absolute; top: 14px; left: 14px; background: var(--blood); color: #fff;
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}
.gmi-mag-current__info { display: flex; flex-direction: column; justify-content: center; }
.gmi-mag-issue-label { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ash); margin-bottom: 4px; }
.gmi-mag-issue-num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--dark); line-height: 1; margin-bottom: 8px; }
.gmi-mag-date { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ash); margin-bottom: var(--space-md); }
.gmi-mag-intro { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--mist); line-height: 1.5; margin-bottom: var(--space-lg); max-width: 480px; }
.gmi-mag-note { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ash); margin-top: var(--space-sm); }

.gmi-mag-empty { text-align: center; padding: var(--space-2xl) 0; color: var(--ash); font-family: var(--font-serif); }
.gmi-mag-empty .btn { margin-top: var(--space-md); display: inline-flex; }

.gmi-mag-archive-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-lg); margin-top: var(--space-lg);
}
.gmi-mag-card { background: var(--ink-1); border: 1px solid var(--ink-3); border-radius: var(--radius-md); overflow: hidden; transition: all var(--trans-med); }
.gmi-mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.gmi-mag-card__cover { aspect-ratio: 3/4; background: var(--ink-2); }
.gmi-mag-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gmi-mag-card__nocover { width: 100%; height: 100%; }
.gmi-mag-card__body { padding: 14px; }
.gmi-mag-card__issue { font-family: var(--font-display); font-size: var(--text-lg); color: var(--dark); }
.gmi-mag-card__date { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ash); margin-bottom: 12px; }
.gmi-mag-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.gmi-mag-card__actions .btn { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }

@media (max-width: 780px) {
  .gmi-mag-current { grid-template-columns: 1fr; }
  .gmi-mag-current__cover { max-width: 280px; }
}

/* Order modal */
.gmi-mag-modal { position: fixed; inset: 0; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity var(--trans-med); }
.gmi-mag-modal.is-open { opacity: 1; pointer-events: auto; }
.gmi-mag-modal__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,0.72); }
.gmi-mag-modal__box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--ink); border-radius: var(--radius-md); box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  padding: var(--space-xl); width: 92vw; max-width: 420px;
}
.gmi-mag-modal__box h3 { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--dark); margin-bottom: 6px; }
.gmi-mag-modal__desc { font-family: var(--font-serif); font-size: var(--text-sm); color: var(--mist); margin-bottom: var(--space-md); }
.gmi-mag-modal__close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink-2); border: none; font-size: 18px; cursor: pointer; color: var(--ash);
}
.gmi-mag-modal__close:hover { background: var(--blood); color: #fff; }
#gmi-mag-modal-form label { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); margin-bottom: 10px; }
#gmi-mag-modal-form input, #gmi-mag-modal-form textarea {
  width: 100%; margin-top: 4px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--smoke); background: var(--ink-1); font-family: var(--font-sans); font-size: var(--text-sm); color: var(--bone);
}
#gmi-mag-modal-form input:focus, #gmi-mag-modal-form textarea:focus { outline: none; border-color: var(--blood); }
.gmi-mag-modal__status { font-family: var(--font-mono); font-size: var(--text-xs); min-height: 16px; }
.gmi-mag-modal__status.is-success { color: #0a0; }
.gmi-mag-modal__status.is-error { color: var(--blood); }

/* ============================================================
   DARK MODE — opcjonalny, przełączany przyciskiem (patrz main.js)
   Nadpisuje tokeny na poziomie <html>, więc cały motyw (który
   wszędzie korzysta z var(--...)) automatycznie przechodzi na
   czarne tło bez dodatkowych reguł per-komponent.
   ============================================================ */
html.gmi-light {
  --ink:        #ffffff;
  --ink-1:      #fafafa;
  --ink-2:      #f2f2f0;
  --ink-3:      #e8e8e5;
  --smoke:      #dcdcd8;
  --ash:        #767676;
  --mist:       #4b4b48;
  --bone:       #14140f;
  --dark:       #111111;
  --paper:      #f5f2ea;
  --white:      #ffffff;
  --blood-glow: rgba(224,16,41,0.18);
  --gold-glow:  rgba(201,168,76,0.15);
  --shadow-sm:  0 1px 3px rgba(20,18,14,0.08);
  --shadow-md:  0 4px 16px rgba(20,18,14,0.10);
  --shadow-lg:  0 12px 36px rgba(20,18,14,0.14);

  /* Powierzchnie "szklane" (header, pasek udostępniania, widgety Radio/
     YouTube/Magazyn) — wersja jasna, szklisto-biała. */
  --header-bg:      rgba(255,255,255,0.97);
  --sharebar-bg:    rgba(255,255,255,0.92);
  --glass-bg:       linear-gradient(135deg, rgba(255,255,255,0.85), rgba(250,248,242,0.55));
  --glass-border:   rgba(201,168,76,0.4);
  --glass-shadow:   0 3px 8px rgba(20,17,11,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
  --glass-hover-bg: rgba(20,17,11,0.06);
  --glass-cover-bg: rgba(20,17,11,0.08);
}
img:not(.gmi-no-dim),
.gmi-ad-img { filter: brightness(0.92); }
html.gmi-light img:not(.gmi-no-dim),
html.gmi-light .gmi-ad-img { filter: none; }

/* Przełącznik w headerze */
.gmi-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink-1); border: 1px solid var(--ink-3); color: var(--dark);
  transition: all var(--trans-fast);
  flex-shrink: 0;
}
.gmi-theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.gmi-theme-toggle svg { width: 18px; height: 18px; }
.gmi-theme-toggle .icon-moon { display: none; }
.gmi-theme-toggle .icon-sun  { display: block; }
html.gmi-light .gmi-theme-toggle .icon-moon { display: block; }
html.gmi-light .gmi-theme-toggle .icon-sun  { display: none; }

/* ============================================================
   FOOTER CREDIT + PRIVACY LINK
   ============================================================ */
.footer-credit { color: var(--smoke); }
.footer-credit a { color: var(--mist); border-bottom: 1px solid transparent; transition: color var(--trans-fast), border-color var(--trans-fast); }
.footer-credit a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   CONTACT FORM — template-contact.php
   ============================================================ */
.gmi-contact-form-wrap {
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--ink-3);
}
.gmi-contact-form-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl, 1.6rem);
  color: var(--bone);
  margin-bottom: 6px;
}
.gmi-contact-form-sub {
  color: var(--ash);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}
.gmi-contact-form-row { margin-bottom: var(--space-md); }
.gmi-contact-form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 6px;
}
.gmi-contact-form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
/* Honeypot — pole niewidoczne dla ludzi, ale obecne w DOM (widoczne dla botów wypełniających wszystko). */
.gmi-cf-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.gmi-form-status {
  font-size: var(--text-sm);
  font-family: var(--font-sans);
}
.gmi-form-status--pending { color: var(--ash); }
.gmi-form-status--ok { color: #4caf50; }
.gmi-form-status--err { color: var(--blood); }

/* ============================================================
   PRIVACY POLICY PAGE — template-privacy-policy.php
   ============================================================ */
.gmi-privacy-page { padding-bottom: var(--space-3xl); }
.gmi-privacy-content {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-serif);
  color: var(--mist);
  line-height: 1.75;
}
.gmi-privacy-content h2 {
  font-family: var(--font-display);
  color: var(--bone);
  font-size: 1.3rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--ink-3);
}
.gmi-privacy-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.gmi-privacy-content h3 {
  font-family: var(--font-sans);
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: var(--space-lg);
  margin-bottom: 6px;
}
.gmi-privacy-content p { margin-bottom: var(--space-md); }
.gmi-privacy-content ul { margin: 0 0 var(--space-md) 20px; }
.gmi-privacy-content li { margin-bottom: 8px; }
.gmi-privacy-content a { color: var(--blood); border-bottom: 1px solid var(--blood-glow); }
.gmi-privacy-content a:hover { border-color: var(--blood); }
.gmi-privacy-content code {
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--gold-light);
}
.gmi-privacy-address {
  font-style: normal;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-left: 3px solid var(--blood);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.gmi-cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: var(--ink-1);
  border-top: 1px solid var(--ink-3);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.45);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--trans-med, .3s) ease, opacity var(--trans-med, .3s) ease;
}
.gmi-cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.gmi-cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.gmi-cookie-banner-text {
  color: var(--mist);
  font-size: var(--text-sm);
  line-height: 1.6;
  flex: 1 1 420px;
  margin: 0;
}
.gmi-cookie-banner-text--short { display: none; }
.gmi-cookie-banner-text a { color: var(--gold-light); border-bottom: 1px solid var(--gold-glow); }
.gmi-cookie-banner-text a:hover { border-color: var(--gold-light); }
.gmi-cookie-banner-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.gmi-cookie-btn {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--smoke);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.gmi-cookie-btn--accept {
  background: var(--blood);
  border-color: var(--blood);
  color: var(--white);
}
.gmi-cookie-btn--accept:hover { background: var(--blood-dark); }
.gmi-cookie-btn--necessary:hover { border-color: var(--gold); color: var(--gold); }

.gmi-cookie-reopen {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 9998;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  color: var(--bone);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: bottom .25s ease;
}
.gmi-cookie-reopen:hover { border-color: var(--gold); }

@media (max-width: 640px) {
  .gmi-cookie-banner { max-height: 55vh; overflow-y: auto; }
  .gmi-cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-sm);
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
  /* .gmi-cookie-banner-text has `flex: 1 1 420px` for the desktop row
     layout, where 420px is a target WIDTH. Once the container above
     switches to flex-direction: column, that same flex-basis is read
     against the column (vertical) axis instead — i.e. as a target
     HEIGHT — so the text got a ~420px-tall box on mobile no matter how
     short the copy was. Reset both children to their natural content
     size here so height depends only on the actual text/buttons. */
  .gmi-cookie-banner-text,
  .gmi-cookie-banner-actions { flex: 0 0 auto; }
  .gmi-cookie-banner-text--full { display: none; }
  .gmi-cookie-banner-text--short { display: block; font-size: 12px; line-height: 1.45; }
  .gmi-cookie-banner-actions { justify-content: stretch; gap: 8px; }
  .gmi-cookie-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}

/* ============================================================
   PLAYER PROMO BANNER — homepage CTA linking to the Player.
   Glassmorphism, green accents matching the Player's own palette
   (kept self-contained here since the Player's stylesheet only
   loads on the Player page itself).
   ============================================================ */
.gmi-player-promo-wrap { padding: var(--space-lg) 0 0; }
.gmi-player-promo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 16px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29,185,84,.22), rgba(18,18,18,.35));
  border: 1px solid rgba(29,185,84,.4);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
  position: relative;
  overflow: hidden;
}
.gmi-player-promo::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(29,185,84,.35), transparent 55%);
  pointer-events: none;
}
.gmi-player-promo:hover {
  transform: translateY(-2px);
  border-color: #1db954;
  box-shadow: 0 14px 36px rgba(29,185,84,.22);
}
.gmi-player-promo__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(29,185,84,.18);
  border: 1px solid rgba(29,185,84,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  position: relative;
}
.gmi-player-promo__text {
  flex: 1;
  min-width: 0;
  color: var(--bone);
  font-size: var(--text-sm);
  line-height: 1.4;
  position: relative;
}
.gmi-player-promo__text strong { color: #1ed760; }
.gmi-player-promo__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1db954;
  color: #04140a;
  font-weight: 800;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 9px 16px;
  border-radius: 999px;
  position: relative;
  transition: background var(--trans-fast), transform var(--trans-fast);
}
.gmi-player-promo:hover .gmi-player-promo__cta { background: #1ed760; transform: translateX(2px); }
.gmi-player-promo__cta svg { width: 13px; height: 13px; }

@media (max-width: 640px) {
  .gmi-player-promo-wrap { padding-top: var(--space-sm); }
  .gmi-player-promo { flex-wrap: wrap; padding: 12px 14px; gap: 6px 10px; }
  .gmi-player-promo__icon {
    width: auto; height: auto;
    background: none; border: none;
    font-size: 1rem;
  }
  .gmi-player-promo__text { flex: 1 1 auto; }
  .gmi-player-promo__cta { flex-basis: 100%; justify-content: center; }
}
