/* =====================================================================
   Šablona "nights_joy" - tmavý rockový vzhled kapely The Night's Joy
   (téměř černé pozadí, rozžhavená červenooranžová, jevištní jantarová,
   Oswald + Inter). Kostra a názvy tříd vycházejí z šablony combo_2026
   (stejné shortcode výstupy), proto jsou barvy řízené proměnnými níže.
   Bez Bootstrapu. Sekce:
     1. Proměnné a základ        6. Obsah stránek (WYSIWYG, editor styly)
     2. Topbar, hlavička, menu   7. Shortcody (členové, repertoár, termíny...)
     3. Tlačítka, štítky         8. Formuláře (core-form)
     4. Patička, cookie lišta    9. Galerie, MP3 přehrávač
     5. Rozvržení stránek       10. Responsive
    11. Lightbox                12. Vzhled Night's Joy (úvod, logo, přebití)
   ===================================================================== */

/* ---------- 1. Proměnné a základ ---------- */
:root {
  --bg: #0a0a0b;
  --bg-warm: #111113;
  --bg-card: #1a1a1d;
  --bg-dark: #050506;
  --ink: #ece8df;
  --ink-soft: #bcb7ac;
  --ink-muted: #8d897f;
  --line: rgba(236, 232, 223, 0.12);
  --line-strong: rgba(236, 232, 223, 0.26);
  --accent: #e0472b;          /* přepisuje layout.latte z nastavení nj_accent_color */
  --accent-soft: #f05a3d;
  --gold: #f0a93a;
  --gold-soft: #f0a93a;
  --cream: #ece8df;
  --paper: #151517;
  --serif: "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-feature-settings: "liga" 1, "kern" 1;
  -webkit-font-smoothing: antialiased;
}

body.nav-locked { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-soft); }
p { margin: 0 0 1em; line-height: 1.7; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); }
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; margin: 0;
}
h2 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 1.6em 0 .5em;
}
h3 { font-size: 1.4rem; font-weight: 600; margin: 1.4em 0 .5em; }
h4 {
  font-family: var(--sans); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 1.4em 0 .6em;
}
/* Kurzíva (<em>, tlačítko Kurzíva v TinyMCE) = vínová jako v návrhu; platí i v editoru. */
em { font-style: italic; color: var(--accent); }
h1 em, h2 em { font-weight: 600; }

.muted { color: var(--ink-muted); font-family: var(--sans); font-size: .95rem; }

.page { max-width: 1400px; margin: 0 auto; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; position: relative; }
main { flex: 1 0 auto; }

/* ---------- 2. Topbar, hlavička, menu ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--pad); background: var(--bg-dark); color: var(--cream);
  font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .06em;
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a {
  color: var(--cream); text-decoration: none; display: inline-flex; align-items: center;
  gap: 5px; opacity: .75; transition: opacity .3s;
}
.topbar-right a:hover { opacity: 1; color: var(--cream); }
.topbar .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-soft); }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad); border-bottom: 1px solid var(--line); position: relative;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-num {
  font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .15em;
  color: var(--accent); border: 1px solid var(--accent); padding: 3px 6px; border-radius: 2px;
}
.brand-text { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; }
.brand-text em { font-style: italic; color: var(--accent); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.nav li { position: relative; }
.nav a {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .3s; display: inline-block; padding: 6px 0;
}
.nav a:hover, .nav li:focus-within > a { color: var(--accent); }

/* Podmenu (desktop: hover/focus) */
.nav .sub-menu {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 210px; z-index: 50;
  flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(0,0,0,.7);
}
.nav .sub-menu a { display: block; padding: 8px 18px; }
.nav .sub-menu .sub-menu { top: -11px; left: 100%; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
.nav .sub-toggle { display: none; }
.nav .has-sub > a::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

/* Burger */
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; z-index: 70; position: relative; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 3. Tlačítka, štítky ---------- */
.btn-solid, .btn-ghost, .core-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: .84rem; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; padding: 14px 26px; border-radius: 2px; cursor: pointer; transition: all .3s;
}
.btn-solid, .core-form button { background: var(--ink); color: var(--cream); border: 1px solid var(--ink); }
.btn-solid:hover, .core-form button:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: .78rem; }

.section-tag {
  display: inline-block; font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.section-head { margin-bottom: 44px; }
.back-link { font-family: var(--sans); font-size: .82rem; margin-bottom: 26px; }
.back-link a { text-decoration: none; color: var(--ink-soft); }
.back-link a:hover { color: var(--accent); }

/* ---------- 4. Patička, cookie lišta, flash ---------- */
.footer { background: var(--bg-dark); color: var(--cream); margin-top: auto; }
.footer a { color: var(--cream); text-decoration: none; opacity: .8; transition: opacity .3s; }
.footer a:hover { opacity: 1; color: var(--cream); }
.footer-main {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  padding: 40px var(--pad) 28px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: baseline; gap: 10px; }
.footer-brand .brand-num { color: var(--gold-soft); border-color: var(--gold-soft); }
.footer-brand .brand-text { font-size: 1.5rem; color: var(--cream); }
.footer-brand .brand-text em { color: var(--gold-soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-size: .85rem; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); font-size: .85rem; color: rgba(236,232,223,.7); }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-socials a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(236,232,223,.3); border-radius: 50%;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--pad); border-top: 1px solid rgba(236,232,223,.12);
  font-family: var(--sans); font-size: .76rem; color: rgba(236,232,223,.5);
}
.footer-meta { display: flex; gap: 20px; flex-wrap: wrap; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 920px; margin: 0 auto;
  background: var(--bg-dark); color: var(--cream); padding: 18px 22px; border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0,0,0,.3); font-family: var(--sans); font-size: .85rem;
}
.cookie-banner form { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; line-height: 1.5; flex: 1 1 320px; }
.cookie-banner a { color: var(--gold-soft); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-banner .btn-ghost { color: var(--cream); border-color: rgba(236,232,223,.35); }
.cookie-banner .btn-solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cookie-banner .btn-solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }

