/* =====================================================================
   Šablona "combo_2026" - editoriální vzhled (krémový papír, vínová, zlatá).
   Vychází z návrhu themesIn/comboTemplate (Bolt/React), převedeno do
   čistého CSS. 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
   ===================================================================== */

/* ---------- 1. Proměnné a základ ---------- */
:root {
  --bg: #f2ece1;
  --bg-warm: #ebe3d4;
  --bg-card: #e4dac8;
  --bg-dark: #1c1814;
  --ink: #221c16;
  --ink-soft: #5a4d3e;
  --ink-muted: #8a7d6a;
  --line: rgba(34, 28, 22, 0.12);
  --line-strong: rgba(34, 28, 22, 0.22);
  --wine: #6b2d35;            /* přepisuje layout.latte z nastavení accent_color */
  --wine-soft: #7e3a42;
  --gold: #8a6f48;
  --gold-soft: #a0825a;
  --cream: #f5efe3;
  --paper: #faf6ec;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", 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(--wine); color: var(--paper); }

img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--wine-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(--wine); }
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(--wine); border: 1px solid var(--wine); 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(--wine); }

.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(--wine); }

/* 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(34,28,22,.12);
}
.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(--wine); border-color: var(--wine); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.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(--wine); 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(--wine); }

/* ---------- 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(245,239,227,.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(245,239,227,.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(245,239,227,.12);
  font-family: var(--sans); font-size: .76rem; color: rgba(245,239,227,.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(245,239,227,.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: #e8efe0; border-color: #a9bf92; color: #38502a; }
.form-flash.is-error { background: #f6e3e1; border-color: #d4a29d; color: #7a2a24; }

/* ---------- 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.full { max-width: none; }   /* celá šířka (stránka Repertoár) */
.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(--wine); 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(--wine); line-height: 1;
}

/* Kontakt (page-kontakt.latte): úvod z obsahu nahoře, vlevo karta s údaji, vpravo formulář */
.contact-left { min-width: 0; display: flex; flex-direction: column; }
.contact-left > .contact-card { margin-top: auto; }
.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: stretch; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px; padding: 24px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 28px; align-content: start;
}
.contact-card > .contact-lead, .contact-card > .contact-rows { grid-column: 1; }
.contact-card > .contact-call { grid-column: 1 / -1; }
.contact-lead { font-size: 1.6rem; font-weight: 700; margin: 0 0 16px; color: var(--ink); }
.contact-rows { display: flex; flex-direction: column; gap: 14px; }
.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(--wine); }
.contact-rows svg { color: var(--wine); 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 { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 10px; padding-left: 28px; border-left: 1px solid var(--line); justify-content: flex-start; }
.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(--wine); color: var(--wine); }
.contact-call { display: none; margin-top: 24px; width: 100%; }
.contact-body { display: flex; flex-direction: column; }
.contact-body > p:empty { display: none; }
.contact-body > .core-form { flex: 1 1 auto; margin: 0; }
.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(--wine); }
.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(--wine);
  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 (Combo2026TemplateSettings::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(--wine); 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(--wine); line-height: 1; margin: 1.2em 0 .1em; }
.text-accent { color: var(--wine); 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(--wine); 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(--wine);
  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(--wine); text-decoration: none; white-space: nowrap; }
/* max-width !important: na homepage by ho jinak omezilo `.home-section-inner > p` (760 px) a tlačítko by nebylo úplně vpravo */
.song-list-more { display: flex; justify-content: flex-end; max-width: none !important; margin: -.6em 0 2em; text-align: right; }
.song-list-more a {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 2px;
  background: var(--wine); border: 1px solid var(--wine); color: var(--cream);
  font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; transition: all .3s;
}
.song-list-more a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* [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(107, 45, 53, .08); border-color: var(--wine); }
.band-calendar-grid td.has-event .day-number { color: var(--wine); }
.band-calendar-grid .day-event { margin-top: 4px; color: var(--wine); font-weight: 600; line-height: 1.3; }

/* [band-calendar-list] - výpis termínů: 1. řádek datum vlevo + typ vpravo, 2. řádek název vlevo + místo vpravo pod typem */
.band-calendar-list { list-style: none; margin: 2em 0; padding: 0; display: grid; gap: 10px; }
.band-calendar-list li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date type" "title place";
  align-items: center; column-gap: 18px; row-gap: 2px; min-width: 0;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 6px; padding: 14px 22px;
  line-height: 1.3; color: var(--ink-soft); transition: all .25s;
}
.band-calendar-list li:hover { border-color: var(--wine); box-shadow: 0 6px 18px rgba(34, 28, 22, .08); transform: translateY(-1px); }
.band-calendar-list .band-event-date { grid-area: date; margin: 0; font-family: var(--sans); font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--wine); font-variant-numeric: tabular-nums; }
.band-calendar-list .band-event-type { grid-area: type; justify-self: end; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--ink-muted); }
.band-calendar-list .band-event-title { grid-area: title; min-width: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.band-calendar-list .band-event-place { grid-area: place; justify-self: end; text-align: right; max-width: 45ch; min-width: 0; font-size: 1rem; color: var(--ink-muted); }
.band-event-type { font-family: var(--sans); font-size: .76rem; color: var(--ink-muted); }
@media (max-width: 640px) {
  .band-calendar-list li { padding: 12px 14px; }
  .band-calendar-list .band-event-title { font-size: 1.25rem; }
}

/* [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(--wine); 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(--wine); }
.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(--wine); }
.core-form-field-error input, .core-form-field-error textarea { border-color: #b3443b; background: #fbf0ee; }
.core-form-field-error-note { color: #b3443b; 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;
}
button.chip { background: transparent; cursor: pointer; }
.chip span { opacity: .6; font-weight: 400; margin-left: .25em; }
.song-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5em 0 0; }
.song-filter[hidden], .song-list tr[hidden] { display: none; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.is-active { background: var(--wine); border-color: var(--wine); color: var(--paper); }

.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(--wine); 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-meta-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.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(--wine); 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(107, 45, 53, .08); 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(--wine); flex-shrink: 0; }
.track.playing .track-icon { background: var(--wine); color: var(--paper); }
.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-card { grid-template-columns: 1fr; }
  .contact-socials { grid-column: 1; grid-row: auto; flex-direction: row; padding: 20px 0 0; margin-top: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .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(24, 20, 16, .95); }
.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(245, 239, 227, .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(245, 239, 227, .1);
  border: 1px solid rgba(245, 239, 227, .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(--wine); border-color: var(--wine); 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(24, 20, 16, 0) 0, rgba(24, 20, 16, .9) 100%);
}
.glightbox-mobile .glightbox-container .gslide-title { color: var(--cream); }
.glightbox-mobile .glightbox-container .gslide-desc { color: rgba(245, 239, 227, .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; }

/* [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(--wine); color: var(--wine); }
.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%; } }

/* [calendar-subscribe] vždy přes celou šířku bloku, ve kterém je vložený (i uvnitř flex/grid kontejneru) */
.calendar-subscribe { box-sizing: border-box; width: 100%; max-width: none; align-self: stretch; grid-column: 1 / -1; 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);
}
