/* ═══════════════════════════════════════════════════════
   FAE TEMPLATE – SunLight CMS 8
   Exkluzivní temný Fae fantasy motiv
   Autor: Ententeak (https://ententeak.cz/)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@700;900&family=IM+Fell+English:ital@0;1&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --fae-gold:          #d4af37;
  --fae-gold-light:    #f5eaad;
  --fae-gold-dark:     #8f731c;
  --fae-blue:          #2b6cb0;
  --fae-blue-glow:     #4299e1;
  --fae-blue-light:    #90cdf4;
  --fae-bg-dark:       #04060b;
  --fae-bg-panel:      rgba(6, 11, 20, 0.95);
  --fae-panel-border:  rgba(66, 153, 225, 0.4);
  --fae-gold-border:   rgba(212, 175, 55, 0.45);
  --fae-text-bright:   #f0f4fd;
  --fae-text-muted:    #a0aec0;
  --fae-text-gold:     #f5eaad;
  --fae-shadow:        0 10px 40px rgba(0, 0, 0, 0.95);
  --fae-radius:        8px;
  --fae-container-width: 90%;
  --fae-container-max-width: 1800px;
}

/* ── BASE & RESET (CRITICAL OVERRIDES) ───────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, 
body, 
body.fae-theme,
html body {
  background-color: #04060b !important;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(20, 50, 90, 0.45) 0%, transparent 70%),
    url('images/pozadi_stranky.png') !important;
  background-repeat: repeat-y !important;
  background-position: center 40% !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: #f0f4fd !important;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  overflow-x: hidden;
}

a {
  color: var(--fae-blue-light) !important;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--fae-gold-light) !important;
  text-shadow: 0 0 10px rgba(245, 234, 173, 0.6) !important;
}

.site-header {
  position: relative;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  overflow: hidden;
}

.header-overlay {
  display: none !important;
}

.site-title-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  width: var(--fae-container-width, 90%) !important;
  max-width: var(--fae-container-max-width, 1800px) !important;
  margin: 0 auto;
  padding: 0 1.5rem !important;
  animation: faeFadeIn 0.8s ease-out;
}

.fae-crest {
  font-size: 1.8rem;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.6em;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(66, 153, 225, 0.6) !important;
  margin-bottom: 0.5rem;
  animation: faeGlowPulse 4s ease-in-out infinite;
}

.site-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem) !important;
  font-weight: 900 !important;
  line-height: 1.15;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.site-title a {
  color: var(--fae-gold-light) !important;
  text-shadow: 
    0 0 20px rgba(66, 153, 225, 0.8),
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(212, 175, 55, 0.5) !important;
}

.site-title a:hover {
  color: #ffffff !important;
  text-shadow: 
    0 0 30px rgba(144, 205, 244, 1),
    0 0 50px rgba(212, 175, 55, 0.8) !important;
}

/* Site Logo */
.site-title-logo {
  margin: 0 !important;
  line-height: 0 !important;
  display: block !important;
}

.site-title-logo a {
  display: block !important;
  width: 100% !important;
  text-shadow: none !important;
  line-height: 0 !important;
}

.site-logo {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto;
  filter: none !important;
  transition: none !important;
}

.site-title-logo a:hover .site-logo {
  filter: none !important;
  transform: none !important;
}

.site-subtitle {
  font-family: 'Cinzel', serif !important;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem) !important;
  color: var(--fae-blue-light) !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  position: relative;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  background: rgba(7, 12, 22, 0.9) !important;
  border: 1px solid var(--fae-gold) !important;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--fae-gold-light) !important;
  margin: 5px 0;
}

/* ── NAVIGATION ─────────────────────────────────────── */
.main-nav {
  position: relative;
  z-index: 5;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  width: var(--fae-container-width, 90%) !important;
  max-width: var(--fae-container-max-width, 1800px) !important;
  margin: 0 auto;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
}

.nav-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background-image: url('images/stin.png') !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.85));
  overflow: visible !important;
  box-sizing: border-box;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.main-nav li a,
.main-nav li span {
  display: inline-block;
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fae-gold-light) !important;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(180deg, rgba(14, 25, 45, 0.95) 0%, rgba(6, 12, 24, 0.95) 100%) !important;
  border: 1px solid var(--fae-gold-border) !important;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.2) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  transition: all 0.25s ease;
}

