/* ============================================================
   Šablona „Audioguide“ (návrh C – docs/ui-navrhy/navrh-c-audioguide-osa.html)
   Tmavá, imerzivní, audio na prvním místě. Zastavení jako časová osa,
   pod přehrávačem Rychlost · Text · Auto, zadání čísla ze štítku.
   ============================================================ */

/* Manrope (SIL OFL), hostovaný u nás – bez požadavků na Google Fonts */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0E0D0B;
  --surface: #181613;
  --surface-2: #211E1A;
  --surface-3: #2D2924;
  --line: rgba(255, 255, 255, .09);
  --text: #F5F0E8;
  --text-2: #B9B0A3;
  --text-3: #857D71;
  --gold: #E4B45E;
  --gold-ink: #1B1307;
  --ok: #86C894;
  --err: #EE9A86;
  --font: 'Manrope', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --key: min(76px, 9.2vh);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #050404; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Na počítači: „telefon“ uprostřed, za ním rozostřená úvodní fotka */
.art { position: fixed; inset: -40px; background: #050404 center / cover; filter: blur(40px) brightness(.3); }
.app { position: relative; height: 100vh; height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--bg); overflow: hidden; overflow: clip; }
@media (min-width: 600px) and (min-height: 700px) {
  .app { height: min(100vh - 48px, 900px); height: min(100dvh - 48px, 900px); top: 50%; transform: translateY(-50%); border-radius: 32px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
}

/* ---------- Načítání a chyba ---------- */
.state { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: var(--bg); transition: opacity .3s, visibility 0s linear .3s; }
.state.is-hidden { opacity: 0; visibility: hidden; }
.state p { color: var(--text-2); font-size: 15px; font-weight: 600; line-height: 1.5; max-width: 300px; }
.state strong { font-size: 20px; font-weight: 800; }
.state small { display: block; color: var(--text-3); font-size: 13px; margin-top: 4px; }
.state__alt { width: auto; justify-content: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Obrazovky ---------- */
.screen {
  position: absolute; inset: 0 0 calc(var(--tab-h) + var(--safe-b)) 0;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
}
.screen.is-active { opacity: 1; visibility: visible; transition: opacity .25s; }

/* ---------- Přehrávač ---------- */
.pl { display: flex; flex-direction: column; }
.media { position: relative; flex: 1 1 auto; min-height: 190px; }
.carousel { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide--empty { background: radial-gradient(120% 90% at 30% 20%, #3A3128, var(--surface) 60%, var(--bg)); }
.media::before, .media::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
.media::before { top: 0; height: 120px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.media::after { bottom: -1px; height: 55%; background: linear-gradient(transparent, rgba(14, 13, 11, .7) 55%, var(--bg)); }

.segs { position: absolute; z-index: 3; top: calc(10px + var(--safe-t)); left: 14px; right: 14px; display: flex; gap: 4px; }
.segs i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.segs b { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.pl__top { position: absolute; z-index: 3; top: calc(24px + var(--safe-t)); left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route-name { min-width: 0; text-align: left; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass { background: rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.lang-chip { height: 36px; padding: 0 12px 0 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.lang-chip .flag { font-size: 17px; line-height: 1; }
.edge { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center; font-size: 20px; }
.edge--l { left: 12px; } .edge--r { right: 12px; }
@media (hover: hover) and (pointer: fine) { .edge { display: grid; opacity: 0; transition: opacity .2s; } .media:hover .edge:not(:disabled) { opacity: 1; } }

.info { position: relative; z-index: 2; margin-top: -64px; padding: 0 22px; }
.num { display: flex; align-items: baseline; gap: 8px; font-weight: 200; color: var(--gold); font-size: 60px; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num small { font-size: 15px; font-weight: 700; color: var(--text-3); letter-spacing: 0; }
.title { font-size: 27px; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.wave { position: relative; height: 50px; margin: 16px 22px 0; cursor: pointer; touch-action: none; }
.wave__l { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave__l i { flex: 1; border-radius: 2px; background: var(--surface-3); }
.wave__l--fill i { background: var(--gold); }
.wave__l--fill { clip-path: inset(0 100% 0 0); }
.wave__head { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; margin-left: -1px; background: var(--text); border-radius: 1px; pointer-events: none; }
.wave__note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-3); background: var(--bg); }
.times { display: flex; justify-content: space-between; padding: 6px 22px 0; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }

.ctrls { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 0; }
.c { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; color: var(--text); transition: transform .15s var(--ease), opacity .2s; }
.c:active { transform: scale(.9); }
.c:disabled { opacity: .25; cursor: default; }
.c--sm { font-size: 22px; color: var(--text-2); }
.c--play { width: 78px; height: 78px; background: var(--gold); color: var(--gold-ink); font-size: 32px; box-shadow: 0 10px 34px rgba(228, 180, 94, .28); }
/* Nahrávka se načítá: kolem tlačítka se točí kroužek */
.c--play.is-loading::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); animation: spin .9s linear infinite; }
.mini .c.is-loading::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); animation: spin .9s linear infinite; }
/* 1fr auto 1fr: prostřední čip je přesně na středu, stejně jako PLAY nad ním */
.chips { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 14px 16px; }
#chSpeed { justify-self: end; }
#chAuto { justify-self: start; }
.chip { height: 36px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.chip svg { font-size: 17px; }
.chip.is-on { color: var(--gold); border-color: rgba(228, 180, 94, .38); background: rgba(228, 180, 94, .1); }

/* ---------- Úvod: obrázek, název a popis trasy + zastavení ---------- */
.scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.home { padding-bottom: 110px; }
.hero { position: relative; height: min(52vh, 440px); min-height: 280px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .5), transparent 26%, transparent 42%, rgba(14, 13, 11, .78) 74%, var(--bg)); }
.hero--empty { background: radial-gradient(120% 90% at 30% 10%, #3A3128, var(--surface) 60%, var(--bg)); }
.hero__top { position: absolute; z-index: 2; top: calc(14px + var(--safe-t)); left: 20px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero__top .eyebrow { padding: 8px 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero__text { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 4px; }
.hero h1 { font-size: 36px; font-weight: 800; line-height: 1.04; letter-spacing: -.025em; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero__meta { margin-top: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.home__body { padding: 16px 14px 0; }

.intro { margin: 0 6px 20px; }
/* Náhled čtyř řádků, zbytek po „Číst dál“ */
.intro__text { max-height: calc(1.6em * 4); overflow: hidden; color: var(--text-2); font-size: 16px; line-height: 1.6; font-weight: 500; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.intro__text p + p { margin-top: 10px; }
.intro.is-open .intro__text, .intro.is-full .intro__text { max-height: none; -webkit-mask-image: none; mask-image: none; }
.intro__more { margin-top: 6px; padding: 4px 0; color: var(--gold); font-size: 14px; font-weight: 700; }

.cta { width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 30px; padding: 12px 18px 12px 12px; border-radius: 20px; background: var(--gold); color: var(--gold-ink); text-align: left; box-shadow: 0 10px 34px rgba(228, 180, 94, .22); transition: transform .15s var(--ease); }
.cta:active { transform: scale(.985); }
.cta__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(27, 19, 7, .12); display: grid; place-items: center; font-size: 22px; }
.cta__txt { min-width: 0; display: flex; flex-direction: column; }
.cta strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.cta small { font-size: 13px; font-weight: 700; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.list-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 4px 18px; }
.list-h h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ring { position: relative; width: 60px; height: 60px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring .trk { stroke: var(--surface-3); }
.ring .val { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.timeline { list-style: none; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 17px; top: 46px; bottom: 46px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--surface-3) 0 5px, transparent 5px 10px);
}
.stop { position: relative; padding-left: 50px; }
.stop + .stop { margin-top: 10px; }
.stop__btn {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-align: left;
  transition: background .15s, border-color .2s;
}
/* Bez transform – posunul by absolutně umístěné číslo v kolečku */
.stop__btn:active { background: var(--surface-2); }
.stop__num {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--surface-3);
  font-size: 15px; font-weight: 800; color: var(--text-2); font-variant-numeric: tabular-nums;
  transition: background .2s, border-color .2s, color .2s;
}
.is-done .stop__num { background: var(--surface-3); border-color: var(--surface-3); color: var(--text); }
.is-loaded .stop__num { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.is-loaded .stop__btn { border-color: rgba(228, 180, 94, .5); background: rgba(228, 180, 94, .06); }
.stop__thumb { display: block; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.is-done:not(.is-loaded) .stop__thumb { filter: saturate(.6) brightness(.85); }
.stop__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.stop__name { font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.stop__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.stop__meta:empty { display: none; }
.stop__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.stop__meta .ok { color: var(--ok); }
.stop__meta .now { color: var(--gold); }
.stop__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.is-loaded .stop__go { background: var(--gold); color: var(--gold-ink); }

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; height: 40%; background: currentColor; border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* ---------- Klávesnice ---------- */
.kp { height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(26px + var(--safe-t)) 24px 18px; overflow-y: auto; }
.app.has-mini .kp { padding-bottom: 86px; }
.kp__hint { color: var(--text-2); font-size: 15px; font-weight: 600; text-align: center; max-width: 280px; }
.kp__display { height: 92px; display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 200; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.kp__display .ph { color: var(--surface-3); }
.caret { width: 3px; height: 54px; margin-left: 6px; background: var(--gold); border-radius: 2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kp__preview { width: 100%; max-width: 340px; min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.kp__preview img, .kp__preview .ph-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.kp__preview span { display: flex; flex-direction: column; min-width: 0; }
.kp__preview small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.kp__preview.is-link { cursor: pointer; transition: background .15s, border-color .2s; }
.kp__preview.is-link:active { background: var(--surface-2); }
.kp__preview span { flex: 1; }
.kp__play { width: 40px; height: 40px; margin-left: auto; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--gold); color: var(--gold-ink); }
.kp__preview.is-empty { background: none; border-color: transparent; justify-content: center; color: var(--text-3); font-weight: 600; font-size: 14px; }
.kp__preview.is-error { justify-content: center; text-align: center; color: var(--err); background: rgba(238, 154, 134, .08); border-color: rgba(238, 154, 134, .2); font-size: 14px; }
.keys { margin-top: auto; display: grid; grid-template-columns: repeat(3, var(--key)); gap: 12px 26px; justify-content: center; }
.key { width: var(--key); height: var(--key); border-radius: 50%; background: var(--surface-2); font-size: 30px; font-weight: 500; display: grid; place-items: center; transition: background .12s, transform .12s; }
.key:active { background: var(--surface-3); transform: scale(.94); }
.key--del { background: none; color: var(--text-2); font-size: 26px; }
.key--go { background: var(--gold); color: var(--gold-ink); font-size: 28px; }
.key--go:disabled { background: var(--surface); color: var(--text-3); cursor: default; }
/* Nízké displeje (iPhone SE apod.) – klávesnice se musí vejít nad mini přehrávač */
@media (max-height: 700px) {
  :root { --key: min(64px, 8.4vh); }
  .kp { padding-top: calc(16px + var(--safe-t)); }
  .kp__display { height: 64px; font-size: 52px; }
  .caret { height: 40px; }
  .kp__preview { min-height: 58px; padding: 6px; }
  .kp__preview img, .kp__preview .ph-img { width: 44px; height: 44px; }
  .keys { gap: 8px 22px; padding-top: 10px; }
  .key { font-size: 24px; }
}

/* ---------- Mini přehrávač a lišta ---------- */
.mini {
  position: absolute; z-index: 10; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 8px; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s;
}
.app.has-mini .mini { transform: none; opacity: 1; pointer-events: auto; }
.mini__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 100%; text-align: left; }
.mini__open img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex-shrink: 0; }
.mini__open span { display: flex; flex-direction: column; min-width: 0; }
.mini__open small { font-size: 12px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.mini__open strong { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .c { width: 46px; height: 46px; font-size: 20px; }
.mini__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.mini__bar b { display: block; height: 100%; width: 0; background: var(--gold); }

.tabs {
  position: absolute; z-index: 11; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; background: rgba(14, 13, 11, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--text-3); transition: color .2s; }
.tab svg { font-size: 24px; }
.tab.is-active { color: var(--gold); }

/* ---------- Panely ---------- */
.shade { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
.shade.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; z-index: 21; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b)); transform: translateY(105%); transition: transform .38s var(--ease);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .4);
}
.sheet.is-open { transform: none; }
.grip { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet h3 { font-size: 20px; font-weight: 800; padding: 0 6px 12px; }
#langSheet { max-height: 88%; overflow-y: auto; }
.lang-opt { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-radius: 14px; font-size: 17px; font-weight: 600; text-align: left; }
.lang-opt.is-active { background: var(--surface-2); color: var(--gold); }
.lang-opt .flag { font-size: 28px; line-height: 1; }
.lang-opt .chk { margin-left: auto; font-size: 22px; }
/* Přepnutí zpět na původní vzhled – záměrně nenápadné, pod oddělovačem */
.lang-sep { height: 1px; background: var(--line); margin: 10px 6px 4px; }
.lang-alt { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-3); text-align: left; }
.lang-alt svg { font-size: 18px; }
.lang-alt:hover { color: var(--text-2); }

.text-sheet { height: 88%; display: flex; flex-direction: column; padding-bottom: 0; }
.ts__head { display: flex; align-items: center; gap: 12px; padding: 0 4px 12px; border-bottom: 1px solid var(--line); }
.ts__head .c { width: 48px; height: 48px; font-size: 20px; }
.ts__head span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ts__head small { font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ts__head strong { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts__close { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; color: var(--text-2); flex-shrink: 0; }
.ts__bar { height: 3px; background: var(--surface-3); margin: 0 -16px; }
.ts__bar b { display: block; height: 100%; width: 0; background: var(--gold); }
.ts__body { position: relative; flex: 1; overflow-y: auto; padding: 18px 6px calc(40px + var(--safe-b)); overscroll-behavior: contain; }
.ts__hint { font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 14px; }
.ts__body p { font-size: 20px; line-height: 1.6; font-weight: 500; color: var(--text); opacity: .38; padding: 6px 10px; margin: 0 -10px 8px; border-radius: 12px; cursor: pointer; transition: opacity .35s, background .35s; }
.ts__body p:hover { opacity: .6; }
.ts__body p.is-active { opacity: 1; background: rgba(228, 180, 94, .07); }
/* Bez nahrávky se nic nezvýrazňuje – celý text je plně čitelný */
.ts__body.is-static p { opacity: 1; cursor: default; }
.ts__body p.ts__hint { font-size: 12px; opacity: 1; cursor: default; padding: 0; margin: 0 0 14px; }

/* ---------- Úvod: volba jazyka ---------- */
.welcome { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 20px calc(26px + var(--safe-b)); overflow-y: auto; background: var(--bg); transition: opacity .4s, visibility 0s linear .4s; }
.welcome.is-hidden { opacity: 0; visibility: hidden; }
.welcome__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(14, 13, 11, .2), rgba(14, 13, 11, .35) 30%, rgba(14, 13, 11, .92) 58%, var(--bg)); }
.welcome > *:not(img) { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow svg { font-size: 18px; }
.welcome h1 { font-size: 40px; font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin: 10px 0 8px; overflow-wrap: anywhere; }
.welcome__meta { color: var(--text-2); font-size: 14px; font-weight: 600; }
.welcome__ask { margin: 26px 0 12px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.welcome__ask span { display: block; color: var(--text-3); font-weight: 600; font-size: 14px; }
.wl { display: grid; gap: 8px; }
.wl button { height: 62px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 18px; font-weight: 700; text-align: left; transition: background .15s, transform .15s; }
.wl button:hover { background: rgba(255, 255, 255, .11); }
.wl button:active { transform: scale(.985); }
.wl .flag { font-size: 28px; line-height: 1; }
.wl svg { margin-left: auto; color: var(--text-3); font-size: 20px; }
.wl .is-current { border-color: rgba(228, 180, 94, .5); color: var(--gold); }
.wl .is-current svg { color: var(--gold); }
/* Hodně jazyků: menší tlačítka ve dvou sloupcích, ať se vejdou pod název */
.wl.is-many { grid-template-columns: 1fr 1fr; }
.wl.is-many button { height: 52px; font-size: 15px; gap: 10px; padding: 0 12px; }
.wl.is-many .flag { font-size: 22px; }
.wl.is-many svg { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; z-index: 25; left: 50%; top: calc(46px + var(--safe-t)); max-width: calc(100% - 28px);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(40, 36, 31, .96); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast__txt { overflow: hidden; text-overflow: ellipsis; }
.toast__txt small { color: var(--text-3); font-weight: 600; margin-left: 6px; }
.toast button { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 800; flex-shrink: 0; }
.toast .ic { color: var(--ok); font-size: 18px; display: grid; }
.toast.is-error .ic { color: var(--err); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
