*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background-color: #050203;
  background-image: url('/img/bg_mrok_web.jpg?v=2');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow-x: clip;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 2.2rem 0 3rem 0;
  background: transparent;
  color: #e6e2e4;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.68;
  overflow-x: clip;
}

#popiol-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.kontener-glowny {
  position: relative;
  z-index: 1;
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

.naglowek-strony,
.ramka-karta,
.kolumna-pol,
body .czat-panel-glowna,
body .radio-panel {
  border: 14px solid transparent;
  border-image-source: url('/img/ramka_sekcji.png?v=1');
  border-image-slice: 27%;
  border-image-width: 34px;
  border-image-outset: 12px;
  border-image-repeat: round;
  border-radius: 14px;
  background-color: #0b0b0e;
  background-origin: border-box;
  background-clip: border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9);
}

.naglowek-strony {
  width: 100%;
  min-height: clamp(190px, 18vw, 240px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.8rem 1.4rem 1.8rem;
  margin-bottom: 2.2rem;
  background-image: url('/img/naglowek_tlo.jpg?v=3');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.ramka-karta {
  width: 100%;
  padding: 1.55rem 1.9rem;
  margin-bottom: 2.6rem;
  background-image: linear-gradient(165deg, rgba(28, 28, 33, 0.91) 0%, rgba(14, 14, 17, 0.95) 58%, rgba(8, 8, 10, 0.97) 100%);
}

.ramka-wyrozniona {
  width: 100%;
  padding: 3.2rem 4.3rem 6.2rem 4.3rem;
  margin-bottom: 2.5rem;
  border: none;
  border-image: none;
  border-radius: 0;
  background-color: transparent;
  background-image: url('/img/karta_tlo_web.png?v=4');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: none;
}

.ramka-wyrozniona h1,
.ramka-wyrozniona h2,
.ramka-wyrozniona h3 {
  color: #ffffff;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.96),
    0 0 18px rgba(0, 0, 0, 0.92),
    2px 2px 6px rgba(0, 0, 0, 0.95);
}

.ramka-wyrozniona p,
.ramka-wyrozniona li {
  color: #f8f5ef;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 0 6px rgba(0, 0, 0, 0.96),
    0 0 14px rgba(0, 0, 0, 0.9),
    1px 1px 4px rgba(0, 0, 0, 0.95);
}

.ramka-wyrozniona .akcent {
  color: #ff6b78;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.98),
    0 0 16px rgba(0, 0, 0, 0.92),
    1px 1px 4px rgba(0, 0, 0, 0.95);
}

body .czat-panel-glowna,
body .radio-panel {
  margin: 0 auto 2.6rem auto;
  padding: 1.5rem 1.8rem;
  background-image: linear-gradient(165deg, rgba(28, 28, 33, 0.93) 0%, rgba(13, 13, 16, 0.97) 100%);
}

.siatka-kolumn {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.6rem;
  width: 100%;
  margin-bottom: 2.6rem;
}

.kolumna-pol {
  width: calc(50% - 1.3rem);
  padding: 1.5rem 1.8rem;
  background-image: linear-gradient(165deg, rgba(28, 28, 33, 0.91) 0%, rgba(14, 14, 17, 0.96) 100%);
}

.naglowek-strony .tytul-serwisu {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  line-height: 1;
  margin: 0 0 0.95rem 0;
}

.naglowek-strony .logo-link,
.naglowek-strony .logo-link:hover {
  display: inline-block;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  line-height: 0;
}

.logo-obraz {
  display: block;
  height: auto;
  max-height: 88px;
  width: auto;
  max-width: min(520px, 100%);
  border: none;
  box-shadow: none;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(220, 24, 38, 0.65));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.naglowek-strony .logo-link:hover .logo-obraz {
  transform: scale(1.03);
  filter: drop-shadow(0 0 18px rgba(255, 45, 55, 0.9));
}

.naglowek-strony .menu-glowne {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 1.65rem;
  text-align: center;
}

.menu-glowne a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  min-height: 52px;
  border: 9px solid transparent;
  border-image-source: url('/img/ramka_kosci.png?v=1');
  border-image-slice: 30% 15% 30% 15%;
  border-image-width: 24px 24px;
  border-image-outset: 5px 7px;
  border-image-repeat: stretch;
  border-radius: 10px;
  background-color: #0e0707;
  background-image:
    linear-gradient(rgba(5, 2, 3, 0.56), rgba(5, 2, 3, 0.62)),
    url('/img/ziemia_web.jpg?v=3');
  background-size: 100% 100%, 170px 170px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: none;
  color: #ff5c5c;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 2px #000000, 0 0 6px #000000, 0 0 12px rgba(190, 18, 28, 0.85);
  transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease, text-shadow 0.2s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.88));
}