.main-nav li a:hover {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(30, 60, 105, 0.98) 0%, rgba(12, 28, 54, 0.98) 100%) !important;
  border-color: var(--fae-gold) !important;
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.5), 0 0 12px rgba(212, 175, 55, 0.4) !important;
  text-shadow: 0 0 10px rgba(144, 205, 244, 0.9), 0 0 20px rgba(212, 175, 55, 0.6) !important;
  transform: translateY(-2px);
}

.main-nav li.active > a,
.main-nav li.current > a {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(40, 85, 145, 0.98) 0%, rgba(18, 42, 78, 0.98) 100%) !important;
  border-color: var(--fae-gold-light) !important;
  box-shadow: 0 0 15px rgba(66, 153, 225, 0.8), inset 0 0 8px rgba(212, 175, 55, 0.5) !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 25px rgba(66, 153, 225, 0.9) !important;
}

/* ── TOP BAR BOXES (Inside .main-nav) ───────────────── */
.top-bar-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  overflow: visible !important;
}

.boxes-top {
  overflow: visible !important;
}

.nav-container > .top-bar-boxes:only-child {
  margin-top: 0;
}

.top-bar-boxes .box {
  min-height: auto !important;
  filter: none !important;
  background: rgba(14, 25, 45, 0.95) !important;
  border: 1px solid var(--fae-gold-border) !important;
  border-radius: 4px !important;
  padding: 0.6rem 1.2rem !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.2) !important;
  color: var(--fae-text-muted) !important;
  font-size: 0.9rem !important;
}

.top-bar-boxes .box::before,
.top-bar-boxes .box::after {
  display: none !important;
}

.top-bar-boxes .box-title {
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--fae-gold-light) !important;
  margin-bottom: 0.35rem !important;
  padding-bottom: 0.2rem !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* ── TOP BOXES & SECTION ────────────────────────────── */
.top-boxes-wrapper {
  width: var(--fae-container-width, 90%);
  max-width: var(--fae-container-max-width, 1800px);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.top-boxes-wrapper.top-section-menu {
  display: flex;
  justify-content: center;
}

.top-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* ── HORIZONTAL BUTTON CAROUSEL & SLIDER (upload/buttonky) ── */
.fae-btn-carousel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  gap: 0.6rem;
  box-sizing: border-box;
}

.fae-carousel-track {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  display: flex;
  align-items: center;
  padding: 1rem 0.5rem;
  box-sizing: border-box;
}

.fae-carousel-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}

/* Tlačítka se šipkami < > */
.fae-carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(14, 25, 45, 0.95) 0%, rgba(6, 12, 24, 0.95) 100%);
  border: 1px solid var(--fae-gold-border);
  color: var(--fae-gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(212, 175, 55, 0.3);
  transition: all 0.25s ease;
  user-select: none;
  padding: 0;
}

.fae-carousel-arrow svg {
  display: block;
  stroke: var(--fae-gold-light);
  transition: stroke 0.25s ease, transform 0.25s ease;
}

.fae-carousel-arrow:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(30, 60, 105, 0.98) 0%, rgba(12, 28, 54, 0.98) 100%);
  border-color: var(--fae-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 25px rgba(66, 153, 225, 0.5);
  transform: scale(1.1);
}

.fae-carousel-arrow:hover:not(:disabled) svg {
  stroke: #ffffff;
}

.fae-carousel-arrow:active:not(:disabled) {
  transform: scale(0.95);
}

.fae-carousel-arrow:disabled,
.fae-carousel-arrow.is-disabled {
  opacity: 0.18;
  cursor: default;
  pointer-events: none;
  border-color: rgba(212, 175, 55, 0.15);
  box-shadow: none;
}

/* Pokud se menu celé vejde, šipky se skryjí a obsah se vycentruje */
.fae-btn-carousel.no-overflow .fae-carousel-arrow {
  display: none !important;
}

.fae-btn-carousel.no-overflow .fae-carousel-track {
  justify-content: center;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.fae-btn-menu,
.fae-button-menu {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin: 0 auto;
  padding: 0 0.5rem;
  list-style: none !important;
  width: max-content;
  box-sizing: border-box;
}

.fae-btn-menu li,
.fae-button-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0 !important;
}

.fae-btn-menu a,
.fae-button-menu a,
a.fae-btn {
  display: inline-block;
  line-height: 0;
  max-height: 130px;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative;
  border-radius: 6px;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease;
}

.fae-btn-menu img,
.fae-button-menu img,
a.fae-btn img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--fae-btn-max-w, 240px);
  max-height: 130px !important;
  object-fit: contain;
  flex-shrink: 0 !important;
  transition: filter 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
  will-change: filter, transform;
}

