/* ════════════════════════════════════════════════
   buchovy.cz – sdílené styly
   ════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:        #f7f3ec;
  --cream-dark:   #ede7db;
  --forest:       #3a5230;
  --forest-mid:   #567845;
  --forest-light: #7fa668;
  --bark:         #8b6f4e;
  --bark-light:   #c4a882;
  --text-dark:    #1e2a17;
  --text-mid:     #4a5c3a;
  --text-light:   #7a8f6a;
  --white:        #ffffff;
  --red:          #c0392b;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ── Navigace ────────────────────────────────── */
#site-header { background: var(--forest); }
.hero-header  { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 940px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--forest-light); }

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(247,243,236,0.75);
  text-decoration: none; padding: 0.35rem 0.7rem; border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--cream); background: rgba(247,243,236,0.08); }
.nav-link.active { color: var(--cream); }

.nav-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* ══ NAV ══════════════════════════════════════ */

/* Header – sticky na normálních stránkách; na homepage absolutní (index.html inline styly) */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Scrolled / opaque stav (vždy na non-homepage, po scrollu na homepage) */
#site-header.scrolled {
  background: rgba(30, 42, 23, 0.96) !important;
  border-bottom: 1px solid rgba(127, 166, 104, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(20, 30, 16, 0.25);
}

/* ── Nav avatar ─────────────────────────────── */
.nav-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(247,243,236,0.3);
  transition: border-color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-avatar:hover { border-color: var(--forest-light); }

.nav-avatar-img,
.nav-avatar svg,
.nav-avatar > * {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  max-height: 36px;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.nav-avatar-initials {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-mid);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bark);
  color: var(--cream);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Dropdown menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  background: var(--text-dark);
  border: 1px solid rgba(127, 166, 104, 0.2);
  border-radius: 4px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(20, 30, 16, 0.4);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
}
.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: rgba(247, 243, 236, 0.8);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown-item:hover { background: rgba(127, 166, 104, 0.12); color: var(--cream); }
.nav-dropdown-item + .nav-dropdown-item { border-top: 1px solid rgba(247, 243, 236, 0.07); }

/* Hamburger s textem "Menu" – zobrazí se, pouze když priority+ něco schová */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  color: var(--cream);
  border-radius: 3px;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(247, 243, 236, 0.08); }
.nav-hamburger svg { width: 20px; height: 20px; display: block; }
.nav-hamburger-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}
.nav-hamburger.visible { display: inline-flex; }

/* Schovaná položka z priority+ */
.nav-links > li.priority-hidden { display: none; }

/* Plnoplošný overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 42, 23, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
}
.nav-overlay[hidden] { display: none; }
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-logo {
  position: absolute;
  top: 1.2rem;
  left: 1.5rem;
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 3px;
  display: flex;
  transition: background 0.15s;
}
.nav-overlay-close:hover { background: rgba(247, 243, 236, 0.08); }

.nav-overlay-inner {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem 2rem;
  max-width: 90%;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.nav-overlay-link {
  display: inline-block;
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--cream);
  background: transparent;
  padding: 0.35rem 0.8rem;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s, transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  transform: translateY(6px);
}
.nav-overlay.open .nav-overlay-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}
.nav-overlay-link:hover,
.nav-overlay-link:focus,
.nav-overlay-link.active {
  color: var(--forest-light);
  background: transparent;
}

.nav-overlay-separator {
  width: 60px;
  height: 1px;
  background: rgba(247, 243, 236, 0.2);
  margin: 0.8rem 0 0.4rem;
}

.nav-overlay-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.nav-overlay-user-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: rgba(247, 243, 236, 0.7);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.nav-overlay-user-link:hover { color: var(--cream); }

/* ── Tlačítka ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-primary  { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-mid); }
.btn-ghost    { background: transparent; color: var(--cream); border: 1px solid rgba(247,243,236,0.35); }
.btn-ghost:hover { background: rgba(247,243,236,0.08); }
.btn-edit     { background: var(--forest-mid); color: var(--cream); }
.btn-photos   { background: var(--bark);        color: var(--cream); }
.btn-publish  { background: transparent; color: var(--forest-mid); border: 1px solid currentColor; }
.btn-delete   { background: transparent; color: var(--red); border: 1px solid currentColor; }
.btn-delete:hover { background: var(--red); color: var(--white); }

.btn-submit { position: relative; }
.btn-submit.loading .btn-text { visibility: hidden; }
.btn-submit .spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(247,243,236,0.4);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.btn-submit.loading .spinner { display: block; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ── Page header ─────────────────────────────── */
.page-header {
  background: var(--forest);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(127,166,104,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(127,166,104,0.10) 0%, transparent 50%);
}
.page-header .eyebrow {
  font-weight: 300; font-size: 0.78rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--forest-light); margin-bottom: 0.9rem; position: relative;
}
.page-header h1 {
  font-family: 'Lora', serif;
  font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--cream); line-height: 1.1; position: relative;
}
.page-header .intro {
  margin-top: 1.1rem; font-weight: 400; font-size: 1.05rem;
  color: #ddd0be; max-width: 520px; margin-left: auto; margin-right: auto;
  line-height: 1.7; position: relative;
}
.header-rule {
  width: 48px; height: 1px; background: var(--forest-light);
  margin: 1.4rem auto 0; position: relative;
}

