/* ============================================================
   MIĘDZYNARODOWE TARGI PALIWOWE — Stacja i Biznes Przyszłości
   (targipaliwowe.pl) — Brand CSS dla szablonu imsa-multi (Joomla 6)

   Ścieżka: templates/imsa-multi/brands/targipaliwowe/style.css
   (lub media/templates/site/imsa-multi/css/brands/targipaliwowe/style.css)

   ZAKRES: wszystkie reguły pod .tp-site (klasa na <body> z index.php).
   Nagłówek, stopka i pływające przyciski mają klasy wspólne dla sieci IM
   (em-header, im-navbar, em-share, em-belka, bd-mode-toggle…) — ich reguły
   są przeniesione z szablonu Event Market i działają na tokenach --em-*
   zdefiniowanych niżej w palecie Targów.

   MOTYW: ciemna wersja pod [data-bs-theme="dark"] na <html>.

   PALETA (z logo)
     --tp-ink-deep  #0C1D2E  granat hali — pasmo z filmem
     --tp-blue      #0B5FAE  niebieski z logo
     --tp-flame     #E8521F  płomień z logo — akcenty, przyciski
     --em-bg        #F6F7F6  tło strony

   KRÓJ: Source Sans 3 (400/600/700) — nagłówki, tekst i etykiety.

   SPIS
     1. Tokeny            5. Edycje 2 × 2
     2. Baza              6. Galeria (mozaika) + podgląd
     3. Nawigacja (IM)    7. Organizator, podstrony
     4. Hero + film       8. Stopka, pływające, cookies (IM)
                          9. Tłumacz Google, ruch ograniczony
   ============================================================ */


/* ============================================================
   1. TOKENY
   ============================================================ */
.tp-site {
  /* tokeny wspólnej warstwy IM (nawigacja, stopka, przyciski) */
  --em-bg:          #F6F7F6;
  --em-bg-head:     rgba(246, 247, 246, .92);
  --em-surface:     #FFFFFF;
  --em-ink:         #14212D;
  --em-muted:       #5A6976;
  --em-line:        #D3D8D8;
  --em-soft:        #E8EEF3;
  --em-gold:        #E8521F;   /* w sieci IM „akcent” — tu płomień */
  --em-gold-hi:     #FF7440;
  --em-gold-ink:    #B83E10;   /* akcent jako tekst na jasnym tle */
  --em-on-gold:     #FFFFFF;
  --em-navy:        #0C1D2E;
  --em-night-ink:   #EEF3F6;
  --em-night-muted: #9FB1C0;
  --em-shadow:      0 24px 48px -28px rgba(12, 29, 46, .35);
  --em-radius-sm:   12px;

  /* tokeny marki */
  --tp-ink-deep:    #0C1D2E;
  --tp-ink-2:       #13293F;
  --tp-blue:        #0B5FAE;
  --tp-flame:       #E8521F;
  --tp-concrete:    #E7EAE9;

  /* jeden krój (Source Sans 3) dla nagłówków, tekstu i etykiet — szybsze wczytywanie */
  --tp-font-head:   'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --tp-font-body:   'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
  --tp-font-mono:   'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;

  --em-header-h:    78px;
}

[data-bs-theme="dark"] .tp-site {
  --em-bg:          #0F1A25;
  --em-bg-head:     rgba(15, 26, 37, .92);
  --em-surface:     #152331;
  --em-ink:         #E6EDF2;
  --em-muted:       #9AABB9;
  --em-line:        #24384B;
  --em-soft:        #1B2C3D;
  --em-gold-ink:    #FF8A5C;
  --em-shadow:      0 24px 48px -28px rgba(0, 0, 0, .7);

  --tp-ink-deep:    #07121D;
  --tp-ink-2:       #0E2133;
  --tp-blue:        #5AA4EC;
  --tp-concrete:    #122030;
}


/* ============================================================
   2. BAZA
   ============================================================ */
html { scroll-padding-top: var(--em-header-h); scroll-behavior: smooth; }