/* 1. Hover Effect: Jemné zlaté podsvícení / záře */
.fae-btn-menu a:hover img,
.fae-button-menu a:hover img,
a.fae-btn:hover img {
  filter: 
    drop-shadow(0 0 5px rgba(212, 175, 55, 0.75))
    drop-shadow(0 0 11px rgba(245, 234, 173, 0.4))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.85));
  transform: translateY(-2px) scale(1.03);
}

/* 2. Active Effect: Jemné světle modré magické podsvícení / záře */
.fae-btn-menu a.active img,
.fae-btn-menu a.current img,
.fae-btn-menu li.active a img,
.fae-btn-menu li.current a img,
.fae-button-menu a.active img,
.fae-button-menu a.current img,
.fae-button-menu li.active a img,
.fae-button-menu li.current a img,
a.fae-btn.active img,
a.fae-btn.current img {
  filter: 
    drop-shadow(0 0 5px rgba(66, 153, 225, 0.8))
    drop-shadow(0 0 10px rgba(144, 205, 244, 0.45))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

/* 3. Active + Hover: Jemná modro-zlatá záře */
.fae-btn-menu a.active:hover img,
.fae-btn-menu a.current:hover img,
.fae-btn-menu li.active a:hover img,
.fae-btn-menu li.current a:hover img,
.fae-button-menu a.active:hover img,
.fae-button-menu a.current:hover img,
.fae-button-menu li.active a:hover img,
.fae-button-menu li.current a:hover img,
a.fae-btn.active:hover img,
a.fae-btn.current:hover img {
  filter: 
    drop-shadow(0 0 6px rgba(144, 205, 244, 0.85))
    drop-shadow(0 0 12px rgba(212, 175, 55, 0.45))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
  transform: translateY(-2px) scale(1.03);
}

/* ── VERTICAL BUTTON MENU (upload/knihovna & sidebars) ── */
.fae-vmenu-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.25rem;
}

/* Automatické roztažení vertikálního menu přes padding sidebaru pro přesah tlačítek přes rámeček */
.sidebar .fae-vmenu-wrap,
#site-sidebar .fae-vmenu-wrap,
#sidebar-left .fae-vmenu-wrap,
.boxes-sidebar .fae-vmenu-wrap,
.box .fae-vmenu-wrap,
.box-item .fae-vmenu-wrap {
  margin-left: -1.8rem !important;
  margin-right: -1.8rem !important;
  width: calc(100% + 3.6rem) !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

.fae-vmenu center,
.fae-vmenu-wrap center {
  display: contents;
}

.fae-vmenu-header {
  width: 100%;
  margin-bottom: 0.6rem;
  text-align: center;
  display: flex;
  justify-content: center;
}

.fae-vmenu-header a {
  display: inline-block;
  line-height: 0;
  width: var(--fae-vbtn-width, 272px);
  max-width: min(92vw, var(--fae-vbtn-width, 272px));
  margin: 0 auto;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease;
}

.fae-vmenu-header img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
  transition: filter 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: filter, transform;
}

.fae-vmenu-header a:hover img {
  filter: 
    drop-shadow(0 0 10px rgba(212, 175, 55, 0.95))
    drop-shadow(0 0 24px rgba(245, 234, 173, 0.75))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
  transform: translateY(-2px) scale(1.02);
}

.fae-vmenu,
.fae-vertical-menu,
.sidebar .fae-vmenu,
#site-sidebar .fae-vmenu,
#sidebar-left .fae-vmenu,
.box .fae-vmenu,
.box-item .fae-vmenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  box-sizing: border-box;
  overflow: visible !important;
}

.fae-vmenu li,
.fae-vertical-menu li,
.sidebar .fae-vmenu li,
#site-sidebar .fae-vmenu li,
#sidebar-left .fae-vmenu li,
.box .fae-vmenu li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-bottom: none !important;
  display: flex;
  justify-content: center;
  width: 100%;
}

.fae-vmenu li::before,
.fae-vertical-menu li::before,
.sidebar .fae-vmenu li::before,
#site-sidebar .fae-vmenu li::before,
#sidebar-left .fae-vmenu li::before,
.box .fae-vmenu li::before {
  display: none !important;
  content: none !important;
}

