/* Listen — foundation styles. Tokens match the approved design (dark / light / high contrast). */
:root{color-scheme:dark}
html[data-theme=dark]{--bg:#12151d;--surface:#1b2030;--surface2:#252b3d;--text:#eef1f7;--muted:#a9b1c6;--accent:#f2b84b;--onaccent:#1a1405;--border:#343c55;--ok:#5fd08a;--warn:#f2b84b;--err:#ff8a8a}
html[data-theme=light]{color-scheme:light;--bg:#f6f4ef;--surface:#ffffff;--surface2:#ece8de;--text:#1a1d27;--muted:#4a5163;--accent:#8a5a00;--onaccent:#ffffff;--border:#b9b3a3;--ok:#176b3a;--warn:#7a4f00;--err:#b3261e}
html[data-theme=hc]{--bg:#000;--surface:#000;--surface2:#171717;--text:#fff;--muted:#fff;--accent:#ffff00;--onaccent:#000;--border:#fff;--ok:#7dff9f;--warn:#ffff00;--err:#ff9a9a}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;min-height:100vh;min-height:100dvh}
.muted{color:var(--muted)}.small{font-size:.8rem}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
h1{font-size:1.5rem;line-height:1.2;margin:.4rem 0 1rem}
h1:focus{outline:none}
h2{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:1.6rem 0 .6rem}
.row{display:flex;gap:.7rem;align-items:center}.row-wrap{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center}
.sp{justify-content:space-between}

/* splash */
#splash{position:fixed;inset:0;z-index:100;background:var(--bg);display:grid;place-items:center;padding:1.5rem;text-align:center}
#splash[hidden]{display:none}
.splash-box{max-width:22rem;width:100%}
.splash-logo{border-radius:22%;margin-bottom:.8rem}
.splash-name{font-size:2rem;font-weight:800}
.splash-name i,.brand i{font-style:normal;color:var(--accent)}
.splash-text{min-height:3rem;margin:.8rem 0}
progress{width:100%;height:.6rem;margin-top:1rem;accent-color:var(--accent)}
progress[hidden]{display:none}

/* shell */
.shell{display:grid;grid-template-rows:auto 1fr auto;min-height:100vh;min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}
.top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.8rem 1rem}
.crumb{font-size:.75rem;color:var(--muted);text-decoration:none}
.brand{font-weight:800;font-size:1.25rem}
.langs{display:flex;gap:.25rem}
.langs button{min-width:2.75rem;min-height:2.75rem;border-radius:.6rem;border:1px solid var(--border);background:transparent;color:var(--text);font:inherit;font-size:.8rem;cursor:pointer}
.langs button[aria-pressed=true]{background:var(--accent);color:var(--onaccent);border-color:var(--accent);font-weight:700}
main{padding:0 1rem 6rem}
.nav{display:flex;position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--border)}
.nav a{flex:1;min-height:3.4rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1rem;text-decoration:none;color:var(--muted);font-size:.75rem;border-top:3px solid transparent}
.nav a .ic{font-size:1.4rem;line-height:1}
.nav a[aria-current=page]{color:var(--accent);border-top-color:var(--accent);font-weight:700}
.fab{position:fixed;right:1rem;bottom:5rem;min-height:3.4rem;padding:.6rem 1.3rem;border-radius:99px;background:var(--accent);color:var(--onaccent);font-weight:800;text-decoration:none;box-shadow:0 6px 18px #0007;display:flex;align-items:center}
.skip{position:absolute;left:-999px;top:0;z-index:200;background:var(--accent);color:var(--onaccent);padding:.6rem 1rem;border:0;font:inherit}
.skip:focus{left:0}

/* components */
.card{background:var(--surface);border:1px solid var(--border);border-radius:1rem;padding:1rem;margin-bottom:.9rem}
.card h3{margin:0 0 .5rem;font-size:1.05rem}
.btn{min-height:2.9rem;min-width:2.9rem;padding:.4rem 1rem;border-radius:.8rem;border:1px solid var(--border);background:var(--surface2);color:var(--text);font:inherit;font-size:.95rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;text-decoration:none}
.btn.primary{background:var(--accent);color:var(--onaccent);border-color:var(--accent);font-weight:700}
.btn.danger{color:var(--err);border-color:var(--err)}
.btn[aria-pressed=true]{border-color:var(--accent);font-weight:700}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.chip{display:inline-block;border:1px solid var(--border);border-radius:99px;padding:.1rem .6rem;font-size:.72rem;color:var(--muted)}
.chip.warn{color:var(--warn);border-color:var(--warn)}.chip.ok{color:var(--ok);border-color:var(--ok)}
.field{width:100%;min-height:2.9rem;padding:.5rem .8rem;border-radius:.8rem;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit}
label{display:block;font-size:.85rem;margin:.8rem 0 .3rem;color:var(--muted)}
.banner{border:1px solid var(--border);border-left:5px solid var(--warn);background:var(--surface);border-radius:.8rem;padding:.8rem;margin:.8rem 0}
.empty{text-align:center;padding:2rem 1rem}.empty .big{font-size:2.6rem}
.kv{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;border-bottom:1px solid var(--border)}
.kv:last-child{border-bottom:0}
dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:1rem;padding:1.2rem;max-width:22rem}
dialog::backdrop{background:#000a}

@media (min-width:760px){
  .shell{grid-template-columns:14rem 1fr;grid-template-rows:auto 1fr}
  .top{grid-column:1 / -1}
  .nav{grid-row:2;grid-column:1;position:static;flex-direction:column;border-top:0;border-right:1px solid var(--border);padding:.6rem;gap:.3rem;align-self:start;background:transparent}
  .nav a{flex:none;flex-direction:row;justify-content:flex-start;gap:.8rem;padding:.6rem .9rem;border-top:0;border-left:4px solid transparent;border-radius:.6rem;font-size:.95rem}
  .nav a[aria-current=page]{border-left-color:var(--accent);background:var(--surface2)}
  main{grid-row:2;grid-column:2;max-width:46rem;padding-bottom:3rem}
  .fab{bottom:1.5rem;right:2rem}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.sp-top{margin-top:1.3rem}
.chip{white-space:nowrap;flex:none}

/* library / import (2B) */
.chips{display:flex;gap:.4rem;flex-wrap:wrap;margin:.2rem 0 .6rem}
.item h3 a{color:var(--text);text-decoration:none}.item h3 a:hover,.item h3 a:focus-visible{text-decoration:underline}
.row-wrap.start{justify-content:flex-start}
.area{min-height:9rem;resize:vertical;line-height:1.5}
select.field{appearance:auto}
input[type=file].field{padding:.6rem .8rem}
.status{min-height:1.5rem;margin:.4rem 0}.status.bad{color:var(--err)}
.banner.ok{border-left-color:var(--ok)}
.reader{margin:1rem 0}.reader p{margin:0 0 1rem;line-height:1.7;max-width:42rem}.reader h2{margin-top:1.8rem}

/* screen experiments (0.1.2) */
h3.sub{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:1.1rem 0 .4rem}
.evlog{margin:.2rem 0 .8rem;padding-left:1.2rem;font-size:.85rem}.evlog li{margin:.15rem 0}.evlog time{color:var(--muted);font-variant-numeric:tabular-nums}

/* paging, search, start position (0.1.3) */
.pager{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:.8rem 0}
.jump{display:flex;align-items:center;gap:.4rem}.field.num{width:4.5rem;text-align:center;padding:.4rem}
.search label{margin-top:.4rem}.search .row .field{flex:1}
.hits{list-style:none;margin:.4rem 0 1rem;padding:0}.hit{background:var(--surface);border:1px solid var(--border);border-radius:.9rem;padding:.8rem;margin-bottom:.6rem}
.hit-text{margin:.3rem 0 .6rem;line-height:1.5}mark{background:var(--accent);color:var(--onaccent);border-radius:.2rem;padding:0 .15rem}
.para{display:flex;gap:.6rem;align-items:flex-start;padding:.2rem 0;border-radius:.6rem}
.para .ptext{flex:1;min-width:0}.para p{margin:0 0 .9rem;line-height:1.7;max-width:42rem}
.startbtn,.listenbtn{flex:none;min-width:2.75rem;min-height:2.75rem;border-radius:.6rem;border:1px solid var(--border);background:transparent;color:var(--muted);font:inherit;font-size:.8rem;cursor:pointer;padding:0 .4rem}
.is-start{background:var(--surface);outline:2px solid var(--accent);outline-offset:2px}.is-start .startbtn{color:var(--accent);border-color:var(--accent);font-weight:700}
.para.flash{background:var(--surface2)}
.chip.pdfp{margin-bottom:.2rem}
.banner{display:flex;gap:.8rem;justify-content:space-between;align-items:center;flex-wrap:wrap}
.banner[hidden]{display:none}

/* bookmarks & jump panel (0.1.4) */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:.9rem;padding:.2rem .9rem;margin:.6rem 0}
.panel summary{min-height:2.75rem;display:flex;align-items:center;cursor:pointer;font-weight:600}
.panel[open]{padding-bottom:.8rem}
.bm-list{list-style:none;margin:.3rem 0;padding:0}.bm-list li{padding:.6rem 0;border-bottom:1px solid var(--border)}.bm-list li:last-child{border-bottom:0}
.bm-details{margin:.2rem 0 .6rem}.bm-details summary{min-height:2.75rem;display:flex;align-items:center;cursor:pointer;color:var(--accent);font-weight:600}
.bm-details li{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.bm-details li a{flex:1;min-width:10rem}
.btn.small{min-height:2.75rem;min-width:2.75rem;padding:.2rem .6rem}
.pbtns{display:flex;flex-direction:column;gap:.3rem;flex:none}
.bmbtn{min-width:2.75rem;min-height:2.75rem;border-radius:.6rem;border:1px solid var(--border);background:transparent;color:var(--muted);font:inherit;font-size:1.1rem;cursor:pointer}
.bmbtn[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.btn[aria-pressed=true].hit-bm{border-color:var(--accent);color:var(--accent)}

/* Player */
.player .doc-title{margin:.2rem 0 .8rem;font-size:1.05rem;font-weight:600}
.player .now-text{font-size:calc(1.15rem*var(--fs,1));line-height:1.7;margin:.4rem 0 .8rem;max-width:42rem}
.player input[type=range]{width:100%;min-height:2.75rem}
.player select.field{width:100%;margin:.2rem 0 .8rem}
.controls{display:flex;gap:.6rem;align-items:stretch;justify-content:center;margin:.8rem 0}
.controls .big-btn:nth-child(2){flex:1}
.big-btn{min-height:3.5rem;min-width:3.5rem;font-size:1.15rem}
.listenbtn{font-size:1rem}

/* test change */
/* second */
/* third */

/* Player: sticky control bar + current-sentence highlight */
.pl-bar{position:sticky;top:0;z-index:5;background:var(--bg);padding:.5rem 0 .4rem;border-bottom:1px solid var(--border);margin-bottom:.6rem}
.pl-bar-title{display:flex;flex-direction:column;gap:.1rem;margin-bottom:.3rem}
.pl-bar-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-bar .controls{margin:.2rem 0 0}
.sr-or-small{font-size:.85rem;font-weight:600;margin:.2rem 0}
mark.now{background:var(--accent);color:var(--onaccent);border-radius:.25rem;padding:.05em .15em;box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* Accessibility (2E): pointer targets of at least 44px, card headings under the page h1 */
.card .ch{margin:0 0 .5rem;font-size:1.05rem;text-transform:none;letter-spacing:0;color:var(--text)}
.crumb{display:inline-flex;align-items:center;min-height:2.75rem;padding:0 .4rem;margin-left:-.4rem}
.item h3 a{display:inline-block;padding:.6rem 0;min-height:2.75rem}
.shell{grid-template-columns:minmax(0,1fr)}
.top{flex-wrap:wrap}
@media (min-width:760px){.shell{grid-template-columns:14rem minmax(0,1fr)}}

/* Back-to-apps mark: same blue rounded square as the "A" of apps.vltv.cz (colour #406EE5, white letter) */
.vlogo{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;border-radius:.7rem;background:#406ee5;color:#fff;font-weight:800;font-size:1.5rem;line-height:1;text-decoration:none;flex:none}
.vlogo:hover{filter:brightness(1.08)}
.vlogo:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* Simplified player: one quick row, the rest folded */
.quick{align-items:center;gap:.6rem}
.quick .field{width:auto;min-width:5.5rem;margin:0}
.player select.field{margin:.2rem 0 .8rem}
.quick select.field{margin:0}
.inline-label{font-weight:600}
.player .panel label{display:block;margin-top:.7rem;font-weight:600}

/* Mini player (shown on other screens while an item is loaded) */
.mini{display:flex;align-items:center;gap:.6rem;background:var(--surface);border:1px solid var(--border);border-radius:.9rem;padding:.35rem .6rem;margin:0 0 .8rem;position:sticky;top:0;z-index:4}
.mini .mt{flex:1;min-width:0;display:flex;flex-direction:column}
.mini .mt strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini .btn{min-height:2.75rem}

/* player: one page. speed chips + star on one row; full text at the bottom */
.player [hidden]{display:none!important}
.quick{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.chips{display:flex;gap:.3rem;flex-wrap:wrap;flex:1 1 auto}
.chip-btn{min-width:2.5rem;min-height:2.5rem;padding:0 .4rem;border:1px solid var(--border);border-radius:.7rem;background:var(--surface);color:var(--text);font:inherit;font-size:.9rem;cursor:pointer}
.chip-btn[aria-pressed="true"]{background:var(--accent);color:var(--onaccent);border-color:var(--accent);font-weight:700}
.star-btn{flex:none;white-space:nowrap}
.fulltext-head{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1rem 0 .4rem}
.fulltext-head p{margin:0}
.fulltext{padding-bottom:5rem}
.ft-p{margin:0 0 .9rem;padding:.35rem .6rem;border-left:3px solid transparent;border-radius:.4rem;line-height:1.65;cursor:pointer}
.ft-p.cur{border-left-color:var(--accent);background:var(--surface)}
.ft-p mark.now{background:var(--accent);color:var(--onaccent);border-radius:.2rem;padding:0 .1rem}

/* test change */
/* second */
/* third */
@media (max-width:440px){
  .quick{flex-wrap:nowrap;gap:.25rem}
  .chips{flex-wrap:nowrap;gap:.2rem}
  .chip-btn{min-width:2.15rem;min-height:2.5rem;padding:0 .2rem;font-size:.8rem;flex:1 1 0}
  .star-btn{padding:0 .6rem;min-width:2.5rem}
  .star-btn .star-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.star-btn{position:relative}

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */

/* player bar: smaller play/pause, star always visible next to it */
.pl-controls{display:flex;gap:.4rem;align-items:center;justify-content:flex-start}
.pl-play-btn{min-width:7rem;min-height:2.75rem;padding:0 1rem}
.pl-sm-btn{min-width:2.75rem;min-height:2.75rem;padding:0 .6rem}
.pl-controls .star-btn{margin-left:auto;min-height:2.75rem}
.pl-controls .star-btn .star-label{position:static;width:auto;height:auto;clip:auto}
@media (max-width:440px){.pl-controls .star-btn .star-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.pl-play-btn{min-width:5.5rem;flex:1 1 auto}}
/* full text pages + search */
.ft-tools{margin:.4rem 0 .8rem}
.pg-row{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;margin:.3rem 0}
.pg-sel{width:auto;min-width:4rem;margin:0}
.pg-label{color:var(--muted);font-size:.85rem;margin-left:.3rem}
.pg-bottom{justify-content:space-between;margin-bottom:5rem}
.pl-hits{list-style:none;margin:.3rem 0;padding:0;max-height:14rem;overflow:auto}
.hit-btn{display:block;width:100%;text-align:left;margin:.2rem 0;font-size:.9rem;min-height:2.5rem}
.fulltext{padding-bottom:1rem}

/* test change */
/* second */
/* third */
.pg-row .pg-sel{width:4.5rem;flex:none}
.pg-row{flex-wrap:nowrap}
.pg-bottom{justify-content:space-between}
@media (max-width:440px){.pl-play-btn{flex:0 0 auto;min-width:7rem}.pl-controls{gap:.35rem}.pl-controls .star-btn{margin-left:auto}}
.pg-row select.pg-sel{width:4.5rem!important;max-width:4.5rem;flex:none}

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */

/* text size (Settings) affects the reading text only; the interface keeps its size */
.para p,.ft-p,.player .now-text{font-size:calc(1rem*var(--fs,1))}
.player .now-text{font-size:calc(1.15rem*var(--fs,1))}
/* player controls: fill the row, clearly visible icons */
.pl-controls{display:flex;gap:.4rem;align-items:stretch;justify-content:stretch}
.pl-controls>*{margin:0}
.pl-controls .pl-sm-btn{flex:1 1 0;min-width:2.75rem;background:var(--surface2);border:2px solid var(--text);color:var(--text);display:flex;align-items:center;justify-content:center;gap:.25rem}
.pl-controls .pl-sm-btn svg{width:1.5rem;height:1.5rem}
.pl-controls .pl-play-btn{flex:2.2 1 0;min-width:0}
.pl-controls .star-btn{margin-left:0;font-size:1.2rem}
.pl-controls .star-btn.on{background:var(--accent);color:var(--onaccent);border-color:var(--accent)}
.pl-controls .pl-sm-btn:disabled{opacity:.45}
.pl-bmlist{list-style:none;margin:.3rem 0;padding:0}
.pl-bmrow{display:flex;gap:.4rem;align-items:stretch;margin:.2rem 0}
.pl-bmrow .hit-btn{flex:1;margin:0}
.pl-bmrow .pl-sm-btn{flex:none}
.ft-row{padding:.2rem 0}
.ft-row .ft-p{margin:0 0 .6rem}

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */

/* listening progress */
.prog-wrap{margin:.15rem 0 .4rem}
.prog-line{display:flex;justify-content:space-between;gap:.6rem;font-size:.78rem;color:var(--muted);line-height:1.3;margin-bottom:.2rem}
.prog-left{text-align:right;white-space:nowrap}
.prog-track{height:.45rem;border-radius:99px;background:var(--surface2);border:1px solid var(--border);overflow:hidden}
.prog-fill{height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .3s}
.mini{flex-wrap:wrap}
.mini .prog-wrap{flex:1 1 100%;margin:0}
.item .prog-wrap{margin:.5rem 0 .3rem}
.pl-bar .prog-wrap{margin:.1rem 0 .45rem}
.pl-bar .pl-bar-title{margin-bottom:.1rem}
@media (prefers-reduced-motion:reduce){.prog-fill{transition:none}}

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */

/* test change */
/* second */
/* third */