/* ── Main + bird list ────────────────────────── */
main { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.editor-bar {
  display: flex; gap: 0.8rem; margin-bottom: 2rem;
  padding: 1rem 0; border-bottom: 1px solid var(--cream-dark);
}
.editor-bar.hidden { display: none; }

.bird-list { display: flex; flex-direction: column; gap: 2.8rem; }

/* ── Bird card ───────────────────────────────── */
.bird-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(30,42,23,0.08), 0 4px 16px rgba(30,42,23,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}
.bird-card:hover {
  box-shadow: 0 2px 6px rgba(30,42,23,0.12), 0 8px 28px rgba(30,42,23,0.08);
  transform: translateY(-2px);
}
.bird-card.unpublished { opacity: 0.65; border: 2px dashed var(--bark-light); }

.bird-photo-col {
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(30,42,23,0.07);
}

.bird-photo {
  background: var(--cream-dark);
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.2s;
  flex: 1;
}
.bird-photo:hover { background: #e5ddd0; }

.bird-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  display: none;
}
.bird-photo img.loaded { display: block; }

.placeholder-icon { width: 48px; height: 48px; opacity: 0.35; }
.placeholder-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bark); opacity: 0.65; font-weight: 400;
}

.bird-gallery-item { display: none; }

.bird-caption {
  padding: 0.6rem 0.9rem 0.65rem;
  background: var(--cream-dark);
  border-top: 1px solid rgba(30,42,23,0.08);
  display: flex; flex-direction: column; gap: 0.1rem;
}
.bird-caption-title { font-size: 0.8rem; font-weight: 500; color: var(--text-dark); line-height: 1.3; }
.bird-caption-credit { font-size: 0.72rem; color: #6b5038; font-style: italic; }

.bird-info {
  padding: 2rem 2rem 2rem 2.2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.bird-number {
  font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mid); font-weight: 500; margin-bottom: 0.5rem;
}
.bird-name {
  font-family: 'Lora', serif;
  font-weight: 600; font-size: 2.1rem; color: var(--forest);
  line-height: 1.1; margin-bottom: 0.3rem;
}
.bird-latin {
  font-family: 'Lora', serif;
  font-style: italic; font-size: 1.05rem; color: #6b5038; margin-bottom: 1.2rem;
}
.bird-divider { width: 32px; height: 1px; background: var(--bark-light); margin-bottom: 1.2rem; }
.bird-desc { font-size: 1rem; line-height: 1.8; color: var(--text-dark); font-weight: 400; }

/* Editor controls */
.editor-controls {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.4rem; padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.badge-draft {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; background: var(--bark-light);
  color: var(--white); padding: 0.15rem 0.5rem; border-radius: 2px;
  align-self: center;
}

/* ── Stavy (loading, error) ─────────────────── */
.state-msg {
  text-align: center; padding: 3rem 1rem; font-size: 1rem;
  color: var(--text-mid);
}
.state-error { color: var(--red); }
.state-msg.hidden, .hidden { display: none !important; }
.empty-state { text-align: center; color: var(--text-light); padding: 3rem 0; }

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--forest);
  text-align: center; padding: 1.8rem;
}
footer p { font-size: 0.85rem; color: #b8d4a8; font-weight: 400; letter-spacing: 0.05em; }

/* ── Modals ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,30,16,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white); border-radius: 6px;
  width: 100%; max-width: 460px;
  padding: 2.2rem 2.2rem 1.8rem;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.25s;
  box-shadow: 0 24px 64px rgba(20,30,16,0.4);
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-wide { max-width: 680px; }

.modal-heading {
  font-family: 'Lora', serif;
  font-size: 1.6rem; font-weight: 600;
  color: var(--forest); margin-bottom: 1.4rem;
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer; padding: 0.3rem;
  color: #999; border-radius: 3px; display: flex;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text-dark); background: var(--cream-dark); }

.modal-actions {
  display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.4rem;
}

/* ── Form helpers ────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 0.4rem;
}
.form-input {
  width: 100%; padding: 0.65rem 0.85rem;
  border: 1px solid #ddd; border-radius: 3px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  color: var(--text-dark); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
  resize: vertical;
}
.form-input:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(86,120,69,0.12);
}
.form-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.form-check input { accent-color: var(--forest); width: 15px; height: 15px; }
.form-check-row { margin-top: 0.5rem; }

.form-error-msg {
  background: #fdf0ee; border: 1px solid #f5c6c0; border-radius: 3px;
  padding: 0.6rem 0.8rem; font-size: 0.83rem; color: var(--red); margin-bottom: 1rem;
}
.form-error-msg.hidden { display: none; }

/* ── Photo manager ───────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem; margin: 0.5rem 0 1.2rem;
  min-height: 80px;
}
.photo-item {
  border: 1px solid var(--cream-dark); border-radius: 4px;
  overflow: hidden; background: var(--cream-dark);
  cursor: grab; transition: opacity 0.2s, transform 0.2s;
}
.photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-meta { padding: 0.4rem 0.5rem 0; }
.photo-meta input {
  width: 100%; font-size: 0.75rem; border: none; border-bottom: 1px solid #e0d9ce;
  background: transparent; padding: 0.2rem 0; color: var(--text-dark); outline: none;
  font-family: 'Jost', sans-serif;
}
.photo-meta input + input { margin-top: 0.2rem; }
.photo-actions {
  display: flex; justify-content: flex-end; gap: 0.3rem;
  padding: 0.4rem 0.5rem;
}
.btn-save-photo, .btn-delete-photo {
  font-size: 0.75rem; padding: 0.15rem 0.5rem; border: none; border-radius: 2px;
  cursor: pointer; font-weight: 600;
}
.btn-save-photo   { background: var(--forest-mid); color: var(--white); }
.btn-delete-photo { background: #e74c3c; color: var(--white); }

.photo-item.dragging { opacity: 0.4; transform: scale(0.97); }
.photo-uploading { opacity: 0.6; }
.photo-loading, .photo-empty, .photo-error { font-size: 0.9rem; color: var(--text-light); padding: 1rem; }
.photo-error { color: var(--red); }
.photo-upload-row { display: flex; gap: 0.8rem; align-items: center; }
.photo-error-item { border: 2px solid var(--red); }

/* ── Preview CTA ─────────────────────────────── */
.preview-cta {
  text-align: center; margin-top: 2.5rem;
}
.preview-cta .btn-primary {
  padding: 0.75rem 2rem; font-size: 0.9rem; letter-spacing: 0.08em;
}

/* ── GLightbox přizpůsobení ──────────────────── */
.glightbox-clean .goverlay { background: rgba(30,42,23,0.95); }

/* ── Admin panel ─────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cream-dark);
  margin-bottom: 2rem;
}
.admin-tab {
  padding: 0.7rem 1.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-tab:hover { color: var(--forest); }
.admin-tab.active { color: var(--forest); border-bottom-color: var(--forest); }

.tab-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bark);
  color: var(--cream);
  border-radius: 10px;
  padding: 0.05rem 0.45rem;
  min-width: 1.4rem;
  text-align: center;
  display: none;
}
.tab-count.visible { display: inline-block; }

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Data table */
.data-table-wrap { overflow-x: auto; border-radius: 4px; border: 1px solid var(--cream-dark); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--white);
}
.data-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 0.75rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  white-space: nowrap;
}
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
  vertical-align: middle;
  color: var(--text-dark);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(58,82,48,0.025); }