.menu-glowne a:hover,
.menu-glowne a.aktywna {
  color: #ffffff;
  background-image:
    linear-gradient(rgba(22, 4, 7, 0.52), rgba(8, 2, 4, 0.6)),
    url('/img/ziemia_web.jpg?v=3');
  box-shadow: none;
  text-shadow: 0 1px 2px #000000, 0 0 8px #ff2638, 0 0 18px rgba(255, 36, 54, 0.95);
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(225, 24, 38, 0.72)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.92));
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: 0.6px;
  color: #f6f2f2;
}

h1 {
  font-size: 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #8f1422;
  text-shadow: 0 0 12px rgba(220, 26, 46, 0.45), 0 2px 4px #000;
}

h2 {
  font-size: 1.32rem;
  color: #ff4a5c;
  padding-left: 0.8rem;
  border-left: 4px solid #b81628;
  text-shadow: 0 0 10px rgba(185, 20, 36, 0.45);
}

p {
  margin: 0 0 0.95rem 0;
}

p:last-child {
  margin-bottom: 0;
}

.akcent {
  color: #ff475a;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(200, 20, 38, 0.35);
}

a {
  color: #ff5a6d;
}

a:hover {
  color: #ff8f9b;
}

ul {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.45rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid #4a4a52;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.hero-powitalny {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.8rem;
}

.hero-tekst {
  flex: 1 1 0;
  min-width: 0;
}

.hero-grafika {
  flex: 0 0 270px;
  max-width: 270px;
  padding: 12px;
}

.hero-obraz {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid transparent;
  border-image-source: url('/img/ramka_sekcji.png?v=1');
  border-image-slice: 27%;
  border-image-width: 28px;
  border-image-outset: 9px;
  border-image-repeat: round;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.92), 0 0 22px rgba(190, 20, 34, 0.35);
}

.ramka-media {
  width: 100%;
  max-width: 860px;
  margin: 1.2rem 0;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #3f3f46;
  background: #101013;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.8);
}

.ramka-media iframe,
.ramka-media audio {
  width: 100%;
  display: block;
  border: none;
  border-radius: 6px;
}

.naglowek-gry {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #3f3f46;
}

.naglowek-gry h2 {
  margin: 0;
  padding-left: 0.75rem;
  border-left: 4px solid #d91c32;
  color: #ffffff;
}

.gatunek-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #52525b;
  background: rgba(63, 63, 70, 0.35);
  color: #e4e4e7;
  font-size: 0.85rem;
  font-weight: 600;
}

.reklama-gry {
  margin-top: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: 6px;
  border-left: 3px solid #dc1f36;
  background: linear-gradient(90deg, rgba(60, 60, 68, 0.32) 0%, rgba(16, 16, 19, 0.75) 100%);
  color: #edecef;
}

.karta-gra-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.karta-gra-link:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 14px rgba(215, 24, 42, 0.42));
}

.przycisk-otworz {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.5rem 1.25rem;
  border: 8px solid transparent;
  border-image-source: url('/img/ramka_kosci.png?v=1');
  border-image-slice: 30% 15% 30% 15%;
  border-image-width: 21px 21px;
  border-image-outset: 4px 6px;
  border-image-repeat: stretch;
  border-radius: 8px;
  background-color: #0e0707;
  background-image:
    linear-gradient(rgba(5, 2, 3, 0.56), rgba(5, 2, 3, 0.62)),
    url('/img/ziemia_web.jpg?v=3');
  background-size: 100% 100%, 160px 160px;
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: none;
  color: #ffffff;
  font-family: Georgia, "Palatino Linotype", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 2px #000000, 0 0 8px rgba(255, 36, 54, 0.9);
}