.form-flash-wrap { padding: 20px var(--pad) 0; }
.form-flash { font-family: var(--sans); font-size: .92rem; padding: 14px 18px; border-radius: 2px; border: 1px solid; }
.form-flash.is-success { background: rgba(120, 170, 90, .14); border-color: rgba(150, 200, 120, .5); color: #bfe0a8; }
.form-flash.is-error { background: rgba(224, 71, 43, .14); border-color: rgba(224, 71, 43, .55); color: #ffb4a6; }

/* ---------- 5. Rozvržení stránek ---------- */
.content-section { padding: 70px var(--pad) 90px; }
.content-inner { max-width: 820px; margin: 0 auto; }
.content-inner.wide { max-width: 1200px; }
.content-inner.mid { max-width: 1080px; }   /* mezi úzkým (820) a wide (1200) */
.error-section { text-align: center; }
.error-section .content-inner { max-width: 640px; }

/* Homepage (page-uvod.latte): hero + sekce oddělené <hr> */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 600px; border-bottom: 1px solid var(--line); }
.hero-single { grid-template-columns: 1fr; min-height: 0; }
.hero-left { padding: 0 48px 60px var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero-text > :first-child { margin-top: 0; }
.hero-text h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.04; margin: 0 0 28px; }
.hero-text .section-tag { display: block; margin-bottom: 18px; }
.hero-text p:not(.section-tag) { max-width: 520px; font-size: 1.15rem; }
.hero-text > :last-child { margin-bottom: 0; }
.hero-single .hero-text p:not(.section-tag) { max-width: 760px; }
.hero-right { position: relative; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.hero-photo { width: 100%; }
.hero-photo img { width: 100%; height: 480px; object-fit: cover; border-radius: 2px; filter: saturate(.88) contrast(1.02); display: block; }
.hero-slides { display: grid; }
/* Fotka na výšku: užší sloupec (max 420 px) uprostřed. Fotka NA ŠÍŘKU (class is-landscape doplní script.js podle
   skutečných rozměrů): širší než výšková (max 520 px), svisle na střed hera a o něco níž, pod štítkem EST. */
.hero-slide { grid-area: 1 / 1; margin: 0; max-width: 420px; justify-self: center; width: 100%; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
/* Šířka a posun fotky na šířku (mezi výškovou 420 px a celým sloupcem ~620 px): */
.hero-slide.is-landscape { max-width: 520px; justify-self: center; align-self: center; transform: translateY(16px); }
.hero-slide.is-landscape img { height: auto; max-height: 400px; aspect-ratio: 3 / 2; }
.photo-caption { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .1em; color: var(--ink-muted); margin-top: 10px; }
.hero-badge { position: absolute; top: 20px; right: 20px; display: flex; flex-direction: column; align-items: center; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; }
.hero-badge span { font-family: var(--sans); font-size: .56rem; font-weight: 600; letter-spacing: .2em; color: var(--ink-muted); }
.hero-badge strong { font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }

.home-section { padding: 80px var(--pad); border-bottom: 1px solid var(--line); }
.home-section.is-warm { background: var(--bg-warm); }
.home-section-inner { max-width: 1200px; margin: 0 auto; }
.home-section-inner > .section-tag { display: block; margin-top: 0; }
.home-section-inner > h2 { margin-top: 0; margin-bottom: 36px; }
.home-section-inner > p:not(.section-tag):not(.lead-paragraph) { max-width: 760px; }
.home-section .gallery-recent-photos h2 { display: none; }

/* Sekce s mřížkou čísel: <ul class="stat-grid"><li><strong>40+</strong> let tradice</li>...</ul>
   Štítek, nadpis a text vlevo, čísla vpravo od horního okraje sekce (jako sekce "Kapela" v návrhu). */
.home-section-inner:has(> .stat-grid) {
  display: grid; grid-template-columns: 1.3fr 1fr; column-gap: 64px; align-items: start;
}
.home-section-inner:has(> .stat-grid) > * { grid-column: 1; }
.home-section-inner:has(> .stat-grid) > .stat-grid { grid-column: 2; grid-row: 1 / span 20; }
.home-section-inner:has(> .stat-grid) > .band-members { grid-column: 1 / -1; }
.stat-grid, .page-content .stat-grid {
  list-style: none; margin: 0; padding: 0; line-height: 1.4; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.stat-grid li, .page-content .stat-grid li {
  margin: 0; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: .76rem; font-weight: 500; color: var(--ink-muted); line-height: 1.4;
}
.stat-grid li strong {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1;
}

/* Kontakt (page-kontakt.latte): úvod z obsahu nahoře, vlevo karta s údaji, vpravo formulář */
.contact-left { min-width: 0; }
.contact-head { margin-bottom: 36px; }
.contact-head .page-content h1 { margin: 0 0 22px; }
.contact-head .page-content .section-tag { margin-top: 0; }
.contact-head .page-content p:not(.section-tag) { max-width: 640px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 32px; }
.contact-lead { font-size: 1.6rem; font-weight: 700; margin: 0 0 22px; color: var(--ink); }
.contact-rows { display: flex; flex-direction: column; gap: 18px; }
.contact-rows > a, .contact-address {
  display: flex; align-items: flex-start; gap: 12px; font-family: var(--sans); font-size: .95rem;
  color: var(--ink-soft); text-decoration: none; transition: color .3s; line-height: 1.5;
}
.contact-rows > a:hover { color: var(--accent); }
.contact-rows svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-address > span { display: flex; flex-direction: column; gap: 2px; }
.contact-person { color: var(--ink); }
.contact-person strong { font-weight: 700; }
.contact-socials { display: flex; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-socials a {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-soft); transition: all .3s;
}
.contact-socials a:hover { border-color: var(--accent); color: var(--accent); }
.contact-call { display: none; margin-top: 24px; width: 100%; }
.contact-body > :first-child { margin-top: 0; }
.contact-body > h2:first-child { line-height: 1; padding-top: 0; }

/* ---------- 6. Obsah stránek (WYSIWYG + editor styly šablony) ---------- */
.page-content { line-height: 1.75; color: var(--ink-soft); container-type: inline-size; container-name: pc; }
.page-content > *:first-child { margin-top: 0; }
.page-content strong { color: var(--ink); font-weight: 700; }
.page-content em { font-style: italic; color: var(--accent); }
.page-content h2 em, .page-content h3 em { font-weight: 600; }
.page-content ul, .page-content ol { padding-left: 1.4em; line-height: 1.7; margin: 0 0 1em; }
.page-content li { margin-bottom: .3em; }
.page-content img { border-radius: 2px; height: auto; }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.page-content blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
  font-size: 1.3rem; font-style: italic; color: var(--ink);
}
.page-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-family: var(--sans); font-size: .92rem; }
.page-content th, .page-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.page-content th { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* Fotky v obsahu: <figure><img><figcaption>, řádek fotek <div class="photo-row"> (2-3 vedle sebe).
   Fotky v obsahu se po kliknutí otevřou v lightboxu (script.js, initContentLightbox). */
.page-content figure { margin: 2.2em 0; }
.page-content figure img { display: block; width: 100%; height: auto; border-radius: 10px; filter: saturate(.9); }
.page-content figcaption {
  margin-top: 10px; font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .06em; color: var(--ink-muted); line-height: 1.5;
}
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 2.2em 0; align-items: start; }
.page-content .photo-row figure { margin: 0; }
.page-content .photo-row img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
.page-content .photo-row-landscape img { aspect-ratio: 4 / 3; }
.page-content img.is-zoomable, .page-content figure img { cursor: zoom-in; }
.page-content .section-tag + h2 { margin-top: 0; }
.page-content .stat-grid { margin: 2em 0 2.6em; }

/* Stránka na celou šířku (page-historie-kapely.latte): text ve dvou sloupcích, nadpisy a čísla přes oba. */
.page-wide .page-content { column-count: 2; column-gap: 56px; }
.page-wide .page-content > .section-tag,
.page-wide .page-content > h2,
.page-wide .page-content > .lead-paragraph,
.page-wide .page-content > .stat-grid,
.page-wide .page-content > .band-members { column-span: all; }
.page-wide .page-content > .lead-paragraph { max-width: 900px; }
.page-wide .page-content figure,
.page-wide .page-content .photo-row,
.page-wide .page-content li { break-inside: avoid; }
/* .section-tag je jinak inline-block, a column-span funguje jen u blokových prvků -> štítek by spadl do sloupce */
.page-wide .page-content > .section-tag { display: block; margin-top: 2.6em; text-align: left; }
.page-wide .page-content > .stat-grid { grid-template-columns: repeat(4, 1fr); }
.page-wide .page-content p { orphans: 3; widows: 3; }

/* TinyMCE styly (NightsJoyTemplateSettings::getEditorStyles) */
.lead-paragraph { font-size: 1.35rem; line-height: 1.65; color: var(--ink); max-width: 760px; }
.note-box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 18px 22px; border-radius: 2px; font-family: var(--sans); font-size: .95rem; }
.stat-number { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; margin: 1.2em 0 .1em; }
.text-accent { color: var(--accent); font-weight: 600; }
.page-content .section-tag { margin-top: 2.4em; }

/* Příspěvek */
.post-detail .post-content { font-size: 1.2rem; }
.post-detail time { font-variant-numeric: tabular-nums; }

/* ---------- 7. Shortcody ---------- */

/* [band-members] */
/* Vždy SUDÝ počet karet vedle sebe: 2 (úzký obsah, i na mobilu) nebo 4 (široký obsah). Počítá se podle
   šířky obsahu (container query na .page-content), ne podle okna. Fotka je pružná (max 160 px). */
.band-members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 2em 0; }
@container pc (min-width: 880px) { .band-members { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.band-member { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 24px; text-align: center; transition: all .3s; }
.band-member:hover { border-color: var(--accent); transform: translateY(-3px); }
/* Prostor pro fotku je u všech členů stejně velký (::before = rámeček, i když člen fotku nemá),
   takže jména začínají na stejné úrovni. Fotka (.band-member-photo, jen pokud existuje) ho zakrývá. */
.band-member::before { content: ""; display: block; width: 100%; max-width: 160px; aspect-ratio: 4 / 5; margin: 0 auto 18px; background: var(--bg-warm); border-radius: 10px; }
.band-member-photo, .page-content .band-member-photo {
  position: absolute; top: 24px; left: 50%; width: calc(100% - 48px); max-width: 160px; height: auto; aspect-ratio: 4 / 5; margin: 0;
  transform: translateX(-50%); object-fit: cover; object-position: center; border-radius: 10px; filter: saturate(.9);
}
/* Jméno i nástroj/role mají PEVNOU výšku dvou řádků a obsah je v ní svisle na střed: 1 řádek sedí
   uprostřed, 2 řádky vyplní celou výšku, a tak další údaje pod nimi začínají u všech karet ve stejné
   výšce. Výška je v em, takže sedí i při menším písmu na mobilu. Třetí řádek se už neukáže. */
.band-member-name {
  font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.2;
  height: 2.4em; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center;
}
/* Úzký obsah (mobil): menší odsazení karet, pružná fotka */
@container pc (max-width: 520px) {
  .band-members { gap: 12px; }
  .band-member { padding: 14px; }
  .band-member-photo, .page-content .band-member-photo { top: 14px; width: calc(100% - 28px); }
  .band-member-name { font-size: 1.15rem; }
}
.band-member-instrument {
  font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-top: 8px; line-height: 1.5; height: 3em; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center;
}
.band-member-workplace { font-family: var(--sans); font-size: .82rem; color: var(--ink-muted); margin-top: 6px; }
.band-member-bio { font-size: 1rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.55; }

/* [song-list] */
.song-list { width: 100%; border-collapse: collapse; margin: 2em 0; font-family: var(--sans); font-size: .92rem; }
.song-list th {
  text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); padding: 10px 12px; border-bottom: 1px solid var(--line-strong);
}
.song-list td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.song-list td:first-child { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.song-list tbody tr:hover { background: var(--bg-warm); }
.song-list td a { color: var(--accent); text-decoration: none; white-space: nowrap; }

/* [audio] */
.audio-list { list-style: none; margin: 2em 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.audio-list li { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; color: var(--ink); }
.audio-list li:last-child { border-bottom: 0; }
.audio-list audio { max-width: 100%; height: 36px; }

/* [band-calendar] */
.band-calendar { margin: 2em 0; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 24px; }
.band-calendar h3 { margin: 0 0 16px; font-size: 1.6rem; }
.band-calendar-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--sans); }
.band-calendar-grid th { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 8px 4px; text-align: left; border-bottom: 1px solid var(--line-strong); }
.band-calendar-grid td { height: 84px; vertical-align: top; padding: 6px 8px; border: 1px solid var(--line); font-size: .75rem; }
.band-calendar-grid .day-number { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.band-calendar-grid td.has-event { background: rgba(224, 71, 43, .14); border-color: var(--accent); }
.band-calendar-grid td.has-event .day-number { color: var(--accent); }
.band-calendar-grid .day-event { margin-top: 4px; color: var(--accent); font-weight: 600; line-height: 1.3; }

/* [band-calendar-list] - výpis termínů jako karty */
.band-calendar-list { list-style: none; margin: 2em 0; padding: 0; display: grid; gap: 14px; }
.band-calendar-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 20px 24px;
  font-size: 1.12rem; line-height: 1.55; color: var(--ink-soft); transition: all .3s;
}
.band-calendar-list li:hover { border-color: var(--accent); transform: translateY(-2px); }
.band-calendar-list strong { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.band-event-type { font-family: var(--sans); font-size: .76rem; color: var(--ink-muted); }

/* [post-list] */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 2em 0; }
.post-list-item { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 26px; transition: all .3s; }
.post-list-item:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-list-item h3 { margin: 0 0 6px; font-size: 1.35rem; }
.post-list-item h3 a { color: var(--ink); text-decoration: none; }
.post-list-item h3 a:hover { color: var(--accent); }
.post-list-item p { font-size: 1rem; margin: 0 0 .6em; }
.post-date { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* [gallery-recent] / [gallery-random] */
.gallery-recent-photos { margin: 2.4em 0; }
.gallery-recent-photos h2 { margin-top: 0; }
/* Větší náhledy (cca 2x): 4 vedle sebe v širokém obsahu (>= 880 px), jinak 2; poměr 4:3 jako zdrojové náhledy (400x300). */
.gallery-recent-photos .photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@container pc (min-width: 880px) { .gallery-recent-photos .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery-recent-photos .photo-grid a { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.gallery-recent-photos .photo-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .5s, filter .3s; }
.gallery-recent-photos .photo-grid a:hover img { transform: scale(1.06); filter: saturate(1); }
.gallery-random-photo { display: block; overflow: hidden; border-radius: 2px; max-width: 420px; margin: 1.6em 0; }
.gallery-random-photo img { width: 100%; display: block; filter: saturate(.9); }

/* [announcement-*] (jen instalace s modulem Announcements) */
.announcement-list { width: 100%; border-collapse: collapse; margin: 2em 0; font-family: var(--sans); font-size: .92rem; }
.announcement-list th { text-align: left; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.announcement-list td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- 8. Formuláře (Core\Model\FormService: form.core-form) ---------- */
.core-form {
  display: flex; flex-direction: column; gap: 18px; margin: 2em 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 32px;
}
.core-form-field { margin: 0; }
.core-form-field label {
  display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: .72rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
}
.core-form-field label br { display: none; }
.core-form input[type=text], .core-form input[type=email], .core-form input[type=url],
.core-form input[type=number], .core-form textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 2px; padding: 13px 15px; width: 100%;
  letter-spacing: normal; text-transform: none; font-weight: 400; transition: border-color .3s;
}
.core-form textarea { resize: vertical; min-height: 120px; }
.core-form input:focus, .core-form textarea:focus { outline: none; border-color: var(--accent); }
.core-form-field-error input, .core-form-field-error textarea { border-color: #e0472b; background: rgba(224, 71, 43, .1); }
.core-form-field-error-note { color: #ff8e7a; letter-spacing: normal; text-transform: none; font-weight: 600; font-size: .78rem; }
.core-form button { align-self: flex-start; }

/* ---------- 9. Galerie a MP3 přehrávač ---------- */
.year-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; text-decoration: none;
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft); transition: all .3s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.gallery-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink); overflow: hidden; transition: all .3s; }
.gallery-card:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--ink); }
.gallery-card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-card); }
.gallery-card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .6s; }
.gallery-card:hover .gallery-card-img img { transform: scale(1.04); }
/* Dlaždice v řádku gridu mají stejnou výšku; popisek (počet/datum) se tlačí
   na spodek, takže je ve všech dlaždicích řádku na stejné vertikální pozici
   bez ohledu na počet řádků názvu. */