.data-table .td-actions { white-space: nowrap; text-align: right; }

/* Role select inline */
.role-select {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--cream-dark);
  border-radius: 3px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
}
.role-select:focus { outline: none; border-color: var(--forest-mid); }

/* Role badges */
.role-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
}
.role-badge--pending  { background: #fef3c7; color: #92400e; }
.role-badge--member   { background: rgba(86,120,69,0.12); color: var(--forest-mid); }
.role-badge--podilnik { background: #dbeafe; color: #1e40af; }
.role-badge--admin    { background: var(--forest); color: var(--cream); }

/* Inline reject form */
.reject-inline {
  display: none;
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff8f6;
  border: 1px solid #f5c6c0;
  border-radius: 3px;
}
.reject-inline.open { display: block; }
.reject-inline input {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e0c8c4;
  border-radius: 3px;
  margin-bottom: 0.4rem;
  outline: none;
}
.reject-inline input:focus { border-color: var(--bark); }
.reject-inline-actions { display: flex; gap: 0.4rem; }

/* Small action buttons */
.btn-sm {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 3px;
}
.btn-approve { background: var(--forest-mid); color: var(--cream); border: none; cursor: pointer; font-family: 'Jost', sans-serif; font-weight: 500; transition: background 0.15s; }
.btn-approve:hover { background: var(--forest); }
.btn-approve:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-reject  { background: transparent; color: var(--red); border: 1px solid var(--red); cursor: pointer; font-family: 'Jost', sans-serif; font-weight: 500; transition: background 0.15s, color 0.15s; }
.btn-reject:hover  { background: var(--red); color: var(--white); }
.td-name { font-weight: 500; }
.td-note { font-size: 0.82rem; color: var(--text-mid); max-width: 180px; }
.td-date { font-size: 0.82rem; color: var(--text-mid); white-space: nowrap; }

/* ── Gate message ────────────────────────────── */
.gate-msg {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--text-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.gate-msg p { font-size: 1rem; }

/* ── Trip gallery strip ──────────────────────── */
.trip-gallery {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cream-dark) transparent;
}
.trip-gallery::-webkit-scrollbar        { height: 4px; }
.trip-gallery::-webkit-scrollbar-track  { background: transparent; }
.trip-gallery::-webkit-scrollbar-thumb  { background: var(--cream-dark); border-radius: 2px; }

.trip-gallery-more {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* ── Trip media items (lightbox triggers) ────── */
.trip-media-item {
  display: block;
  width: 80px; height: 80px;
  border-radius: 4px; overflow: hidden;
  position: relative; flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s;
  scroll-snap-align: start;
}
.trip-media-item:hover { opacity: 0.85; }
.trip-media-item img { width: 100%; height: 100%; object-fit: cover; }
.trip-media-item.gallery-hidden { display: none; }
.trip-media-item[style*="display: none"] { display: none !important; }

/* Video thumbnail placeholder */
.video-thumb-placeholder {
  width: 100%; height: 100%;
  background: #2a3a28;
  display: flex; align-items: center; justify-content: center;
  color: rgba(247,243,236,0.7);
}

.trip-media-item[data-type="video"]::after {
  content: '▶';
  position: absolute; bottom: 4px; right: 5px;
  font-size: 0.65rem; color: var(--cream);
  background: rgba(0,0,0,0.55);
  padding: 1px 4px; border-radius: 2px;
}

/* ── Media manager grid ──────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 1.2rem; min-height: 80px;
}
.media-grid-item {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--cream-dark);
  background: var(--cream-dark);
}
.media-grid-meta {
  padding: 0.5rem 0.6rem;
  font-size: 0.75rem; color: var(--text-mid);
  line-height: 1.5; border-top: 1px solid var(--cream-dark);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.media-grid-meta strong { color: var(--text-dark); font-weight: 500; }
.media-grid-actions {
  padding: 0.4rem 0.6rem;
  display: flex; justify-content: flex-end;
  border-top: 1px solid var(--cream-dark);
}

/* ── Upload formulář ─────────────────────────── */
.upload-previews {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.upload-preview-item {
  font-size: 0.8rem; color: var(--text-mid);
  background: var(--cream); padding: 0.3rem 0.6rem;
  border-radius: 3px; display: flex; align-items: center; gap: 0.4rem;
}
.upload-progress {
  height: 4px; background: var(--cream-dark);
  border-radius: 2px; margin-bottom: 1rem; overflow: hidden;
}
.upload-progress-bar {
  height: 100%; background: var(--forest-light);
  width: 0%; transition: width 0.3s ease;
}

/* ══ VÝLETY – INDEX MŘÍŽKA ═══════════════════════════════════ */

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.trip-tile {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(30,42,23,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}
.trip-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,42,23,0.13);
}

.trip-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-dark);
}
.trip-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.trip-tile:hover .trip-tile-img img { transform: scale(1.04); }

.trip-tile-placeholder { width: 100%; height: 100%; }
.trip-tile-placeholder[data-season="jaro"]     { background: var(--forest-mid); }
.trip-tile-placeholder[data-season="léto"]     { background: #4a7c6f; }
.trip-tile-placeholder[data-season="podzim"]   { background: var(--bark); }
.trip-tile-placeholder[data-season="zima"]     { background: #5a7a9a; }
.trip-tile-placeholder[data-season="celý rok"] { background: var(--forest); }

.trip-tile-name {
  padding: 0.85rem 1rem;
  font-family: 'Lora', serif;
  font-weight: 600; font-size: 1.25rem;
  color: var(--forest); line-height: 1.2;
}

/* ══ VÝLET – DETAIL ══════════════════════════════════════════ */

.trip-detail-hero {
  width: 100%; height: 380px;
  overflow: hidden; background: var(--forest);
}
.trip-detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.trip-detail-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.trip-back {
  display: inline-block;
  font-size: 0.82rem; color: var(--forest-mid);
  text-decoration: none; margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.trip-back:hover { text-decoration: underline; }

.trip-detail-header { margin-bottom: 1.5rem; }
.trip-detail-header h1 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--forest); line-height: 1.1; margin-bottom: 0.75rem;
}

.trip-detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.trip-badge {
  font-size: 0.8rem; font-weight: 500; color: var(--forest-mid);
  background: rgba(58,82,48,0.08); border-radius: 20px;
  padding: 0.25rem 0.75rem;
}

.trip-detail-description {
  font-size: 1rem; color: var(--text-mid); line-height: 1.8;
  margin-bottom: 1.8rem;
}

.trip-detail-info {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.92rem; color: var(--text-mid);
}
.trip-info-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.trip-info-row a { color: var(--forest-mid); text-decoration: none; }
.trip-info-row a:hover { text-decoration: underline; }
.trip-contact { white-space: pre-line; }

.trip-detail-gallery-section { margin-bottom: 2rem; }
.trip-detail-section-heading {
  font-family: 'Lora', serif;
  font-weight: 600; font-size: 1.5rem;
  color: var(--forest); margin-bottom: 1rem;
}

.trip-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}

.trip-detail-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
  margin-top: 2rem; margin-bottom: 2rem;
}