.stopka-strony {
  width: 100%;
  padding: 1.1rem 1.8rem;
  margin-top: 2rem;
  border-top: 2px solid #3f3f46;
  border-bottom: 2px solid #3f3f46;
  background: rgba(12, 12, 15, 0.9);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 0.92rem;
  letter-spacing: 0.6px;
  color: #a1a1aa;
}

@media (max-width: 820px) {
  body {
    padding: 1.4rem 0 2rem 0;
  }

  .kontener-glowny {
    width: 94%;
    margin: 0 auto;
  }

  .naglowek-strony,
  .ramka-karta,
  .kolumna-pol,
  body .czat-panel-glowna,
  body .radio-panel {
    border-width: 10px;
    border-image-width: 26px;
    border-image-outset: 9px;
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
    margin-bottom: 2.2rem;
  }

  .naglowek-strony {
    min-height: auto;
    background-size: cover;
  }

  .ramka-wyrozniona {
    padding: 2.7rem 2.6rem 5.2rem 2.6rem;
    margin-bottom: 2.1rem;
  }

  .kolumna-pol {
    width: 100%;
  }

  .siatka-kolumn {
    gap: 0;
    margin-bottom: 0;
  }

  .hero-powitalny {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-grafika {
    flex: 0 0 auto;
    max-width: 250px;
    margin: 0.5rem auto 0 auto;
  }

  .logo-obraz {
    max-height: 64px;
  }

  .menu-glowne a {
    width: 100%;
  }
}

/* === ROZWIJANE MENU INNE ORAZ TABLICA Z KOSCI === */
.menu-inne-grupa {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-inne-przycisk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  min-height: 52px;
  border: 9px solid transparent;
  border-image-source: url('/img/ramka_kosci.png?v=1');
  border-image-slice: 30% 15% 30% 15%;
  border-image-width: 24px 24px;
  border-image-outset: 5px 7px;
  border-image-repeat: stretch;
  border-radius: 10px;
  background-color: #0e0707;
  background-image:
    linear-gradient(rgba(5, 2, 3, 0.56), rgba(5, 2, 3, 0.62)),
    url('/img/ziemia_web.jpg?v=3');
  background-size: 100% 100%, 170px 170px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: none;
  color: #ff5c5c;
  font-family: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000000, 0 0 6px #000000, 0 0 12px rgba(190, 18, 28, 0.85);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease, text-shadow 0.2s ease;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.88));
}

.menu-inne-grupa:hover .menu-inne-przycisk,
.menu-inne-grupa.otwarte .menu-inne-przycisk,
.menu-inne-grupa.podstrona-aktywna .menu-inne-przycisk {
  color: #ffffff;
  background-image:
    linear-gradient(rgba(22, 4, 7, 0.52), rgba(8, 2, 4, 0.6)),
    url('/img/ziemia_web.jpg?v=3');
  text-shadow: 0 1px 2px #000000, 0 0 8px #ff2638, 0 0 18px rgba(255, 36, 54, 0.95);
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(225, 24, 38, 0.72)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.92));
}

.menu-inne-lista {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 109, 0.45);
  background: rgba(11, 9, 10, 0.97);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.95);
  z-index: 200;
}

.menu-inne-grupa:hover .menu-inne-lista,
.menu-inne-grupa.otwarte .menu-inne-lista {
  display: flex;
}

.menu-inne-lista a {
  width: 100%;
}

.tablica-post-kosc {
  width: 100%;
  padding: 1.6rem 1.9rem;
  margin-bottom: 2.6rem;
  border: 9px solid transparent;
  border-image-source: url('/img/ramka_kosci.png?v=1');
  border-image-slice: 30% 15% 30% 15%;
  border-image-width: 24px 24px;
  border-image-outset: 6px 8px;
  border-image-repeat: stretch;
  border-radius: 12px;
  background-color: #0d090a;
  background-image:
    linear-gradient(rgba(9, 7, 8, 0.88), rgba(14, 11, 13, 0.92)),
    url('/img/ziemia_web.jpg?v=3');
  background-size: 100% 100%, 200px 200px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.88);
}