.gallery-card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.gallery-card-title { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.gallery-card-meta { margin-top: auto; padding-top: 4px; font-family: var(--sans); font-size: .76rem; color: var(--ink-muted); }
.gallery-card.is-album .gallery-card-body::before {
  content: "Album"; font-family: var(--sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.gallery-description { color: var(--ink-soft); margin-bottom: 32px; max-width: 760px; white-space: pre-line; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.photo-grid-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--bg-card); }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); transition: transform .5s, filter .3s; }
.photo-grid-item:hover img { transform: scale(1.06); filter: saturate(1); }

/* MP3 přehrávač */
.player { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 28px; }
.player-head { margin-bottom: 14px; }
.player-label { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.player-head h3 { margin: 0; font-size: 1.5rem; }
.player audio { width: 100%; margin-bottom: 18px; }
.player-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.track { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 2px; cursor: pointer; color: var(--ink-soft); transition: all .25s; }
.track:hover, .track.is-target { background: var(--bg-warm); color: var(--ink); }
.track.playing { background: rgba(224, 71, 43, .14); color: var(--ink); }
.track-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-warm); color: var(--accent); flex-shrink: 0; }
.track.playing .track-icon { background: var(--accent); color: #fff; }
.track .icon-pause { display: none; }
.player-list.is-playing .track.playing .icon-play { display: none; }
.player-list.is-playing .track.playing .icon-pause { display: block; }
.track-info { display: flex; flex-direction: column; }
.track-info strong { font-size: 1.1rem; font-weight: 600; }
.track-info small { font-family: var(--sans); font-size: .76rem; color: var(--ink-muted); }

/* ---------- 10. Responsive ---------- */
@media (max-width: 960px) {
  :root { --pad: 20px; }
  .topbar { font-size: .66rem; }
  .header { padding: 18px var(--pad); }
  .content-section { padding: 48px var(--pad) 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-call { display: inline-flex; }
  .page-wide .page-content { column-count: 1; }
  .page-wide .page-content > .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: 0 var(--pad) 40px; }
  .hero-right { padding: 20px; }
  .hero-photo img { height: 340px; }
  .hero-slide.is-landscape { transform: none; }
  .hero-slide.is-landscape img { height: auto; max-height: none; }
  .home-section { padding: 56px var(--pad); }
  .home-section-inner:has(> .stat-grid) { display: block; }
  .home-section-inner:has(> .stat-grid) > .stat-grid { margin-top: 32px; }
  .footer-main { flex-direction: column; gap: 28px; }
  .band-calendar-grid td { height: 64px; padding: 4px; }
  .band-calendar-grid .day-event { font-size: .62rem; }
}

@media (max-width: 760px) {
  .topbar-right a:not(:last-child), .topbar .dot { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 82%; max-width: 320px; z-index: 60;
    padding: 80px 28px 40px; overflow-y: auto; background: var(--paper); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  }
  .nav.is-open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav li > a { flex: 1; padding: 14px 0; font-size: 1rem; }
  .nav .has-sub > a::after { display: none; }
  .nav .sub-toggle {
    display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative;
  }
  .nav .sub-toggle::before {
    content: ""; position: absolute; top: 17px; left: 17px; width: 8px; height: 8px;
    border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg);
  }
  .nav .is-open > .sub-toggle::before { transform: rotate(-135deg); top: 21px; }
  .nav .sub-menu, .nav li:hover > .sub-menu { position: static; display: none; width: 100%; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 14px; }
  .nav li.is-open > .sub-menu, .nav li:focus-within > .sub-menu { display: flex; }
  .nav .sub-menu li { border-bottom: 0; }
  .nav .sub-menu a { padding: 8px 0; font-size: .9rem; }

  .core-form { padding: 22px; }
  .player { padding: 18px; }
  .song-list th:nth-child(3), .song-list td:nth-child(3) { display: none; }
  .band-calendar { padding: 14px; }
  .band-calendar-grid td { height: 52px; }
  .band-calendar-grid .day-event { display: none; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}

/* ---------- 11. Lightbox (GLightbox) ----------
   Přebíjí výchozí "clean" vzhled knihovny (načítá se PŘED tímto souborem): bez bílého rámečku pod/kolem
   fotky, teplé tmavé pozadí, popisek v písmu šablony přímo na pozadí, kulatá tlačítka. */
.goverlay, .glightbox-mobile .goverlay { background: rgba(5, 5, 6, .96); }
.glightbox-clean .gslide-media { box-shadow: 0 30px 80px rgba(0, 0, 0, .55); border-radius: 6px; overflow: hidden; }
.glightbox-clean .gslide-image img { border-radius: 6px; }
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 16px 2px 0; text-align: left; }
.glightbox-clean .gslide-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.3;
  color: var(--cream); margin: 0 0 4px; letter-spacing: .01em; text-transform: none;
}
.glightbox-clean .gslide-desc {
  font-family: var(--sans); font-size: .78rem; font-weight: 500; line-height: 1.5;
  color: rgba(236, 232, 223, .66); letter-spacing: .04em; margin: 0;
}
.glightbox-clean .gclose, .glightbox-clean .gnext, .glightbox-clean .gprev {
  width: 46px; height: 46px; border-radius: 50%; background-color: rgba(236, 232, 223, .1);
  border: 1px solid rgba(236, 232, 223, .18); transition: background-color .25s, border-color .25s, opacity .25s;
}
.glightbox-clean .gclose:hover, .glightbox-clean .gnext:hover, .glightbox-clean .gprev:hover {
  background-color: var(--accent); border-color: var(--accent); opacity: 1;
}
.glightbox-clean .gclose svg { width: 16px; }
.glightbox-clean .gnext svg, .glightbox-clean .gprev svg { width: 18px; }
.glightbox-clean .gclose { top: 20px; right: 24px; opacity: 1; }
.glightbox-clean .gprev { left: 24px; }
.glightbox-clean .gnext { right: 24px; }
.gloader { border-color: var(--cream); border-right-color: transparent; }
/* Mobil: popisek přes spodek fotky na teplém přechodu místo černého */
.glightbox-mobile .glightbox-container .gslide-description {
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0) 0, rgba(5, 5, 6, .9) 100%);
}
.glightbox-mobile .glightbox-container .gslide-title { color: var(--cream); }
.glightbox-mobile .glightbox-container .gslide-desc { color: rgba(236, 232, 223, .7); }