body.tp-site {
  margin: 0;
  font-family: var(--tp-font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--em-ink);
  background-color: var(--em-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.tp-site h1, .tp-site h2, .tp-site h3 { font-family: var(--tp-font-head); color: inherit; }
.tp-site a { color: var(--em-gold-ink); text-underline-offset: .2em; }
.tp-site a:hover { color: var(--em-ink); }
.tp-site :focus-visible { outline: 3px solid var(--tp-flame); outline-offset: 3px; }
.tp-site img { max-width: 100%; }
.tp-site [hidden] { display: none !important; }

.tp-site .container { max-width: 1228px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 575.98px) {
  .tp-site .container { padding-left: 16px; padding-right: 16px; }
}

.tp-site .tp-eyebrow {
  margin: 0 0 10px;
  font: 600 .78rem/1.2 var(--tp-font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tp-flame);
}
.tp-site .tp-eyebrow--blue { color: var(--tp-blue); }

.tp-site .tp-h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.005em;
}

.tp-site .tp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.3em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 .95rem/1 var(--tp-font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.tp-site .tp-btn:hover { transform: translateY(-1px); }
.tp-site .tp-btn--solid { background: #0B5FAE; color: #fff; }
.tp-site .tp-btn--solid:hover { background: var(--tp-flame); color: #fff; }

.tp-site .tp-section { padding: clamp(56px, 8vw, 96px) 0; }
.tp-site .tp-section--concrete { background: var(--tp-concrete); }
.tp-site .tp-head { margin-bottom: 32px; }


/* ============================================================
   3. NAWIGACJA — warstwa wspólna IM (z szablonu Event Market)
   ============================================================ */
.tp-site .em-header {
  background: var(--em-bg-head);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--em-line);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.tp-site .im-navbar { padding: 12px 0; transition: padding .35s ease; }
.tp-site .im-navbar .nav-link,
.tp-site .im-lang a,
.tp-site .navbar-toggler { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* --- Po przewinięciu: granatowy pasek + białe logo-dark.png -----
   Klasę .is-scrolled nadaje script.js (sekcja 1a).                */
.tp-site .em-header.is-scrolled {
  background: rgba(11, 27, 51, .96);
  border-bottom-color: rgba(246, 242, 233, .08);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.tp-site .em-header.is-scrolled .im-navbar { padding: 8px 0; }

.tp-site .em-header.is-scrolled .im-logo-jasny  { display: none; }
.tp-site .em-header.is-scrolled .im-logo-ciemny { display: block; }
.tp-site .em-header.is-scrolled .em-logo-word   { color: var(--em-night-ink); }
.tp-site .em-header.is-scrolled .em-logo-tag    { color: var(--em-night-muted); }
.tp-site .em-header.is-scrolled .em-logo-box    { fill: var(--em-gold); }
.tp-site .em-header.is-scrolled .em-logo-beam   { fill: var(--em-navy); }
.tp-site .em-header.is-scrolled .em-logo-stage  { fill: var(--em-gold-hi); }

.tp-site .em-header.is-scrolled .im-navbar .nav-link { color: var(--em-night-ink); }
.tp-site .em-header.is-scrolled .im-navbar .nav-link:hover,
.tp-site .em-header.is-scrolled .im-navbar .nav-link:focus-visible {
  background: rgba(246, 242, 233, .08);
  color: var(--em-night-ink);
}
.tp-site .em-header.is-scrolled .im-navbar .nav-item.current > .nav-link,
.tp-site .em-header.is-scrolled .im-navbar .nav-item.active > .nav-link,
.tp-site .em-header.is-scrolled .im-navbar .nav-link[aria-current="page"] {
  background: rgba(232, 82, 31, .14);
  color: var(--em-gold-hi);
}
.tp-site .em-header.is-scrolled .im-navbar .em-nav-cta > .nav-link,
.tp-site .em-header.is-scrolled .im-navbar .nav-link.em-nav-cta {
  border-color: rgba(246, 242, 233, .6);
  background: transparent;
  color: var(--em-night-ink);
}
.tp-site .em-header.is-scrolled .im-navbar .em-nav-cta > .nav-link:hover,
.tp-site .em-header.is-scrolled .im-navbar .nav-link.em-nav-cta:hover {
  border-color: var(--em-gold);
  background: var(--em-gold);
  color: var(--em-on-gold);
}

.tp-site .em-header.is-scrolled .im-lang a {
  border-color: rgba(246, 242, 233, .25);
  background: transparent;
  color: var(--em-night-ink);
}
.tp-site .em-header.is-scrolled .im-lang a:hover { border-color: var(--em-gold); }
.tp-site .em-header.is-scrolled .im-lang li.lang-active a,
.tp-site .em-header.is-scrolled .im-lang a.active,
.tp-site .em-header.is-scrolled .im-lang a[aria-current] {
  border-color: var(--em-gold);
  background: var(--em-gold);
  color: var(--em-on-gold);
}

.tp-site .em-header.is-scrolled .navbar-toggler { border-color: rgba(246, 242, 233, .25); }
.tp-site .em-header.is-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28246, 242, 233, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (prefers-reduced-motion: reduce) {
  .tp-site .em-header,
  .tp-site .im-navbar { transition: none; }
}

/* Logo */
.tp-site .navbar-brand { padding: 0; margin-right: 24px; }
.tp-site .im-navbar-logo { height: 52px; width: auto; display: block; }
.tp-site .em-logo { display: inline-flex; align-items: center; gap: 12px; }
.tp-site .em-logo-box   { fill: var(--em-navy); }
.tp-site .em-logo-beam  { fill: var(--em-gold); opacity: .92; }
.tp-site .em-logo-stage { fill: var(--em-bg); }
[data-bs-theme="dark"] .tp-site .em-logo-box   { fill: var(--em-gold); }
[data-bs-theme="dark"] .tp-site .em-logo-beam  { fill: var(--em-navy); }
[data-bs-theme="dark"] .tp-site .em-logo-stage { fill: var(--em-gold-hi); }
.tp-site .em-logo-text { display: flex; flex-direction: column; line-height: 1; }
.tp-site .em-logo-word {
  font-family: var(--em-font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  color: var(--em-ink);
}
.tp-site .em-logo-tag {
  margin-top: 5px;
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--em-muted);
}

/* Logo z pliku — wariant jasny/ciemny */
.tp-site .im-logo-ciemny { display: none; }
[data-bs-theme="dark"] .tp-site .im-logo-ciemny { display: block; }
[data-bs-theme="dark"] .tp-site .im-logo-jasny { display: none; }

/* Menu (statyczne i mod_menu w układzie navbar) */
.tp-site .im-navbar .navbar-nav { gap: 2px; margin: 0; padding: 0; align-items: center; }
.tp-site .im-navbar .navbar-nav > .nav-item { margin: 0; }
.tp-site .im-navbar .nav-link {
  padding: 11px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--em-ink);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.tp-site .im-navbar .nav-link:hover,
.tp-site .im-navbar .nav-link:focus-visible { background: var(--em-soft); color: var(--em-ink); }

.tp-site .im-navbar .nav-item.current > .nav-link,
.tp-site .im-navbar .nav-item.active > .nav-link,
.tp-site .im-navbar .nav-link[aria-current="page"] {
  color: var(--em-gold-ink);
  background: var(--em-soft);
}

/* CTA „Kontakt” — statycznie li.em-nav-cta, w mod_menu „Klasa odnośnika” */
.tp-site .im-navbar .em-nav-cta > .nav-link,
.tp-site .im-navbar .nav-link.em-nav-cta {
  margin-left: 6px;
  padding: 10px 20px;
  border: 1px solid var(--em-ink);
  font-weight: 600;
  background: transparent;
  color: var(--em-ink);
}
.tp-site .im-navbar .em-nav-cta > .nav-link:hover,
.tp-site .im-navbar .nav-link.em-nav-cta:hover {
  background: var(--em-ink);
  color: var(--em-bg);
}

/* Podmenu */
.tp-site .im-navbar .nav-item.dropdown > .dropdown-menu { display: none; }
.tp-site .im-navbar .nav-item.dropdown > .dropdown-menu.show,
.tp-site .im-navbar .nav-item.dropdown.im-open > .dropdown-menu { display: block; }
@media (min-width: 992px) {
  .tp-site .im-navbar .nav-item.dropdown:hover > .dropdown-menu,
  .tp-site .im-navbar .nav-item.dropdown:focus-within > .dropdown-menu { display: block; }
}
.tp-site .im-navbar .dropdown-menu {
  padding: 6px;
  border: 1px solid var(--em-line);
  border-radius: var(--em-radius-sm);
  background: var(--em-surface);
  box-shadow: var(--em-shadow);
}
.tp-site .im-navbar .dropdown-item {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--em-ink);
}
.tp-site .im-navbar .dropdown-item:hover,
.tp-site .im-navbar .dropdown-item:focus { background: var(--em-soft); color: var(--em-gold-ink); }

/* Przełącznik języka — okrągłe plakietki (fallback i mod_languages) */
.tp-site .im-lang ul,
.tp-site .im-lang .lang-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-site .im-lang li { margin: 0; }
.tp-site .im-lang a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--em-line);
  border-radius: 50%;
  background: var(--em-surface);
  color: var(--em-ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease;
}
.tp-site .im-lang a:hover { border-color: var(--em-gold); color: var(--em-ink); }
.tp-site .im-lang li.lang-active a,
.tp-site .im-lang a.active,
.tp-site .im-lang a[aria-current] {
  background: var(--em-gold);
  border-color: var(--em-gold);
  color: var(--em-on-gold);
}
.tp-site .im-lang a img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

/* Hamburger */
.tp-site .navbar-toggler {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--em-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tp-site .navbar-toggler:focus { box-shadow: none; }
.tp-site .navbar-toggler-icon { width: 1.3em; height: 1.3em; }

/* Mobile */
@media (max-width: 991.98px) {
  .tp-site .im-navbar .navbar-collapse { margin-top: 12px; padding-bottom: 8px; }
  .tp-site .im-navbar .navbar-nav { align-items: stretch; gap: 2px; }
  .tp-site .im-navbar .nav-link { padding: 12px 16px; border-radius: 12px; }
  .tp-site .im-navbar .em-nav-cta > .nav-link,
  .tp-site .im-navbar .nav-link.em-nav-cta {
    margin: 8px 0 0;
    text-align: center;
    border-radius: 999px;
  }
  .tp-site .im-navbar .dropdown-menu { margin: 0 0 6px; box-shadow: none; }
  .tp-site .im-nav-mobile-tools .im-lang a { width: 40px; height: 40px; }
}
@media (max-width: 575.98px) {
  .tp-site .im-navbar-logo { height: 36px; }
  .tp-site .em-logo-sigil { width: 38px; height: 38px; }
  .tp-site .em-logo-word { font-size: 1.2rem; }
  .tp-site .em-logo-tag { font-size: .5625rem; letter-spacing: .12em; }
  .tp-site .navbar-brand { margin-right: 8px; }
}


/* --- Logo Targów: płomień + napis -------------------------- */
.tp-site .tp-brand { gap: 12px; text-decoration: none; }
.tp-site .tp-brand-logo { height: 52px; width: auto; max-width: 70vw; object-fit: contain; }
.tp-site .tp-brand-text { display: flex; flex-direction: column; line-height: 1; }
.tp-site .tp-brand-word {
  font: 700 1.3rem/1 var(--tp-font-head);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--em-ink);
}
.tp-site .tp-brand-tag {
  margin-top: 5px;
  font: 500 .66rem/1.2 var(--tp-font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--em-muted);
}
.tp-site .em-header.is-scrolled .tp-brand-word { color: var(--em-night-ink); }
.tp-site .em-header.is-scrolled .tp-brand-tag  { color: var(--em-night-muted); }
@media (max-width: 575.98px) {
  .tp-site .tp-brand-logo { height: 40px; max-width: 58vw; }
  .tp-site .tp-brand { gap: 8px; min-width: 0; }
  .tp-site .tp-brand-word { font-size: 1rem; line-height: 1.05; white-space: normal; max-width: 9.5em; }
  .tp-site .tp-brand-tag { display: none; }
}

/* PL / EN — przyciski Tłumacza Google w wyglądzie plakietek IM */
.tp-site .im-lang button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--em-line);
  border-radius: 50%;
  background: var(--em-surface);
  color: var(--em-ink);
  font: 700 .875rem/1 var(--tp-font-body);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tp-site .im-lang button:hover { border-color: var(--em-gold); }
.tp-site .im-lang li.lang-active button {
  background: var(--em-gold);
  border-color: var(--em-gold);
  color: var(--em-on-gold);
}
.tp-site .em-header.is-scrolled .im-lang button {
  border-color: rgba(238, 243, 246, .25);
  background: transparent;
  color: var(--em-night-ink);
}
.tp-site .em-header.is-scrolled .im-lang li.lang-active button {
  border-color: var(--em-gold);
  background: var(--em-gold);
  color: var(--em-on-gold);
}
@media (max-width: 991.98px) {
  .tp-site .im-nav-mobile-tools .im-lang button { width: 40px; height: 40px; }
}
.tp-site .im-navbar .em-nav-cta .bi { font-size: .85em; margin-left: 2px; }


/* ============================================================
   4. HERO + FILM
   ============================================================ */
.tp-site .tp-stage {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 0;
  background: radial-gradient(120% 70% at 50% 0%, var(--tp-ink-2) 0%, var(--tp-ink-deep) 60%);
  color: #EEF3F6;
}
.tp-site .tp-stage::after {               /* łuki kopuły Hali Stulecia */
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 120%;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 100%, transparent 0 78px, rgba(255, 255, 255, .035) 78px 79px);
}
.tp-site .tp-stage .container { position: relative; z-index: 1; }

.tp-site .tp-hero { text-align: center; }
.tp-site .tp-hero h1 {
  margin: .3em 0 .3em;
  font-weight: 700;
  font-size: clamp(1.7rem, 5.2vw, 3.9rem);
  overflow-wrap: anywhere;
  hyphens: manual;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #EEF3F6;
}
.tp-site .tp-hero h1 em {
  display: block;
  margin-top: .35em;
  font-style: normal;
  font-weight: 500;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: .12em;
  color: #9FB1C0;
}
.tp-site .tp-lead { max-width: 82ch; margin: 0 auto; font-size: 1.1rem; color: #9FB1C0; }

.tp-site .tp-film { max-width: 1080px; margin: 40px auto 0; }
.tp-site .tp-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}
.tp-site .tp-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-site .tp-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  color: #fff;
}
.tp-site .tp-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s, transform .6s; }
.tp-site .tp-poster:hover img { opacity: 1; transform: scale(1.015); }
.tp-site .tp-play,
.tp-site .tp-yt-fallback .tp-play {
  width: clamp(68px, 10vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #E8521F;
  box-shadow: 0 0 0 10px rgba(232, 82, 31, .25);
  transition: box-shadow .3s, transform .3s;
}
.tp-site .tp-poster .tp-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.tp-site .tp-poster:hover .tp-play { box-shadow: 0 0 0 18px rgba(232, 82, 31, .2); transform: scale(1.05); }
.tp-site .tp-play svg { width: 38%; margin-left: 8%; fill: #fff; }
.tp-site .tp-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px;
  text-align: left;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  font: 700 clamp(.95rem, 1.8vw, 1.15rem)/1.2 var(--tp-font-head);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tp-site .tp-cap small {
  display: block;
  margin-top: 4px;
  font: 500 .75rem/1.4 var(--tp-font-mono);
  letter-spacing: .06em;
  text-transform: none;
  color: #CFD8DF;
}
.tp-site .tp-yt-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  text-decoration: none;
  background-color: #0C1D2E;
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}
.tp-site .tp-yt-fallback:hover { color: #fff; }
.tp-site .tp-yt-fallback strong { font: 600 1.3rem/1.2 var(--tp-font-head); letter-spacing: .05em; text-transform: uppercase; }
.tp-site .tp-film-meta {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, .05);
  font: 500 .8rem/1.4 var(--tp-font-mono);
  letter-spacing: .04em;
}
.tp-site .tp-film-meta a { color: #EEF3F6; }
.tp-site .tp-film-meta a:hover { color: #FF7440; }

.tp-site .tp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1080px;
  margin: 44px auto 0;
  background: rgba(255, 255, 255, .1);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.tp-site .tp-stats div { padding: 22px 12px 30px; text-align: center; background: var(--tp-ink-deep); }
.tp-site .tp-stats b {
  display: block;
  font: 700 clamp(1.75rem, 3.8vw, 2.6rem)/1 var(--tp-font-head);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.tp-site .tp-stats span {
  display: block;
  margin-top: 6px;
  font: 500 .75rem/1.35 var(--tp-font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9FB1C0;
}
@media (max-width: 575.98px) {
  .tp-site .tp-stats span { font-size: .62rem; }
  .tp-site .tp-stats b { font-size: 1.5rem; white-space: nowrap; }
}


/* ============================================================
   5. EDYCJE 2 × 2
   ============================================================ */
.tp-site .tp-editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 3px solid var(--em-ink);
}
.tp-site .tp-ed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  align-items: start;
  padding: 26px 28px 30px;
}
.tp-site .tp-ed:nth-child(odd) { border-right: 1px solid var(--em-line); }
.tp-site .tp-ed:nth-child(-n+2) { border-bottom: 1px solid var(--em-line); }
.tp-site .tp-ed-nr {
  grid-row: span 2;
  min-width: 1.6ch;
  font: 700 3.6rem/.85 var(--tp-font-head);
  color: var(--tp-blue);
}
.tp-site .tp-ed:last-child .tp-ed-nr { color: var(--tp-flame); }
.tp-site .tp-ed time {
  padding-top: 4px;
  font: 700 1.2rem/1.2 var(--tp-font-head);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.tp-site .tp-ed ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.45;
  color: var(--em-muted);
}
.tp-site .tp-ed li { position: relative; padding-left: 16px; }
.tp-site .tp-ed li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 2px;
  background: var(--tp-flame);
}
@media (max-width: 899.98px) {
  .tp-site .tp-editions { grid-template-columns: minmax(0, 1fr); }
  .tp-site .tp-ed:nth-child(odd) { border-right: 0; }
  .tp-site .tp-ed:not(:last-child) { border-bottom: 1px solid var(--em-line); }
}
@media (max-width: 575.98px) {
  .tp-site .tp-ed { padding: 22px 4px 24px; gap: 4px 18px; }
  .tp-site .tp-ed-nr { font-size: 2.9rem; }
}


/* ============================================================
   6. GALERIA — 6 zdjęć w rzędzie (kadry 4:3), podgląd z nawigacją
   ============================================================ */
.tp-site .tp-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.tp-site .tp-gal-item {
  display: block;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--em-line);
}
.tp-site .tp-gal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.tp-site .tp-gal-item:hover img { transform: scale(1.05); }
@media (max-width: 991.98px) { .tp-site .tp-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .tp-site .tp-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .tp-site .tp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* Podgląd na całym ekranie */
.tp-site .tp-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.tp-site .tp-lightbox::backdrop { background: rgba(6, 14, 22, .94); }
.tp-site .tp-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.tp-site .tp-lb-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 150px);
  touch-action: pan-y;
}
.tp-site .tp-lb-fig img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 110px);
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}
.tp-site .tp-lb-fig img.is-in { animation: tpLbIn .25s ease; }
@keyframes tpLbIn { from { opacity: 0; } to { opacity: 1; } }
.tp-site .tp-lb-cap {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  color: #CFD8DF;
  font-size: .95rem;
  text-align: center;
}
.tp-site .tp-lb-count { font: 500 .8rem/1 var(--tp-font-mono); letter-spacing: .06em; color: #9FB1C0; }

.tp-site .tp-lb-btn,
.tp-site .tp-lb-close {
  position: fixed;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.tp-site .tp-lb-btn:hover,
.tp-site .tp-lb-close:hover { background: #E8521F; border-color: #E8521F; }
.tp-site .tp-lb-btn { top: 50%; translate: 0 -50%; }
.tp-site .tp-lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.tp-site .tp-lb-next { right: max(16px, env(safe-area-inset-right, 0px)); }
.tp-site .tp-lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; font-size: 1.1rem; }
@media (max-width: 767.98px) {
  .tp-site .tp-lb-fig { max-width: calc(100vw - 24px); }
  .tp-site .tp-lb-btn { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); translate: none; width: 48px; height: 48px; }
  .tp-site .tp-lb-fig img { max-height: calc(100dvh - 170px); }
}


/* ============================================================
   7. ORGANIZATOR, PODSTRONY
   ============================================================ */
.tp-site .tp-org {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.tp-site .tp-org .tp-org-logo { width: auto; height: auto; max-width: 260px; max-height: 96px; }
.tp-site .tp-org h2 {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.tp-site .tp-org p { max-width: 62ch; margin: 0; color: var(--em-muted); }
@media (max-width: 899.98px) {
  .tp-site .tp-org { grid-template-columns: 1fr; justify-items: start; }
}
.tp-site .tp-tresc .container { max-width: 900px; }


/* ============================================================
   8. STOPKA, PŁYWAJĄCE PRZYCISKI, COOKIES — warstwa wspólna IM
   ============================================================ */
.tp-site .em-footer .im-footer-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--em-muted);
}

/* Udostępnij */
.tp-site .em-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--em-line);
}
.tp-site .em-share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tp-site .im-share-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--em-line);
  border-radius: 50%;
  background: var(--em-surface);
  color: var(--em-ink);
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tp-site .im-share-btn:hover,
.tp-site .im-share-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--em-gold);
  border-color: var(--em-gold);
  color: var(--em-on-gold);
}
.tp-site .im-share-native { display: none; }
.tp-site .im-share-supported .im-share-native { display: inline-flex; }
@media (max-width: 767.98px) {
  .tp-site .im-share-supported .im-share-social { display: none; }
}
.tp-site .em-share-copied { font-size: .875rem; font-weight: 600; color: var(--em-gold-ink); }

