/* Fotokluby – Knihovna (barvy přebírá ze vzhledu webu) */
.fkk-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.5em; background: #000; }
.fkk-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fkk-upozorneni { padding: 10px 14px; border-left: 4px solid #d9a400; background: rgba(217, 164, 0, .12); }

.fkk-karta { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 24px; align-items: start; margin-bottom: 1.5em; }
@media (max-width: 640px) { .fkk-karta { grid-template-columns: 1fr; } }
.fkk-obalka img { width: 100%; height: auto; display: block; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.fkk-udaje dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; }
.fkk-udaje dt { opacity: .7; }
.fkk-udaje dd { margin: 0; }

.fkk-hvezdy { font-size: 1.4em; letter-spacing: 2px; margin-right: 12px; }
.fkk-hvezdy .plna { color: #e8a200; }
.fkk-hvezdy .pul { background: linear-gradient(90deg, #e8a200 50%, #bbb 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fkk-hvezdy .prazdna { color: #bbb; }

.fkk-stitek { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(128, 128, 128, .18); vertical-align: middle; }
.fkk-uroven-1 { background: rgba(217, 164, 0, .2); }
.fkk-uroven-3 { background: rgba(46, 158, 87, .2); }

.fkk-odkazy { display: flex; flex-wrap: wrap; gap: 8px; }
.fkk-zdroj, .fkk-profily { font-size: .9em; opacity: .8; }

/* Výpis */
.fkk-filtr { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5em; }
.fkk-filtr input[type="search"] { flex: 1 1 220px; }
.fk-knihy { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.fk-kniha-karta { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.fk-kniha-karta img, .fk-kniha-karta .fk-bez-obalky { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: rgba(128, 128, 128, .12); display: block; }
.fkk-karta-meta { font-size: .9em; opacity: .7; }
.fkk-strankovani { display: flex; gap: 6px; margin-top: 2em; flex-wrap: wrap; }
.fkk-strankovani .aktualni { font-weight: 700; }

/* Autor */
.fkk-autor-roky { font-size: 1.1em; opacity: .75; margin-top: 0; }
.fkk-autor-zivotopis { max-width: 46em; }
.fkk-nalezeni-autori { margin: -0.5em 0 1.5em; }
.fkk-zpet { margin-top: 2em; }

/* Vložit knihu */
.fkk-vlozit-odkaz { text-align: right; }
.fkk-vlozit { max-width: 760px; }
.fkk-zprava { padding: 10px 14px; border-left: 4px solid #2e9e57; background: rgba(46, 158, 87, .1); }
.fkk-pozn { font-size: .9em; opacity: .75; margin: 2px 0 0; }
.fkk-povinne { color: #c62828; font-weight: bold; }
.fkk-chyby { padding: 10px 14px; border-left: 4px solid #c62828; background: rgba(198, 40, 40, .08); margin-bottom: 1em; }
.fkk-formular fieldset { margin: 0 0 1.2em; }
.fkk-pole { display: grid; gap: 4px; margin: 10px 0; }
.fkk-pole input[type="text"], .fkk-pole input[type="url"], .fkk-pole textarea, .fkk-pole select { width: 100%; box-sizing: border-box; }
.fkk-chyba input, .fkk-chyba textarea, .fkk-chyba .fkk-kategorie { outline: 2px solid #c62828; }
.fkk-chyba-text { color: #c62828; margin: 2px 0 0; font-size: .9em; }
.fkk-kategorie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; padding: 4px; }
.fkk-check { display: flex; gap: 6px; align-items: center; }
.fkk-instrukce { font-size: .92em; padding: 8px 12px; background: rgba(128, 128, 128, .1); border-radius: 6px; }
.fkk-instrukce ul { margin: 4px 0 0; padding-left: 1.2em; }
.fkk-obalka-nahled img { max-width: 160px; height: auto; display: block; }
.fkk-schvaleni { border: 2px solid #d9a400; padding: 4px 16px 12px; border-radius: 6px; margin-bottom: 2em; }
.fkk-schvaleni-polozka { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid rgba(128, 128, 128, .3); }
.fkk-schvaleni-polozka:last-child { border-bottom: 0; }
.fkk-schvaleni-kniha { display: flex; gap: 12px; align-items: flex-start; }
.fkk-schvaleni-kniha img { width: 60px; height: auto; }
.fkk-schvaleni-tlacitka { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.fkk-schvaleni-tlacitka form { margin: 0; }

/* Rozměr, volby, doplnění */
.fkk-rozmer { display: flex; gap: 8px; align-items: center; }
.fkk-rozmer input { width: 7em !important; }
.fkk-volby { display: grid; gap: 4px; }
.fkk-doplnit { margin-top: 1em; }
.fkk-doplnek { padding: 12px 0; border-bottom: 1px solid rgba(128, 128, 128, .3); }
.fkk-doplnek:last-child { border-bottom: 0; }
.fkk-poznamka { font-style: italic; }
.fkk-zmeny { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95em; }
.fkk-zmeny th, .fkk-zmeny td { text-align: left; vertical-align: top; padding: 4px 8px; border-bottom: 1px solid rgba(128, 128, 128, .2); }
.fkk-zmeny td { width: 40%; }
.fkk-zmeny .fkk-nove { background: rgba(46, 158, 87, .1); }
.fkk-zmeny img { max-width: 80px; height: auto; }
.fkk-odmitnuto { background: rgba(198, 40, 40, .15); }

/* Pásek pod obálkou: recenze ano / ne */
.fkk-pasek { display: block; text-align: center; font-size: 12px; font-weight: 600; color: #fff; padding: 3px 6px; margin-top: -4px; }
.fkk-pasek-bez { background: #c62828; }
.fkk-pasek-ma { background: #2e7d32; }
.fkk-vse { text-align: center; margin-top: 1.5em; font-weight: 600; }

/* Karta knihy, zpětný odkaz u převzaté obálky */
.fk-kniha-odkaz { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.fkk-obalka-zdroj { font-size: 11px; opacity: .7; display: block; margin-top: 2px; }
.fkk-obalka .fkk-pasek { margin-top: 0; }

/* Načíst údaje automaticky */
.fkk-jen-foto { padding: 8px 12px; border-left: 4px solid #2e7d32; background: rgba(46, 125, 50, .08); }
.fkk-nacteni-radek { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin: 8px 0; }
.fkk-nacteni-radek input { flex: 1 1 180px; }
.fkk-n-zprava { padding: 8px 12px; margin: 8px 0; background: rgba(128, 128, 128, .1); }
.fkk-n-ok { border-left: 4px solid #2e7d32; }
.fkk-n-varovani { border-left: 4px solid #c62828; background: rgba(198, 40, 40, .08); }
.fkk-kandidati { list-style: none; margin: 8px 0; padding: 0; }
.fkk-kandidati li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(128, 128, 128, .25); }
.fkk-kandidati img, .fkk-k-bez { width: 48px; height: 64px; object-fit: contain; background: rgba(128, 128, 128, .12); display: block; }
.fkk-kandidati div { display: grid; gap: 2px; }
.fkk-k-nefoto { opacity: .6; }
.fkk-k-foto { background: rgba(46, 125, 50, .2); margin-left: 6px; }
.fkk-k-jine { background: rgba(198, 40, 40, .15); margin-left: 6px; }
#fkk-obalka-prevzata img { max-width: 160px; height: auto; display: block; margin: 6px 0; }

/* Výpis Knihovny: 10 knih ve dvou řadách, pod nimi akce */
.fkk-nahodne .fk-knihy { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .fkk-nahodne .fk-knihy { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fkk-nahodne .fk-knihy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fkk-akce { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 2em; }
.fkk-akce .fkk-hledat-knihu { display: flex; gap: 8px; flex-wrap: wrap; }
.fkk-hledat-knihu input { flex: 1 1 260px; }
.fkk-opravit-seznam { list-style: none; padding: 0; }
.fkk-opravit-seznam li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(128, 128, 128, .25); }
.fkk-opravit-seznam img { width: 48px; height: auto; display: block; }

/* Fotky z knihy a recenze čtenářů */
.fkk-prispevek-fotky { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.fkk-prispevek-fotky img { width: 100%; height: auto; display: block; }
.fkk-prispevek-fotky label { display: grid; gap: 4px; font-size: .9em; }
.fkk-fotky-z-knihy { margin-bottom: 1.5em; }
.fkk-recenze-ctenare { padding: 12px 0; border-bottom: 1px solid rgba(128, 128, 128, .25); }
.fkk-recenze-hlavicka { margin-bottom: .4em; }
.fkk-hvezdy-male { color: #e8a200; letter-spacing: 1px; margin-left: 6px; }
.fkk-pridat-prispevek { margin: 1.5em 0; }

/* Živý katalog: filtry nad obálkami */
.fkk-katalog-filtr { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; }
.fkk-filtr-pole { display: grid; gap: 4px; margin: 0; }
.fkk-filtr-pole span { font-size: .9em; opacity: .75; }
.fkk-filtr-pole input { width: 100%; box-sizing: border-box; }
.fkk-filtr-tlacitka { display: flex; gap: 12px; align-items: center; }
.fkk-nadpis-vysledky { margin-top: 1.5em; }
.fkk-katalog-zdroj { margin-top: 2em; }
.fkk-odkazy form { margin: 0; }
.fkk-video-ctenare { margin-bottom: 1.5em; }