/* Okraj kolem fotky v lightboxu: fotka i s popiskem se jako celek lehce zmenší (GLightbox si výšku fotky
   nastavuje inline podle popisku, proto transform místo max-height). 0.95 = okraj nahoře i dole 2,5 % výšky okna
   (cca 20 px při okně 800 px vysokém). Chceš větší okraj -> nižší číslo (0.92), menší -> vyšší (0.97). */
.glightbox-clean .ginner-container { transform: scale(.95); transform-origin: center center; }


/* ---------- 12. Vzhled Night's Joy (úvod, logo, přebití základu) ---------- */
body {
  font-family: var(--sans); font-size: 1.02rem; line-height: 1.65;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(224, 71, 43, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
/* zrnitost přes celou stránku */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3 { text-transform: uppercase; letter-spacing: .03em; }
h1 { font-weight: 700; line-height: 1.05; letter-spacing: .02em; }
h2 { font-weight: 700; line-height: 1.08; letter-spacing: .03em; }
h3 { font-weight: 600; letter-spacing: .06em; }
em, .page-content em { font-style: normal; color: var(--accent); }
a { text-underline-offset: 3px; }

.page { max-width: none; background: transparent; }

/* hlavička: přilepená nahoře, rozmazané pozadí přes ::before (backdrop-filter na samotné hlavičce by
   rozbil position:fixed mobilního menu uvnitř) */
.header { position: sticky; top: 0; z-index: 60; padding: 14px var(--pad); border-bottom: 1px solid var(--line); }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 11, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar { background: var(--bg-dark); border-bottom: 1px solid var(--line); }
.brand-text { font-size: 1.35rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.brand-text em { color: var(--accent); font-style: normal; }
.nav a { font-family: var(--serif); font-size: .88rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a { border-bottom-color: var(--accent); color: var(--ink); }
.nav .sub-menu { background: var(--bg-warm); box-shadow: 0 18px 40px rgba(0, 0, 0, .7); }
.nav .sub-menu a { border-bottom: 0; }
.burger span { background: var(--ink); }

/* tlačítka */
.btn-solid, .btn-ghost, .core-form button, .cta-row a {
  font-family: var(--serif); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .92rem;
  padding: 13px 30px; border-radius: 3px;
}
.btn-solid, .core-form button, .cta-row a:first-child { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.btn-solid:hover, .core-form button:hover, .cta-row a:first-child:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; box-shadow: 0 0 30px rgba(224, 71, 43, .4); }
.btn-ghost, .cta-row a:not(:first-child) { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover, .cta-row a:not(:first-child):hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .04); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 0; }
.cta-row a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .3s; }
.cookie-banner .btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.cookie-banner .btn-solid:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; }
.cookie-banner { border: 1px solid var(--line-strong); background: var(--paper); }

/* štítek sekce s linkou */
.section-tag { font-family: var(--serif); font-size: .82rem; font-weight: 500; letter-spacing: .3em; display: inline-flex; align-items: center; gap: 14px; }
.section-tag::before { content: ""; width: 34px; height: 2px; background: var(--accent); flex-shrink: 0; }

/* hero s logem */
.nj-hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 72px var(--pad) 84px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 30%, rgba(224, 71, 43, .22), transparent 70%),
    radial-gradient(40% 35% at 14% 0%, rgba(240, 169, 58, .14), transparent 70%),
    radial-gradient(40% 35% at 86% 0%, rgba(240, 169, 58, .10), transparent 70%),
    var(--bg);
}
/* světelné kužely jako z jevištních reflektorů */
.nj-hero::before, .nj-hero::after {
  content: ""; position: absolute; top: -10%; width: 34vw; height: 120%; z-index: -1; opacity: .5; filter: blur(6px);
  background: linear-gradient(180deg, rgba(240, 169, 58, .20), transparent 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
}
.nj-hero::before { left: 2%; transform: rotate(-12deg); }
.nj-hero::after { right: 2%; transform: rotate(12deg); }
.nj-hero-inner { position: relative; max-width: 1000px; margin: 0 auto; }
/* Logo je černé na bílém: invert + screen = bílá písmena, bílé pozadí zmizí. Funguje jen v jednom stacking
   contextu s pozadím hera (.nj-hero má isolation), proto žádný z-index/transform na rodičích loga. */
.nj-logo-wrap { position: relative; }
.nj-logo-wrap::before { content: ""; position: absolute; inset: -10% 5%; z-index: -1; background: radial-gradient(closest-side, rgba(224, 71, 43, .30), transparent); filter: blur(30px); }
.nj-logo { display: block; width: min(980px, 100%); height: auto; margin: 0 auto; filter: invert(1); mix-blend-mode: screen; clip-path: inset(5px); }
.nj-hero-text { margin-top: 34px; text-align: center; }
.nj-hero-text .section-tag { color: var(--gold); margin: 0 0 10px; }
.nj-hero-text .section-tag::before, .nj-hero-text .section-tag::after { content: ""; width: 56px; height: 1px; background: var(--gold); opacity: .6; }
.nj-hero-text .lead-paragraph, .nj-hero-text p { margin-left: auto; margin-right: auto; max-width: 640px; }
.nj-hero-text .lead-paragraph { color: var(--ink-soft); font-size: 1.15rem; }
.nj-hero-text .cta-row { justify-content: center; }

/* běžící pás */
.nj-ticker { overflow: hidden; white-space: nowrap; background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.nj-ticker-track { display: inline-block; padding: 14px 0; font-family: var(--serif); text-transform: uppercase; letter-spacing: .25em; font-size: .92rem; color: var(--ink-muted); animation: nj-tick 70s linear infinite; }
.nj-ticker-track b { color: var(--accent); margin: 0 26px; font-weight: 400; }
@keyframes nj-tick { to { transform: translateX(-50%); } }

/* sekce na úvodní stránce */
.home-section { border-bottom: 1px solid var(--line); }
.home-section.is-warm { background: var(--bg-warm); }
.home-section-inner > h2 { margin-top: 10px; }
.stat-grid li strong { color: var(--gold); letter-spacing: .02em; }
.stat-grid li { font-family: var(--serif); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; }

/* karty */
.band-member, .contact-card, .core-form, .player, .band-calendar, .band-calendar-list li, .post-list-item, .gallery-card, .audio-list, .note-box { background: var(--paper); }
.band-member-name { font-family: var(--serif); text-transform: uppercase; letter-spacing: .06em; font-size: 1.2rem; }
.band-member-instrument, .song-list th, .band-calendar-grid th, .page-content th { font-family: var(--serif); letter-spacing: .2em; font-weight: 500; }
.band-member-instrument { color: var(--accent); }
.song-list td:first-child { font-family: var(--sans); font-weight: 500; font-size: 1rem; }
.song-list td a { color: var(--accent); }
.contact-lead { text-transform: uppercase; letter-spacing: .06em; }
.gallery-card-title { text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.gallery-card-img img, .photo-grid-item img, .page-content figure img, .gallery-recent-photos .photo-grid img { filter: saturate(.9) contrast(1.03); }
.photo-grid-item { background: var(--bg-card); }
.page-content figure img { border-radius: 3px; }
.lead-paragraph { font-family: var(--sans); }
.stat-number { color: var(--gold); }
.text-accent { color: var(--accent); }
.page-content blockquote { font-family: var(--serif); text-transform: uppercase; letter-spacing: .03em; font-style: normal; }
.footer { border-top: 1px solid var(--line); }
.footer-brand .brand-text em { color: var(--accent); }
.footer-brand .brand-text { text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 960px) {
  .nj-hero { padding: 48px var(--pad) 56px; }
  .nj-hero::before, .nj-hero::after { width: 60vw; }
}
@media (max-width: 760px) {
  .nav { background: var(--bg-warm); }
}
@media (max-width: 560px) {
  .nj-hero::before, .nj-hero::after { display: none; }
  .cta-row a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nj-ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}
.footer-brand .brand-text em { font-style: normal; }

/* Časová osa (page-o-kapele.latte): každý <h3> je zastávka s tečkou na svislé čáře */
.timeline-section { padding-top: 0; }
.timeline-head > h2 { margin-top: 0; }
.timeline { position: relative; margin-top: 36px; padding-left: 38px; border-left: 2px solid var(--line-strong); }
.timeline h3 {
  position: relative; margin: 2.6em 0 .7em; font-size: 1.5rem; color: var(--gold); letter-spacing: .06em; line-height: 1.2;
}
.timeline h3:first-child { margin-top: 0; }
.timeline h3::before {
  content: ""; position: absolute; left: -48px; top: .22em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(224, 71, 43, .55);
}
.timeline p { color: var(--ink-soft); }
@media (max-width: 560px) {
  .timeline { padding-left: 24px; }
  .timeline h3 { font-size: 1.25rem; }
  .timeline h3::before { left: -34px; width: 12px; height: 12px; }
}

/* Navigace po kapitolách (page-o-kapele.latte, naplňuje script.js initChapterNav) */
.timeline-layout { max-width: 1180px; display: grid; grid-template-columns: 230px minmax(0, 820px); gap: 56px; justify-content: center; align-items: start; }
.chapter-nav[hidden] { display: none; }
.chapter-nav { position: sticky; top: 96px; }
.chapter-nav-title { font-family: var(--serif); font-size: .8rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.chapter-nav-list {
  list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 170px); overflow-y: auto; border-left: 1px solid var(--line-strong);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.chapter-nav-list a {
  display: block; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; line-height: 1.3;
  transition: border-color .2s, background .2s;
}
.chapter-period { display: block; font-family: var(--serif); font-size: .92rem; letter-spacing: .06em; color: var(--ink-soft); transition: color .2s; }
.chapter-name { display: block; font-size: .74rem; color: var(--ink-muted); margin-top: 1px; }
.chapter-nav-list a:hover .chapter-period { color: var(--ink); }
.chapter-nav-list a.is-active { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(224, 71, 43, .12), transparent); }
.chapter-nav-list a.is-active .chapter-period { color: var(--gold); }
.timeline h3 { scroll-margin-top: 96px; }
@media (max-width: 960px) {
  .timeline-layout { display: block; }
  /* mobil: kapitoly jako vodorovně posuvná lišta nad osou */
  .chapter-nav { position: static; margin-bottom: 36px; }
  .chapter-nav-list { display: flex; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; border-left: 0; padding-bottom: 8px; }
  .chapter-nav-list li { flex: 0 0 auto; }
  .chapter-nav-list a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; margin: 0; white-space: nowrap; }
  .chapter-nav-list a.is-active { background: var(--accent); border-color: var(--accent); }
  .chapter-nav-list a.is-active .chapter-period { color: #fff; }
  .chapter-name { display: none; }
}


/* Karty pro pořadatele (editor styl "Karty": <ul class="info-cards"><li><strong>Nadpis</strong> text</li>...</ul>) */
.info-cards, .page-content .info-cards { list-style: none; margin: 2em 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 22px; counter-reset: card; }
.info-cards li, .page-content .info-cards li {
  counter-increment: card; margin: 0; padding: 30px 26px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink-muted); font-size: .97rem; line-height: 1.6; transition: border-color .3s, transform .3s;
}
.info-cards li:hover { border-color: var(--accent); transform: translateY(-3px); }
.info-cards li::before {
  content: counter(card); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 1.1rem;
}
.info-cards li strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.page-content .note-box { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(224, 71, 43, .12), var(--paper)); }

/* Fotogalerie na úvodní stránce: [gallery id="N"] jako mozaika s popiskem při najetí.
   Sekce, která po nadpisu nemá žádné fotky (galerie neexistuje / je prázdná), se skryje celá. */
.home-section:has(> .home-section-inner > h2:last-child) { display: none; }
.home-section .gallery-recent-photos { margin: 1em 0 0; }
.home-section .gallery-recent-photos .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.home-section .gallery-recent-photos .photo-grid a { position: relative; aspect-ratio: auto; height: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-card); }
.home-section .gallery-recent-photos .photo-grid a:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.home-section .gallery-recent-photos .photo-grid a:nth-child(7n+4) { grid-column: span 2; }
.home-section .gallery-recent-photos .photo-grid a:nth-child(7n+6) { grid-row: span 2; }
.home-section .gallery-recent-photos .photo-grid a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, transparent 45%, rgba(224, 71, 43, .22)); opacity: 0; transition: opacity .4s; }
.home-section .gallery-recent-photos .photo-grid a:hover::before { opacity: 1; }
.home-section .gallery-recent-photos .photo-grid a[data-title]::after {
  content: attr(data-title); position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px 14px 12px;
  font-family: var(--serif); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); opacity: 0; transition: opacity .3s;
}
.home-section .gallery-recent-photos .photo-grid a:hover::after { opacity: 1; }