.fae-vmenu a,
.fae-vertical-menu a,
a.fae-vbtn {
  display: inline-block;
  line-height: 0;
  width: var(--fae-vbtn-width, 272px);
  max-width: min(92vw, var(--fae-vbtn-width, 272px));
  margin: 0 auto;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: relative;
  border-radius: 6px;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease;
}

.fae-vmenu img,
.fae-vertical-menu img,
a.fae-vbtn img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  transition: filter 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
  will-change: filter, transform;
}

/* 1. Hover Effect: Zlaté podsvícení / záře + přizvednutí */
.fae-vmenu a:hover img,
.fae-vertical-menu a:hover img,
a.fae-vbtn:hover img {
  filter: 
    drop-shadow(0 0 5px rgba(212, 175, 55, 0.75))
    drop-shadow(0 0 11px rgba(245, 234, 173, 0.4))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.85));
  transform: translateY(-2px) scale(1.03);
}

/* 2. Active Effect: Světle modré podsvícení / záře */
.fae-vmenu a.active img,
.fae-vmenu a.current img,
.fae-vmenu li.active a img,
.fae-vmenu li.current a img,
.fae-vertical-menu a.active img,
.fae-vertical-menu a.current img,
.fae-vertical-menu li.active a img,
.fae-vertical-menu li.current a img,
a.fae-vbtn.active img,
a.fae-vbtn.current img {
  filter: 
    drop-shadow(0 0 5px rgba(66, 153, 225, 0.8))
    drop-shadow(0 0 10px rgba(144, 205, 244, 0.45))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.8));
}

/* 3. Active + Hover: Zářivá modro-zlatá aura + přizvednutí */
.fae-vmenu a.active:hover img,
.fae-vmenu a.current:hover img,
.fae-vmenu li.active a:hover img,
.fae-vmenu li.current a:hover img,
.fae-vertical-menu a.active:hover img,
.fae-vertical-menu a.current:hover img,
.fae-vertical-menu li.active a:hover img,
.fae-vertical-menu li.current a:hover img,
a.fae-vbtn.active:hover img,
a.fae-vbtn.current:hover img {
  filter: 
    drop-shadow(0 0 6px rgba(144, 205, 244, 0.85))
    drop-shadow(0 0 12px rgba(212, 175, 55, 0.45))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
  transform: translateY(-2px) scale(1.03);
}

/* Odstranění těžkého rámu a pozadí boxu, pokud box obsahuje obrázkové menu */
.top-boxes .box:has(.fae-btn-menu),
.top-boxes .box:has(.fae-button-menu),
.top-boxes .box:has(.fae-btn-carousel),
.top-boxes .box-item:has(.fae-btn-menu),
.top-boxes .box-item:has(.fae-button-menu),
.top-boxes .box-item:has(.fae-btn-carousel),
.top-bar-boxes .box:has(.fae-btn-menu),
.top-bar-boxes .box:has(.fae-button-menu),
.top-bar-boxes .box:has(.fae-btn-carousel),
.top-bar-boxes .box-item:has(.fae-btn-menu),
.top-bar-boxes .box-item:has(.fae-button-menu),
.top-bar-boxes .box-item:has(.fae-btn-carousel) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  min-height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  padding: 0.2rem 0 !important;
}

.top-boxes .box:has(.fae-btn-menu)::before,
.top-boxes .box:has(.fae-btn-menu)::after,
.top-boxes .box:has(.fae-button-menu)::before,
.top-boxes .box:has(.fae-button-menu)::after,
.top-boxes .box:has(.fae-btn-carousel)::before,
.top-boxes .box:has(.fae-btn-carousel)::after,
.top-boxes .box-item:has(.fae-btn-menu)::before,
.top-boxes .box-item:has(.fae-btn-menu)::after,
.top-boxes .box-item:has(.fae-button-menu)::before,
.top-boxes .box-item:has(.fae-button-menu)::after,
.top-boxes .box-item:has(.fae-btn-carousel)::before,
.top-boxes .box-item:has(.fae-btn-carousel)::after {
  display: none !important;
}