.tablica-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid rgba(255, 90, 109, 0.25);
}

.tablica-post-data {
  font-family: Georgia, "Palatino Linotype", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff8f9b;
  letter-spacing: 0.4px;
}

.tablica-post-tresc-pelny,
.tablica-post-tresc {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.68;
  color: #f3efef;
  word-break: break-word;
}

.tablica-post-uklad-media {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.8rem;
}

.tablica-post-lewo {
  flex: 1 1 0;
  min-width: 0;
}

.tablica-post-prawo {
  flex: 0 0 min(46%, 480px);
  max-width: 480px;
}

.tablica-media-img,
.tablica-media-wideo,
.tablica-media-audio {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.tablica-media-wideo {
  max-height: 360px;
  background: #000000;
}

.tablica-form-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.tablica-logowanie-box {
  margin-top: 0.8rem;
}

.tablica-form-logowanie,
.tablica-form-post {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.7rem;
}

.tablica-etykieta {
  font-weight: 600;
  color: #f3efef;
}

.tablica-input,
.tablica-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 90, 109, 0.4);
  background: rgba(10, 8, 9, 0.92);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
}

.tablica-textarea {
  resize: vertical;
  min-height: 96px;
}

.tablica-file {
  color: #e6e2e4;
  font-size: 0.95rem;
}

.tablica-akcje-wiersz {
  display: flex;
  justify-content: flex-end;
}

.tablica-btn-subtelny,
.tablica-btn-akcja,
.tablica-btn-usun {
  cursor: pointer;
  padding: 0.45rem 1rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 90, 109, 0.5);
  background: rgba(24, 14, 16, 0.85);
  color: #f3efef;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}

.tablica-btn-subtelny::-webkit-details-marker {
  display: none;
}

.tablica-btn-akcja {
  background: rgba(145, 22, 38, 0.65);
  color: #ffffff;
  font-weight: 700;
}

.tablica-btn-usun {
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
}

.tablica-status-wlasciciel {
  color: #86efac;
  font-size: 0.9rem;
  font-weight: 600;
}

.tablica-komunikat {
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.8rem;
  border-radius: 8px;
  font-weight: 600;
}

.tablica-komunikat.ok {
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: rgba(20, 83, 45, 0.35);
  color: #dcfce7;
}

.tablica-komunikat.blad {
  border: 1px solid rgba(248, 113, 113, 0.65);
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

@media (max-width: 820px) {
  .menu-inne-grupa {
    width: 100%;
    flex-direction: column;
  }

  .menu-inne-przycisk {
    width: 100%;
  }

  .menu-inne-lista {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 0.5rem;
  }

  .tablica-post-uklad-media {
    flex-direction: column;
  }

  .tablica-post-prawo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }
}

/* === KOMPAKTOWE MENU ROZWIJANE INNE === */
.menu-inne-przycisk {
  line-height: 1.68;
}

.menu-inne-lista {
  top: calc(100% + 26px);
  min-width: 196px;
  width: max-content;
  gap: 0.55rem;
  padding: 0.58rem 0.65rem;
  border-radius: 7px;
  border: 1px solid rgba(190, 24, 38, 0.5);
  background: rgba(11, 8, 9, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.92), 0 0 12px rgba(160, 16, 28, 0.22);
}

.menu-inne-lista::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 30px;
}

.menu-glowne .menu-inne-lista a {
  width: 100%;
  min-height: 44px;
  padding: 0.48rem 0.95rem;
  border: 6px solid transparent;
  border-image-source: url('/img/ramka_kosci.png?v=1');
  border-image-slice: 30% 15% 30% 15%;
  border-image-width: 15px 15px;
  border-image-outset: 2px 3px;
  border-image-repeat: stretch;
  border-radius: 6px;
  background-color: #0e0707;
  background-image:
    linear-gradient(rgba(5, 2, 3, 0.56), rgba(5, 2, 3, 0.62)),
    url('/img/ziemia_web.jpg?v=3');
  background-size: 100% 100%, 135px 135px;
  background-position: center;
  background-repeat: no-repeat, repeat;
  background-origin: border-box;
  background-clip: border-box;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.6px;
  white-space: nowrap;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.85));
}