/* Belka */
.tp-site .em-belka {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 40px;
}
.tp-site .em-belka-left { display: flex; flex-direction: column; gap: 6px; }
.tp-site .em-copy { margin: 0; }
.tp-site .em-legal { margin: 0; font-size: .9375rem; color: var(--em-muted); }
.tp-site .em-legal a { color: var(--em-muted); text-decoration: none; }
.tp-site .em-legal a:hover { color: var(--em-ink); text-decoration: underline; }
.tp-site .em-sep { margin: 0 .4rem; }
.tp-site .em-belka-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-right: 72px;       /* miejsce na pływające przyciski */
}
.tp-site .em-im-logo { max-height: 40px; width: auto; opacity: .9; transition: opacity .2s ease; }
.tp-site .em-belka-right a:hover .em-im-logo { opacity: 1; }
@media (max-width: 767.98px) {
  .tp-site .em-belka { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .tp-site .em-belka-right { align-items: flex-start; margin-right: 0; }
}

/* Pływające przyciski zawsze nad treścią (sekcja z filmem ma własne warstwy) */
.tp-site .bd-mode-toggle { z-index: 1030; }
.tp-site .bd-mode-toggle .btn {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--em-line);
  background: var(--em-surface);
  color: var(--em-ink);
  font-size: 1.1rem;
  box-shadow: 0 8px 20px -10px rgba(11, 27, 51, .45);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, opacity .25s ease, visibility .25s ease;
}
.tp-site .bd-mode-toggle .btn:hover { transform: translateY(-2px); border-color: var(--em-gold); }