/* Responsivní úpravy pro tlačítka při vodorovném posouvání */
@media (max-width: 900px) {
  .fae-btn-menu,
  .fae-button-menu {
    gap: 0.6rem 1rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 540px) {
  .fae-btn-menu,
  .fae-button-menu {
    gap: 0.5rem 0.8rem;
    padding: 0.5rem 0.6rem;
  }

  .fae-btn-menu img,
  .fae-button-menu img,
  a.fae-btn img {
    max-height: 100px !important;
    max-width: 180px;
  }
}

/* ── MAIN LAYOUT WRAPPER ────────────────────────────── */
.site-wrapper {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.8rem;
  width: var(--fae-container-width, 90%);
  max-width: var(--fae-container-max-width, 1800px);
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  align-items: start;
}

.site-wrapper.no-sidebar {
  grid-template-columns: 1fr;
}

/* ── SIDEBAR & BOXES ────────────────────────────────── */
.sidebar, 
#site-sidebar, 
#sidebar-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar > div, 
#site-sidebar > div, 
#sidebar-left > div, 
.box {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 2.2rem 1.8rem 2.8rem 1.8rem !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85));
  position: relative;
  min-height: 280px;
  container-type: inline-size;
}

/* Mid texture repeating layer (bounded between top and bot so it never sticks out) */
.sidebar > div::before, 
#site-sidebar > div::before, 
#sidebar-left > div::before, 
.box::before {
  content: '';
  position: absolute;
  top: 85px;
  bottom: 100px;
  top: calc(100cqw * 200 / 656);
  bottom: calc(100cqw * 220 / 656);
  left: 0;
  right: 0;
  background-image: url('images/sidebar-mid.png') !important;
  background-position: center top !important;
  background-repeat: repeat-y !important;
  background-size: 100% auto !important;
  z-index: 0;
  pointer-events: none;
}

/* Top header and bottom footer decorative layers (drawn over mid) */
.sidebar > div::after, 
#site-sidebar > div::after, 
#sidebar-left > div::after, 
.box::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: 
    url('images/sidebar-top.png'),
    url('images/sidebar-bot.png') !important;
  background-position: 
    top center,
    bottom center !important;
  background-repeat: 
    no-repeat,
    no-repeat !important;
  background-size: 
    100% auto,
    100% auto !important;
  z-index: 1;
  pointer-events: none;
}

/* Ensure interactive content & text is on top of decorative frame layers */
.sidebar > div > *, 
#site-sidebar > div > *, 
#sidebar-left > div > *, 
.box > * {
  position: relative;
  z-index: 2;
}

/* FORCE HIGH-CONTRAST READABLE TEXT IN SIDEBAR & RPG WIDGETS */
.sidebar, .sidebar *, 
#site-sidebar, #site-sidebar *, 
#sidebar-left, #sidebar-left *, 
.box, .box *, 
.box-content, .box-content *,
[class*="rpg-"], [class*="rpg-"] * {
  color: #e6ecf8 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.sidebar h3, 
#site-sidebar h3, 
#sidebar-left h3, 
.box-title, 
.box h2, 
.box h3 {
  font-family: 'Cinzel', serif !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--fae-gold-border) !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 2px 4px rgba(0, 0, 0, 0.9) !important;
}

.sidebar ul, #site-sidebar ul, #sidebar-left ul {
  list-style: none;
}

.sidebar li, #site-sidebar li, #sidebar-left li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(66, 153, 225, 0.2);
}

.sidebar li:last-child {
  border-bottom: none;
}

.sidebar a, #site-sidebar a, #sidebar-left a, .box a, [class*="rpg-"] a {
  color: var(--fae-blue-light) !important;
}

.sidebar a:hover, #site-sidebar a:hover, #sidebar-left a:hover, .box a:hover, [class*="rpg-"] a:hover {
  color: var(--fae-gold-light) !important;
  text-shadow: 0 0 8px rgba(245, 234, 173, 0.6) !important;
}

/* ── CONTENT PANEL & TEXT READABILITY FIXES ─────────── */
.content-panel, 
#main-content, 
#content {
  background-color: #03070f !important;
  background-image: url('images/pozadi-text-seamless.png') !important;
  background-position: center top !important;
  background-repeat: repeat !important;
  background-size: 512px auto !important;
  border: 1px solid var(--fae-panel-border) !important;
  border-radius: var(--fae-radius);
  padding: 2.6rem 3rem;
  box-shadow: var(--fae-shadow) !important;
  position: relative;
  min-height: 500px;
  color: #f0f4fd !important;
}

.content-inner {
  position: relative;
  z-index: 5;
}