/* Cover picker */
.cover-picker { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.cover-pick-thumb {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: 4px; cursor: pointer;
  border: 3px solid transparent; transition: border-color 0.15s;
}
.cover-pick-thumb.selected { border-color: var(--forest); }
.form-hint { font-size: 0.78rem; color: #999; margin-top: 0.2rem; }

/* ══ BYL/A JSEM TAM ══════════════════════════════════════════ */

.trip-visited-section {
  margin: 2.5rem 0 2rem;
  padding: 1.2rem 1.4rem;
  background: var(--cream); border-radius: 6px;
}
.trip-visited-bar {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.8rem; flex-wrap: wrap;
}
.btn-visited {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.2rem; border-radius: 20px;
  border: 2px solid var(--forest-mid); background: transparent;
  color: var(--forest-mid); font-family: 'Jost', sans-serif;
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.btn-visited:hover { background: var(--forest-mid); color: var(--cream); }
.btn-visited.visited-active { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.visited-count { font-size: 0.85rem; color: var(--text-mid); }
.visited-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.visitor-chip {
  font-size: 0.8rem; color: var(--forest);
  background: rgba(58,82,48,0.1); border-radius: 20px;
  padding: 0.2rem 0.7rem;
}

/* ══ KOMENTÁŘE ════════════════════════════════════════════════ */

.trip-comments-section {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.comment-item {
  background: var(--cream); border-radius: 6px; padding: 1rem 1.2rem;
}
.comment-header {
  display: flex; align-items: baseline; gap: 0.6rem;
  flex-wrap: wrap; margin-bottom: 0.5rem;
}
.comment-author { font-weight: 500; font-size: 0.88rem; color: var(--forest); }
.comment-date   { font-size: 0.78rem; color: #999; }
.comment-edited { font-size: 0.75rem; color: #bbb; font-style: italic; }
.comment-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.comment-btn {
  background: none; border: none; font-size: 0.78rem;
  color: var(--forest-mid); cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.comment-btn-danger { color: #c0392b; }
.comment-btn:hover { opacity: 0.7; }
.comment-body { font-size: 0.92rem; color: var(--text-mid); line-height: 1.65; white-space: pre-wrap; }
.comment-form { margin-top: 1.5rem; }
.comment-textarea { resize: vertical; min-height: 80px; font-family: 'Jost', sans-serif; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 620px) {
  .bird-card { grid-template-columns: 1fr; }
  .bird-photo-col { border-right: none; border-bottom: 1px solid rgba(30,42,23,0.07); }
  .bird-photo { aspect-ratio: 16/9; }
  .bird-info { padding: 1.4rem 1.4rem 1.6rem; }
  .page-header { padding: 2.5rem 1.5rem 2.2rem; }
  .modal { padding: 1.6rem 1.2rem 1.4rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .trips-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trip-detail-hero { height: 240px; }
  .trip-detail-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .comment-actions { margin-left: 0; }
}

/* ── Profil stránka ─────────────────────────── */
.profil-section {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(30,42,23,0.07);
}

.profil-section-title {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--forest);
  margin-bottom: 1.5rem;
}

/* ── Avatar picker (profil stránka) ─────────── */
.avatar-picker { display: flex; flex-direction: column; gap: 1.5rem; }

.avatar-section-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 0.75rem;
}

.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 0.6rem;
}

.avatar-preset-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--forest);
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.avatar-preset-btn:hover  { transform: scale(1.08); }
.avatar-preset-btn.active { border-color: var(--forest-light); }

.avatar-preset-btn svg {
  width: 52px;
  height: 52px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.avatar-upload-area {
  border: 2px dashed var(--cream-dark);
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.avatar-upload-area:hover { border-color: var(--forest-mid); }

.avatar-current-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--forest-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--forest-mid);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
}
.avatar-current-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-option-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.avatar-option-row:last-child { border-bottom: none; }
.avatar-option-row label { cursor: pointer; font-size: 0.92rem; color: var(--text-dark); }

.avatar-google-thumb {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--cream-dark); flex-shrink: 0;
}

/* ══ PŘÍRODA – FILTR ══════════════════════════════════════════ */
.nature-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 2rem auto 1.5rem;
  padding: 0 1.5rem;
}

.nature-filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--cream-dark);
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nature-filter-btn:hover {
  border-color: var(--forest-mid);
  color: var(--forest);
}

.nature-filter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

/* ══ PŘÍRODA – MŘÍŽKA DLAŽDIC ════════════════════════════════ */
.nature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.nature-tile {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(30,42,23,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
}

.nature-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30,42,23,0.13);
}

.nature-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--forest);
  position: relative;
}