/* Motyw ciemny: przycisk motywu jaśniejszy od tła, żeby nie ginął */
[data-bs-theme="dark"] .tp-site .bd-mode-toggle .im-theme-toggle {
  background: #EEF3F6;
  border-color: #EEF3F6;
  color: #0C1D2E;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8);
}
[data-bs-theme="dark"] .tp-site .bd-mode-toggle .im-theme-toggle:hover {
  background: #FFFFFF;
  border-color: var(--em-gold);
  color: var(--em-gold);
}
.tp-site .bd-mode-toggle #backToTop {
  background: var(--em-gold);
  border-color: var(--em-gold);
  color: var(--em-on-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.tp-site .bd-mode-toggle #backToTop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tp-site .bd-mode-toggle #backToTop:hover { background: var(--em-gold-hi); }

.tp-site .im-theme-toggle .theme-icon-light { display: none; }
[data-bs-theme="dark"] .tp-site .im-theme-toggle .theme-icon-dark { display: none; }
[data-bs-theme="dark"] .tp-site .im-theme-toggle .theme-icon-light { display: inline-block; }

/* Banner cookies z _shared/cookies — dociągnięcie do palety marki */
.tp-site .cookies {
  border-radius: var(--em-radius-sm);
  background: var(--em-navy);
  color: var(--em-night-ink);
}
.tp-site .cookies p { color: var(--em-night-muted); }
.tp-site .cookies p strong { color: var(--em-night-ink); }
.tp-site .cookies a { color: var(--em-gold-hi); }

/* ============================================================
   9. TŁUMACZ GOOGLE + RUCH OGRANICZONY
   Ukryty interfejs Google — zostaje samo tłumaczenie.
   ============================================================ */
#google_translate_element, .goog-te-banner-frame, .skiptranslate > iframe, iframe.skiptranslate,
#goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body.tp-site { top: 0 !important; }
.tp-site .goog-text-highlight, .tp-site font[style] { background: none !important; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tp-site *, .tp-site *::before, .tp-site *::after { transition: none !important; }
}