.menu-glowne .menu-inne-lista a:hover,
.menu-glowne .menu-inne-lista a.aktywna {
  color: #ffffff;
  background-image:
    linear-gradient(rgba(22, 4, 7, 0.52), rgba(8, 2, 4, 0.6)),
    url('/img/ziemia_web.jpg?v=3');
  text-shadow: 0 1px 2px #000000, 0 0 7px #ff2638, 0 0 13px rgba(255, 36, 54, 0.9);
  transform: scale(1.02);
  filter: brightness(1.12) drop-shadow(0 0 7px rgba(225, 24, 38, 0.68)) drop-shadow(0 3px 7px rgba(0, 0, 0, 0.9));
}

@media (max-width: 820px) {
  .menu-inne-lista {
    top: auto;
    min-width: 0;
    width: 100%;
    margin-top: 0.45rem;
  }

  .menu-inne-lista::before {
    display: none;
  }
}

/* === INDEKS LEWY TABLICY === */
html {
  scroll-behavior: smooth;
}

.tablica-uklad {
  display: flex;
  align-items: flex-start;
  gap: 2.2rem;
  width: 100%;
}

.tablica-indeks {
  flex: 0 0 250px;
  width: 250px;
  position: sticky;
  top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 10px solid transparent;
  border-image-source: url('/img/ramka_sekcji.png?v=1');
  border-image-slice: 27%;
  border-image-width: 24px;
  border-image-outset: 8px;
  border-image-repeat: round;
  border-radius: 12px;
  background-color: #0b0b0e;
  background-image: linear-gradient(165deg, rgba(28, 28, 33, 0.94) 0%, rgba(12, 12, 15, 0.97) 100%);
  background-origin: border-box;
  background-clip: border-box;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
}

.tablica-indeks h3 {
  margin: 0 0 0.85rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 22, 40, 0.55);
  font-size: 1.05rem;
  color: #f6f2f2;
}

.tablica-indeks-nawigacja {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.tablica-indeks-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 90, 109, 0.45);
  background: rgba(145, 22, 38, 0.35);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tablica-indeks-btn:hover {
  background: rgba(185, 24, 42, 0.62);
  border-color: #ff6b78;
  color: #ffffff;
}

.tablica-indeks-dodaj {
  display: block;
  width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: 1px dashed rgba(255, 107, 120, 0.55);
  background: rgba(255, 71, 90, 0.12);
  color: #ffd6da;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.tablica-indeks-dodaj:hover {
  background: rgba(255, 71, 90, 0.28);
  color: #ffffff;
}

.tablica-indeks-pusto {
  margin: 0.4rem 0 0 0;
  font-size: 0.88rem;
  color: #a1a1aa;
}

.tablica-indeks-lista {
  list-style: none;
  margin: 0.25rem 0 0 0;
  padding: 0 0.25rem 0 0;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 38, 38, 0.6) #0b0b0e;
}

.tablica-indeks-lista li {
  margin: 0;
}

.tablica-indeks-link {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tablica-indeks-link:hover {
  border-color: rgba(255, 90, 109, 0.55);
  background: rgba(145, 22, 38, 0.28);
}

.tablica-indeks-data {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff8f9b;
  font-variant-numeric: tabular-nums;
}

.tablica-indeks-skrot {
  font-size: 0.83rem;
  line-height: 1.3;
  color: #e6e2e4;
  word-break: break-word;
}

.tablica-kolumna-posty {
  flex: 1 1 0;
  min-width: 0;
}

.tablica-post-kotwica {
  scroll-margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .tablica-uklad {
    flex-direction: column;
    gap: 1.8rem;
  }

  .tablica-indeks {
    position: static;
    flex: 0 0 auto;
    width: 100%;
  }

  .tablica-indeks-lista {
    max-height: 220px;
  }
}