.nature-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.nature-tile:hover .nature-tile-img img { transform: scale(1.04); }

.nature-tile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--forest-mid);
}

.nature-tile-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(30,42,23,0.7);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.nature-tile-body {
  padding: 0.85rem 1rem;
}

.nature-tile-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.nature-tile-latin {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-mid);
}

/* ══ PŘÍRODA – DETAIL DRUHU ══════════════════════════════════ */
.species-latin {
  font-style: italic;
  color: var(--text-mid);
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* ══ HISTORIE – PŘEHLEDOVÁ MŘÍŽKA ═══════════════════════════════ */

.interviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.interview-tile {
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(30, 42, 23, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.interview-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 42, 23, 0.13);
}

.interview-tile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--forest);
}
.interview-tile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.interview-tile:hover .interview-tile-photo img { transform: scale(1.04); }
.interview-tile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--forest-mid);
}

.interview-tile-body {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  flex: 1;
  gap: 0.3rem;
}
.interview-tile-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--forest);
  line-height: 1.2;
}
.interview-tile-years {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--text-mid);
  letter-spacing: 0.04em;
}
.interview-tile-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-top: 0.2rem;
}
.interview-tile-meta {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 0.8rem;
}

/* ══ HISTORIE – DETAIL ROZHOVORU ═══════════════════════════════ */