/* Filtr repertoáru podle kapel (script.js, filtr [song-list]) */
.song-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 2em 0 -.6em; }
button.chip { font-family: var(--serif); background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 500; }
.chip small { margin-left: 6px; opacity: .6; font-size: .7rem; }
.song-list tr[hidden] { display: none; }
.song-list-more { margin: -1em 0 2em; text-align: right; font-family: var(--serif); letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }
.song-list-more a { color: var(--accent); text-decoration: none; }
.song-list-more a:hover { color: var(--accent-soft); }
/* Barva "progress baru" na řádku přehrávané skladby (přehrávač v modulu Band) */
.song-list { --song-progress-color: rgba(224, 71, 43, .3); }

@media (max-width: 960px) {
  .info-cards, .page-content .info-cards { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; }
  .home-section .gallery-recent-photos .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
  .home-section .gallery-recent-photos .photo-grid a:nth-child(7n+4) { grid-column: span 1; }
}

/* Šířka všech stránek jako homepage (home-section-inner = 1200 px); běžný text drží čitelnou šířku řádku */
.content-inner, .content-inner.mid, .content-inner.wide { max-width: 1200px; }
.error-section .content-inner { max-width: 640px; }
.content-section .page-content > p,
.content-section .page-content > ul:not(.info-cards):not(.stat-grid),
.content-section .page-content > ol,
.content-section .page-content > blockquote,
.gallery-description { max-width: 760px; }
.content-section .page-content > p.cta-row { max-width: none; }
.timeline-layout { max-width: 1200px; grid-template-columns: 230px minmax(0, 1fr); }
.timeline p { max-width: 820px; }

