/* Cviky: světlá appka, terakota na aktivní prvky, šalvěj jako doplněk.
   © 2026 Veronika Vittori, veronikavittori.cz */
:root {
  color-scheme: light;
  --text: #1f2a24;
  --sedy: #8a8f88;
  --podklad: #f3f1ed;
  --terakota: #c0643f;
  --salvej: #8da987;
  --salvej-svetla: #e4ebdd;
}
* { box-sizing: border-box; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #fff; }
body { font: 300 16px/1.5 "Lexend", system-ui, sans-serif; color: var(--text); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app { max-width: 560px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
.top {
  position: sticky; top: 0; z-index: 3; background: #fff;
  display: flex; gap: 10px; align-items: center;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 10px;
}
.hledat { flex: 1; display: flex; gap: 8px; align-items: center; background: var(--podklad); border-radius: 999px; padding: 10px 14px; color: var(--sedy); }
.hledat svg { width: 17px; height: 17px; flex: none; }
.hledat input { flex: 1; border: 0; outline: 0; background: none; font: 300 16px "Lexend", sans-serif; color: var(--text); }
.hledat:focus-within { box-shadow: 0 0 0 2px var(--salvej); }
.hledat input::placeholder { color: var(--sedy); }
.hledat input::-webkit-search-cancel-button { display: none; }
.ikona { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.ikona svg { width: 23px; height: 23px; }
.ikona i { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--terakota); border: 2px solid #fff; }

.cipy {
  position: sticky; top: calc(env(safe-area-inset-top) + 64px); z-index: 2; background: #fff;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 12px;
}
.cipy::-webkit-scrollbar { display: none; }
.cipy button { flex: none; font-size: 14px; padding: 6px 13px; border-radius: 999px; background: var(--podklad); color: #5d635c; font-weight: 400; }
.cipy button.on { background: var(--terakota); color: #fff; }

.aktivni { display: flex; gap: 8px; align-items: center; padding: 0 16px 12px; font-size: 14px; color: #5d635c; }
.aktivni button { display: inline-flex; gap: 6px; align-items: center; background: var(--salvej-svetla); color: var(--text); border-radius: 999px; padding: 5px 8px 5px 12px; font-weight: 400; }
.aktivni svg { width: 15px; height: 15px; }

.mrizka { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; padding: 2px 16px 28px; }
.cvik { text-align: left; align-self: start; display: flex; flex-direction: column; justify-content: flex-start; }
.cvik .im { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--podklad); }
.cvik img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvik .im span { position: absolute; left: 8px; bottom: 8px; background: #fff; border-radius: 999px; font-size: 12px; padding: 3px 10px; font-weight: 400; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvik b { display: block; font-weight: 400; font-size: 15px; line-height: 1.3; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cvik small { font-size: 13px; color: var(--sedy); }
.prazdno { text-align: center; color: var(--sedy); padding: 40px 16px; margin: 0; }

.detail { position: fixed; inset: 0; z-index: 10; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.detail-obsah { max-width: 560px; margin: 0 auto; padding-bottom: calc(env(safe-area-inset-bottom) + 32px); }
.detail img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--podklad); }
.zpet { position: fixed; z-index: 11; top: calc(env(safe-area-inset-top) + 12px); left: max(12px, calc(50% - 268px)); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(40,30,20,.12); }
.zpet svg { width: 22px; height: 22px; }
.d-text { padding: 18px 20px 0; }
.d-text h1 { font: 500 24px/1.25 "Lexend", sans-serif; margin: 0 0 14px; letter-spacing: -.01em; }
.stitky { margin: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.stitky div { display: flex; gap: 10px; font-size: 15px; }
.stitky dt { flex: none; width: 92px; color: var(--sedy); }
.stitky dd { margin: 0; }
.video { margin-bottom: 18px; }
.video .ram { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; }
.video .ram.svisle { aspect-ratio: 9/16; max-width: 340px; margin: 0 auto; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video p { font-size: 13px; color: var(--sedy); margin: 6px 2px 0; }
.video a { color: var(--terakota); }

.list { position: fixed; inset: 0; z-index: 20; background: rgba(30,25,20,.35); display: flex; align-items: flex-end; justify-content: center; }
.list-okno { width: 100%; max-width: 560px; max-height: 80vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.list-hlava { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 6px 20px; }
.list-hlava b { font-weight: 500; font-size: 18px; }
.naradi-seznam { overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px 16px; }
.naradi-seznam button { width: 100%; display: flex; justify-content: space-between; padding: 12px 10px; border-radius: 12px; font-size: 16px; }
.naradi-seznam button span { color: var(--sedy); }
.naradi-seznam button.on { background: var(--salvej-svetla); font-weight: 400; }
[hidden] { display: none !important; }