.interview {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.interview .trip-back {
  margin-bottom: 1.5rem;
}

.interview-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.interview-hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.interview-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.interview-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest-mid);
}
.interview-name {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--forest);
}
.interview-subtitle {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.interview-intro {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-dark);
  max-width: 540px;
  margin-top: 0.4rem;
}
.interview-meta-line {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-top: 1.2rem;
}

.audio-label {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
  max-width: 720px;
  margin: 2.5rem auto 0.6rem;
  padding: 0 1.5rem;
  letter-spacing: 0.01em;
}

/* ── Sticky audio player ───────────────────────────────────── */
.audio-player {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--cream-dark);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  position: sticky;
  top: 64px;
  z-index: 50;
  max-width: 720px;
  margin: 0 auto 2rem;
  box-shadow: 0 2px 8px rgba(20, 30, 16, 0.08);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.audio-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-dark);
  padding: 0;
  transition: background 0.15s;
  flex-shrink: 0;
}
.audio-btn:hover { background: rgba(0, 0, 0, 0.06); }

.audio-btn--skip {
  width: 36px;
  height: 36px;
}
.audio-btn--skip svg { width: 22px; height: 22px; }

.audio-btn--play {
  width: 44px;
  height: 44px;
  background: var(--forest);
  color: var(--cream);
}
.audio-btn--play:hover { background: var(--forest-mid); }
.audio-btn--play svg { width: 22px; height: 22px; }