/* Členové: 3 karty na řádek (2 v úzkém obsahu), větší fotka */
.band-members { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@container pc (max-width: 520px) { .band-members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.band-member::before { max-width: 220px; }
.band-member-photo, .page-content .band-member-photo { max-width: 220px; }

/* lead-paragraph: šířka podle obsahu (bez omezení řádku) */
.lead-paragraph, .content-section .page-content > p.lead-paragraph, .nj-hero-text .lead-paragraph { max-width: none; }

/* Řada tlačítek se stahováním (stageplan): hlavní (plné) je "Poslat poptávku", ostatní obrysová */
.cta-row:has(a[download], a[href*="stageplan"]) a { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.cta-row:has(a[download], a[href*="stageplan"]) a:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, .04); box-shadow: none; }
.cta-row:has(a[download], a[href*="stageplan"]) a[href$="/kontakt"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta-row:has(a[download], a[href*="stageplan"]) a[href$="/kontakt"]:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; box-shadow: 0 0 30px rgba(224, 71, 43, .4); }

/* Řada tlačítek se stageplanem: roztažená na celou šířku obsahu, tlačítka se dělí o místo rovným dílem */
.content-section .page-content > p.cta-row:has(a[download], a[href*="stageplan"]), .cta-row:has(a[download], a[href*="stageplan"]) { display: flex; width: 100%; max-width: none; margin-top: 2em; }
.cta-row:has(a[download], a[href*="stageplan"]) a { flex: 1 1 0; min-width: 0; text-align: center; }
@media (max-width: 760px) { .cta-row:has(a[download], a[href*="stageplan"]) a { flex: 1 1 100%; } }

/* na úvodní stránce má odstavec v sekci max-width 760 px; řada tlačítek se stageplanem ho nemá mít */
.home-section-inner > p.cta-row:has(a[download], a[href*="stageplan"]) { max-width: none; }

/* [calendar-subscribe] - odběr kalendáře termínů (iPhone, Mac, Google Kalendář) */
.calendar-subscribe { margin: 2.5em 0; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.calendar-subscribe h3 { margin: 0 0 10px; font-size: 1.6rem; }
.calendar-subscribe p { margin: 0 0 18px; color: var(--ink-soft); }
.calendar-subscribe-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.calendar-subscribe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: .84rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  padding: 14px 24px; border-radius: 2px; cursor: pointer; transition: all .3s;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
}
.calendar-subscribe-btn:hover { border-color: var(--accent); color: var(--accent); }
.calendar-subscribe-icon { flex: none; }
.calendar-subscribe .calendar-subscribe-note { margin: 0; font-size: .8rem; color: var(--ink-muted); }
@media (max-width: 600px) { .calendar-subscribe { padding: 20px; } .calendar-subscribe-btn { flex: 1 1 100%; } }

/* seznam termínů: obecné pravidlo ".page-content ul" (odsazení zleva 1.4em) nesmí zúžit karty akcí oproti ostatním blokům */
.page-content .band-calendar-list { padding: 0; margin: 2em 0; }

/* [gallery-random limit="N"] - víc náhodných fotek do mřížky */
.gallery-random-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 1.6em 0; }
.gallery-random-list .gallery-random-photo { max-width: none; margin: 0; }
.gallery-random-list .gallery-random-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* Náhledy fotek: celá fotka bez ořezu - fotky na výšku mají po stranách prázdné pole barvy karty */
.gallery-recent-photos .photo-grid img, .photo-grid-item img, .gallery-card-img img, .gallery-card img, .album-card img,
.gallery-random-photo img, .gallery-random-list .gallery-random-photo img {
  object-fit: contain; background: var(--bg-card, #ececec);
}

/* Kontakt: sekce Pro pořadatele pod kontaktem (page-kontakt.latte, třetí část obsahu) */
.contact-extra { border-top: 1px solid var(--line); background: var(--bg-warm); }
.contact-extra .section-tag + h2 { margin-top: 0; }

.members-section { padding-top: 0; }
.members-section .section-tag + h2 { margin-top: 0; }

/* kotvy z menu (O kapele > Členové / Historie): přesun pod přilepenou hlavičku */
.members-section, .timeline-section { scroll-margin-top: 70px; }