/* ── ROHOVÉ PŘEKRYVY PRO CONTENT PANEL (roh2 - 40 % velikost & přesah) ────────── */
.content-corner {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: 500px;
  height: 500px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

.content-corner.corner-tl {
  top: -74px;
  left: -49px;
  background-image: url('images/content-corner-tl.png');
  background-position: top left;
  background-size: 500px 500px;
}

.content-corner.corner-tr {
  top: -74px;
  right: -49px;
  background-image: url('images/content-corner-tr.png');
  background-position: top right;
  background-size: 500px 500px;
}

.content-corner.corner-bl {
  bottom: -74px;
  left: -49px;
  background-image: url('images/content-corner-bl.png');
  background-position: bottom left;
  background-size: 500px 500px;
}

.content-corner.corner-br {
  bottom: -74px;
  right: -49px;
  background-image: url('images/content-corner-br.png');
  background-position: bottom right;
  background-size: 500px 500px;
}

@media (max-width: 1000px) {
  .content-corner {
    width: 380px;
    height: 380px;
  }
  .content-corner.corner-tl {
    top: -56px;
    left: -37px;
    background-size: 380px 380px;
  }
  .content-corner.corner-tr {
    top: -56px;
    right: -37px;
    background-size: 380px 380px;
  }
  .content-corner.corner-bl {
    bottom: -56px;
    left: -37px;
    background-size: 380px 380px;
  }
  .content-corner.corner-br {
    bottom: -56px;
    right: -37px;
    background-size: 380px 380px;
  }
}

@media (max-width: 800px) {
  .content-panel, 
  #main-content, 
  #content {
    padding: 2.2rem 2rem;
  }
  .content-corner {
    width: 280px;
    height: 280px;
  }
  .content-corner.corner-tl {
    top: -41px;
    left: -28px;
    background-size: 280px 280px;
  }
  .content-corner.corner-tr {
    top: -41px;
    right: -28px;
    background-size: 280px 280px;
  }
  .content-corner.corner-bl {
    bottom: -41px;
    left: -28px;
    background-size: 280px 280px;
  }
  .content-corner.corner-br {
    bottom: -41px;
    right: -28px;
    background-size: 280px 280px;
  }
}

@media (max-width: 540px) {
  .content-panel, 
  #main-content, 
  #content {
    padding: 1.8rem 1.4rem;
  }
  .content-corner {
    width: 190px;
    height: 190px;
  }
  .content-corner.corner-tl {
    top: -28px;
    left: -19px;
    background-size: 190px 190px;
  }
  .content-corner.corner-tr {
    top: -28px;
    right: -19px;
    background-size: 190px 190px;
  }
  .content-corner.corner-bl {
    bottom: -28px;
    left: -19px;
    background-size: 190px 190px;
  }
  .content-corner.corner-br {
    bottom: -28px;
    right: -19px;
    background-size: 190px 190px;
  }
}

/* FORCE HIGH-CONTRAST READABLE TEXT IN CONTENT AREA */
.content-panel, .content-panel p, .content-panel span, .content-panel div, .content-panel li, 
.content-panel td, .content-panel th, .content-panel label, .content-panel small, .content-panel strong, 
.content-panel b, .content-panel em, .content-panel i,
#main-content, #main-content p, #main-content span, #main-content div, #main-content li, 
#main-content td, #main-content th, #main-content label, #main-content small, #main-content strong,
#content, #content p, #content span, #content div, #content li, 
#content td, #content th, #content label, #content small, #content strong {
  color: #e6ecf8 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* ── BREADCRUMBS ────────────────────────────────────── */
.breadcrumbs-wrap {
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

.breadcrumbs {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--fae-text-muted);
}

.breadcrumbs a {
  color: var(--fae-gold-light) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(66, 153, 225, 0.8);
}

.content-panel h1, .content-panel h2, .content-panel h3, .content-panel h4, .content-panel h5, .content-panel h6,
#main-content h1, #main-content h2, #main-content h3, #main-content h4, #main-content h5, #main-content h6,
#content h1, #content h2, #content h3, #content h4, #content h5, #content h6,
.heading {
  font-family: 'Cinzel', serif !important;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.04em;
  margin: 1.4rem 0 0.8rem;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6), 0 2px 5px rgba(0, 0, 0, 0.95) !important;
}

.content-panel h1, #main-content h1, #content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--fae-gold-border) !important;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

.content-panel h2, #main-content h2, #content h2 {
  font-size: 1.5rem !important;
  color: var(--fae-gold-light) !important;
}

.content-panel h3, #main-content h3, #content h3 {
  font-size: 1.25rem !important;
  color: var(--fae-blue-light) !important;
}

.content-panel p, #main-content p, #content p {
  margin-bottom: 1.2rem;
}