.audio-btn--play .icon-pause { display: none; }
.audio-btn--play.is-playing .icon-play  { display: none; }
.audio-btn--play.is-playing .icon-pause { display: block; }

.audio-btn--speed {
  padding: 0 0.6rem;
  height: 32px;
  min-width: 44px;
  border-radius: 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.audio-time {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 42px;
}
.audio-time-total { text-align: right; }

.audio-progress {
  flex: 1;
  min-width: 0;
}
.audio-progress-bar {
  position: relative;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}
.audio-progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: var(--forest);
  border-radius: 2px;
  pointer-events: none;
}
.audio-progress-input {
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 24px;
  width: 100%;
  opacity: 0.001;
  cursor: pointer;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.audio-progress-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: transparent;
  cursor: pointer;
}
.audio-progress-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ── Přepis ─────────────────────────────────────────────────── */
.transcript {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}
.transcript-chapter { margin-bottom: 3rem; }
.transcript-chapter h2 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(58, 82, 48, 0.15);
}
/* Při skoku na anchor v přepisu nech místo nad nadpisem,
   aby ho nepřekryl sticky audio přehrávač (header 64px + player ~60px + okraj). */
.transcript h2,
.transcript h3,
.transcript [id^="kapitola-"] {
  scroll-margin-top: 9rem;
}
.transcript p {
  font-family: 'Jost', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  color: var(--text-dark);
  transition: background 0.15s ease;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}
