/* Glamourica — klientské zjednodušení UI copyparty (načítá html-head).
   Záměrně bez JavaScriptu: UI má striktní CSP s nonce, takže externí skript
   by se nespustil; české popisky proto děláme přes CSS. */

:root {
  --font-main: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 1) Skrýt technické sloupce: files / q / vq / Vc / Fmt / Res / fps / T.
      Pořadí hlaviček je pevné ze serveru -> nth-child odpovídá. */
#files thead th:nth-child(4),  #files tbody td:nth-child(4),
#files thead th:nth-child(6),  #files tbody td:nth-child(6),
#files thead th:nth-child(7),  #files tbody td:nth-child(7),
#files thead th:nth-child(8),  #files tbody td:nth-child(8),
#files thead th:nth-child(9),  #files tbody td:nth-child(9),
#files thead th:nth-child(10), #files tbody td:nth-child(10),
#files thead th:nth-child(11), #files tbody td:nth-child(11),
#files thead th:nth-child(12), #files tbody td:nth-child(12) {
  display: none !important;
}

/* 2) Skrýt nástroje, které klient nepotřebuje.
      Ponecháno: nahrát (opa_up), nová složka (opa_mkd), smazat (opa_del), mřížka (wtgrid). */
#opa_srch, #opa_msg, #opa_auc, #opa_cfg, #opa_bup, #opa_md,
#wtico, #repl, #srv_info {
  display: none !important;
}

/* 3) Skrýt pomocný volume s UI soubory z navigace a drobečkové cesty. */
#tree a[href="/_ui/"], #path a[href="/_ui/"] {
  display: none !important;
}

/* 4) České popisky sloupců, které překlad copyparty nepokrývá.
      Původní text schováme, místo něj ::before (šipka řazení je v th::after). */
#files thead th[name="href"] span,
#files thead th[name="sz"] span,
#files thead th[name="tags/.dur"] span,
#files thead th[name="ts"] span {
  display: none;
}
#files thead th[name="href"]::before      { content: "Název"; }
#files thead th[name="sz"]::before        { content: "Velikost"; }
#files thead th[name="tags/.dur"]::before { content: "Délka"; }
#files thead th[name="ts"]::before        { content: "Datum"; }

/* 5) Čitelnější tabulka. */
#files thead th {
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
}
#files tbody td {
  padding-top: .55em;
  padding-bottom: .55em;
}
#files tbody a,
#path a {
  text-decoration: none;
}
#files tbody tr:hover td {
  background: rgba(0, 0, 0, .03);
}
h1, h2, h3 {
  font-weight: 600;
}