.content-panel img, #main-content img, #content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--fae-gold-border);
}

.content-panel blockquote, #main-content blockquote, #content blockquote {
  background: rgba(14, 25, 45, 0.7) !important;
  border-left: 4px solid var(--fae-gold) !important;
  padding: 1rem 1.4rem;
  margin: 1.2rem 0;
  font-style: italic;
  border-radius: 0 6px 6px 0;
  color: #f5eaad !important;
}

.content-panel ul, .content-panel ol, #main-content ul, #main-content ol, #content ul, #content ol {
  margin: 1rem 0 1.2rem 1.8rem;
}

/* ── TABLES ──────────────────────────────────────────── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.content-panel table, #main-content table, #content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: rgba(4, 8, 16, 0.85) !important;
}

.content-panel th, .content-panel td,
#main-content th, #main-content td,
#content th, #content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--fae-panel-border) !important;
  text-align: left;
}

.content-panel th, #main-content th, #content th {
  background: linear-gradient(180deg, rgba(20, 45, 80, 0.95) 0%, rgba(10, 22, 42, 0.95) 100%) !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.9rem !important;
  color: var(--fae-gold-light) !important;
  letter-spacing: 0.05em;
}

.content-panel tr:nth-child(even) td, #main-content tr:nth-child(even) td, #content tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03) !important;
}

.content-panel tr:hover td, #main-content tr:hover td, #content tr:hover td {
  background: rgba(66, 153, 225, 0.12) !important;
}

/* ── FORMS & BUTTONS ─────────────────────────────────── */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="search"], 
textarea, 
select {
  width: 100%;
  background: rgba(5, 10, 20, 0.92) !important;
  border: 1px solid var(--fae-panel-border) !important;
  color: #f0f4fd !important;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--fae-gold) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5) !important;
  background: rgba(8, 16, 32, 0.98) !important;
}

button, 
input[type="submit"], 
input[type="button"], 
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1e4d8c 0%, #133461 50%, #0b203e 100%) !important;
  border: 1px solid var(--fae-gold) !important;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.2s ease;
}

button:hover, 
input[type="submit"]:hover, 
.btn:hover {
  background: linear-gradient(180deg, #2b6cb0 0%, #1e4d8c 50%, #133461 100%) !important;
  box-shadow: 0 0 12px rgba(66, 153, 225, 0.7) !important;
  transform: translateY(-1px);
}

/* ── SUNLIGHT MESSAGES ───────────────────────────────── */
.message {
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.message.success {
  background: rgba(20, 80, 40, 0.5) !important;
  border: 1px solid #2e8b57 !important;
  color: #a3e6be !important;
}

.message.error {
  background: rgba(120, 20, 20, 0.5) !important;
  border: 1px solid #b22222 !important;
  color: #f87171 !important;
}

.message.warning {
  background: rgba(120, 90, 20, 0.5) !important;
  border: 1px solid #d4af37 !important;
  color: #fef08a !important;
}

.message.info {
  background: rgba(20, 60, 110, 0.5) !important;
  border: 1px solid #3182ce !important;
  color: #90cdf4 !important;
}

/* ── FAE RPG HELPER & UTILITY CLASSES ────────────────── */
/* Fae Banner Strip */
.fae-banner {
  background-image: url('images/buttonek.png') !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Cinzel Decorative', 'Cinzel', serif !important;
  font-size: 1.2rem !important;
  color: var(--fae-gold-light) !important;
  margin: 1.5rem 0;
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.7) !important;
}

/* Fae Character Frames */
.fae-frame-container {
  position: relative;
  display: inline-block;
}

.fae-frame-1, .fae-frame-2, .fae-frame-3 {
  position: relative;
  padding: 25px;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  display: inline-block;
}

.fae-frame-1 { background-image: url('images/frames/frame-1.png') !important; }
.fae-frame-2 { background-image: url('images/frames/frame-2.png') !important; }
.fae-frame-3 { background-image: url('images/frames/frame-3.png') !important; }

/* Discord Button Widget */
.fae-discord-btn {
  display: inline-block;
  width: 140px;
  height: 140px;
  background-image: url('images/discord-button-3d-fae.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.fae-discord-btn:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 15px rgba(66, 153, 225, 0.8));
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: rgba(4, 6, 11, 0.98) !important;
  border-top: 2px solid var(--fae-gold-border) !important;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-divider {
  display: none !important;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  padding: 0;
}

.footer-links li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--fae-text-gold, #f5eaad) !important;
  background-image: url('images/buttonek.png') !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  padding: 0.6rem 2.4rem !important;
  min-width: 170px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease !important;
}

.footer-links a:hover {
  color: #ffffff !important;
  transform: scale(1.05);
  filter: brightness(1.2) drop-shadow(0 0 10px rgba(245, 234, 173, 0.5)) !important;
}

.back-to-top {
  display: inline-block;
  font-family: 'Cinzel', serif !important;
  font-size: 0.8rem !important;
  color: var(--fae-gold) !important;
  margin-top: 0.5rem;
}

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes faeFadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes faeGlowPulse {
  0%, 100% { text-shadow: 0 0 15px rgba(212, 175, 55, 0.8), 0 0 30px rgba(66, 153, 225, 0.6); }
  50%       { text-shadow: 0 0 25px rgba(245, 234, 173, 1), 0 0 45px rgba(66, 153, 225, 0.9); }
}



/* ── STICKY HORIZONTÁLNÍ MENU (Trvale viditelné na PC i mobilu) ───────────────── */
.main-nav,
#fae-main-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  display: block !important;
  width: var(--fae-container-width, 90%) !important;
  max-width: var(--fae-container-max-width, 1800px) !important;
  margin: 0 auto !important;
  padding: 0 1.5rem !important;
  box-sizing: border-box !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  min-height: auto !important;
}

.main-nav .nav-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0.5rem 1rem !important;
  background-image: url('images/stin.png') !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.85));
  box-sizing: border-box !important;
  display: block !important;
}