.transcript p:hover {
  background: rgba(127, 166, 104, 0.04);
}
.transcript p.q {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.transcript p.a {
  margin-bottom: 1.8rem;
}

/* ── Kapitoly ──────────────────────────────────────────────── */
.chapters {
  max-width: 720px;
  margin: 3rem auto;
  padding: 1.5rem;
  background: var(--cream-dark);
  border-radius: 4px;
}
.chapters h2 {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 1rem;
}
.chapters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.chapters-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(58, 82, 48, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
  transition: color 0.15s;
}
.chapters-item:last-child { border-bottom: none; }
.chapters-item:hover { color: var(--forest-mid); }
.chapters-item.active {
  color: var(--forest);
  font-weight: 500;
}
.chapters-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
}
.chapters-time {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.chapters-time-icon {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.4rem;
  vertical-align: -0.15em;
  flex-shrink: 0;
  transition: color 0.15s;
}
.chapters-time {
  cursor: pointer;
}
.chapters-time:hover {
  color: var(--forest-mid);
}

.chapters--no-times .chapters-item {
  cursor: default;
}
.chapters--no-times .chapters-title {
  cursor: pointer;
}
.chapters--no-times .chapters-title:hover {
  color: var(--forest-mid);
}
.chapters--no-times .chapters-item:hover {
  color: inherit;
}
.chapters--no-times .chapters-time {
  opacity: 0.35;
}

/* ── Responsivita ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .interview-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .interview-hero-photo img {
    max-height: 50vh;
  }
  .transcript {
    padding: 0 1rem;
  }
  .transcript p {
    font-size: 1.05rem;
  }
}

@media (max-width: 600px) {
  .audio-player {
    gap: 0.5rem;
    padding: 0.6rem 0.7rem;
  }
  .audio-time-total   { display: none; }
  .audio-btn--speed   { display: none; }
}

/* ── Fotky v rozhovoru (float vedle odstavce) ────────── */
.rozhovor-photos {
  float: right;
  max-width: 320px;
  margin: 0.25rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rozhovor-photo-link {
  display: block;
}
.rozhovor-photo-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.rozhovor-photo-cap {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 0.25rem;
  font-style: italic;
}
@media (max-width: 680px) {
  .rozhovor-photos {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }
}
/* clearfix – zabrání přetékání floatu do dalšího <h2> */
.transcript section::after {
  content: "";
  display: block;
  clear: both;
}

/* ── Site footer ─────────────────────────────────────── */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  background: var(--text-dark, #1e2a17);
  color: var(--cream, #f7f3ec);
  font-family: 'Jost', sans-serif;
  font-size: 0.875rem;
}
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.site-footer-copy {
  margin: 0;
  opacity: 0.85;
}
.site-footer-privacy {
  margin: 0;
  opacity: 0.7;
  font-size: 0.8125rem;
}
.site-footer-privacy a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 680px) {
  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
