/* ====== STRUKTURÁLNÍ OPRAVY LAYOUTU (společné pro všechny motivy) ======
   Spolehlivé přichycení sloupců, čtecí šířka, pozice prvků. Bez barev. */

/* Sekundární tlačítka (akční lišty) – jednotný čistý styl napříč webem.
   Stejný rámeček, padding, velikost i zarovnání ikony + textu. */
.secondary-button.pure-button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(128,128,128,.34) !important;
  border-radius: 9px !important;
  background: transparent !important; color: inherit !important;
  font-size: 13.5px !important; font-weight: 600;
  padding: 7px 14px !important; line-height: 1.2;
  transition: border-color .12s, color .12s, background .12s;
}
.secondary-button.pure-button:hover {
  border-color: var(--akcent, #9a3b2e) !important;
  color: var(--akcent, #9a3b2e) !important;
  background: rgba(154,59,46,.05) !important;
}
.secondary-button.pure-button .fa { font-size: 13px; opacity: .8; line-height: 1; }
.secondary-button.pure-button:hover .fa { opacity: 1; }
/* zvýrazněný stav (např. dílo je v záložkách) */
.secondary-button.pure-button.je-aktivni {
  border-color: var(--akcent, #9a3b2e) !important; color: var(--akcent, #9a3b2e) !important;
  background: rgba(154,59,46,.07) !important;
}
/* destruktivní akce (smazat) – decentní červené odlišení */
.secondary-button.pure-button.je-nebezpeci { color: #b23a2e !important; border-color: rgba(178,58,46,.4) !important; }
.secondary-button.pure-button.je-nebezpeci:hover { color: #fff !important; background: #b23a2e !important; border-color: #b23a2e !important; }

/* Akční lišta v detailu díla – čistá řada tlačítek se stejnými rozestupy */
.main-content-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== Elegantní formulářová pole (vstupy, textarea, select) napříč webem =====
   Pryč s holými bílými boxy. Barvy pozadí pro tmavé motivy řeší motiv. */
.pure-form input[type="text"], .pure-form input[type="email"], .pure-form input[type="password"],
.pure-form input[type="number"], .pure-form input[type="date"], .pure-form input[type="search"],
.pure-form input[type="url"], .pure-form textarea, .pure-form select,
input.form-vstup, textarea {
  border: 1px solid rgba(128,128,128,.28) !important;
  border-radius: 9px !important;
  padding: 10px 13px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  box-shadow: none !important;
  transition: border-color .12s ease;
}
.pure-form input:focus, .pure-form textarea:focus, .pure-form select:focus, textarea:focus {
  border-color: var(--akcent, #9a3b2e) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(154,59,46,.10) !important;
}
.pure-form textarea, textarea { line-height: 1.55; resize: vertical; }

/* akce u komentáře (nahlásit / smazat) */
.komentar-akce { margin-top: 4px; font-size: 12px; opacity: .65; }
.komentar-akce form { display: inline; }
.komentar-akce button { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; font-size: 12px; text-decoration: underline; padding: 0 8px 0 0; }
.komentar-akce button:hover { opacity: 1; }

/* ===== MOBIL / TABLET (pod 60em): čisté stackované rozvržení ===== */
@media (max-width: 59.99em) {
  #layout { display: block !important; padding: 0 !important; }
  #nav, #list, #main {
    position: static !important; width: auto !important; max-width: none !important;
    height: auto !important; left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important; margin: 0 !important;
    float: none !important; overflow: visible !important;
  }
  #main, #main.no-list { left: auto !important; padding: 1em 1.1em 3em !important; }
  .main-content { max-width: none !important; }
  .aktivita-grid, .zebricky-grid { grid-template-columns: 1fr !important; }
  .flash-banner { position: static !important; left: auto !important; }

  /* nav + seznam: skryté, otevírají se přes tlačítka nahoře */
  /* Mobilní lišta menu – #nav je tmavý pruh, v něm stylovaná tlačítka (ne modré odkazy) */
  #nav { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px;
         height: auto !important; padding: 9px 12px !important; text-align: left !important; }
  .nav-menu-button, .nav-list-button {
    position: static !important; top: auto; left: auto; right: auto;
    display: inline-flex !important; align-items: center; gap: 7px;
    margin: 0; padding: 9px 15px; border-radius: 9px;
    font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none !important;
    color: #fff !important; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); }
  .nav-menu-button:hover, .nav-list-button:hover { background: rgba(255,255,255,.26); }
  .nav-menu-button::before { content: "\2630"; font-size: 16px; }
  .nav-list-button::before { content: "\2261"; font-size: 16px; }
  /* „Seznam kategorií" jen tam, kde sloupec s kategoriemi vážně je */
  body:has(#main.no-list) .nav-list-button { display: none !important; }
  #nav .nav-inner { display: none; flex-basis: 100%; order: 5; padding: 12px 4px 4px; }
  #nav.open .nav-inner { display: block; }
  #list { display: none; border: 0 !important; }
  #list.open { display: block; }
  .profil-hlavicka { flex-wrap: wrap; }
  .avatar { width: 64px; height: 64px; min-width: 64px; font-size: 30px; }
}

/* flash hláška – přívětivé potvrzení (zelená, čitelný bílý text), ne jako error.
   #layout prefix kvůli přebití motivů (ty si flash barví na vínovou/modrou). */
#layout .flash-banner {
  position: fixed !important; top: 16px !important; right: 18px !important; left: auto !important; bottom: auto !important; z-index: 60 !important;
  min-width: 220px; max-width: 380px; width: auto !important; height: auto !important;
  padding: 14px 20px !important; text-align: left !important;
  background: #2e7d4f !important; color: #ffffff !important;
  border-radius: 10px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 16px !important; font-weight: 400 !important; line-height: 1.4 !important;
  letter-spacing: normal !important; white-space: normal !important;
  box-shadow: 0 6px 22px rgba(0,0,0,.22) !important;
  animation: flashIn .3s ease;
}
#layout .flash-banner::before { content: "✓ "; font-weight: 700; }
@keyframes flashIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* žebříčky – tři tabulky pod sebou (jednotný styl s tabulkou děl v profilu) */
.zebricek-tabulka { margin-bottom: 36px; }
.zebricek-tabulka:last-child { margin-bottom: 0; }
.zebricek-nadpis { font-size: 20px; margin: 0 0 .5em; }
.zebricek-tabulka .moje-tvorba { max-width: 720px; }
.zebricek-poradi { opacity: .5; font-weight: 600; width: 1%; white-space: nowrap; }
.zebricek-sekce { display: block; font-size: 12px; opacity: .6; margin-top: 1px; }
.zebricek-prazdno { opacity: .6; }
/* žebříček má jiné pořadí sloupců než „moje tvorba“ – zrušit mobilní skrývání 2. sloupce/autora */
@media (max-width: 48em) {
  .zebricek-tabulka .moje-tvorba th:nth-child(2),
  .zebricek-tabulka .moje-tvorba .mt-sekce { display: table-cell; }
}

/* widgety na homepage – kolik sloupců se vejde, tolik */
.aktivita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 40px; align-items: start; }
.widget .list-item, .widget .komentar-item { padding: 9px 0; }
.widget .list-item-title { font-size: 15.5px; }

/* ======================================================================
   HOMEPAGE – mřížka boxů s novinkami (co se kde stalo / přidalo)
   ====================================================================== */

/* --- Úvodní řádek + CTA --- */
.hp-lead { text-align: center; margin: 12px 0 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(128,128,128,.16); }
.hp-lead-text { font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1.3;
  font-weight: 400; opacity: .95; margin: 0 auto 10px; max-width: 860px; text-wrap: balance; }
.hp-lead-podtitul { font-size: 16px; opacity: .62; margin: 0 auto 22px; max-width: 540px; }
.hp-lead-akce { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hp-lead-akce .primary-button, .hp-lead-akce .secondary-button { padding: 11px 26px !important; font-size: 15px !important; }
@media (max-width: 48em) { .hp-lead-text { font-size: 22px; } }

/* --- Mřížka: 2sloupcová; každý box má přirozenou výšku (žádné natahování → žádné prázdno) --- */
.hp-mrizka { display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  grid-auto-rows: auto; align-items: start; margin-bottom: 22px; }
@media (max-width: 48em) { .hp-mrizka { grid-template-columns: 1fr; } }

/* --- Box (panel s novinkami) – vyplní celou výšku buňky, ať jsou všechny stejné --- */
.hp-box { margin: 0 !important; max-width: none !important;
  display: flex; flex-direction: column;
  border: 1px solid rgba(128,128,128,.2); border-radius: 10px; overflow: hidden;
  background: transparent; }
.hp-box .hp-box-telo { flex: 1; }
.hp-box-hlava { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 10px 15px; background: rgba(128,128,128,.07); border-bottom: 1px solid rgba(128,128,128,.16); }
.hp-box-titul { font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; font-weight: 700;
  margin: 0; color: var(--akcent, #9a3b2e); letter-spacing: .2px; }
.hp-box-podtitul { font-size: 12px; opacity: .6; display: inline-flex; align-items: center; gap: 5px; }
.hp-box-hlava-vpravo { display: inline-flex; align-items: baseline; gap: 12px; }
.hp-box-vice { font-size: 17px; line-height: 1; text-decoration: none; color: inherit; opacity: .45; }
.hp-box-vice:hover { opacity: 1; color: var(--akcent, #9a3b2e); }
.hp-box-telo { padding: 4px 15px 10px; }

/* --- Řádek v boxu: text vlevo, čas/počet vpravo --- */
.box-radek { display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 7px 0; border-bottom: 1px solid rgba(128,128,128,.09);
  text-decoration: none; color: inherit; }
.box-radek:last-child { border-bottom: 0; }
.box-nazev { font-size: 14.5px; line-height: 1.35; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-radek:hover .box-nazev { color: var(--akcent, #9a3b2e); }
.box-nazev-koment { font-style: italic; opacity: .92; }
/* komentář: text vlevo (zkrátí se), meta vpravo na stejném řádku – jako ostatní boxy */
.box-koment-text { font-size: 14.5px; line-height: 1.35; opacity: .92; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.box-koment-meta { font-size: 12px; opacity: .6; line-height: 1.3; white-space: nowrap; flex: none; }
.box-koment-meta strong { color: var(--akcent, #9a3b2e); font-weight: 600; opacity: 1; }
.box-meta { font-size: 12px; opacity: .5; white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }

/* --- Anketa / moudro uvnitř boxu --- */
.hp-box .anketa-otazka { font-size: 15px; margin-top: 4px; }
.hp-box .moudro-dne { margin: 0; padding: 4px 0; border: 0; max-width: none; }
.hp-box .moudro-dne blockquote { font-size: 15.5px; line-height: 1.5; }

/* --- Anketa přes celou šířku, zarovnaná dolů pod mřížku --- */
.hp-box-anketa { column-span: all; -webkit-column-span: all; break-inside: auto; }
.hp-box-anketa .hp-box-telo { max-width: 640px; }

/* --- Vzkazník jako box na HP – scrollovatelné okno bez dvojitého rámu --- */
.hp-box .pokec-okno { border: 0; background: transparent; padding: 0; margin: 0 0 10px;
  max-height: 240px; overflow-y: auto; gap: 5px; }
.hp-box .pokec-form { margin-top: 6px; }
.hp-box .pokec-form input { min-width: 0; }

/* --- Emoji výběr ve Vzkazníku --- */
.pokec-emoji-wrap { position: relative; display: flex; flex: none; }
.pokec-emoji-btn { flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(128,128,128,.3); background: transparent; cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0; }
.pokec-emoji-btn:hover { border-color: var(--akcent, #9a3b2e); }
/* fixed + polohování JS-kem, aby panel nebyl ořezán overflow:hidden boxem (.hp-box) */
.pokec-emoji-panel { position: fixed; z-index: 1000;
  width: 252px; max-height: 188px; overflow-y: auto; padding: 8px;
  background: var(--bg2, #fff); border: 1px solid rgba(128,128,128,.2); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.20);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.pokec-emoji { border: 0; background: transparent; cursor: pointer; font-size: 21px;
  line-height: 1; padding: 5px; border-radius: 7px; }
.pokec-emoji:hover { background: rgba(128,128,128,.15); }

/* Twemoji – barevné SVG místo placatých systémových emoji */
img.emoji { height: 1.15em; width: 1.15em; margin: 0 .05em 0 .1em;
  vertical-align: -0.2em; display: inline-block; }
.pokec-emoji img.emoji { width: 23px; height: 23px; margin: 0; vertical-align: middle; }
.pokec-emoji-btn img.emoji { width: 20px; height: 20px; margin: 0; vertical-align: middle; }

/* --- Vzkazník: vlastní stránka – chat přes celou šířku, bez boxu --- */
.vzkaznik-stranka { max-width: none; margin: 0; }
.vzkaznik-hlava { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vzkaznik-hlava .sekce-nadpis { margin: 0; }
.vzkaznik-online { font-size: 13px; opacity: .6; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vzkaznik-popis { font-size: 14px; opacity: .65; margin: 6px 0 14px; }

/* Okno bez boxu – řádky tečou přes celou šířku stránky, žádný rámeček/pozadí */
.vzkaznik-okno { max-height: none; min-height: 0; overflow: visible;
  border: 0; border-radius: 0; background: transparent; padding: 0; gap: 0; }

/* Řádek vzkazu – přes celou šířku, čas · jméno · text, oddělený jen linkou */
.vzkaznik-okno .pokec-radek {
  width: auto; max-width: none; margin: 0;
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 4px; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(128,128,128,.1); }
.vzkaznik-okno .pokec-radek:hover { background: rgba(128,128,128,.05); }
.vzkaznik-okno .pokec-cas { order: 0; flex: none; min-width: 38px; font-size: 11px; opacity: .4; margin: 0; }
.vzkaznik-okno .pokec-nick { order: 1; flex: none; font-size: 14px; margin: 0; }
.vzkaznik-okno .pokec-text { order: 2; flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.5; word-break: break-word; }
.vzkaznik-okno .pokec-x { order: 3; flex: none; }
.vzkaznik-okno .pokec-muj { background: rgba(128,128,128,.035); }

.vzkaznik-stranka .pokec-form { margin-top: 16px; }

@media (max-width: 60em) {
  .hp-mrizka { columns: 1; }
}

/* ===== Fórum (modernizace) ===== */
.forum-drobky { font-size: 13px; opacity: .7; margin: 2px 0 1em; }
.forum-drobky a { text-decoration: none; color: var(--akcent, #9a3b2e); }
.forum-drobky span { opacity: .5; }
.forum-hlava { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.forum-temata { display: flex; flex-direction: column; gap: 10px; }
.forum-tema { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid rgba(128,128,128,.2); border-radius: 12px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.forum-tema:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--akcent, #9a3b2e); }
.forum-tema-ikona { width: 44px; height: 44px; min-width: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 22px; font-weight: 700; color: #fff; background: var(--akcent, #9a3b2e); }
.forum-tema-telo { flex: 1; min-width: 0; }
.forum-tema-nazev { display: block; font-weight: 700; font-size: 17px; }
.forum-tema-popis { display: block; font-size: 13.5px; opacity: .7; margin-top: 2px; }
.forum-tema-staty { text-align: right; min-width: 84px; }
.forum-tema-pocet { font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.forum-tema-popisek { font-size: 12px; opacity: .6; margin-left: 4px; }
.forum-tema-cas { display: block; font-size: 11px; opacity: .5; margin-top: 2px; }
.forum-vlakna { display: flex; flex-direction: column; }
.forum-vlakno { display: flex; align-items: center; gap: 14px; padding: 13px 6px; border-bottom: 1px solid rgba(128,128,128,.16); text-decoration: none; color: inherit; }
.forum-vlakno:hover { background: rgba(128,128,128,.05); }
.forum-vlakno-telo { flex: 1; min-width: 0; }
.forum-vlakno-predmet { display: block; font-weight: 600; font-size: 16px; }
.forum-vlakno-meta { display: block; font-size: 12.5px; opacity: .6; margin-top: 1px; }
.forum-vlakno-pocet { text-align: center; min-width: 70px; }
.fvp-cislo { display: block; font-family: Georgia, serif; font-size: 19px; font-weight: 700; line-height: 1; }
.fvp-popis { font-size: 11px; opacity: .55; }
.forum-prispevky { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.forum-prispevek { display: flex; gap: 14px; }
.forum-prispevek-autor { width: 96px; min-width: 96px; text-align: center; }
.forum-prispevek-autor .avatar-mini { width: 48px; height: 48px; min-width: 48px; font-size: 20px; margin: 0 auto; }
.forum-prispevek-nick { display: block; font-size: 13px; font-weight: 700; margin-top: 6px; word-break: break-word; }
.forum-prispevek-nick a { text-decoration: none; color: var(--akcent, #9a3b2e); }
.forum-prispevek-telo { flex: 1; min-width: 0; border: 1px solid rgba(128,128,128,.18); border-radius: 10px; padding: 12px 16px; background: rgba(128,128,128,.03); }
.forum-prispevek-cas { font-size: 12px; opacity: .5; margin-bottom: 5px; }
/* Štítek „odpovídá uživateli X" u vnořené reakce */
.forum-prispevek-odpovida { display: inline-block; opacity: 1; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: rgba(128,128,128,.12); color: inherit; text-decoration: none; font-size: 11.5px; }
.forum-prispevek-odpovida strong { color: var(--akcent, #9a3b2e); font-weight: 600; }
.forum-prispevek-odpovida:hover { background: color-mix(in srgb, var(--akcent, #9a3b2e) 14%, transparent); }
.forum-odpovida-uryvek { opacity: .7; font-style: italic; }
/* vnořená reakce má jemně odlišené tělo, ať je hierarchie čitelnější */
.forum-odpovedi .forum-prispevek-telo { background: rgba(128,128,128,.06); }
.forum-prispevek-text { line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.forum-odpoved { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(128,128,128,.16); }

/* Vnořené odpovědi (strom) – výrazné odsazení + svislá linka napojení */
.forum-odpovedi { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 0 6px;
  padding-left: 40px; border-left: 3px solid var(--akcent, #9a3b2e);
  border-left-color: color-mix(in srgb, var(--akcent, #9a3b2e) 45%, transparent); }
.forum-odpovedi-max { padding-left: 20px; }
/* odpovědi mají menší avatar, ať je hierarchie čitelná */
.forum-odpovedi .forum-prispevek-autor { width: 70px; min-width: 70px; }
.forum-odpovedi .forum-prispevek-autor .avatar-mini { width: 38px; height: 38px; min-width: 38px; font-size: 16px; }

/* tlačítko Odpovědět = hlavní akce u příspěvku */
.forum-akce-odpovedet { color: var(--akcent, #9a3b2e) !important; font-weight: 600; opacity: 1 !important; }
.forum-akce-odpovedet:hover { text-decoration: underline; }
.forum-reply-form { margin-top: 11px; }
.forum-reply-form textarea { width: 100%; resize: vertical; }

@media (max-width: 40em) {
  .forum-prispevek-autor, .forum-odpovedi .forum-prispevek-autor { width: 48px; min-width: 48px; }
  .forum-prispevek-autor .avatar-mini, .forum-odpovedi .forum-prispevek-autor .avatar-mini { width: 34px; height: 34px; min-width: 34px; font-size: 14px; }
  .forum-odpovedi { padding-left: 18px; }
}

/* Notifikace */
.notif-radek { display: flex; align-items: baseline; gap: 12px; padding: 11px 12px; border-bottom: 1px solid rgba(128,128,128,.14); text-decoration: none; color: inherit; border-radius: 6px; }
.notif-radek:hover { background: rgba(128,128,128,.06); }
.notif-radek.nova { background: rgba(154,59,46,.06); }
.notif-radek.nova .notif-text::before { content: "•"; color: var(--akcent, #9a3b2e); margin-right: 6px; font-weight: 700; }
.notif-text { flex: 1; }
.notif-cas { font-size: 12px; opacity: .5; white-space: nowrap; }

/* Moje komentáře – doplňky ke sdílené .tabulka */
.mk-autor { white-space: nowrap; }
.mk-autor .avatar-mini { vertical-align: middle; margin-right: 7px; }
.mk-autor a { text-decoration: none; color: inherit; opacity: .85; }
.mk-autor a:hover { color: var(--akcent, #9a3b2e); }
.mk-text { font-family: Georgia, "Times New Roman", serif; opacity: .9; }

/* Zápisník – řádek konceptu */
.koncept-radek { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid rgba(128,128,128,.14); padding: 4px 0; }
.koncept-text { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: block; padding: 8px 0; }
.koncept-text:hover .list-item-title { color: var(--akcent, #9a3b2e); }
.koncept-akce { display: flex; gap: 6px; padding-top: 12px; flex-shrink: 0; }
.koncept-akce .pure-button { font-size: 12px; padding: 4px 10px; }

/* Moudro dne */
.moudro-dne { margin: 0 0 24px; padding: 4px 0 4px 22px; border-left: 3px solid var(--akcent, #9a3b2e); max-width: 680px; }
.moudro-stitek { display: block; font-family: Georgia, serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--akcent, #9a3b2e); margin-bottom: 6px; }
.moudro-dne blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 19px; line-height: 1.5; }
.moudro-dne figcaption { margin-top: 7px; font-size: 14px; opacity: .8; }
.moudro-dne figcaption a { color: var(--akcent, #9a3b2e); text-decoration: none; }

/* Tipy na knihy (affiliate) */
.knihy-tipy { margin-top: 2.4em; }
.knihy-tipy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; }
.kniha-tip { text-decoration: none; color: inherit; text-align: center; }
.kniha-obal { display: block; width: 100%; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.18); background: rgba(128,128,128,.1); }
.kniha-obal img { width: 100%; height: 100%; object-fit: cover; }
.kniha-obal-prazdny { display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 40px; font-weight: 700; opacity: .4; }
.kniha-tip:hover .kniha-obal { box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.kniha-titulek { display: block; font-weight: 700; font-size: 14px; margin-top: 8px; line-height: 1.3; }
.kniha-autor { display: block; font-size: 12.5px; opacity: .65; }
.knihy-tipy-pozn { font-size: 12px; opacity: .5; margin-top: 12px; }

/* Prostřední panel (seznam děl/autorů) – jednotný vzhled napříč webem.
   Text vlevo, číslo (přečtení) vpravo. Platí pro dilo/show, autor/show, dlouhe/show, hledat. */
#list .main-item, #list .main-item-nav { display: flex; align-items: center; gap: .5rem; }
#list .main-item-text,
#list .main-item-nav-label,
#list .main-item-nav-form { flex: 1 1 auto; min-width: 0; margin: 0; }   /* min-width:0 kvůli ellipsis */
#list .main-count { flex: none; width: auto; min-width: 2.4rem; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* Záhlaví prostředního panelu na stránce díla – vysvětluje, co list je */
.list-zahlavi { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid rgba(128,128,128,.15); }
.list-zahlavi-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.list-zahlavi-popis { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; opacity: .55; }
.list-zahlavi-kat { font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 700;
  color: var(--akcent, #9a3b2e); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-zahlavi-kat:hover { text-decoration: underline; }
.list-zahlavi-razeni { max-width: 160px; }

/* ===== Hezké vínové roletky (řazení / filtry) – obrys + vlastní šipka ===== */
select.list-zahlavi-razeni,
select.autori-razeni,
.autor-dila-form select,
.dila-filtry select,
.mt-filtr select,
.sbirky-filtr select,
.razeni-prepinac select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  border: 1.5px solid var(--akcent, #9a3b2e) !important;
  background-color: transparent !important;
  color: var(--akcent, #9a3b2e) !important;
  font-weight: 600; font-size: 13.5px !important;
  border-radius: 20px !important;
  padding: 7px 34px 7px 15px !important;
  cursor: pointer; line-height: 1.2; height: auto !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%239a3b2e'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  box-shadow: none !important;
}
select.list-zahlavi-razeni:hover,
select.autori-razeni:hover,
.autor-dila-form select:hover,
.dila-filtry select:hover,
.mt-filtr select:hover,
.sbirky-filtr select:hover { background-color: rgba(154,59,46,.08) !important; border-color: var(--akcent, #9a3b2e) !important; }
select.list-zahlavi-razeni:focus,
select.autori-razeni:focus,
.autor-dila-form select:focus,
.dila-filtry select:focus,
.mt-filtr select:focus,
.sbirky-filtr select:focus { outline: none !important; box-shadow: 0 0 0 3px rgba(154,59,46,.18) !important; border-color: var(--akcent, #9a3b2e) !important; }

/* Výpis sbírek – filtr podle autora */
.sbirky-filtr { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sbirky-filtr label { font-size: 13px; opacity: .6; }
.sbirky-filtr select { max-width: 320px; }
.sbirky-filtr-zrusit { font-size: 13px; text-decoration: none; opacity: .65; }
.sbirky-filtr-zrusit:hover { opacity: 1; color: var(--akcent, #9a3b2e); }

/* Výpis sbírek – jednoduchá tabulka */
.sbirky-tabulka { width: 100%; border: 0; }
.sbirky-tabulka th { font-weight: 600; opacity: .6; font-size: 13px; }
.sbirky-tabulka td { font-size: 14.5px; }
.sbirky-tabulka tbody tr:hover td { background: rgba(128,128,128,.06); }
.sbirky-tabulka td a { text-decoration: none; color: var(--akcent, #9a3b2e); }
.sbirky-tabulka td a:hover { text-decoration: underline; }
.sbirky-tabulka td:nth-child(4) { opacity: .6; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Vydané knihy (profil) */
.vydane-seznam { list-style: none; padding: 0; margin: 0; }
.vydane-seznam li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(128,128,128,.14); }
.vydane-verejne li { display: list-item; border: none; padding: 4px 0; }
.vydane-seznam a { text-decoration: none; color: var(--akcent, #9a3b2e); }
.vydane-rok { opacity: .55; }

/* Aktivita – feed */
.aktivita-feed { display: flex; flex-direction: column; }
.akt-radek { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(128,128,128,.14); }
.akt-typ { font-family: Georgia, serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 4px; min-width: 56px; text-align: center; flex-shrink: 0; }
.akt-dilo { background: rgba(154,59,46,.12); color: #9a3b2e; }
.akt-koment { background: rgba(128,128,128,.14); opacity: .85; }
.akt-telo { flex: 1; min-width: 0; line-height: 1.5; }
.akt-kdo, .akt-co { text-decoration: none; color: var(--akcent, #9a3b2e); font-weight: 600; }
.akt-cas { font-size: 12px; opacity: .5; margin-left: 4px; }
.akt-uryvek { display: block; font-size: 13.5px; opacity: .75; font-family: Georgia, serif; }

/* Knihovnička */
.knihovna-hvezdy { color: #e8a91d; margin-left: 6px; letter-spacing: 1px; font-size: 13px; }
.knihovna-verejna li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.profil-podtitulek { font-size: 13px; opacity: .65; margin: -4px 0 8px; }

/* Kdo doporučil tvorbu – seznam v railu */
.doporucili-seznam { list-style: none; margin: 0; padding: 0; }
.doporucili-seznam li { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 3px 0; }
.doporucili-seznam a { text-decoration: none; color: var(--akcent, #9a3b2e); }
.doporucili-pocet { font-size: 12px; opacity: .5; font-variant-numeric: tabular-nums; }

/* Kdo doporučil tvorbu – „ukázat všechny" (zbytek nad top 10) */
.doporucili-vic { margin-top: 4px; }
.doporucili-vic > summary { cursor: pointer; list-style: none; font-size: 13px; padding: 5px 0; color: var(--akcent, #9a3b2e); opacity: .8; }
.doporucili-vic > summary::-webkit-details-marker { display: none; }
.doporucili-vic > summary::before { content: "▾ "; font-size: 11px; }
.doporucili-vic[open] > summary::before { content: "▴ "; }
.doporucili-vic > summary:hover { opacity: 1; text-decoration: underline; }
.doporucili-vic[open] > summary { opacity: .55; }

/* Díla, která autor doporučil – čistý seznam (titulek—autor vlevo, datum vpravo) */
.doporucil-dila { list-style: none; margin: 0; padding: 0; }
.doporucil-dila li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(128,128,128,.12); }
.doporucil-dila li:last-child { border-bottom: none; }
.doporucil-dila .dd-text { min-width: 0; line-height: 1.45; }
.doporucil-dila .dd-titulek { text-decoration: none; color: var(--akcent, #9a3b2e); font-weight: 600; }
.doporucil-dila .dd-autor { opacity: .7; }
.doporucil-dila .dd-autor a { text-decoration: none; color: inherit; }
.doporucil-dila .dd-autor a:hover { color: var(--akcent, #9a3b2e); }
.doporucil-dila .dd-datum { flex-shrink: 0; font-size: 12px; opacity: .5; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Moje tvorba – tabulka děl */
.moje-tvorba { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.moje-tvorba th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; opacity: .55; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid rgba(128,128,128,.22); }
.moje-tvorba td { padding: 9px 10px; border-bottom: 1px solid rgba(128,128,128,.13); vertical-align: middle; }
.moje-tvorba .cislo { text-align: right; font-variant-numeric: tabular-nums; }
.mt-titulek { font-weight: 600; text-decoration: none; }
.mt-titulek:hover { color: var(--akcent, #9a3b2e); }
.mt-sekce, .mt-datum { font-size: 13px; opacity: .7; white-space: nowrap; }
.mt-akce { white-space: nowrap; text-align: right; }
.mt-akce a, .mt-akce button { font-size: 12.5px; text-decoration: none; color: inherit; opacity: .7; background: none; border: 0; cursor: pointer; padding: 0 0 0 10px; }
.mt-akce a:hover { opacity: 1; color: var(--akcent, #9a3b2e); }
.mt-akce button:hover { opacity: 1; color: #9a3b2e; }
.mt-akce form { display: inline; }
@media (max-width: 48em) { .moje-tvorba .mt-sekce, .moje-tvorba th:nth-child(2) { display: none; } }

/* Díla na profilu autora – kompaktní tabulka s klikacím řazením */
.dila-tabulka { font-size: 14px; }
.dila-tabulka th { padding: 7px 12px; }
.dila-tabulka td { padding: 7px 12px; border-bottom: 1px solid rgba(128,128,128,.1); }
.dila-tabulka tbody tr { transition: background .1s; }
.dila-tabulka tbody tr:hover td { background: rgba(154,59,46,.05); }
.dila-tabulka .mt-titulek { font-size: 14.5px; }
.dila-tabulka .mt-datum, .dila-tabulka .cislo { white-space: nowrap; }

/* Spodek seznamu – „Načíst další" + „Zobrazit vše" */
.dila-loadmore-wrap { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.dila-zobrazit-vse { font-size: 13px; text-decoration: none; opacity: .65; color: inherit; }
.dila-zobrazit-vse:hover { opacity: 1; color: var(--akcent, #9a3b2e); text-decoration: underline; }

/* Klikací hlavička = řazení */
.dila-sort { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none;
  text-transform: uppercase; letter-spacing: .5px; font-size: 12px; font-weight: 600; cursor: pointer; }
.dila-sort:hover { color: var(--akcent, #9a3b2e); }
.dila-tabulka th:has(.dila-sort.je-aktivni) { opacity: 1; }
.dila-sort.je-aktivni { color: var(--akcent, #9a3b2e); }
.dila-sort-sip { font-size: 11px; line-height: 1; }
.dila-tabulka th.cislo .dila-sort { justify-content: flex-end; }

.dila-hlava { margin-bottom: 18px; }
#dila-panel { margin-top: 6px; }

/* Anketa (homepage) */
.anketa { margin-top: 1.8em; max-width: 520px; }
.anketa-otazka { font-family: Georgia, serif; font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.anketa-moznosti { display: flex; flex-direction: column; gap: 8px; }
.anketa-hlas { width: 100%; text-align: left; padding: 10px 14px; border: 1px solid rgba(128,128,128,.3); border-radius: 8px; background: transparent; cursor: pointer; font-size: 14px; color: inherit; }
.anketa-hlas:hover { border-color: var(--akcent, #9a3b2e); background: rgba(154,59,46,.05); }
.anketa-vysledek { position: relative; padding: 9px 14px; border: 1px solid rgba(128,128,128,.2); border-radius: 8px; overflow: hidden; display: flex; align-items: center; }
.anketa-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(154,59,46,.14); z-index: 0; }
.anketa-vysledek.muj { border-color: var(--akcent, #9a3b2e); }
.anketa-vysledek.muj .anketa-bar { background: rgba(154,59,46,.24); }
.anketa-label { position: relative; z-index: 1; flex: 1; font-size: 14px; }
.anketa-proc { position: relative; z-index: 1; font-weight: 700; font-size: 13px; }
.anketa-pata { font-size: 12.5px; opacity: .6; margin-top: 10px; }
.anketa-pata a { color: var(--akcent, #9a3b2e); }

/* Audio přehrávač u díla */
.dilo-audio { margin: 22px 0 4px; max-width: 760px; }
.dilo-audio-popis { display: block; font-size: 13px; opacity: .7; margin-bottom: 6px; }
.dilo-audio audio { width: 100%; }

/* Oblíbený citát na profilu */
.profil-citat { margin: 0 0 28px; padding: 4px 0 4px 20px; border-left: 3px solid var(--akcent, #9a3b2e); max-width: 640px; }
.profil-citat blockquote { margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 18px; line-height: 1.5; }

/* Text díla bez HTML – zachovat přesné zalomení i odsazení (poezie) */
.basen-text { white-space: pre-wrap; font-family: inherit; line-height: 1.6; }

/* Výzva k názoru (popup vpravo dole) */
.nazor-popup {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: 320px; max-width: calc(100vw - 40px);
  background: #fbf6ec; color: #2e2a24; border: 1px solid rgba(154,59,46,.25);
  border-radius: 12px; padding: 18px 20px; box-shadow: 0 10px 36px rgba(0,0,0,.22);
}
.nazor-in { animation: nazorIn .35s ease; }
@keyframes nazorIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nazor-zavrit { position: absolute; top: 8px; right: 10px; background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; opacity: .4; }
.nazor-zavrit:hover { opacity: 1; }
.nazor-titulek { font-family: Georgia, serif; font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.nazor-text { font-size: 13.5px; opacity: .8; margin: 0 0 14px; line-height: 1.45; }
.nazor-akce { display: flex; gap: 8px; flex-wrap: wrap; }
.nazor-akce .pure-button { font-size: 13px; }

/* Pokec / vzkazník na homepage */
.pokec { margin-top: 1.6em; }
.pokec-okno {
  border: 1px solid rgba(128,128,128,.2);
  border-radius: 8px; padding: 10px 14px; background: rgba(128,128,128,.04);
  display: flex; flex-direction: column; gap: 6px;
}
.pokec-radek { font-size: 14px; line-height: 1.45; }
.pokec-cas { font-size: 11px; opacity: .45; margin-right: 6px; font-variant-numeric: tabular-nums; }
.pokec-nick { font-weight: 700; text-decoration: none; color: var(--akcent, #9a3b2e); margin-right: 6px; }
.pokec-nick:hover { text-decoration: underline; }
.pokec-text { word-break: break-word; }
.pokec-x { display: inline; }
.pokec-x button { background: none; border: none; cursor: pointer; opacity: .3; font-size: 14px; padding: 0 3px; }
.pokec-x button:hover { opacity: 1; color: var(--akcent, #9a3b2e); }
.pokec-prazdno, .pokec-prihlas { opacity: .6; font-size: 14px; margin: 0; }
.pokec-form { display: flex; gap: 8px; margin-top: 12px; }
.pokec-form input {
  flex: 1; min-width: 0; padding: 9px 14px !important; border-radius: 20px !important;
  border: 1px solid rgba(128,128,128,.3) !important; font-size: 14px !important;
}
.pokec-form input:focus { border-color: var(--akcent, #9a3b2e) !important; outline: none; }
.pokec-form .primary-button { border-radius: 20px !important; padding: 9px 18px !important; }

/* Editorální nadpis sekce (kapitálky, prostrkané, tenká linka v barvě vína) */
.sekce-nadpis {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--akcent, #9a3b2e); margin: 0 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid rgba(128,128,128,.22);
}
.sekce-vice { margin-top: 12px; font-size: 13px; }
.sekce-vice a { text-decoration: none; opacity: .8; }
.sekce-vice a:hover { opacity: 1; }

/* Pořadí v „nejčtenější" – serifové číslo vlevo */
.poradi-item { display: flex !important; align-items: baseline; gap: 14px; }
.poradi-cislo { font-family: Georgia, serif; font-size: 22px; font-weight: 700; opacity: .25; min-width: 22px; text-align: right; line-height: 1; }
.poradi-text { display: block; flex: 1; min-width: 0; }
.poradi-text .list-item-title { display: block; }
.poradi-text .list-item-info { display: block; }

/* Komentáře z diskuzí – text napřed, pak decentní popisek */
.komentar-item { display: block; text-decoration: none; color: inherit; padding: 11px 0; border-bottom: 1px solid rgba(128,128,128,.18); }
.komentar-item .k-text { font-size: 14.5px; line-height: 1.45; font-family: Georgia, "Times New Roman", serif; }
.komentar-item .k-meta { font-size: 12px; opacity: .6; margin-top: 4px; }
.komentar-item:hover .k-text { color: var(--akcent, #9a3b2e); }

/* tisková verze – jen samotné dílo */
@media print {
  #nav, #list, .main-content-controls, .komentar-form, .komentar-login,
  .main-content-footer:has(.comments), .flash-banner { display: none !important; }
  #main { position: static !important; left: 0 !important; padding: 0 !important; overflow: visible !important; height: auto !important; }
  .main-content { max-width: none !important; }
  body, #main, .main-content, .main-content-body { background: #fff !important; color: #000 !important; }
  .main-content-title, #main a, .dilo-text { color: #000 !important; }
}

/* text díla z editoru – obrázky, nadpisy */
.dilo-text img { max-width: 100%; height: auto; border-radius: 6px; }
.dilo-text figure { margin: 1em 0; }
.dilo-text h1, .dilo-text h2, .dilo-text h3 { margin: .8em 0 .3em; line-height: 1.25; }
.dilo-text blockquote { border-left: 3px solid currentColor; padding-left: 1em; opacity: .85; margin: 1em 0; }
.dilo-text ul, .dilo-text ol { margin: .6em 0 .6em 1.4em; }

/* hvězdičkové hodnocení (zpětná vazba) – CSS-only, bez JS */
.hvezdy { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; font-size: 30px; line-height: 1; }
.hvezdy input { display: none; }
.hvezdy label { color: #d8cfc0; cursor: pointer; padding: 0 2px; transition: color .12s; }
.hvezdy input:checked ~ label,
.hvezdy label:hover, .hvezdy label:hover ~ label { color: #e0a93b; }

/* ===== PROFIL AUTORA ===== */
.profil-hlavicka { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 22px; }
.avatar {
  width: 88px; height: 88px; min-width: 88px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 40px; font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  box-shadow: 0 5px 16px rgba(0,0,0,.2);
}
.profil-hlava-text { flex: 1; min-width: 0; }
.profil-jmeno { margin: .25em 0 0; opacity: .75; font-size: 17px; }
.profil-motto { margin: .45em 0 0; font-style: italic; opacity: .85; }
.profil-akce { margin-left: auto; }

.profil-staty { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 30px; }
.profil-staty .stat { flex: 1; min-width: 130px; border: 1px solid rgba(128,128,128,.22); border-radius: 12px; padding: 14px 18px; text-align: center; }
.profil-staty .stat-c { font-size: 26px; font-weight: 700; font-family: Georgia, serif; line-height: 1.1; }
.profil-staty .stat-l { font-size: 13px; opacity: .65; margin-top: 3px; }

.profil-sekce { margin-bottom: 28px; max-width: 760px; }
.profil-sekce h2 { font-size: 18px; margin: 0 0 .55em; }
.profil-detaily { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.profil-detaily > div span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; opacity: .55; margin-bottom: 3px; }

/* ===== Profil: identita + medailonek v prostředním sloupci (#list), díla v #main ===== */
/* pozor: základní style.css má `#list{padding:0}` (ID priorita) – odsazení proto musí mít taky ID */
#list.profil-list { box-sizing: border-box; padding: 1.6em 1.9em 2.4em; }
.profil-list .profil-hlavicka { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 2px; }
.profil-list .profil-hlava-text { flex: none; }
.profil-list .avatar { width: 76px; height: 76px; min-width: 76px; font-size: 34px; }

.profil-list .profil-akce { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.profil-list .profil-akce form { display: block; margin: 0; }
.profil-list .profil-akce .pure-button,
.profil-list .profil-akce button { display: block; width: 100%; text-align: center; }

.profil-list .profil-staty { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 26px; }
.profil-list .profil-staty .stat { min-width: 0; padding: 11px 12px; }
.profil-list .profil-staty .stat-c { font-size: 21px; }
.profil-list .profil-staty .stat-l { font-size: 12px; }

.profil-list .profil-sekce { max-width: none; margin-bottom: 22px; }
.profil-list .profil-sekce h2 { font-size: 16px; }
.profil-list .profil-detaily { grid-template-columns: 1fr; gap: 13px; }
.profil-list a:not(.pure-button) { color: var(--akcent, #9a3b2e); }

.profil-zed-full { max-width: 820px; margin-top: 10px; padding-top: 24px; border-top: 1px solid rgba(128,128,128,.16); }

/* Na mobilu prostřední panel profilu vždy zobrazit (je to medailonek, ne „seznam kategorií") */
@media (max-width: 59.99em) {
  #list.profil-list { display: block !important; padding: 1.3em 1.6em 2em !important; border: 0 !important; }
  .profil-list .profil-hlavicka { flex-direction: row; align-items: flex-start; }
  .profil-list .profil-staty { margin-bottom: 18px; }
  /* medailonek je vidět pořád → přepínač „Seznam kategorií" je tu zbytečný (tlačítko „Menu" zůstává) */
  body:has(#list.profil-list) .nav-list-button { display: none !important; }
}

/* Medailonek: žánrové složení (Tvorba) */
.zanr-slozeni { list-style: none; margin: 0; padding: 0; }
.zanr-slozeni li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; }
.zanr-nazev { white-space: nowrap; }
.zanr-bar { height: 6px; border-radius: 4px; background: rgba(128,128,128,.16); overflow: hidden; }
.zanr-bar > span { display: block; height: 100%; background: var(--akcent, #9a3b2e); opacity: .72; border-radius: 4px; }
.zanr-pocet { font-variant-numeric: tabular-nums; opacity: .65; font-size: 12.5px; }

/* Medailonek: statistiky (čísla) */
.profil-cisla { list-style: none; margin: 0; padding: 0; }
.profil-cisla li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.profil-cisla .pc-c { font-family: Georgia, serif; font-weight: 700; font-size: 17px; min-width: 2.2em; text-align: right; }
.profil-cisla .pc-l { font-size: 13px; opacity: .7; }

/* #main profilu: vlevo díla + Zeď, vpravo rail – rail běží ODSHORA vedle obsahu */
.profil-mrizka { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px; align-items: start; }
.profil-mrizka:has(.profil-rail) { grid-template-columns: minmax(0,1fr) 320px; }
.profil-leva { min-width: 0; }
.profil-aktivita .akt-radek { padding: 9px 0; }
.profil-aktivita .akt-typ { min-width: 48px; }
@media (max-width: 70em) {
  .profil-mrizka:has(.profil-rail) { grid-template-columns: 1fr; }
}

/* Hlavní panel – hlavička děl */
.dila-hlava { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dila-pocet { font-size: 16px; opacity: .5; font-weight: 400; font-family: system-ui, sans-serif; }
.dila-nastroje { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dila-filtry { display: flex; gap: 8px; margin: 0; }
.dila-loadmore-wrap { text-align: center; margin: 20px 0 4px; }

/* logo / branding v menu */
.brand {
  display: block; text-decoration: none;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 27px; font-weight: 700; letter-spacing: .3px; line-height: 1;
  color: #ece5d8; margin: 2px 2px 3px;
}
.brand span { opacity: .5; }
.brand:hover { color: #fff; }
.brand-slogan {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(235,230,222,.55); margin: 0 2px 16px; font-family: Georgia, serif;
}

/* footer v sidebaru – decentní servisní chrome, ne navigace */
.nav-footer { margin-top: 16px; padding: 14px 4px 2px; border-top: 1px solid rgba(235,230,222,.14); }
.nav-foot-links { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-bottom: 9px; }
.nav-foot-links a { color: rgba(235,230,222,.55); text-decoration: none; font-size: 11.5px; line-height: 1.4; }
.nav-foot-links a:hover { color: #fff; }
.nav-foot-copy { font-size: 11px; color: rgba(235,230,222,.4); }

/* Vzhled (barevné varianty) – sdílené štítky: levý panel i /nastaveni.
   Každý štítek nese pozadí i text v barvách svého motivu = „náhled" vzhledu. */
.nav-vzhled { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 13px 3px; }
.vz-swatch {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border-radius: 6px;
    font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: normal;  /* zruší záporný letter-spacing zděděný z PureCSS .pure-g v sidebaru */
    text-decoration: none; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.vz-swatch:hover { transform: translateY(-1px); filter: brightness(1.06); }
/* aktivní = dvojitý prsten (bílý uvnitř + tmavý vně) → vidět na světlém i tmavém */
.vz-swatch.aktivni { font-weight: 700; box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(0,0,0,.5); }
.vz-swatch .vzhled-pozn { font-size: 10.5px; opacity: .75; font-weight: 400; }

/* swatche jednotlivých motivů (pozadí + barva textu = daný vzhled) */
.vz-knizni   { background: #f4eee1 !important; color: #9a3b2e !important; border-color: #e3dac8; }
.vz-modra    { background: #002757 !important; color: #ffa244 !important; border-color: #2d568a; }
.vz-basnicky { background: #f1f0d9 !important; color: #773333 !important; border-color: #cbc4a4; }
.vz-svetla   { background: #ffffff !important; color: #2b2b2b !important; border-color: #dddddd; }
.vz-tmava    { background: #17171b !important; color: #4ea1ff !important; border-color: #33333d; }
.vz-modra .vzhled-pozn { color: #ffa244; }

/* přepínač vzhledu v menu */
.motiv-switch { margin-top: 18px; padding: 0 4px; font-size: 12px; color: rgba(235,230,222,.75); }
.motiv-switch span { display: block; text-transform: uppercase; letter-spacing: 1px; opacity: .6; margin-bottom: 4px; }
.motiv-switch a { color: inherit; text-decoration: none; margin-right: 10px; }
.motiv-switch a:hover { color: #fff; }
.motiv-switch a.aktivni { font-weight: 700; text-decoration: underline; }

/* vyhledávací pole – rozměry */
.nav-search { margin: 10px 0 4px; padding: 0 2px; }
.nav-search input {
  width: 100%; box-sizing: border-box;
  border-radius: 8px !important; padding: 8px 12px !important; font-size: 14px !important;
}

@media (min-width: 60em) {
  #layout { padding-left: 0 !important; }
  #nav {
    position: fixed !important;
    top: 0 !important; left: 0 !important; bottom: 0 !important;
    margin-left: 0 !important;
    width: 228px !important; height: 100vh !important;
    overflow-y: auto !important;
  }
  #list {
    position: fixed !important;
    top: 0 !important; left: 228px !important; bottom: 0 !important;
    margin-left: 0 !important;
    width: 350px !important; height: 100vh !important;
    overflow-y: auto !important;
  }
  #main {
    position: fixed !important;
    top: 0 !important; left: 578px !important; right: 0 !important; bottom: 0 !important;
    width: auto !important; max-width: none !important;
    margin: 0 !important;
    padding: 1.4em 2em 3.5em !important;
    overflow-y: auto !important;
  }
  .main-content { max-width: 1320px !important; }
  /* samotný text díla/úvodu drž v pohodlné čtecí šířce */
  .dilo-text, #main .main-content-body > p { max-width: 760px; }
  #main.no-list { left: 228px !important; }
  /* Šablaturovo rozvržení hlavičky: titulek vlevo, tlačítka vpravo nahoře */
  .main-content-controls { justify-content: flex-end; }
}

/* hledání: bez „záře", jen čistý okraj při zaměření */
#nav .nav-search input:focus { box-shadow: none !important; }

/* Seznam kategorií (levý sloupec): název + počet ZA ním – vzdušnější, serif jako nadpisy */
.kat-list { padding: 4px 0; }
.kat-radek { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 2em; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(128,128,128,.1);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 15.5px; }
.kat-radek:hover { background: rgba(154,59,46,.05); }
.kat-radek:hover .kat-nazev { color: var(--akcent, #9a3b2e); }
.kat-radek.aktivni { box-shadow: inset 3px 0 0 var(--akcent, #9a3b2e); background: rgba(154,59,46,.07); font-weight: 700; }
.kat-nazev { flex: 1; min-width: 0; }
/* počet děl v bublině: explicitní tlumená barva (ne opacity) – opacity:.55 padalo
   ve světlém/krémovém motivu na ~3:1 (pod WCAG AA 4.5:1). --ink-soft drží ≥5:1 ve všech motivech. */
.kat-pocet { flex-shrink: 0; font-size: 12.5px; color: var(--ink-soft, #6f6354); font-family: system-ui, sans-serif;
  border: 1px solid rgba(128,128,128,.32); border-radius: 11px; padding: 1px 9px; font-variant-numeric: tabular-nums; }

/* „Všechny básně" – souhrnný řádek nad skupinami, lehce zvýrazněný */
.kat-radek.kat-vse { font-weight: 700; }
.kat-radek.kat-vse .kat-pocet { color: var(--akcent, #9a3b2e); border-color: rgba(154,59,46,.35); }

/* Nadpis logické skupiny kategorií (Láska a vztahy, Život a pocity, …) */
.kat-skupina-nadpis { margin: 18px 0 2px; padding: 0 2em;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft, #6f6354); opacity: .85; }
/* první nadpis hned pod „Všechny" – menší mezera, ať to nedrhne */
.kat-list > .kat-radek.kat-vse + .kat-skupina-nadpis { margin-top: 10px; }

/* Koše (?nezařazené?, ostatní…) – decentně dolů, oddělené a ztlumené */
.kat-kose { margin-top: 16px; padding-top: 8px; border-top: 1px solid rgba(128,128,128,.18); }
.kat-radek.kat-kos { opacity: .62; font-style: italic; font-size: 14.5px; }
.kat-radek.kat-kos:hover { opacity: 1; }

/* Editoři sekce – správci, pod seznamem kategorií v levém sloupci */
.sekce-editori { margin: 14px 2em 0; padding-top: 12px; border-top: 1px solid rgba(128,128,128,.15); font-size: 13px; }
.sekce-editori-popis { display: block; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; opacity: .55; margin-bottom: 3px; }
.sekce-editori-jmena a { color: var(--akcent, #9a3b2e); text-decoration: none; }
.sekce-editori-jmena a:hover { text-decoration: underline; }

/* autor v seznamu děl (klikací, vpravo) */
.list-autor { flex-shrink: 0; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--akcent, #9a3b2e); padding-top: 14px; white-space: nowrap; }
.list-autor:hover { text-decoration: underline; }

/* Seznam děl s číslem přečtení vlevo (Šablaturův styl) */
.dila-seznam { margin-top: 4px; }
.dilo-radek { display: flex; gap: 18px; padding: 16px 12px; border-bottom: 1px solid rgba(128,128,128,.13); border-radius: 6px; transition: background .12s; }
.dilo-radek:hover { background: rgba(154,59,46,.045); }
.dilo-precteno { flex-shrink: 0; width: 52px; text-align: right; font-family: Georgia, serif; font-size: 17px; color: var(--akcent, #9a3b2e); opacity: .75; padding-top: 1px; font-variant-numeric: tabular-nums; }
.dilo-telo { flex: 1; min-width: 0; }
.dilo-titulek { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; font-size: 18px; font-weight: 700; text-decoration: none; color: var(--akcent, #9a3b2e); }
.dilo-titulek:hover { text-decoration: underline; }
.dilo-anotace { margin-top: 3px; font-size: 14.5px; opacity: .8; }
.dilo-meta { margin-top: 5px; font-size: 13px; opacity: .65; }
.dilo-meta a { color: inherit; font-weight: 600; text-decoration: none; }
.dilo-meta a:hover { color: var(--akcent, #9a3b2e); text-decoration: underline; }

/* dlouhé položky menu se musí vejít / zalomit (např. "Hledáme pomoc", "Citáty osobností") */
#nav .pure-menu-link, #nav .nav-inner > a { white-space: normal !important; word-break: break-word; line-height: 1.3; }

/* ---- Akcentní barva podle webu (basne/citaty/prej) ---- */
.primary-button, .pure-button.primary-button { background: var(--akcent, #9a3b2e) !important; border-color: var(--akcent, #9a3b2e) !important; color: #fff !important; }
/* tlačítko-odkaz (a.primary-button) v obsahu: bílý text i přes motivové obarvení odkazů */
#main a.primary-button, #main a.primary-button.pure-button, a.primary-button, a.primary-button:hover { color: #fff !important; }
/* aktivní „pilulka" přepínače měsíce s barevným pozadím = bílý text
   (řazení už není pilulka, ale editorální textový odkaz – viz níže) */
#main .mesic-prepinac a.aktivni, .mesic-prepinac a.aktivni { color: #fff !important; }

/* ---- Avatar jako nahraná fotka ---- */
img.avatar { object-fit: cover; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin: 4px 0 8px; }
.avatar-nahled { width: 72px; height: 72px; min-width: 72px; font-size: 32px; }
.avatar-hint { font-size: 12px; opacity: .6; margin: 4px 0 0; }
.avatar-smazat { display: block; font-size: 13px; margin-top: 6px; cursor: pointer; }

/* ---- Ocenění / odznaky (ražené štítky, bez emoji) ---- */
.odznaky { display: flex; flex-wrap: wrap; gap: 9px; }
.odznak {
  display: inline-block; font-family: Georgia, "Times New Roman", serif;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px;
  padding: 6px 13px; border: 1px solid; border-radius: 2px; background: transparent; cursor: default;
}
.odznak-1 { color: #9c6b3f; border-color: rgba(156,107,63,.45); }                              /* bronz */
.odznak-2 { color: #6f7479; border-color: rgba(111,116,121,.5); }                               /* stříbro */
.odznak-3 { color: #9a7b2b; border-color: rgba(154,123,43,.55); background: rgba(154,123,43,.07); } /* zlato */

/* ---- Zeď / nástěnka ---- */
.zed-pocet { font-size: 14px; opacity: .5; font-weight: normal; }
.zed-form { margin-bottom: 18px; }
.zed-form textarea { width: 100%; resize: vertical; margin-bottom: 8px; }
.zed-prihlas, .zed-prazdno { opacity: .7; font-size: 14px; }
.zed-vzkaz { border-top: 1px solid rgba(128,128,128,.18); padding: 12px 0; }
.zed-vzkaz-hlava { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 3px; }
.zed-autor { font-weight: 700; text-decoration: none; }
.zed-datum { opacity: .55; }
.zed-skryt-form { margin-left: auto; }
.zed-skryt { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; opacity: .4; padding: 0 4px; }
.zed-skryt:hover { opacity: 1; color: #9a3b2e; }
.zed-vzkaz-text { white-space: pre-wrap; }

/* ---- Řádek se záložkou (dílo + tlačítko) ---- */
.list-item-radek { display: flex; align-items: flex-start; gap: 10px; }
.list-item-radek .list-item { flex: 1; }
.list-item-radek form { padding-top: 14px; }

/* ---- Odznak v menu (nepřečtené zprávy) ---- */
.menu-odznak {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px;
  background: #9a3b2e; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700;
  text-align: center; margin-left: 5px; vertical-align: middle;
}

/* ---- Avatar mini ---- */
.avatar-mini { width: 42px; height: 42px; min-width: 42px; font-size: 19px; box-shadow: none; }

/* ---- Seznam konverzací ---- */
.konverzace { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid rgba(128,128,128,.16); text-decoration: none; color: inherit; }
.konverzace:hover { background: rgba(128,128,128,.06); }
.konverzace.neprectena .konverzace-nick { font-weight: 700; }
.konverzace-text { flex: 1; min-width: 0; }
.konverzace-nick { display: block; }
.konverzace-pocet { display: inline-block; background: #9a3b2e; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; margin-left: 5px; vertical-align: middle; }
.konverzace-nahled { display: block; font-size: 13px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.konverzace-datum { font-size: 12px; opacity: .5; white-space: nowrap; }

/* ---- Vlákno zpráv ---- */
.zprava-hlava { display: flex; align-items: center; gap: 12px; }
.zprava-zpet { font-size: 28px; text-decoration: none; line-height: 1; opacity: .6; }
.zprava-zpet:hover { opacity: 1; }
.zpravy-vlakno { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.zprava { max-width: 78%; }
.zprava-ja { align-self: flex-end; text-align: right; }
.zprava-on { align-self: flex-start; }
.zprava-bublina { display: inline-block; padding: 9px 14px; border-radius: 16px; white-space: pre-wrap; text-align: left; }
.zprava-ja .zprava-bublina { background: #9a3b2e; color: #fff; border-bottom-right-radius: 4px; }
.zprava-on .zprava-bublina { background: rgba(128,128,128,.16); border-bottom-left-radius: 4px; }
.zprava-cas { font-size: 11px; opacity: .5; margin-top: 2px; }

/* ---- Vstupní pole zpráv (sladěné s papírovým pozadím, ne syrově bílé) ---- */
.zprava-form textarea,
.nova-zprava-komu input,
.pokec-form input[type="text"] {
  background: var(--paper, var(--bg2, #f4eee1));
  border: 1px solid var(--line, #cbc4a4);
  border-radius: 10px;
  padding: 10px 13px;
  color: var(--ink, #1a1a1a);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .15s, box-shadow .15s;
}
.zprava-form textarea { width: 100%; box-sizing: border-box; resize: vertical; margin-bottom: 8px; }
.zprava-form textarea::placeholder,
.nova-zprava-komu input::placeholder,
.pokec-form input[type="text"]::placeholder { color: var(--ink-soft, #8a7f63); opacity: .8; }
.zprava-form textarea:focus,
.nova-zprava-komu input:focus,
.pokec-form input[type="text"]:focus {
  outline: none;
  border-color: var(--akcent, #9a3b2e);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--akcent, #9a3b2e) 18%, transparent);
}

/* ---- Nová zpráva z přehledu ---- */
.nova-zprava { border: 1px solid rgba(128,128,128,.22); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; }
.nova-zprava-komu { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nova-zprava-komu span { font-weight: 700; white-space: nowrap; }
.nova-zprava-komu input { flex: 1; min-width: 0; }
.nova-zprava-nadpis { font-size: 16px; margin: 0 0 4px; opacity: .7; }

/* ---- Soutěže ---- */
.souteze-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.soutez-karta { display: block; border: 1px solid rgba(128,128,128,.22); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.soutez-karta:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.soutez-karta.soutez-hlasovani { border-color: rgba(154,59,46,.45); }
.soutez-stav { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 9px; border-radius: 11px; background: rgba(128,128,128,.16); margin-bottom: 8px; }
.soutez-stav-hlasovani { background: rgba(154,59,46,.14); color: #9a3b2e; }
.soutez-stav-prijem { background: rgba(74,124,89,.16); color: #3a6b4a; }
.soutez-nazev { margin: 0 0 5px; font-size: 19px; }
.soutez-tema { margin: 0 0 6px; opacity: .85; }
.soutez-meta { margin: 0; font-size: 13px; opacity: .6; }
.soutez-popis { max-width: 760px; margin-bottom: 14px; }
.soutez-terminy { font-size: 14px; opacity: .8; }
.soutez-admin { margin: 12px 0; padding: 10px 14px; background: rgba(128,128,128,.08); border-radius: 8px; }
.soutez-prihlaska { margin: 18px 0 24px; padding: 16px 18px; border: 1px dashed rgba(128,128,128,.35); border-radius: 12px; }
.soutez-prihlaska h2 { margin-top: 0; }
.soutez-prihlaska select { min-width: 240px; margin-right: 8px; }
.soutez-prispevky { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.soutez-prispevek { display: flex; align-items: center; gap: 14px; border: 1px solid rgba(128,128,128,.18); border-radius: 10px; padding: 12px 16px; }
.soutez-prispevek.vitez { border-color: #d4a72c; background: rgba(212,167,44,.08); }
.soutez-poradi { font-size: 20px; font-weight: 700; min-width: 34px; text-align: center; font-family: Georgia, serif; opacity: .7; }
.soutez-prispevek-text { flex: 1; min-width: 0; }
.soutez-prispevek-titul { font-weight: 700; text-decoration: none; }
.soutez-prispevek-autor { font-size: 13px; opacity: .65; margin-left: 8px; }
.soutez-prispevek-anotace { margin: 4px 0 0; font-size: 13.5px; opacity: .75; }
.soutez-hlasy { text-align: center; min-width: 80px; }
.soutez-hlasy-pocet { font-size: 24px; font-weight: 700; font-family: Georgia, serif; line-height: 1; }
.soutez-hlasy-popis { font-size: 12px; opacity: .6; margin-bottom: 6px; }

/* ---- Role štítky ---- */
.role-stitek { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(128,128,128,.18); vertical-align: middle; }
.role-admin { background: rgba(154,59,46,.16); color: #9a3b2e; }
.role-moderator { background: rgba(59,110,165,.16); color: #2f5b8a; }
.role-redaktor { background: rgba(74,124,89,.16); color: #3a6b4a; }

/* ---- Hvězdičkové hodnocení ---- */
.hvezdy-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: 14px; }
.hvezdy-prumer { letter-spacing: 1px; color: rgba(128,128,128,.35); }
.hvezdy-prumer .plna { color: #e8a91d; }
.hvezdy-pocet { font-size: 12.5px; opacity: .6; }
.hvezdy-moje { font-size: 12.5px; color: #e8a91d; }
.hvezdy-hlasovat { display: inline-flex; flex-direction: row-reverse; }
.hvezdy-hlasovat button { background: none; border: none; cursor: pointer; font-size: 19px; line-height: 1; padding: 0 1px; color: rgba(128,128,128,.32); transition: color .08s; }
.hvezdy-hlasovat button:hover, .hvezdy-hlasovat button:hover ~ button { color: #e8a91d; }

/* ================= CITÁTY / PŘEJ – sdílené komponenty ================= */
.strankovani { margin-top: 22px; }
/* Řazení – editorální textové odkazy s vlasovými oddělovači (ne „pilulky") */
.razeni-prepinac { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; margin: 4px 0 18px; }
.razeni-prepinac a {
  font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.2;
  text-decoration: none; color: var(--ink-soft, #6f6354);
  padding: 0 14px; border: 0; border-left: 1px solid var(--line, #e3dac8); border-radius: 0;
  background: transparent; transition: color .1s;
}
.razeni-prepinac a:first-child { border-left: 0; padding-left: 0; }
.razeni-prepinac a:hover { color: var(--akcent, #9a3b2e); background: transparent; }
.razeni-prepinac a.aktivni { color: var(--akcent, #9a3b2e); background: transparent; font-style: italic; font-weight: 700; }
.razeni-prepinac a.aktivni:hover { color: var(--akcent, #9a3b2e); }
/* Počet/popis pod titulkem výpisu – patková kurzíva (editorální dek) */
.main-content-subtitle { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--ink-soft, #6f6354); }

/* Rozcestník (dlaždice s počty) */
.rozcestnik { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.rozcestnik-karta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 120px; flex: 1; padding: 16px; border: 1px solid rgba(128,128,128,.2); border-radius: 12px; text-decoration: none; color: inherit; text-align: center; font-weight: 600; }
.rozcestnik-karta:hover { border-color: var(--akcent); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rc-pocet { font-size: 26px; font-weight: 700; font-family: Georgia, serif; color: var(--akcent); line-height: 1.1; }

/* Citáty – karty */
.citaty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.citat-karta { margin: 0; padding: 20px 22px; border: 1px solid rgba(128,128,128,.18); border-radius: 12px; background: rgba(128,128,128,.03); position: relative; }
.citat-karta blockquote { margin: 0; font-size: 16px; line-height: 1.5; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.citat-karta blockquote::before { content: "\201E"; font-size: 30px; color: var(--akcent); vertical-align: -8px; margin-right: 2px; }
.citat-karta blockquote a { text-decoration: none; color: inherit; }
.citat-karta blockquote a:hover { text-decoration: underline; }
.citat-karta figcaption { margin-top: 10px; font-size: 14px; font-weight: 700; font-style: normal; text-align: right; }
.citat-karta figcaption a { color: var(--akcent); text-decoration: none; }

.citat-velky { margin: 0 0 1.5em; padding: 32px 34px; border-left: 4px solid var(--akcent); background: rgba(128,128,128,.04); border-radius: 0 12px 12px 0; }
.citat-velky blockquote { margin: 0; font-size: 25px; line-height: 1.45; font-family: Georgia, serif; font-style: italic; }
.citat-velky blockquote a { color: inherit; text-decoration: none; }
.citat-velky figcaption { margin-top: 14px; font-size: 16px; font-weight: 700; }
.citat-velky figcaption a { color: var(--akcent); text-decoration: none; }
.citat-vyznam { display: block; font-weight: 400; font-size: 13px; opacity: .65; margin-top: 2px; }
.citat-dne-stitek { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--akcent); margin-bottom: 6px; }

/* Osobnosti */
.osobnosti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.osobnost-radek { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: inherit; }
.osobnost-radek:hover { background: rgba(128,128,128,.08); }
.osobnost-jmeno { font-weight: 600; }
.osobnost-zivot { font-size: 12px; opacity: .55; }
.osobnost-pocet { margin-left: auto; font-size: 12px; background: var(--akcent); color: #fff; border-radius: 9px; padding: 0 7px; }
.osobnost-popis { font-style: italic; opacity: .85; max-width: 700px; }

/* Krátké texty – karty (motta, přísloví, přání, vtipy) */
.karty-kratke { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.karta-kratka { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid rgba(128,128,128,.18); border-radius: 12px; }
.karta-text { flex: 1; white-space: pre-wrap; line-height: 1.5; }
.karta-pata { display: flex; align-items: center; margin-top: 12px; font-size: 13px; }
.karta-autor { opacity: .6; }
.karta-akce { margin-left: auto; }
.kopir { background: none; border: 1px solid rgba(128,128,128,.3); border-radius: 6px; cursor: pointer; padding: 2px 8px; opacity: .6; }
.kopir:hover { opacity: 1; border-color: var(--akcent); }

/* Jmeniny */
.jmeniny-box { display: block; padding: 18px 22px; border-radius: 12px; background: linear-gradient(135deg, rgba(194,90,46,.12), rgba(194,90,46,.04)); border: 1px solid rgba(194,90,46,.3); text-decoration: none; color: inherit; margin-bottom: 1.2em; }
.jmeniny-box:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.jmeniny-stitek { display: block; font-size: 13px; opacity: .7; }
.jmeniny-jmeno { display: block; font-size: 32px; font-weight: 700; font-family: Georgia, serif; color: var(--akcent); line-height: 1.2; }
.jmeniny-zitra { display: block; font-size: 13px; opacity: .6; margin-top: 4px; }
.jmeniny-velke .jmeniny-jmeno { font-size: 42px; }
.mesic-prepinac { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0; }
.mesic-prepinac a { font-size: 13px; padding: 4px 10px; border-radius: 8px; text-decoration: none; color: inherit; border: 1px solid rgba(128,128,128,.2); }
.mesic-prepinac a.aktivni { background: var(--akcent); color: #fff; border-color: var(--akcent); }
.jmeniny-tabulka { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 16px; }
.jmeniny-radek { display: flex; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.jmeniny-radek.dnes { background: rgba(194,90,46,.14); font-weight: 700; }
.jm-den { opacity: .55; min-width: 46px; }

/* Pohlednice */
.pohlednice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.pohlednice-karta { border: 1px solid rgba(128,128,128,.18); border-radius: 10px; overflow: hidden; }
.pohlednice-karta { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s; }
.pohlednice-karta:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.pohlednice-nahled { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: rgba(128,128,128,.08); overflow: hidden; }
.pohlednice-nahled img { width: 100%; height: 100%; object-fit: cover; }
.pohlednice-format { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 700; background: var(--akcent); color: #fff; border-radius: 5px; padding: 1px 6px; z-index: 1; }
.pohlednice-titulek { padding: 8px 10px 2px; font-weight: 600; font-size: 14px; }
.pohlednice-meta { padding: 0 10px 10px; font-size: 12px; opacity: .55; }
.pohlednice-detail { text-align: center; margin-bottom: 18px; }
.pohlednice-detail img { max-width: 100%; height: auto; border: 1px solid rgba(128,128,128,.3); border-radius: 6px; box-shadow: 0 6px 22px rgba(0,0,0,.15); }
.pohlednice-swf { padding: 40px; background: rgba(128,128,128,.08); border-radius: 10px; }

/* ---- Admin tabulky ---- */
.admin-tym { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-tym th { text-align: left; font-weight: 600; opacity: .6; font-size: 12px; padding: 6px 10px; border-bottom: 1px solid rgba(128,128,128,.2); }
.admin-tym td { padding: 8px 10px; border-bottom: 1px solid rgba(128,128,128,.12); vertical-align: middle; }
.admin-tym select, .admin-tym input { font-size: 13px; }

/* ============================================================
   ADMINISTRACE – dashboard design (scoped pod .admin-page)
   Karty, statistické dlaždice, segmentové taby, čisté tabulky.
   Neutrální rgba + var(--akcent) → funguje ve všech motivech.
   ============================================================ */
.admin-page { letter-spacing: normal; }

/* ---- Statistické dlaždice ---- */
.admin-staty { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px; margin: 4px 0 24px; }
.admin-stat { display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border: 1px solid rgba(128,128,128,.18); border-radius: 14px; text-decoration: none;
  color: inherit; background: rgba(128,128,128,.045);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.admin-stat-ikona { width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(128,128,128,.11); }
.admin-stat-num { font-size: 23px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-stat-lbl { font-size: 12px; opacity: .62; margin-top: 4px; }
a.admin-stat:hover { transform: translateY(-2px); border-color: var(--akcent, #9a3b2e);
  box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.admin-stat.je-vystraha { border-color: rgba(154,59,46,.5); background: rgba(154,59,46,.06); }
.admin-stat.je-vystraha .admin-stat-ikona { background: rgba(154,59,46,.14); }

/* ---- Segmentové taby ---- */
.admin-taby { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px;
  padding: 5px; background: rgba(128,128,128,.09); border-radius: 13px; }
.admin-tab { appearance: none; -webkit-appearance: none; background: transparent; border: 0;
  cursor: pointer; font: 600 13.5px/1 inherit; color: inherit; opacity: .72;
  padding: 9px 16px; border-radius: 9px; letter-spacing: normal;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .12s ease, color .12s ease, opacity .12s ease; }
.admin-tab:hover { opacity: 1; background: rgba(128,128,128,.1); }
.admin-tab.aktivni { opacity: 1; background: var(--akcent, #9a3b2e); color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.admin-tab-badge { background: var(--akcent, #9a3b2e); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; }
.admin-tab.aktivni .admin-tab-badge { background: #fff; color: var(--akcent, #9a3b2e); }
.admin-panel[hidden] { display: none; }

/* ---- Karta (každá sekce) ---- */
.admin-card { border: 1px solid rgba(128,128,128,.2); border-radius: 16px; overflow: hidden;
  background: transparent; margin-bottom: 18px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: rgba(128,128,128,.06);
  border-bottom: 1px solid rgba(128,128,128,.13); }
.admin-card-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: 16px; font-weight: 700; color: var(--akcent, #9a3b2e); letter-spacing: .2px;
  display: inline-flex; align-items: center; gap: 9px; }
.admin-card-akce { font-size: 13px; font-weight: 600; opacity: .75; white-space: nowrap; }
.admin-card-akce:hover { opacity: 1; }
.admin-card-body { padding: 18px 20px; }
.admin-card-body > .hint { font-size: 13px; opacity: .65; margin: 0 0 15px; line-height: 1.5; }
.admin-prazdno { font-size: 13.5px; opacity: .6; margin: 4px 0; }

/* ---- Tabulky uvnitř adminu (jemnější, zebra na hover) ---- */
.admin-page .admin-tym { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-page .admin-tym th { text-align: left; font-weight: 600; opacity: .5;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px;
  padding: 8px 12px; border-bottom: 1px solid rgba(128,128,128,.18); }
.admin-page .admin-tym td { padding: 11px 12px; border-bottom: 1px solid rgba(128,128,128,.1);
  vertical-align: middle; }
.admin-page .admin-tym tr:last-child td { border-bottom: 0; }
.admin-page .admin-tym tbody tr:hover td { background: rgba(128,128,128,.05); }

/* ---- Formuláře uvnitř adminu – jednotná výška, zaoblení ---- */
.admin-page input[type="text"], .admin-page input[type="number"],
.admin-page select, .admin-page textarea {
  border: 1px solid rgba(128,128,128,.3) !important; border-radius: 10px !important;
  padding: 9px 12px !important; font-size: 13.5px; line-height: 1.3; color: inherit; }
.admin-page textarea { line-height: 1.5; }
.admin-page input::placeholder, .admin-page textarea::placeholder { opacity: .5; }
.admin-radek-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- Karta nahlášení ---- */
.admin-nahlaseni { border: 1px solid rgba(128,128,128,.2); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px; background: rgba(128,128,128,.03); }
.admin-nahlaseni:last-child { margin-bottom: 0; }
.admin-nahlaseni .k-meta { font-size: 12.5px; opacity: .65; }
.admin-nahlaseni .k-text { margin: 7px 0 10px; }
.admin-akce-radek { display: flex; gap: 8px; flex-wrap: wrap; }

/* role štítek čistěji */
.admin-page .role-stitek { display: inline-block; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; background: rgba(128,128,128,.12); }

@media (max-width: 40em) {
  .admin-taby { display: flex; width: 100%; }
  .admin-tab { flex: 1; justify-content: center; padding: 9px 8px; }
  .admin-card-head, .admin-card-body { padding-left: 14px; padding-right: 14px; }
}

/* ---- Rychlý přesun kategorie (redaktor/admin) na detailu díla ---- */
.presun-form { display: inline; }
.presun-select {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(128,128,128,.35);
    background: rgba(255,255,255,.7);
    color: inherit;
    cursor: pointer;
    max-width: 180px;
}

/* ---- Prominentní přihlášení / registrace pro hosty (horní sidebar) ---- */
#nav .nav-auth {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 4px;
    font-size: 13.5px;
}
#nav .nav-auth a {
    text-align: center;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.28);
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}
#nav .nav-auth a.reg {
    background: var(--akcent, #9a3b2e);
    border-color: var(--akcent, #9a3b2e);
    color: #fff;
    font-weight: 600;
}
#nav .nav-auth a:hover { opacity: .85; }

/* ---- Hezčí svislé posuvníky (#19) ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(154,59,46,.45) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(154,59,46,.4);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(154,59,46,.65); background-clip: content-box; }

/* ---- Kdo je online (#31) ---- */
.online-box { font-size: 14px; line-height: 1.5; }
.online-pocet { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.online-tecka {
    width: 9px; height: 9px; border-radius: 50%;
    background: #2e9c4f; box-shadow: 0 0 0 3px rgba(46,156,79,.18);
    display: inline-block;
    animation: online-puls 2s ease-in-out infinite;
}
@keyframes online-puls { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.online-detail { opacity: .65; font-size: 13px; margin-top: 3px; }
.online-nicky { margin-top: 7px; font-size: 13px; opacity: .85; }

/* Kdo je online – dole v levém menu (#nav). Nav je vždy tmavý → text napevno světlý. */
.nav-online { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(235,230,222,.85); }
.nav-online-hlava { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.nav-online-titul { font-weight: 700; color: rgba(235,230,222,.97); text-transform: uppercase; letter-spacing: .6px; font-size: 11.5px; }
.nav-online-pocet { margin-left: auto; opacity: .65; font-variant-numeric: tabular-nums; }
.nav-online-lide { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.nav-online-clovek a { display: block; padding: 2px 0; font-size: 13.5px; text-decoration: none; color: rgba(235,230,222,.9); opacity: 1; }
.nav-online-clovek a:hover { color: #fff; text-decoration: underline; }
.nav-online-skryty { display: none; }
.nav-online.otevreno .nav-online-skryty { display: block; }
.nav-online-vice { margin-top: 6px; background: none; border: 0; padding: 2px 0; cursor: pointer;
  font-size: 12.5px; color: rgba(235,230,222,.7); }
.nav-online-vice:hover { color: #fff; text-decoration: underline; }
.nav-online-hoste { margin-top: 7px; font-size: 12px; color: rgba(235,230,222,.55); }

/* ---- Filtr/řazení v Moje tvorba (#1c) ---- */
.mt-filtr { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; font-size: 14px; }
.mt-filtr label { display: flex; align-items: center; gap: 7px; opacity: .8; }
.mt-filtr select { min-width: 150px; }

/* ---- Nápověda k editoru (#17) ---- */
.editor-napoveda {
    background: rgba(212,167,44,.10);
    border: 1px solid rgba(212,167,44,.35);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 6px 0 12px;
    font-size: 14px;
    line-height: 1.55;
}
.editor-napoveda ul { margin: 6px 0 0; padding-left: 20px; }
.editor-napoveda li { margin-bottom: 4px; }

/* ---- Pero logo u nápisu (#3) ---- */
#nav .brand { display: inline-flex; align-items: center; gap: 5px; flex-wrap: nowrap; white-space: nowrap; font-size: 23px; }
#nav .brand-pero { flex: none; width: 17px; height: 17px; opacity: .9; transform: translateY(-1px); }

/* ---- Klikací autor v seznamu děl (stretched-link, #14) ---- */
.list-item-stretch { position: relative; }
.list-item-stretch .list-item-odkaz { text-decoration: none; color: inherit; }
.list-item-stretch .list-item-odkaz::after {
    content: ""; position: absolute; inset: 0; z-index: 0;
}
.list-item-stretch .list-item-subtitle,
.list-item-stretch .list-item-info { position: relative; z-index: 1; }
/* titulek díla ať jasně dominuje (heading), ne stejně jako autor */
.main-list .list-item-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
/* anotace = neutrální šedá (ne akcent), ať se vizuálně oddělí od vínového titulku.
   Vyšší specificita (.main-list …) přebije akcentové pravidlo motivů i s jejich !important. */
.main-list .list-item-subtitle { font-size: 14.5px; line-height: 1.5; margin: 2px 0 5px;
  color: var(--ink-soft, #6f6354) !important; opacity: 1; }
.main-list .list-item-info { font-size: 13px; opacity: .7; }
/* víc vzduchu mezi obsahem díla a dělící linkou (linka ať „dýchá") */
.main-list .list-item { padding-top: 15px; padding-bottom: 20px; }
/* autor = sekundární šedý odkaz (ne tučný vínový), ať se neplete s názvem */
#main .list-item-info a.list-item-autor { position: relative; z-index: 2;
  color: inherit !important; font-weight: 400; text-decoration: none; }
#main .list-item-info a.list-item-autor:hover { color: var(--akcent, #9a3b2e) !important; text-decoration: underline; }

/* ===== Výpis děl: název vlevo + autor·datum vpravo, pod tím úryvek (verše) ===== */
.main-list-vypis .vypis-item { padding-top: 14px; padding-bottom: 16px; }
/* hlavička: název vlevo, autor + datum zarovnané doprava na stejný řádek */
.main-list-vypis .vypis-hlava { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.main-list-vypis .vypis-titulek { margin: 0 0 4px; line-height: 1.3; }
.main-list-vypis .vypis-meta { flex-shrink: 0; text-align: right; white-space: nowrap;
  position: relative; z-index: 2;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px; font-weight: 400; color: var(--ink-soft, #6f6354); }
.main-list-vypis .vypis-meta .vypis-autor { color: var(--ink-soft, #6f6354) !important;
  font-weight: 600; text-decoration: none; }
.main-list-vypis .vypis-meta .vypis-autor:hover { color: var(--akcent, #9a3b2e) !important; text-decoration: underline; }
.main-list-vypis .vypis-meta .vypis-datum { display: block; margin-top: 2px; opacity: .85; }
/* úryvek = kurzíva, ZACHOVÁ zalomení veršů, ořez na 3 řádky s „…" */
.main-list-vypis .vypis-uryvek { margin: 0; font-style: italic; font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft, #6f6354); opacity: .92; white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* na mobilu autor+datum pod název, vlevo */
@media (max-width: 40em) {
  .main-list-vypis .vypis-hlava { flex-direction: column; gap: 1px; }
  .main-list-vypis .vypis-meta { text-align: left; }
  .main-list-vypis .vypis-meta .vypis-datum { display: inline; margin: 0; }
  .main-list-vypis .vypis-meta .vypis-datum::before { content: " · "; }
}

/* ===== Širší, vzdušnější sidebar menu (dle předlohy) – bez rolovátka ===== */
@media (min-width: 60em) {
  /* nav-inner = flex sloupec přes celou výšku, ať jde patičku přicvaknout dolů */
  #nav .nav-inner { padding: 18px 16px 22px; display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; }
  /* „Kdo je online" přicvaknuté na úplný spodek sidebaru */
  #nav .nav-online { margin-top: auto; }
  /* flex sloupec by jinak roztáhl CTA tlačítko na plnou šířku – necháme přirozené */
  #nav .nav-inner > .primary-button { align-self: flex-start; }
}
#nav .brand { font-size: 24px; margin-top: 4px; }
#nav .nav-menu { margin: 6px 0 2px; }
#nav .nav-menu .pure-menu-item { margin: 0; }
#nav .nav-menu .pure-menu-link {
  display: block; padding: 9px 13px; margin: 1px 0;
  border-radius: 9px; font-size: 15px; line-height: 1.25;
  white-space: normal; word-break: break-word;
}
#nav .nav-menu .pure-menu-link.aktivni {
  background: rgba(255,255,255,.13) !important; color: #fff !important; font-weight: 600;
}
#nav .nav-menu .pure-menu-heading {
  padding: 4px 13px; margin: 16px 0 3px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}
/* patička sidebaru: přepínání webů + servisní odkazy */
.nav-foot-weby { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.nav-foot-weby a { color: rgba(235,230,222,.62); text-decoration: none; font-size: 12.5px; }
.nav-foot-weby a:hover { color: #fff; }

/* ======================================================================
   PATIČKA WEBU – na spodku hlavního sloupce (#main), scrolluje s obsahem.
   Neutrální průhledné barvy → sedí na světlém i tmavém motivu.
   ====================================================================== */
.site-footer { margin-top: 52px; border-top: 1px solid rgba(128,128,128,.2);
  font-size: 14px; color: inherit; letter-spacing: normal;
  /* boční gutter jako u obsahu (titulek = 2em); na desktopu přebíjí fixní pruh níže */
  padding-left: 2em; padding-right: 2em; }
.site-footer * { letter-spacing: normal; }  /* zrušit záporný letter-spacing zděděný z .pure-g (grid hack), jinak je text slepený */
.site-footer a { color: inherit; opacity: .7; text-decoration: none; transition: opacity .12s, color .12s; }
.site-footer a:hover { opacity: 1; color: var(--akcent, #9a3b2e); }

.foot-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding: 26px 0 22px; }
.foot-brand .foot-logo { display: inline-block; font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 22px; font-weight: 700; opacity: 1; color: inherit; }
.foot-brand .foot-logo span { opacity: .5; }
.foot-brand .foot-logo:hover { opacity: 1; color: var(--akcent, #9a3b2e); }
.foot-brand p { margin: 7px 0 0; font-size: 13px; opacity: .6; max-width: 250px; line-height: 1.45; }
.foot-links { text-align: right; line-height: 1.95; }
.foot-links a { margin-left: 18px; font-size: 13.5px; white-space: nowrap; }

.foot-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 16px; padding: 13px 0 4px; border-top: 1px solid rgba(128,128,128,.14); font-size: 12.5px; }
.foot-weby a { margin-right: 16px; opacity: .78; }
.foot-copy { opacity: .5; }

/* Náhodný literární citát – přesunut z horní lišty sem do patičky.
   Linka přes celou šířku, text vycentrovaný v užším bloku, autor pod citátem. */
.foot-citat { padding: 16px 0 6px; border-top: 1px solid rgba(128,128,128,.14); }
.foot-citat .fc-inner { max-width: 680px; margin: 0 auto; text-align: center;
  font-style: italic; font-size: 14.5px; line-height: 1.6;
  color: var(--ink-soft, #6b6055); opacity: .92; }
.foot-citat .fc-aut { display: block; margin-top: 5px; font-style: normal;
  font-size: 13px; opacity: .75; white-space: nowrap; }
.foot-citat .fc-aut a { opacity: .85; }
.foot-citat .fc-aut a:hover { opacity: 1; }

/* Přepínač vzhledu v patičce (přesunuto z levého menu) */
.foot-vzhled { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.foot-vzhled span { opacity: .5; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.foot-vzhled a { opacity: .72; }
.foot-vzhled a.aktivni { opacity: 1; font-weight: 700; color: var(--akcent, #9a3b2e); }

/* ===== Kontrast doplňkových textů (data, počty přečtení, jména autorů u děl) =====
   Dřív světlá šedá (#999/#777/opacity .5) na krémovém podkladu špatně čitelná.
   Tlumený, ale dostatečně tmavý odstín z proměnné motivu (fallback pro světlý motiv). */
.main-item-name { color: var(--ink-soft, #6b6055) !important; }
.list-item-info { color: var(--ink-soft, #6b6055) !important; }
.main-content-subtitle span { color: var(--ink-soft, #6b6055) !important; }
.box-meta { opacity: .72; }
.dilo-meta { opacity: .82; }
.dilo-anotace { opacity: .9; }
.list-zahlavi-popis { opacity: .7; }
.kniha-autor { opacity: .8; }
.cd-smer { opacity: .75; }

@media (max-width: 640px) {
  .foot-top, .foot-bot { flex-direction: column; align-items: flex-start; }
  .foot-links { text-align: left; }
  .foot-links a { margin: 0 16px 0 0; line-height: 2.2; }
}

/* ===== /autori – přehled, hledání, karty se statistikami (#20) ===== */
.autori-ovladani { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.autori-hledat { flex: 1; min-width: 240px; }
.autori-razeni { min-width: 160px; }
.autori-zrusit { font-size: 13px; opacity: .7; text-decoration: underline; }
.autori-vysledek { font-size: 14px; opacity: .7; margin: 0 0 14px; }
.autori-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.autor-karta { display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  border: 1px solid rgba(128,128,128,.2); border-radius: 12px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .1s; }
.autor-karta:hover { box-shadow: 0 5px 18px rgba(0,0,0,.08); border-color: var(--akcent, #9a3b2e); transform: translateY(-1px); }
.autor-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--akcent, #9a3b2e); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 22px; font-weight: 700; }
.autor-karta-telo { min-width: 0; flex: 1; }
.autor-karta-nick { font-weight: 700; font-size: 16.5px; color: var(--akcent, #9a3b2e); }
.autor-karta-jmeno { font-size: 13px; opacity: .7; margin-top: 1px; }
.autor-karta-staty { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; font-size: 12.5px; opacity: .75; }

/* ===== Profil autora: lišta nad díly + klikací stat (#21, #22) ===== */
.autor-dila-ovladani { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid rgba(128,128,128,.16); }
.autor-dila-form { display: flex; gap: 8px; }
.autor-dila-form select { font-size: 13px; padding: 6px 9px !important; }
.stat-odkaz { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.stat-odkaz:hover { border-color: var(--akcent, #9a3b2e); box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.stat-odkaz .stat-c { color: var(--akcent, #9a3b2e); }

/* ===== Historie úprav díla (jen redakce) ===== */
.dilo-historie { margin: 18px 0; border: 1px solid rgba(128,128,128,.2); border-radius: 10px; padding: 10px 14px; background: rgba(128,128,128,.04); }
.dilo-historie summary { cursor: pointer; font-size: 13.5px; font-weight: 600; opacity: .8; }
.dilo-historie ul { margin: 10px 0 2px; padding-left: 18px; }
.dilo-historie li { font-size: 13.5px; margin-bottom: 4px; opacity: .85; }
.dh-akce { font-weight: 600; color: var(--akcent, #9a3b2e); }
.dh-detail { opacity: .8; }

/* ===== Náš tým (#role konsolidace) ===== */
.tym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; margin-bottom: 30px; }
.tym-karta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 22px 16px; border: 1px solid rgba(128,128,128,.2); border-radius: 14px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, border-color .15s, transform .1s; }
.tym-karta:hover { box-shadow: 0 6px 20px rgba(0,0,0,.09); border-color: var(--akcent, #9a3b2e); transform: translateY(-2px); }
.tym-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: Georgia, serif; font-size: 32px; font-weight: 700; }
.tym-nick { font-weight: 700; font-size: 17px; color: var(--akcent, #9a3b2e); }
.tym-motto { font-size: 13px; font-style: italic; opacity: .75; line-height: 1.4; }
.tym-vyzva { border-top: 1px solid rgba(128,128,128,.18); padding-top: 20px; max-width: 620px; }
.tym-vyzva h2 { font-size: 19px; margin: 0 0 .4em; }

/* ===== Horní lišta: vlevo účtové menu, vpravo ikony + avatar ===== */
.topbar {
  display: flex; align-items: center; justify-content: flex-start; gap: 14px;
  height: 56px; padding: 0 22px;
  border-bottom: 1px solid rgba(128,128,128,.18);
  letter-spacing: normal;  /* zrušit záporný letter-spacing z .pure-g (grid hack) */
}
.topbar, .topbar * { letter-spacing: normal; }
/* účtové menu vodorovně, vždy viditelné – vlevo za identitou */
.topbar-nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden;
  margin-left: 6px; padding-left: 14px; border-left: 1px solid rgba(128,128,128,.2); }
.topbar-nav a { padding: 6px 11px; border-radius: 8px; text-decoration: none; color: inherit;
  font-size: 14.5px; opacity: .82; white-space: nowrap; }
.topbar-nav a:hover { background: rgba(128,128,128,.12); opacity: 1; }
.topbar-nav a.aktivni { color: var(--akcent, #9a3b2e); font-weight: 600; opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 14px; order: 10; margin-left: 0; }

/* Hlavní CTA „Přidej vlastní" – vpravo nahoře, akcentní pilulka, vždy na očích */
.topbar-cta {
  order: 4;                            /* hned za účtovými odkazy, ne přilepené k pravému kraji */
  margin-left: 6px;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--akcent, #9a3b2e); color: #fff !important;
  text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
  transition: filter .15s, transform .05s, box-shadow .15s;
}
.topbar-cta:hover { filter: brightness(1.08); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.topbar-cta:active { transform: translateY(1px); }
.topbar-cta .tb-cta-ico { font-size: 15px; line-height: 1; }

/* Náhodný citát vpravo nahoře – nenápadné, jiné při každém načtení */
.topbar-citat {
  order: 5; margin-left: auto;        /* odsadí celou pravou skupinu (citát + tlačítko) doprava */
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0; max-width: 46%; overflow: hidden; white-space: nowrap;
  font-size: 12.5px; font-style: italic; opacity: .5;
}
.topbar-citat .tc-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.topbar-citat .tc-aut { flex: none; font-style: normal; opacity: .85; }
.topbar-citat a { color: inherit; text-decoration: none; }
.topbar-citat a:hover { text-decoration: underline; }
/* na užším desktopu by se s účtovým menu prala – schovat */
@media (max-width: 74.99em) { .topbar-citat { display: none; } }
@media (min-width: 60em) {
  /* lišta nad obsahem; účet ukotven k pravému okraji OBSAHU (ne okna) */
  .topbar { position: fixed; top: 0; left: 228px; right: 0; z-index: 45;
            padding-right: max(24px, calc(100vw - 1928px)); }
  #list { top: 56px !important; }
  #main { top: 56px !important; }
  #main.no-list { top: 56px !important; }
}

/* Patička: pevný pruh přes obsahovou část (vpravo od menu); menu jde přes celou výšku.
   Obsahové sloupce (#list, #main) končí nad patičkou, #nav zůstává plný. */
@media (min-width: 60em) {
  :root { --foot-h: 44px; }
  #list, #main, #main.no-list { bottom: var(--foot-h) !important; }
  .site-footer {
    position: fixed; left: 228px; right: 0; bottom: 0; z-index: 55;
    height: var(--foot-h); margin-top: 0; box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 0 24px;
    /* světlá papírová: průhledné pozadí (ukáže papír stránky) + tenká linka nahoře.
       Tím se sama přizpůsobí každému motivu (text i linka jsou z proměnných motivu). */
    background: var(--paper-read, var(--bg2, var(--bg, #faf6ec))); color: var(--ink-soft, #6f6354);
    font-size: 13px; overflow: hidden; border-top: 1px solid var(--line, rgba(128,128,128,.22));
  }
  /* Shluky v pruhu nesmí smršťovat – jinak se text v úzkém pruhu zmáčkne a překrývá. */
  .site-footer > .foot-top, .site-footer > .foot-bot { flex: 0 0 auto; }
  .site-footer a { color: var(--ink-soft, #6f6354); opacity: 1; text-decoration: none; }
  .site-footer a:hover { color: var(--akcent, #9a3b2e); }
  .site-footer .foot-copy { color: var(--ink-soft, #6f6354); opacity: .7; }
  /* levý shluk: značka + odkazy; pravý shluk: weby + copyright */
  .site-footer .foot-top, .site-footer .foot-bot {
    display: flex; align-items: center; gap: 20px; padding: 0; border: 0; flex-wrap: nowrap;
  }
  .site-footer .foot-brand { display: flex; align-items: center; }
  .site-footer .foot-brand p { display: none; }            /* tagline skrýt */
  .site-footer .foot-brand .foot-logo { font-size: 15px; }
  .site-footer .foot-links { display: flex; gap: 18px; }
  .site-footer .foot-links a { margin: 0; white-space: nowrap; }
  .site-footer .foot-weby { display: flex; gap: 16px; }
  .site-footer .foot-weby a { margin: 0; white-space: nowrap; }
  .site-footer .foot-vzhled { display: flex; gap: 13px; }
  .site-footer .foot-vzhled span { display: none; }   /* v úzkém pruhu label „Vzhled:" skrýt */
  .site-footer .foot-vzhled a { margin: 0; white-space: nowrap; }
  .site-footer .foot-copy { opacity: .55; white-space: nowrap; }
}
.topbar-ico { position: relative; font-size: 18px; text-decoration: none; color: inherit; opacity: .85; }
.topbar-ico:hover { opacity: 1; }
.tb-badge { position: absolute; top: -8px; right: -11px; background: #c0392b; color: #fff;
  font-family: system-ui, sans-serif; font-size: 10px; font-weight: 700; line-height: 1;
  border-radius: 9px; padding: 2px 5px; }
.topbar-ucet { position: relative; }
.topbar-trigger { display: flex; align-items: center; gap: 9px; background: transparent;
  border: 1px solid rgba(128,128,128,.28); border-radius: 22px; padding: 5px 12px 5px 6px;
  cursor: pointer; color: inherit; font: inherit; font-size: 15px; }
.topbar-trigger:hover { border-color: var(--akcent, #9a3b2e); }
.tb-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.tb-avatar-ini { display: flex; align-items: center; justify-content: center;
  background: var(--akcent, #9a3b2e); color: #fff; font-family: Georgia, serif; font-weight: 700; font-size: 15px; }
.tb-nick { font-weight: 600; }
.tb-sip { opacity: .55; font-size: 12px; }
.topbar-dd { position: absolute; top: 48px; left: 0; right: auto; width: 230px;
  background: var(--bg2, #fff); border: 1px solid rgba(128,128,128,.2); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.20); padding: 7px; z-index: 60; }
.topbar-dd a, .topbar-odhlasit { display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: inherit; text-decoration: none;
  background: transparent; border: 0; cursor: pointer; font: inherit; }
.topbar-dd a:hover, .topbar-odhlasit:hover { background: rgba(128,128,128,.13); }
.topbar-odhlasit { color: var(--akcent, #9a3b2e); }
.topbar-dd-sep { height: 1px; background: rgba(128,128,128,.16); margin: 5px 8px; }
.topbar-link { text-decoration: none; color: inherit; font-size: 15px; opacity: .9; }
.topbar-link:hover { opacity: 1; }
.topbar-btn { background: var(--akcent, #9a3b2e); color: #fff !important; text-decoration: none;
  padding: 8px 16px; border-radius: 20px; font-size: 14.5px; font-weight: 600; }
/* Mobilní hlavička: logo + Přidej + účet integrované do horní lišty #nav.
   Skryté na desktopu (tam je vše v levém sidebaru a horní topbar liště). */
.nav-mobil-brand, .nav-mobil-pridej, .nav-mobil-ucet, .nav-mobil-odkazy { display: none; }
@media (max-width: 59.99em) {
  .topbar { display: none !important; }   /* účet je teď v #nav liště */
  .nav-mobil-odkazy { display: none !important; }  /* odkazy jsou v rozbaleném menu */

  /* logo + slogan („literární server") jsou už v horní liště – v rozbaleném menu
     je neopakuj, ať jdou rovnou položky menu a šetří se místem */
  #nav .nav-inner > .brand,
  #nav .nav-inner > .brand-slogan { display: none; }

  /* logo basně.cz v liště (vedle tlačítka Menu) */
  .nav-mobil-brand { display: inline-flex; align-items: baseline; order: 1;
    color: #fff !important; text-decoration: none; font-size: 21px; font-weight: 700;
    font-family: Georgia, "Times New Roman", serif; letter-spacing: .2px; }
  .nav-mobil-brand span { opacity: .55; }

  /* „Přidej dílo" – akcentní pilulka, vždy na očích */
  .nav-mobil-pridej { display: inline-flex; align-items: center; gap: 5px; order: 2;
    margin-left: auto; white-space: nowrap;
    background: var(--akcent, #9a3b2e); color: #fff !important; text-decoration: none;
    font-weight: 600; font-size: 13.5px; padding: 7px 14px; border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,.18); }
  .nav-mobil-pridej:active { transform: translateY(1px); }

  /* avatar + zvoneček + zprávy vpravo */
  .nav-mobil-ucet { display: flex; align-items: center; gap: 15px; order: 3; }
  .nav-mobil-ucet .nmu-avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
    display: block; flex: none; }
  .nav-mobil-ucet .nmu-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .nav-mobil-ucet .nmu-ini { width: 30px; height: 30px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; background: var(--akcent, #9a3b2e);
    color: #fff; font-weight: 700; font-family: Georgia, serif; }
  .nav-mobil-ucet .nmu-ico { position: relative; color: #fff !important; font-size: 19px; opacity: .92;
    text-decoration: none; }
  .nav-mobil-ucet .nmu-badge { position: absolute; top: -7px; right: -10px; background: #c0392b;
    color: #fff; font-size: 10px; font-weight: 700; line-height: 1.3; border-radius: 9px; padding: 1px 5px; }

  /* zabraň vodorovnému „posouvání" celé stránky na mobilu */
  html, body { overflow-x: clip; max-width: 100%; }

  /* Profilové menu pod avatarem „A" – klik na avatar rozbalí účet (jako na desktopu).
     Ukotveno k liště #nav (přes celou šířku okna) a vsazené z obou stran → nikdy nepřeteče. */
  #nav { position: relative !important; }
  .nav-mobil-ucet .nmu-avatar { padding: 0; border: 0; background: transparent; cursor: pointer; }
  .nmu-dd { position: absolute; top: calc(100% + 4px); right: 8px; left: auto; width: 240px;
    max-width: calc(100% - 16px); max-height: calc(100vh - 70px); overflow-y: auto;
    background: var(--bg2, #fff); border: 1px solid rgba(128,128,128,.2); border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,.30); padding: 7px; z-index: 200; }
  .nmu-dd a, .nmu-odhlasit { display: block; width: 100%; text-align: left; white-space: nowrap;
    padding: 10px 13px; border-radius: 8px; font-size: 15px; color: var(--ink, #3a322a) !important;
    text-decoration: none; background: transparent; border: 0; cursor: pointer; font: inherit; }
  .nmu-dd a:hover, .nmu-odhlasit:hover { background: rgba(128,128,128,.13); }
  .nmu-odhlasit { color: var(--akcent, #9a3b2e) !important; }
  .nmu-dd-sep { height: 1px; background: rgba(128,128,128,.16); margin: 5px 8px; }
}
/* Přihlášeným skryjeme „Přidej vlastní" v levém panelu na desktopu –
   tam roli hlavní akce přebírá CTA v horní liště. Na mobilu a nepřihlášeným zůstává. */
@media (min-width: 60em) {
  .nav-pridej-auth { display: none !important; }
}
/* účet v mobilním menu (jen pod 60em) */
.nav-ucet-mobil { display: none; }
@media (max-width: 59.99em) {
  .nav-ucet-mobil { display: block; border-top: 1px solid rgba(255,255,255,.14); margin-top: 12px; padding-top: 12px; }
}

/* ===== Kontextové „Přidat …" tlačítko v hlavičce výpisu sekce (vlevo pod nadpisem) ===== */
/* #main a.sekce-pridat-btn → vyšší specificita než motivy, co barví #main a na vínovou přes !important */
.sekce-pridat-btn, #main a.sekce-pridat-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--akcent, #9a3b2e); color: #fff !important; text-decoration: none;
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; margin-top: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.14);
  transition: filter .15s, transform .05s, box-shadow .15s;
}
.sekce-pridat-btn:hover, #main a.sekce-pridat-btn:hover { color: #fff !important; filter: brightness(1.08); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sekce-pridat-btn:active { transform: translateY(1px); }
.sekce-pridat-btn .sp-ico { font-size: 15px; line-height: 1; }
@media (max-width: 36em) { .sekce-pridat-btn { display: flex; justify-content: center; } }

/* ===== Účtové menu v prostředním panelu (#list) – „bílé menu" jako navigace sekce Můj účet ===== */
.ucet-nav { padding: 10px 10px 30px; letter-spacing: normal; }
.ucet-nav * { letter-spacing: normal; }
.ucet-nav-hlava { display: flex; align-items: center; gap: 11px;
  padding: 12px 12px; margin-bottom: 8px; border-radius: 12px;
  text-decoration: none; color: inherit; }
.ucet-nav-hlava:hover { background: rgba(128,128,128,.10); }
.ucet-nav-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.ucet-nav-av-ini { display: flex; align-items: center; justify-content: center;
  background: var(--akcent, #9a3b2e); color: #fff; font-family: Georgia, serif; font-weight: 700; font-size: 20px; }
.ucet-nav-hlava-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ucet-nav-hlava-txt strong { font-size: 16px; }
.ucet-nav-hlava-txt span { font-size: 12px; opacity: .6; }
.ucet-nav-item { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 10px 13px; border-radius: 9px; font-size: 15.5px; color: inherit; text-decoration: none;
  background: transparent; border: 0; cursor: pointer; font: inherit; }
.ucet-nav-item:hover { background: rgba(128,128,128,.12); }
.ucet-nav-item.aktivni { background: var(--akcent, #9a3b2e); color: #fff; font-weight: 600; }
.ucet-nav-item.aktivni .ucet-nav-badge { background: #fff; color: var(--akcent, #9a3b2e); }
.ucet-nav-badge { margin-left: auto; background: #c0392b; color: #fff;
  font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 10px; padding: 2px 7px; }
.ucet-nav-sep { height: 1px; background: rgba(128,128,128,.16); margin: 8px 12px; }
.ucet-nav-odhlasit { color: var(--akcent, #9a3b2e); }

/* Sledovaní autoři v sekci Oblíbení (obsah vpravo) */
.oblib-nadpis { font-size: 18px; margin: 0 0 14px; }
.oblib-autori-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.oblib-autor { display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border: 1px solid rgba(128,128,128,.18); border-radius: 11px;
  text-decoration: none; color: inherit; }
.oblib-autor:hover { border-color: var(--akcent, #9a3b2e); }
.oblib-autor .fa { font-size: 18px; opacity: .5; width: 20px; text-align: center; }
.oblib-autor-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.oblib-autor-txt strong { font-size: 15px; }
.oblib-autor-txt span { font-size: 12.5px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Sdílená tabulka – jednotná napříč webem, stejná jako tabulka děl (.moje-tvorba) ===== */
.tabulka { width: 100%; border-collapse: collapse; letter-spacing: normal; font-size: 14.5px; }
.tabulka th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  opacity: .55; font-weight: 600; padding: 6px 10px; border-bottom: 1px solid rgba(128,128,128,.22); }
.tabulka td { padding: 9px 10px; border-bottom: 1px solid rgba(128,128,128,.13); vertical-align: middle; }
.tabulka .cislo { text-align: right; font-variant-numeric: tabular-nums; }
.tabulka-titul { font-weight: 600; color: inherit; text-decoration: none; }
.tabulka-titul:hover { color: var(--akcent, #9a3b2e); }
.tabulka-tlum { opacity: .75; }                              /* tlumený sloupec (autor, sekce) */
.tabulka-datum { white-space: nowrap; font-size: 13px; opacity: .7; }
@media (max-width: 48em) {
  .tabulka .skryt-mobil { display: none; }                   /* méně důležitý sloupec na mobilu */
  .tabulka th, .tabulka td { padding-left: 8px; padding-right: 8px; }
}

/* ===== Číst další: navigace na starší / novější dílo (pod básní) ===== */
.cist-dalsi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 28px 0 6px;
  padding-top: 18px; border-top: 1px solid var(--line, rgba(128,128,128,.18)); }
.cist-dalsi-odkaz { display: flex; flex-direction: column; gap: 2px;
  text-decoration: none; color: inherit; min-width: 0; }
.cd-novejsi { text-align: right; align-items: flex-end; }
.cd-smer { font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 12.5px; letter-spacing: .02em; text-transform: none; opacity: .6; }
.cd-titul { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 600;
  color: var(--akcent, #9a3b2e); line-height: 1.3;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cist-dalsi-odkaz:hover .cd-titul { text-decoration: underline; }
@media (max-width: 40em) { .cist-dalsi { grid-template-columns: 1fr; } .cd-novejsi { text-align: left; align-items: flex-start; } }

/* Náhodné dílo – decentní objevovací odkaz */
.nahodne-dilo { text-align: center; margin: 16px 0 2px; }
.nahodne-dilo a { font-family: Georgia, "Times New Roman", serif; font-style: italic;
  font-size: 14.5px; color: var(--ink-soft, #9a9085); text-decoration: none; }
.nahodne-dilo a:hover { color: var(--akcent, #9a3b2e); }
.nahodne-dilo .fa { margin-right: 6px; font-style: normal; opacity: .75; }

/* Náhodná báseň v menu – jemně odlišená „objevovací" položka */
#nav .pure-menu-link.nav-nahodne { font-style: italic; color: var(--akcent, #9a3b2e); }
#nav .pure-menu-link.nav-nahodne:hover { opacity: .82; }

/* Rozcestník kategorií (přání / vtipy) – dlaždice s počtem */
.kat-dlazdice { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 11px; margin-top: 4px; }
.kat-dlazka { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 13px 16px; border: 1px solid var(--line, #e7e0d4); border-radius: 8px;
  text-decoration: none; color: var(--ink, #3a342c); transition: border-color .15s ease, transform .12s ease; }
.kat-dlazka:hover { border-color: var(--akcent, #9a3b2e); transform: translateY(-1px); }
.kat-dlazka-nazev { font-family: Georgia, "Times New Roman", serif; font-size: 15.5px; line-height: 1.25; }
.kat-dlazka-pocet { flex: none; font-size: 12.5px; color: var(--ink-soft, #9a9085); font-variant-numeric: tabular-nums; }
/* Zpět na rozcestník kategorií */
.kat-zpet { display: inline-block; margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif;
  font-style: italic; font-size: 13.5px; color: var(--ink-soft, #9a9085); text-decoration: none; }
.kat-zpet:hover { color: var(--akcent, #9a3b2e); }

/* DOČASNÉ: VÝRAZNÁ výzva ke zpětné vazbě v levém menu – ať ji nikdo nepřehlédne */
.nav-feedback-cta {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 8px; padding: 13px 14px;
  border-radius: 12px; text-decoration: none; line-height: 1.3;
  background: linear-gradient(135deg, #ffb43e, #e87a1c);
  color: #3a230d !important; border: 0;
  box-shadow: 0 4px 16px rgba(240,150,40,.45);
  animation: nfc-puls 1.8s ease-in-out infinite;
}
.nav-feedback-cta:hover { transform: translateY(-1px); animation: none;
  box-shadow: 0 7px 24px rgba(240,150,40,.65); }
.nav-feedback-cta .nfc-ico { font-size: 22px; flex: none; transform-origin: 70% 35%;
  animation: nfc-zvon 1.8s ease-in-out infinite; }
.nav-feedback-cta .nfc-text { font-size: 13.5px; color: inherit; font-weight: 600; }
.nav-feedback-cta .nfc-text strong { display: inline; font-weight: 800; }
@keyframes nfc-puls {
  0%, 100% { box-shadow: 0 4px 16px rgba(240,150,40,.42); }
  50%      { box-shadow: 0 5px 22px rgba(240,150,40,.7), 0 0 0 4px rgba(240,150,40,.22); }
}
@keyframes nfc-zvon {
  0%, 65%, 100% { transform: rotate(0); }
  72% { transform: rotate(-17deg); }
  80% { transform: rotate(14deg); }
  88% { transform: rotate(-7deg); }
  95% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .nav-feedback-cta, .nav-feedback-cta .nfc-ico { animation: none !important; } }

/* DOČASNÉ: výzva ke zpětné vazbě na novém webu – box nahoře ve fóru */
.forum-vyzva {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 0 0 20px; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--akcent, #9a3b2e) 35%, transparent);
  border-left: 4px solid var(--akcent, #9a3b2e);
  border-radius: 10px;
  background: color-mix(in srgb, var(--akcent, #9a3b2e) 8%, transparent);
}
.forum-vyzva-ico { font-size: 22px; flex: none; line-height: 1.3; }
.forum-vyzva-text { font-size: 14.5px; line-height: 1.5; }
.forum-vyzva-text strong { font-weight: 700; }
.forum-vyzva-text a { color: var(--akcent, #9a3b2e); font-weight: 600; text-decoration: underline; }

/* ===== Profil autora – sjednocení středního sloupce (díla + zeď) a pravého (Aktivita) =====
   Cíl: stejná šířka a klidnější rytmus. Tabulka děl se neroztahuje do prázdna a čísla
   drží u názvu; feed aktivity má konzistentní řádky a vlastní „rail" kartu, ať neplave
   ve vzduchu. Celý blok lze beze zbytku odebrat – nic jiného na něm nezávisí. */

/* Tabulka děl: nedovol roztažení přes celý široký sloupec; pomocné sloupce drž úzké,
   ať čísla (Přečtení / Koment.) sedí u názvu a nevzniká prázdné pásmo doprava. */
#main .dila-tabulka { max-width: 820px; }
.dila-tabulka td.mt-sekce, .dila-tabulka td.mt-datum,
.dila-tabulka th.cislo, .dila-tabulka td.cislo,
.dila-tabulka td.mt-akce { width: 1%; white-space: nowrap; }
.dila-tabulka th:first-child { width: auto; }

/* Aktivita: datum vždy na vlastní tlumený řádek – žádné nevzhledné zalomení doprostřed.
   Oba typy řádků (dílo i komentář) tak mají stejný dvouřádkový rytmus. */
.profil-aktivita .akt-cas { display: block; margin: 2px 0 0; font-size: 11.5px; }
.profil-aktivita .akt-radek { padding: 10px 0; }
.profil-aktivita .akt-radek:last-child { border-bottom: 0; }

/* Pravý sloupec = „rail" karta: highlighty tvorby (nejúspěšnější / nejkomentovanější) + Aktivita.
   Jedna uzavřená karta, uvnitř sekce oddělené tenkou linkou a sjednoceným návěstovým nadpisem. */
.profil-spodek:has(.profil-rail) { grid-template-columns: minmax(0,1fr) 340px; }
.profil-rail { background: rgba(128,128,128,.045); border: 1px solid rgba(128,128,128,.14);
  border-radius: 12px; padding: 4px 18px; }
.rail-sekce { padding: 16px 0; border-top: 1px solid rgba(128,128,128,.16); }
.rail-sekce:first-child { border-top: 0; }
.rail-sekce h2 { font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; opacity: .55; margin: 0 0 10px; }

/* Highlight dílo v railu (nejúspěšnější / nejkomentovanější) */
.rail-dilo { display: block; text-decoration: none; color: inherit; }
.rail-dilo-titul { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 16px;
  font-weight: 700; line-height: 1.3; color: var(--akcent, #9a3b2e); }
.rail-dilo:hover .rail-dilo-titul { text-decoration: underline; }
.rail-dilo-info { display: block; font-size: 12.5px; opacity: .65; margin-top: 2px; }

/* Aktivita uvnitř railu: feed bez vlastní karty (kartu dělá rail; oddělovač řeší .rail-sekce) */
.profil-rail .profil-aktivita { background: none; border-radius: 0; }
.profil-rail .aktivita-feed .akt-radek:last-child { border-bottom: 0; padding-bottom: 0; }

/* Zeď přesunutá do pravého railu (sociální sloupec, ne nalepená pod tabulkou děl) */
.profil-rail .profil-zed .zed-pocet { font-size: 11px; }
.profil-rail .profil-zed .zed-form { margin: 0 0 14px; }
.profil-rail .profil-zed .zed-form textarea { width: 100%; }
.profil-rail .profil-zed .zed-vzkaz { padding: 10px 0; }
.profil-rail .profil-zed .zed-vzkaz:last-child { padding-bottom: 0; }
.profil-rail .profil-zed .zed-vzkaz-text { font-size: 14px; }

/* Akce v tabulce děl: větší klikací plocha pro „upravit/smazat" (mobil/trackpad) */
.dila-tabulka .mt-akce { white-space: nowrap; text-align: right; }
.dila-tabulka .mt-akce a,
.dila-tabulka .mt-akce button { display: inline-block; padding: 6px 9px; margin-left: 2px; font-size: 13px; }

/* Admin: výpis zpětné vazby */
.fb-zaznam { border: 1px solid rgba(128,128,128,.2); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.fb-hlava { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.fb-jmeno { font-weight: 700; }
.fb-anon { font-weight: 400; opacity: .6; }
.fb-hvezdy { color: #e0a93b; letter-spacing: 1px; }
.fb-cas { opacity: .6; }
.fb-ip { opacity: .45; font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.fb-text { line-height: 1.55; white-space: pre-wrap; }

/* ===== Profil autora – medailonek (#list): jednotný civilní / editoriální styl =====
   Jeden registr pro VŠECHNY sekce: tlumený nadpis verzálkami + tenká linka mezi sekcemi,
   žádné rámečky ani dlaždice. Sjednocuje dříve nesourodé bloky. Scoped na .profil-list,
   nic mimo medailonek se nemění. Celý blok lze beze zbytku odebrat. */

/* Statistiky nahoře: zrušit „megalomanské" dlaždice – jen čísla a popisky v mřížce 2×2 */
.profil-list .profil-staty { grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 18px 0 4px; }
.profil-list .profil-staty .stat { border: 0; border-radius: 0; padding: 0; text-align: left; min-width: 0; }
.profil-list .profil-staty .stat-c { font-size: 22px; }
.profil-list .profil-staty .stat-l { opacity: .6; }
.profil-list .profil-staty .stat-odkaz { text-decoration: none; color: inherit; }

/* Jednotný nadpis sekce: tlumená verzálková „návěst" (stejná pro Připnuté, Tvorba, Detaily…) */
.profil-list .profil-sekce h2 {
  font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px; opacity: .55; margin: 0 0 10px;
}

/* Tenká linka mezi sekcemi = jednotný klidný rytmus místo různých rámečků */
.profil-list .profil-sekce { margin: 0; padding: 18px 0; border-top: 1px solid rgba(128,128,128,.16); }

/* Citát: ponechán jako jediný jemný akcent, ale civilněji – tenký pruh místo tučného okraje */
.profil-list .profil-citat { margin: 0; padding: 18px 0; border-left: 0; max-width: none;
  border-top: 1px solid rgba(128,128,128,.16); }
.profil-list .profil-citat blockquote { font-size: 16px; position: relative; padding-left: 14px; }
.profil-list .profil-citat blockquote::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 2px; border-radius: 2px; background: var(--akcent, #9a3b2e); opacity: .5; }

/* Odznaky (Ocenění): zjemnit, ať ladí s civilním zbytkem (drobný štítek, ne výrazný box) */
.profil-list .odznak { font-size: 11px; padding: 3px 9px; opacity: .9; }

/* Záložky Odeslané/Přijaté na stránce komentářů */
.komentare-zalozky { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid rgba(128,128,128,.18); }
.komentare-zalozky a { padding: 8px 16px; text-decoration: none; color: inherit; font-size: 14.5px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; opacity: .65; }
.komentare-zalozky a:hover { opacity: 1; }
.komentare-zalozky a.aktivni { opacity: 1; font-weight: 600; color: var(--akcent, #9a3b2e); border-bottom-color: var(--akcent, #9a3b2e); }

/* Info box v pravidlech */
.pravidla-info { background: rgba(128,128,128,.05); border: 1px solid rgba(128,128,128,.16);
  border-radius: 12px; padding: 6px 22px 18px; margin-top: 26px; }
.pravidla-info ul { margin: 0; padding-left: 20px; }
.pravidla-info li { margin: 7px 0; }

/* Sekce „Sbírky" na profilu autora */
.profil-sbirky { display: flex; flex-direction: column; gap: 8px; }
.profil-sbirka { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid rgba(128,128,128,.18); border-radius: 10px;
  text-decoration: none; color: inherit; }
.profil-sbirka:hover { border-color: var(--akcent, #9a3b2e); }
.profil-sbirka-nazev { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profil-sbirka-pocet { flex: none; font-size: 12px; opacity: .55; white-space: nowrap; }

/* ======================================================================
   Detail díla – oddělená lišta správy (autor / redakce / admin)
   ====================================================================== */
.dilo-sprava { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 14px 0 4px; padding: 10px 14px; border-radius: 10px;
  background: rgba(154,59,46,.06); border: 1px solid rgba(154,59,46,.18); }
.dilo-sprava-popis { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--akcent, #9a3b2e); opacity: .85; margin-right: 4px; }
.dilo-sprava-popis .fa { margin-right: 3px; }
.dilo-sprava .je-nebezpeci { color: #9a3b2e; }

/* Doporučit – decentní „ghost" tlačítko (knižní vzhled, ne sociální výplň) */
#main .doporucit-btn { background: transparent !important; color: var(--akcent, #9a3b2e) !important;
  border: 1px solid currentColor !important; font-weight: 500;
  padding: 4px 15px !important; border-radius: 4px !important; letter-spacing: .02em;
  transition: background .15s ease, color .15s ease; }
#main .doporucit-btn:hover { background: var(--akcent, #9a3b2e) !important; color: #fff !important;
  border-color: var(--akcent, #9a3b2e) !important; }
.doporucit-btn .fa { margin-right: 5px; opacity: .8; font-size: .92em; }

/* Kolofon díla – vzdušná řádka místo tabulky (Přečteno · Doporučeno · Kategorie) */
.dilo-kolofon { margin: 0; font-size: 14.5px; color: var(--ink, #3a342c); line-height: 1.95; }
.dilo-kolofon-item:not(:last-child)::after { content: "·"; margin: 0 13px;
  color: var(--ink-soft, #b8b0a2); opacity: .7; }
.dilo-kolofon-label { font-family: Georgia, "Times New Roman", serif; font-style: italic;
  color: var(--ink-soft, #9a9085); font-size: 13.5px; margin-right: 5px; }
.dilo-kolofon-sekce { color: var(--ink-soft, #9a9085); }
.dilo-kolofon-ok { color: var(--akcent, #9a3b2e); }

/* ===== Detail díla – klidnější čtenářský zážitek =====
   Čtenářské akce jako diskrétní ikony (ne „zubatý" blok různě širokých tlačítek),
   Nahlásit nenápadně dole, komentář v pohodlné šířce. Celý blok lze odebrat. */
.dilo-akce { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.dilo-akce form { margin: 0; display: inline-flex; }
.dilo-akce-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  color: inherit; opacity: .55; text-decoration: none; font-size: 16px; line-height: 1;
  transition: background .12s, opacity .12s, color .12s;
}
.dilo-akce-btn:hover,
.dilo-akce-btn:focus-visible { opacity: 1; background: rgba(128,128,128,.12); color: var(--akcent, #9a3b2e); }
.dilo-akce-btn.je-aktivni { opacity: 1; color: var(--akcent, #9a3b2e); }
.dilo-akce-pocet { font-size: 13px; font-weight: 700; font-family: Georgia, "Times New Roman", serif; }
.dilo-nahlasit { margin: 8px 0 0; }
.dilo-nahlasit-link { background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 12.5px; color: inherit; opacity: .4; text-decoration: none; }
.dilo-nahlasit-link:hover { opacity: .9; color: #b23a2e; }
.dilo-nahlasit-link .fa { font-size: 11px; }
.komentar-form { max-width: 680px; }
#komentare .comments { max-width: 680px; }
@media print { .dilo-nahlasit { display: none !important; } }


/* Fórum – editace / mazání příspěvku (autor + moderátor) */
.forum-prispevek-akce { display: flex; align-items: center; gap: 14px; margin-top: 9px; }
.forum-prispevek-akce form { display: inline; margin: 0; }
.forum-akce-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 12.5px; color: inherit; opacity: .55; text-decoration: none; }
.forum-akce-btn:hover { opacity: 1; color: var(--akcent, #9a3b2e); }
.forum-akce-smazat:hover { color: #c0392b; }
/* Palec nahoru u příspěvku */
.forum-palec { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(128,128,128,.3); border-radius: 999px; padding: 3px 11px !important; opacity: .8; }
.forum-palec:hover { opacity: 1; border-color: var(--akcent, #9a3b2e); }
.forum-palec.je-palec { opacity: 1; border-color: var(--akcent, #9a3b2e); color: var(--akcent, #9a3b2e); background: color-mix(in srgb, var(--akcent, #9a3b2e) 10%, transparent); font-weight: 600; }
.forum-palec-ico { font-size: 13px; line-height: 1; }
.forum-palec-pocet { font-variant-numeric: tabular-nums; }
.forum-edit-form { margin-top: 9px; }
.forum-edit-form textarea { width: 100%; resize: vertical; }
.forum-edit-akce { display: flex; gap: 8px; margin-top: 8px; }

/* Anketa – volitelný odkaz (např. na diskuzní vlákno ve fóru) pod možnostmi */
.anketa-odkaz { margin: 12px 0 4px; font-size: 13.5px; }
.anketa-odkaz a { color: var(--akcent, #9a3b2e); text-decoration: none; font-weight: 600; }
.anketa-odkaz a:hover { text-decoration: underline; }


/* Banner "vítej zpátky" – první přihlášení přeneseného uživatele */
#layout .vitej-banner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 70;
  max-width: 680px; width: calc(100% - 32px); box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: linear-gradient(135deg, #fff6e8, #ffe7c4);
  border: 1px solid #e3b977; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(120,80,20,.28);
  font-family: Georgia, "Times New Roman", serif; color: #5a3d1a; line-height: 1.45;
  animation: vitejIn .35s ease;
}
.vitej-banner .vitej-text { font-size: 14.5px; flex: 1; letter-spacing: normal; }
.vitej-banner a { color: #9a3b2e; font-weight: 700; text-decoration: underline; }
.vitej-banner a:hover { color: #7a2e22; }

.vitej-banner .vitej-zavrit { flex: none; font-size: 22px; text-decoration: none; color: #9a6a2e; line-height: 1; padding: 0 2px; }
.vitej-banner .vitej-zavrit:hover { color: #6a4518; }
@keyframes vitejIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }


/* Nápověda na login / forgot stránkách */
.login-pomoc { font-size: 13px; color: #8a7a66; line-height: 1.5; background: rgba(0,0,0,.03); border-radius: 8px; padding: 10px 13px; margin-top: 1.2em; }
.login-pomoc a { color: var(--akcent, #9a3b2e); }

/* anti-spam honeypot pole */
.hp-trap { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.forum-vlakno-smazat { margin-top: 6px; }


/* Papírové pozadí VŠECH obsahových textových polí (jako u zpráv) – zeď, komentáře, přidávání, fórum…
   Tmavé hledání v levém panelu (#nav .nav-search) se NEdotýká. */
textarea,
#main .pure-form input[type="text"], #main .pure-form input[type="email"],
#main .pure-form input[type="url"], #main .pure-form input[type="search"], #main .pure-form input[type="number"],
#main .pure-form input[type="password"], #main .pure-form input[type="tel"],
#list .pure-form input[type="text"] {
  background: var(--paper, #f4eee1) !important;
}

/* Úryvek z díla pod názvem v tabulce tvorby */
.mt-uryvek { display: block; font-size: 12.5px; color: var(--ink-soft, #8a7f63); opacity: .85; margin-top: 3px; font-style: italic; letter-spacing: normal; line-height: 1.45; }

/* ===== Trix editor (přidání/úprava díla) ===== */
/* Roztažitelná psací plocha – tažítko v pravém dolním rohu. */
trix-editor { resize: vertical; overflow: auto; }
/* Skrýt automatický název + velikost souboru u obrázků (v editoru i na díle). */
.attachment__name, .attachment__size { display: none !important; }
.attachment__caption { margin-top: 0 !important; }
/* Obrázky v obsahu nikdy nepřetečou. */
.trix-content img, .attachment img { max-width: 100%; height: auto; }
/* Interaktivní úchyty pro úpravu obrázku v editoru (myší i prstem). */
.obr-ovl { position: absolute; z-index: 9998; box-sizing: border-box;
  border: 1.5px solid var(--akcent, #9a3b2e); pointer-events: none; letter-spacing: normal; }
.obr-ovl[hidden] { display: none; }
.obr-h { position: absolute; width: 18px; height: 18px; background: #fff;
  border: 2px solid var(--akcent, #9a3b2e); border-radius: 50%; pointer-events: auto;
  touch-action: none; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.obr-h-nw { left: -9px; top: -9px; cursor: nwse-resize; }
.obr-h-ne { right: -9px; top: -9px; cursor: nesw-resize; }
.obr-h-sw { left: -9px; bottom: -9px; cursor: nesw-resize; }
.obr-h-se { right: -9px; bottom: -9px; cursor: nwse-resize; }
.obr-rot { position: absolute; left: 50%; top: -38px; width: 26px; height: 26px; margin-left: -13px;
  background: #fff; border: 2px solid var(--akcent, #9a3b2e); border-radius: 50%; pointer-events: auto;
  touch-action: none; cursor: grab; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--akcent, #9a3b2e); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.obr-rot::after { content: ""; position: absolute; top: 24px; left: 50%; width: 2px; height: 14px;
  background: var(--akcent, #9a3b2e); margin-left: -1px; }
.obr-bublina { position: absolute; left: 50%; top: -68px; transform: translateX(-50%);
  background: #2b211c; color: #fff; font: 600 12px/1 system-ui, sans-serif; padding: 4px 8px;
  border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .1s; }
.obr-ovl.je-aktivni .obr-bublina { opacity: 1; }
.obr-ovl.je-zaneprazdneno { opacity: .6; }

/* ===== Pohodlnější přidávání díla: počet slov, obnova konceptu, náhled ===== */
.pridej-pocet { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft, #777);
  letter-spacing: normal; font-variant-numeric: tabular-nums; }
.pridej-nahled-btn { margin-right: 10px; }
.pridej-obnova { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px;
  padding: 12px 15px; border: 1px solid rgba(154,59,46,.35); background: rgba(154,59,46,.07);
  border-radius: 11px; font-size: 14px; letter-spacing: normal; }
.pridej-obnova span { flex: 1 1 auto; min-width: 170px; }
.pridej-obnova .pure-button { font-size: 13px; padding: 6px 14px; }
.pridej-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5);
  display: flex; padding: 20px; overflow: auto; letter-spacing: normal; }
.pridej-modal[hidden] { display: none; }
.pridej-modal-box { background: var(--paper-read, var(--bg2, #fff)); color: var(--ink, #333);
  max-width: 760px; width: 100%; margin: auto; border-radius: 16px; padding: 30px 34px;
  position: relative; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.pridej-modal-x { position: absolute; top: 12px; right: 16px; background: transparent; border: 0;
  font-size: 28px; line-height: 1; cursor: pointer; color: inherit; opacity: .55; }
.pridej-modal-x:hover { opacity: 1; }
.pridej-modal-stitek { font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  opacity: .5; margin-bottom: 8px; }
.pridej-nahled-titulek { margin: 0 0 16px; font-size: 27px; line-height: 1.2; }
.pridej-nahled-telo { font-size: 16px; line-height: 1.7; }
.pridej-nahled-telo img { max-width: 100%; height: auto; border-radius: 6px; }
@media (max-width: 40em) { .pridej-modal-box { padding: 24px 18px; } .pridej-nahled-titulek { font-size: 22px; } }

/* ====== JEDNOTNÉ ZAOBLENÍ INTERAKTIVNÍCH PRVKŮ (knižní styl, 5px) ======
   Sjednocuje VŠECHNY inputy, roletky, tlačítka i pilulkové CTA/účet napříč webem –
   pryč s ovály (999px/20px/22px) i s nesourodými 8/9px. Kruhové avatary (50 %)
   a malá počítadla notifikací zůstávají kulaté záměrně (konvence).
   Tento blok se načítá až za prototypem i motivy → má poslední slovo. */
.pure-button,
.primary-button.pure-button,
.secondary-button.pure-button,
.pure-form input[type="text"], .pure-form input[type="email"], .pure-form input[type="password"],
.pure-form input[type="number"], .pure-form input[type="date"], .pure-form input[type="search"],
.pure-form input[type="url"], .pure-form textarea, .pure-form select,
input.form-vstup, textarea,
.pokec-form input, .pokec-form .primary-button,
select.list-zahlavi-razeni, select.autori-razeni, .autor-dila-form select,
.dila-filtry select, .mt-filtr select, .sbirky-filtr select, .razeni-prepinac select,
#layout .nav-search input,
/* CTA tlačítka, účtová pilulka a „palec" – dřív oválné, teď taky knižně hranaté */
.topbar-cta, .topbar-btn, .topbar-trigger, .nav-mobil-pridej,
.sekce-pridat-btn, #main a.sekce-pridat-btn, .forum-palec {
  border-radius: 5px !important;
}

/* ===== DOTYKOVÉ PLOCHY NA MOBILU (cíl ~44px) =====
   Drobné akční odkazy (upravit/smazat v tabulce děl, akce u komentáře) jsou na
   desktopu maličké. Na dotykových displejích jim dáme dost velký zásah prstem,
   ať nedochází k překlikům. Jen ≤48em – na desktopu zůstává kompaktní vzhled. */
@media (max-width: 48em) {
  .mt-akce a, .mt-akce button,
  .komentar-akce button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 8px 11px !important;
  }
}

/* ===== Prej.cz – profil autora (jeho přání / vtipy / romantika) ===== */
a.karta-autor { color: var(--akcent, #c25a2e); text-decoration: none; }
a.karta-autor:hover { text-decoration: underline; }

/* Učesané kategorie přání/vtipů v prostředním panelu (#list) – kompaktně */
/* Klikací nadpis skupiny (rozklik = vše ze skupiny) */
.prej-katpanel .main-item.kat-grp-hlava { margin-top: 10px; }
.prej-katpanel .kat-grp-hlava .main-item-subject { font-weight: 700; font-size: 14px; color: var(--akcent, #c25a2e); }
.prej-katpanel .kat-grp-vse { font-weight: 400; font-size: 11px; opacity: .55; }
.prej-katpanel .kat-grp-hlava:hover .kat-grp-vse { opacity: .9; }
/* položka = jeden řádek: název vlevo, počet vpravo */
.prej-katpanel .main-item { padding: 7px 14px !important; border-left-width: 4px; }
.prej-katpanel .main-item-text { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; }
.prej-katpanel .main-item-subject { margin: 0; font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.prej-katpanel .main-item-name { margin: 0; font-size: 11.5px; opacity: .5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prej-katpanel .main-item.main-item-sub { padding-left: 26px !important; }
.prej-katpanel .main-item.main-item-sub .main-item-subject { font-size: 14px; font-weight: 400; }
.prej-katpanel .main-item.main-item-kos { opacity: .55; }
.prej-katpanel .main-item.main-item-kos .main-item-subject { font-style: italic; font-size: 13.5px; }
.prej-katpanel .main-item.main-item-kos:hover { opacity: 1; }
.prej-autor-sekce { font-family: Georgia, "Times New Roman", serif; font-size: 18px;
  margin: 26px 0 12px; color: var(--akcent, #c25a2e); }
.prej-autor-sekce:first-child { margin-top: 4px; }
.prej-autor-dlouhe { list-style: none; margin: 0; padding: 0; }
.prej-autor-dlouhe li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 9px 2px; border-bottom: 1px solid rgba(128,128,128,.12); }
.prej-autor-dlouhe li:last-child { border-bottom: 0; }
.prej-autor-dlouhe a { text-decoration: none; color: inherit; }
.prej-autor-dlouhe a:hover { color: var(--akcent, #c25a2e); }
.prej-autor-cteno { font-size: 12px; opacity: .5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prej-profil-hlava { display: flex; gap: 18px; align-items: center; padding: 22px 0 18px;
  border-bottom: 1px solid rgba(128,128,128,.16); margin-bottom: 8px; flex-wrap: wrap; }
.prej-profil-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.prej-profil-ini { display: flex; align-items: center; justify-content: center;
  background: var(--akcent, #c25a2e); color: #fff; font-family: Georgia, serif; font-weight: 700; font-size: 38px; }
.prej-profil-info { flex: 1; min-width: 220px; }
.prej-profil-nick { margin: 0 0 8px; font-size: 27px; line-height: 1.1; }
.prej-profil-staty { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; opacity: .75; margin-bottom: 12px; }
.prej-profil-staty strong { opacity: 1; }
.prej-profil-akce { display: flex; flex-wrap: wrap; gap: 8px; }
/* Související osobnosti (na profilu) */
.dalsi-osobnosti { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px; }
.dalsi-osobnost { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  color: inherit; font-size: 12.5px; text-align: center; }
.dalsi-osobnost img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(128,128,128,.15); transition: border-color .12s ease, transform .12s ease; }
.dalsi-osobnost:hover img { border-color: var(--akcent, #2f5b8a); transform: scale(1.04); }
.dalsi-osobnost span { line-height: 1.25; opacity: .85; }
.dalsi-osobnost:hover span { opacity: 1; color: var(--akcent, #2f5b8a); }
/* Tematické okruhy citátů (rozcestník + dlaždice) */
.tema-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 12px; }
.tema-karta { display: flex; align-items: center; gap: 13px; padding: 15px 16px; text-decoration: none;
  color: inherit; border: 1px solid rgba(128,128,128,.18); border-radius: 14px; background: rgba(128,128,128,.04);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.tema-karta:hover { transform: translateY(-2px); border-color: var(--akcent, #2f5b8a); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tema-ikona { font-size: 26px; flex: none; line-height: 1; }
.tema-text { display: flex; flex-direction: column; min-width: 0; }
.tema-nazev { font-weight: 600; font-size: 15.5px; }
.tema-pocet { font-size: 12px; opacity: .6; margin-top: 2px; }
.citat-karta figcaption { font-size: 13px; opacity: .72; margin-top: 6px; letter-spacing: normal; }
.citat-karta figcaption a { color: var(--akcent, #2f5b8a); text-decoration: none; }
.citat-karta figcaption a:hover { text-decoration: underline; }
/* Drobečková navigace (SEO + orientace) */
.drobky { font-size: 12.5px; opacity: .75; margin: 0 0 16px; letter-spacing: normal; }
.drobky a { color: inherit; text-decoration: none; }
.drobky a:hover { color: var(--akcent, #2f5b8a); text-decoration: underline; }
.drobky .drobky-sep { margin: 0 7px; opacity: .45; }
/* Atribuce zdroje citátu (Wikiquote / CC BY-SA) */
.citat-zdroj { margin: 14px 0 0; font-size: 12px; opacity: .6; letter-spacing: normal; }
.citat-zdroj a { color: inherit; text-decoration: underline; }
.citat-zdroj a:hover { color: var(--akcent, #2f5b8a); }
.prej-vlastni-edit { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 600;
  color: var(--akcent, #c25a2e); text-decoration: none; opacity: .8; }
.prej-vlastni-edit:hover { opacity: 1; text-decoration: underline; }
.karta-kratka .prej-vlastni-edit { margin-top: 6px; }


/* Nadpis sekce komentářů – varianta 2 (sekční štítek, verzálky) */
#komentare h2 { font-family: Georgia, "Times New Roman", serif; font-size: 13px !important; font-weight: 700 !important;
  letter-spacing: .18em !important; text-transform: uppercase; color: var(--ink-soft, #8a7f63);
  margin: 0 0 16px !important; padding-bottom: 0 !important; border-bottom: 0 !important; }
#komentare h2 .km-pocet { color: var(--wine, #9a3b2e); margin-left: 6px; font-weight: 700; font-size: 13px; opacity: 1; }

a.kat-skupina-nadpis { display: flex; align-items: baseline; justify-content: space-between; text-decoration: none; cursor: pointer; transition: color .12s, opacity .12s; }
a.kat-skupina-nadpis:hover { color: var(--wine, #9a3b2e); opacity: 1; }
a.kat-skupina-nadpis.aktivni { color: var(--wine, #9a3b2e); opacity: 1; }
.kat-skupina-vse { font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--wine, #9a3b2e); opacity: .6; transition: opacity .12s; white-space: nowrap; }
a.kat-skupina-nadpis:hover .kat-skupina-vse, a.kat-skupina-nadpis.aktivni .kat-skupina-vse { opacity: 1; }

/* ===== Citáty osobností – redesign (foto, A–Ž, sdílení, atribuce) ===== */
.osobnost-hlavicka { display: flex; gap: 22px; align-items: center; margin: 4px 0 22px; }
.osobnost-foto { width: 130px; height: 130px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; background: rgba(128,128,128,.08); box-shadow: 0 3px 12px rgba(0,0,0,.10); }
.osobnost-hlavicka-text { min-width: 0; }
.osobnost-hlavicka .main-content-title { margin: 0 0 4px; }
.osobnost-roky { margin: 0 0 4px; font-weight: 600; opacity: .7; }
.osobnost-vyznam-radek { margin: 0 0 6px; font-style: italic; opacity: .85; }
.osobnost-odkazy { margin: 0; font-size: 14px; }
.osobnost-odkazy a { color: var(--akcent, #9a3b2e); text-decoration: none; }

.osobnosti-foto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.osobnost-karta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 1px solid rgba(128,128,128,.18); border-radius: 12px; text-decoration: none; color: inherit; background: rgba(128,128,128,.03); transition: border-color .12s, box-shadow .12s, transform .12s; }
.osobnost-karta:hover { border-color: var(--akcent, #9a3b2e); box-shadow: 0 5px 16px rgba(0,0,0,.10); transform: translateY(-2px); }
.osobnost-karta-foto { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; background: rgba(128,128,128,.08); margin-bottom: 4px; }
.osobnost-karta-jmeno { font-weight: 700; line-height: 1.25; }
.osobnost-karta-roky { font-size: 12px; opacity: .55; }
.osobnost-karta-pocet { font-size: 12px; color: var(--akcent, #9a3b2e); font-weight: 600; }

.abeceda-bar { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 18px; }
.abeceda-bar a { display: inline-block; min-width: 26px; padding: 4px 6px; text-align: center; text-decoration: none; color: inherit; border-radius: 7px; font-size: 14px; font-weight: 600; }
.abeceda-bar a:hover { background: rgba(128,128,128,.10); }
.abeceda-bar a.aktivni { background: var(--akcent, #9a3b2e); color: #fff; }

.citat-akce { display: flex; gap: 10px; margin: 14px 0 4px; }
.citat-akce-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgba(128,128,128,.28); border-radius: 9px; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: border-color .12s, color .12s; }
.citat-akce-btn:hover { border-color: var(--akcent, #9a3b2e); color: var(--akcent, #9a3b2e); }
.citat-akce-btn.hotovo { border-color: #2e8b57; color: #2e8b57; }

.licence-radek, .citat-zdroj { margin-top: 16px; font-size: 12.5px; opacity: .65; }
.licence-radek a, .citat-zdroj a { color: var(--akcent, #9a3b2e); }

@media (max-width: 560px) {
    .osobnost-hlavicka { flex-direction: column; text-align: center; gap: 14px; }
    .osobnosti-foto-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.hp-box-titul a { color: inherit; text-decoration: none; }
.hp-box-titul a:hover { color: var(--wine, #9a3b2e); text-decoration: underline; }