.main-nav ul,
.main-nav .nav-list {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav li a,
.main-nav li span {
  display: inline-block !important;
  font-family: 'Cinzel', serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #f5eaad !important;
  padding: 0.5rem 1.1rem !important;
  background: linear-gradient(180deg, rgba(27, 44, 72, 0.95) 0%, rgba(13, 24, 42, 0.95) 100%) !important;
  border: 1px solid var(--fae-gold-border) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(212, 175, 55, 0.3) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  transition: all 0.2s ease !important;
}

/* ── RESPONSIVE STYLES (Breakpoint 1024px pro všechny telefony i tablety) ─── */
@media (max-width: 1024px) {
  .site-header {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
  }

  .site-title-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 1rem !important;
  }

  .site-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
    padding: 0 1rem !important;
  }

  /* 1. HORIZONTÁLNÍ MENU — TRVALE VIDITELNÉ A STICKY */
  .main-nav,
  #fae-main-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  .main-nav .nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.4rem 0.6rem !important;
    background-color: transparent !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    display: block !important;
  }

  .main-nav ul,
  .main-nav .nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .main-nav li a,
  .main-nav li span {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    text-align: center !important;
    width: auto !important;
  }

  /* 2. SIDEBAR WRAPPER (Garantovaně nahoře nad obsahem) */
  .sidebar-wrapper {
    order: 1 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar-toggle-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }

  /* 3. HAMBURGER TLAČÍTKO - Statické, nahoře nad obsahem, nepřekrývá nic */
  .nav-toggle,
  #fae-nav-toggle {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0.85rem 1.2rem !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #f5eaad !important;
    background: linear-gradient(180deg, #1e2c48 0%, #0d182a 100%) !important;
    border: 2px solid var(--fae-gold) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
    margin: 0 !important;
  }

  .nav-toggle .hamburger-bar {
    display: inline-block !important;
    width: 18px !important;
    height: 2px !important;
    background: var(--fae-gold) !important;
    margin: 2px 0 !important;
  }

  .nav-toggle .toggle-text {
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    color: #f5eaad !important;
  }

  /* 4. VERTIKÁLNÍ SIDEBAR — NA MOBILU VÝCHOZÍ SKRYTÝ (!IMPORTANT) */
  .sidebar,
  #site-sidebar,
  #sidebar-left {
    display: none !important;
    width: 100% !important;
    margin-top: 0.8rem !important;
    margin-bottom: 1rem !important;
  }

  /* ROZBALENÝ STAV PO KLIKNUTÍ NA HAMBURGER TLAČÍTKO */
  .sidebar.sidebar-open,
  #site-sidebar.sidebar-open,
  #sidebar-left.sidebar-open {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.2rem !important;
  }

  /* 5. HLAVNÍ OBSAH STRÁNKY */
  .content-panel,
  #main-content,
  #content {
    order: 2 !important;
    width: 100% !important;
    padding: 1.8rem 4% !important;
  }
}
